karoma
karoma

Reputation: 1558

Can't start GlassFish server - The module has not been deployed

I've just installed Netbeans 7.4 on a new computer and cloned my project (created in Netbeans 7.3) from GitHub. However when I try to run it Glassfish fails to start and I can't figure out why.

Project log:

In-place deployment at D:\Users\Me\Documents\NetBeansProjects\CarRentalProject\build\web
GlassFish Server 4.0, deploy, null, false
D:\Users\Me\Documents\NetBeansProjects\CarRentalProject\nbproject\build-impl.xml:1033:     The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 0 seconds)

GlassFish log:

SEVERE:   Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
SEVERE:   java.lang.RuntimeException: Invalid resource : danu6__pm

The database I'm trying to connect to is called danu6, but I don't know where the __pm suffix is coming from, and I don't know how to change it.

Upvotes: 0

Views: 14452

Answers (2)

karoma
karoma

Reputation: 1558

Deleting persistence.xml and creating a new one seems to have fixed the issue.

Upvotes: 0

unwichtich
unwichtich

Reputation: 13857

The error means that you have no JDBC resource called danu6.

In the Glassfish admin GUI you have to setup a connection pool first, then you can add a JDBC resource which uses the fresh created connection pool.

This answer explains how to setup such a JDBC resource.

See also:

Upvotes: 1

Related Questions