Client Jar Problem (Weblogic 5.1)

Discussions

EJB programming & troubleshooting: Client Jar Problem (Weblogic 5.1)

  1. Client Jar Problem (Weblogic 5.1) (1 messages)

    Hello all,
    I have deployed my ejb's on one weblogic server(5.1). I have a client (servlets) running on another weblogic (5.1)server. The client machine has a jar which contains the Home and the Remote Interfaces of the beans that are deployed on the main server hosting the ejb's.
    However, I get the following exception when i try to access the beans on the server from the client.

    =================================================================
    weblogic.rmi.UnmarshalException: Unmarshalling return
     - with nested exception:
    [java.lang.ClassNotFoundException: class com.opus.epg.useraccess.AdminSystemBeanHomeImpl_ServiceStub previously not found]
     at weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.java:256)
     at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
     at javax.naming.InitialContext.lookup(InitialContext.java:350)
     at com.opus.epg.classes.utils.EpgApplicationContext.lookup(EpgApplicationContext.java:161)
     at com.opus.epg.classes.wi.EpgNavigationController.getInstance(EpgNavigationController.java:110)
     at com.opus.epg.servlets.wi.EpgControllerServlet.init(EpgControllerServlet.java:48)
     at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:390)
     at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:349)
     at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:338)
     at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
     at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
     at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
     at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
     at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
     at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    =================================================================
    I turned on the "-verbose" option while running the server. I find that the class AdminSystemHome is not being loaded. I have placed the jar containing the Home and the remote interfaces in the weblogic\myserver\serverclasses directory and specified path in the weblogic classpath .
     
    I also tried to put the jar in the system class path so that it might be loaded by the System classloader , but that doesnt work too.
    I also tried moving the jar to the weblogic\myserver\servletclasses directory so that it might be loaded by the Servlet class loader, but that also does'nt seem to work.
    Is there some way by which I can get the stubs downloaded at runtime so that the Network class loader loads them?

    Ashutosh
  2. Client Jar Problem (Weblogic 5.1)[ Go to top ]

    Hi Ashutosh
     you have to put the home/remote stub at the client side in addition to your class files(home and remote).
    Saryu