Spring is doing the lookup with:
[code] <jee:jndi-lookup id="myEJB"
jndi-name="java:module/MyEJB!test.MyEJB"/>[/code]
Wich generates teh following error:
[code]org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'myEJB': Invocation of init method failed; nested exception is
javax.naming.NamingException: Lookup failed for
'java:module/PieceOfDataService' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is
javax.naming.NamingException: Invocation exception: Got null
ComponentInvocation ][/code]
[code]Caused by: javax.naming.NamingException: Lookup failed for
'java:module/PieceOfDataService!ubc.batchcontainer.samples.chunk.service.PieceOfDataService'
in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is
javax.naming.NamingException: Invocation exception: Got null
ComponentInvocation ]
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at javax.naming.InitialContext.lookup(InitialContext.java:392)[/code]
The spring file is deployed with the EJB.
--
[Message sent by forum member 'vincent_aumont']
View Post: http://forums.java.net/node/789374