Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Unable to load Derby EmbeddedDriver even though it's in the classpath (Getting NoClassDefFoundError in Stardust Maven project in Eclipse)
Unable to load Derby EmbeddedDriver even though it's in the classpath [message #831378] Wed, 28 March 2012 16:49 Go to previous message
Jan Hendrik Scheufen is currently offline Jan Hendrik Scheufen
Messages: 46
Registered: October 2011
Member

I created a Stardust utility project with a Maven configuration. The project is connected to a Dynamic Web Project in Eclipse (via Deployment Assembly) to deploy it on a local Tomcat instance.

When running JUnit tests inside the utility project which bootstrap an IPP engine, the Derby EmbeddedDriver cannot be found even though it's declared as a Maven dependency and it's definitely on the classpath:

		<dependency>
			<groupId>org.apache.derby</groupId>
			<artifactId>derby</artifactId>
			<version>${derby.version}</version>
			<scope>test</scope>
		</dependency>


In the log the following exceptions appear:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.derby.jdbc.EmbeddedDriver
...
Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.raw.data is sealed
 
Read Message
Read Message
Read Message
Previous Topic:IAF-Stardust: WSP_1018_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL
Next Topic:Building Stardust
Goto Forum:
  


Current Time: Wed May 22 10:12:56 EDT 2013

Powered by FUDForum. Page generated in 0.01870 seconds