Could you kindly try the nightly build of GlassFish 4 and tell me what happens?
Sent from my iPhone
> On Oct 5, 2013, at 12:01 PM, David Heffelfinger <dheffelfinger_at_gmail.com> wrote:
>
> 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