File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB call context.lookup() - ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB call context.lookup() - ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy" Watch "EJB call context.lookup() - ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy" New topic
Author

EJB call context.lookup() - ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy

rama ilango
Greenhorn

Joined: Dec 11, 2008
Posts: 24
Hi,

I am calling EJB service in my code. It is working fine with web sphere WAS 7.0. But when tried to run the same code in WAS 8.5, am getting the below error.

Error 500: javax.servlet.ServletException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments;
nested exception is: java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy:
This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server
that is part of a cluster is also deployed on all other members of that cluster]

How to resolve this issue? Why it is not working in 8.5? Need to change the EJB coding?
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

Is that the full stack trace?
rama ilango
Greenhorn

Joined: Dec 11, 2008
Posts: 24
The below is full stack trace. Please help on this

W org.apache.struts.action.RequestProcessor processException Unhandled Exception thrown: class javax.naming.CommunicationException
00000063 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause action: javax.servlet.ServletException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy: This error could indicate that a component was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on all other members of that cluster]
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1229)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1032)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

I'm sorry. I should've been specific. Do you have access to the Administrative console and is the service function simple enough to invoke it from the console? If so, please do that and post the full stack trace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB call context.lookup() - ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextProxy
 
Similar Threads
java.rmi.unmarshallException
Error caused by persistence.xml
URGENT :java.rmi.UnmarshalException: failed to unmarshal
UnmarshalException
Error with WAS 8.5 : java.lang.ClassNotFoundException: com.ibm.osgi.jndi.fep.GatewayBundleContextPro