users@cargotracker.java.net

Unable to deploy

From: David Heffelfinger <dheffelfinger_at_gmail.com>
Date: Sat, 5 Oct 2013 12:01:24 -0400

All,

I got the latest source code from SVN as of this morning (revision 123).

I loaded the project into NetBeans 7.4 RC2, and built it without a problem.

I then attempted to deploy and run the project to GlassFish 4 (included
with NetBeans), but was unsuccessful, I got a NoClassDefFoundError.

Here is a partial stack trace:

SEVERE: Exception while preparing the app :
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.derby.jdbc.EmbeddedDriver
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.derby.jdbc.EmbeddedDriver
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:188)
at
com.sun.gjc.spi.DMManagedConnectionFactory.createManagedConnection(DMManagedConnectionFactory.java:114)
at
com.sun.enterprise.resource.allocator.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:87)
at
com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:907)
at
com.sun.enterprise.resource.pool.ConnectionPool.createResource(ConnectionPool.java:1189)
at
com.sun.enterprise.resource.pool.datastructure.RWLockDataStructure.addResource(RWLockDataStructure.java:98)

I made sure I had derby.jar under .../domain1/lib but the problem persists.

I would look deeper into it but unfortunately I'm busy with some other
stuff.

Is this a known issue or am I missing something here?

Thanks,
David


-- 
http://ensode.net - A Guide to Java, Linux and Other Technology Topics
My Books: http://www.packtpub.com/authors/profiles/david-heffelfinger
My Video Training:
http://www.packtpub.com/java-ee-development-with-netbeans-7/video
Follow me on Twitter: https://twitter.com/ensode