[ http://jira.codehaus.org/browse/MNG-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=140774#action_140774 ]
ignasl edited comment on MNG-3048 at 7/5/08 5:48 PM: ------------------------------------------------------- Hello, Is this bug is gone in maven 2.0.9? I try to create InitialContext to lookup ejbs from glassfish, and get exact same exception when run with mvn jetty:run. (it seems not only me: http://www.nabble.com/Remote-Client-to16121213.html) was (Author: ignasl): Hello, Is this bug is gone in maven 2.0.9? I also try to create InitialContext to lookup ejbs from glassfish, and get exact same exception when run with mvn jetty:run. > Xpp3Dom gets in the way of org.omg.CORBA.INITIALIZE > --------------------------------------------------- > > Key: MNG-3048 > URL: http://jira.codehaus.org/browse/MNG-3048 > Project: Maven 2 > Issue Type: Bug > Components: Plugins and Lifecycle > Affects Versions: 2.0.6 > Reporter: Emilian Bold > Fix For: Reviewed Pending Version Assignment > > > I have a unit test which creates an InitialContext and connects to a > Glassfish application. I'm using sunfire 2.1.3 (in order to > -disableassertions). > While creating the InitialContext, I get exception at the end of the post. > Basically I have appserver-rt in the dependency list (in my local > repository). This jar contains the com/sun/corba/ee/impl/orb/ORBImpl.class. > maven-surefire-plugin is also configured this way in the build: > <version>2.1.3</version> > <configuration> > <forkMode>pertest</forkMode> <!-- also "always" ? --> > <argLine>-da</argLine> > > <!-- force the appserver ORB in front of the default one > ?--> > <childDelegation>true</childDelegation> > Note my test with childDelegation which seems to do nothing in particular. > org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation > com.sun.corba.ee.impl.orb.ORBImpl vmcid: 0x0 minor code: 0 completed: No > at org.omg.CORBA.ORB.create_impl(ORB.java:297) > at org.omg.CORBA.ORB.init(ORB.java:336) > at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:506) > at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:264) > at > com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:141) > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > at javax.naming.InitialContext.init(InitialContext.java:223) > at javax.naming.InitialContext.<init>(InitialContext.java:175) > at com.example.xxx.xxx.TestMe.connect(TestParent.java:41) > at com.example.xxx.TestTransactions.setUp(TestTransactions.java:33) > at junit.framework.TestCase.runBare(TestCase.java:125) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > 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:585) > at > org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242) > at > org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216) > at > org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) > at org.apache.maven.surefire.Surefire.run(Surefire.java:126) > at org.apache.maven.surefire.Surefire.run(Surefire.java:87) > at org.apache.maven.surefire.Surefire.run(Surefire.java:63) > 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:585) > at > org.apache.maven.surefire.SurefireBooter.main(SurefireBooter.java:785) > Caused by: java.lang.VerifyError: (class: com/sun/corba/ee/impl/orb/ORBImpl, > method: create_context_list signature: ()Lorg/omg/CORBA/ContextList;) > Incompatible argument to function > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:242) > at org.omg.CORBA.ORB.create_impl(ORB.java:295) > ... 32 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira