aspose file tools*
The moose likes BEA/Weblogic and the fly likes Correct way of ejb-link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Correct way of ejb-link " Watch "Correct way of ejb-link " New topic
Author

Correct way of ejb-link

Enrique Marron
Greenhorn

Joined: Nov 14, 2003
Posts: 1
Hi Everyone.
I'm migrating my application from WebLogic 6.0 to WebLogic 7.0.
My problem is with the local references, especifily with the ejb-link tag. In WebLogic 6.0 is no necesary add this tag. But in WebLogic 7.0 give the next error.
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: While trying to look up /app/ejb/CotizacionEJB.jar#PolIncisoEJB/local-home in /app/ejb/AseguradoEJB.jar#AseguradoFacadeEJB.; remaining name '/app/ejb/CotizacionEJB/jar#PolIncisoEJB/local-home'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:857)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:138)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:333)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:36)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:96)
at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:259)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:730)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:190)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:195)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:195)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:195)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:195)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:195)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean.insertarPolInciso(AseguradoFacadeBean.java:576)
at gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean.registrarAseguradoGMMI(AseguradoFacadeBean.java:991)
at gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean_h0q5aw_EOImpl.registrarAseguradoGMMI(AseguradoFacadeBean_h0q5aw_EOImpl.java:262)
at gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean_h0q5aw_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
at gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean_h0q5aw_EOImpl_WLStub.registrarAseguradoGMMI(Unknown Source)
at gfi.controller.pipelines.sis.emision.asegurado.AltaAseguradoPC.process(AltaAseguradoPC.java:87)
at gfi.controller.ControlServlet.excecuteAction(ControlServlet.java:599)
at gfi.controller.ControlServlet.service(ControlServlet.java:351)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
End server side stack trace

My ejb-jar.xml descriptor is this.
<enterprise-beans>
<session>
<ejb-name>AseguradoFacadeEJB</ejb-name> <home>gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeHome</home>
<remote>gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacade</remote>
<ejb-class>gfi.business.ejb.sis.facade.emision.asegurado.AseguradoFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/PolInciso</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>gfi.business.ejb.sis.entity.PolIncisoHome</local-home>
<local>gfi.business.ejb.sis.entity.PolInciso</local>
<ejb-link> ./ejb/CotizacionEJB.jar#PolIncisoEJB </ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
I have diferent JAR's files in my application. Then when i put a reference to a EJB that was delared in a diferent JAR, the reference crash�.
In WebLogic 6.0 this no was a problem, but in WebLogic 7.0 it's. I'm trying to convince the project mannager for use WegLogic 6.0 but that no works, ).
I hop someone have any suggestion for this troubble.
I appreciatte your time.
Thanx.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Correct way of ejb-link
 
Similar Threads
NoClassDefFoundError on the managed server which comes up second ... ??
JNDI Name not found exception
"javax.naming.LinkException" while getting local interface
Problems with EJB Local and using servlets - null pointers
NoClassDefFoundError on the managed server which comes up second ..... ??