[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-708) Bundled jboss-ejb3-all.jar is invalid in embeddable container
Carlo de Wolf (JIRA)
jira-events at jboss.com
Tue Nov 7 10:15:42 EST 2006
[ http://jira.jboss.com/jira/browse/EJBTHREE-708?page=all ]
Carlo de Wolf updated EJBTHREE-708:
-----------------------------------
Fix Version/s: (was: EJB 3.0 RC10 - FD)
> Bundled jboss-ejb3-all.jar is invalid in embeddable container
> -------------------------------------------------------------
>
> Key: EJBTHREE-708
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-708
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC9 - FD
> Environment: Linux, Maven, Java 5.
> Reporter: Adrian Pillinger
> Assigned To: Carlo de Wolf
> Priority: Blocker
>
> The classes that were bundled together to form the jboss-ejb3-all.jar of the embeddable container are not compatible.
> I am calling the following code...
> {code}
> EJB3StandaloneBootstrap.boot(null);
>
> Collection<URL> deployDirs = getDeployDirURLs();
> Collection<URL> persistenceArchives = getPersistenceArchiveURLs();
>
> deployer = EJB3StandaloneBootstrap.createDeployer();
> .... get deploy dirs ..
> deployer.getDeployDirs().addAll(deployDirs);
> deployer.create();
> deployer.start();
> {code}
> When the code gets to deployer.create(); it fails with the following stack trace
> {noformat}
> java.lang.NoSuchMethodError: org/jboss/ejb3/Ejb3Deployment.<init>(Lorg/jboss/ejb3/DeploymentUnit;Lorg/jboss/ejb3/EAR;)V
> at org.jboss.ejb3.embedded.EJB3StandaloneDeployment.<init>(EJB3StandaloneDeployment.java:49)
> at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:438)
> at com.dolby.pics.test.AbstractEJBTestCase.startupEmbeddedJboss(AbstractEJBTestCase.java:84)
> at com.dolby.pics.test.TestSetupWrapper.setUp(TestSetupWrapper.java:32)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.extensions.TestSetup.run(TestSetup.java:27)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> {noformat}
> The error as you can see is an incompatability between
> {noformat}
> org.jboss.ejb3.embedded.EJB3StandaloneDeployment
> {noformat}
> and
> {noformat}
> org.jboss.ejb3.Ejb3Deployment
> {noformat}
> I'm guessing that these are from different jars and have been bundled into the same jar without a compile any tests to check that they are compatible.
> My code worked absolutely fine with alpha 8 of the embeddable container.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list