Hi,
I have a simple project with an EJB & his client. When I execute my EJB test with eclipse, It run perfectly. When I run with maven, I have this error:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.arsoebr.architecture.ejb.DemoServiceTest
29 juin 2007 09:20:57 com.sun.enterprise.util.ORBManager initORB
GRAVE: UTIL6009:Unexcpected Exception in createORB.
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(SerialInit ContextFactory.java:141)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at com.arsoebr.architecture.ejb.DemoServiceTest.direBonjour(DemoServiceTest.java:4 1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner. java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.jav a:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunn er.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMet hodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.ja va:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.jav a:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunn er.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(Abstr actDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDire ctoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.22 sec <<< FAILURE!
Classpath of this test is:
[echo] maven.test.classpath=D:\Users\elesne\Mes Documents\Formations-workspace\modele-projet-maven2-jee5\PROJET-module-client
\target\classes;D:\Users\elesne\Mes Documents\Formations-workspace\modele-projet-maven2-jee5\PROJET-module-client\t arget\test-clas
ses;C:\Documents and Settings\elesne\.m2\repository\junit\junit\4.3.1\junit-4.3.1.jar;C:\Documents and Settings\elesne\.m2\reposit
ory\log4j\log4j\1.2.12\log4j-1.2.12.jar;C:\Documents and Settings\elesne\.m2\repository\net\java\glassfish\javaee\v1_ur1-p01-b02\j
avaee-v1_ur1-p01-b02.jar;C:\Documents and Settings\elesne\.m2\repository\commons-logging\commons-logging\1.1\commons-logg ing-1.1.j
ar;C:\Documents and Settings\elesne\.m2\repository\net\java\glassfish\appserv-deployment-client\v1_ ur1-p01-b02\appserv-deployment-
client-v1_ur1-p01-b02.jar;C:\Documents and Settings\elesne\.m2\repository\net\java\glassfish\appserv-rt\v1_ur1-p01-b02\app serv-rt-
v1_ur1-p01-b02.jar;C:\Documents and Settings\elesne\.m2\repository\fr\arsoebr\PROJET\PROJET-module-ejb\1.0-SNAPSHOT \PROJET-module-
ejb-1.0-SNAPSHOT.jar;C:\Documents and Settings\elesne\.m2\repository\commons-lang\commons-lang\2.3\commons-lang-2.3.j ar
What appends ??
[Message sent by forum member 'lesne' (lesne)]
http://forums.java.net/jive/thread.jspa?messageID=224635