> glassfish_at_javadesktop.org wrote:
> > Is it possible to push another build of
> org.glassfish.extras:glassfish-embedded-all? The
> latest version that currently sort of works is
> 3.0.1-b02 (see
> http://download.java.net/maven/glassfish/org/glassfish
> /extras/glassfish-embedded-all/ ), but that includes
> EclipseLink v2.0.0-RC1, which features several
> egregious bugs, such as this one:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=300412
> >
> > I'm not sure why the builds stopped between b02 and
> b12, or why b12 doesn't work (something about a bad
> jar file; I posted earlier on this) or why neither
> 3.0.1-SNAPSHOT nor 3.1-SNAPSHOT works.
> >
> Does 3.1-SNAPSHOT not work for you? It should. Are
> you getting Invalid
> signature file error?
Ah! No, not anymore! But. :-)
When I run my unit test on 3.1-SNAPSHOT, I get this error below. (This test runs fine under 3.0.1-b02, provided I don't use EntityManager#createNamedQuery(String, Class).)
[code]
SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.PersistenceProvider
at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:168)
at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:109)
at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:135)
at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:647)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:299)
at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:215)
at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:145)
at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:128)
at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:120)
at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)
at com.jenzabar.junit.ejb.dbunit.mem.EJBContainerStrategy.init(EJBContainerStrategy.java:52)
at com.jenzabar.junit.ejb.dbunit.mem.AbstractEJBTestCase.setStrategy(AbstractEJBTestCase.java:82)
at com.jenzabar.junit.ejb.dbunit.mem.AbstractEJBTestCase.createTables(AbstractEJBTestCase.java:131)
at com.jenzabar.junit.dbunit.mem.AbstractInMemoryDBUnitTestCase.createSchemasAndTables(AbstractInMemoryDBUnitTestCase.java:191)
at com.jenzabar.junit.dbunit.mem.AbstractInMemoryDBUnitTestCase.setUp(AbstractInMemoryDBUnitTestCase.java:64)
at com.jenzabar.junit.ejb.dbunit.mem.AbstractEJBTestCase.setUp(AbstractEJBTestCase.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
Caused by: java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.PersistenceProvider
at com.sun.enterprise.loader.ASURLClassLoader.findClassData(ASURLClassLoader.java:808)
at com.sun.enterprise.loader.ASURLClassLoader.findClass(ASURLClassLoader.java:694)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:162)
... 43 more
Apr 22, 2010 5:13:32 PM org.glassfish.api.ActionReport failure
[/code]
Thanks,
Laird
[Message sent by forum member 'ljnelson']
http://forums.java.net/jive/thread.jspa?messageID=398566