Hi,

I missed to add the following details....
The EJBean container is Weblogic. The web container is Weblogic on another
NT Machine.

regards,

Diwakar.
(office) +91-40-3308600 x8547.



> -----Original Message-----
> From: Diwakar Killamsetty
> Sent: Friday, July 14, 2000 3:33 PM
> To:   [EMAIL PROTECTED]
> Subject:      client on remote machine.
>
> Hi,
>
> I deployed an EJBean in one machine and I am trying to access the services
> from another machine through a JSP, as we discussed yesterday. If I do so
> I
> am getting Unmarshall error. The complete error report is in the txt file.
> And I could able to access the services when I run the JSP in the same
> machine, where the EJBean is deployed. What could be the reason? The JSP
> code is attached as a txt file.
> Please help.
>
> Thanks in advance
>
> ---------------------------------------jsp
> code----------------------------
>
> <%@ page
> import="javax.naming.*,javax.ejb.*,javax.rmi.*,java.rmi.*,java.net.*,java.
> ut
> il.*,com.wilco.wilco_online.authorisationmanager.* " %>
> <html>
>  <head>
>   <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
>   <title>Login Result</title>
>  </head>
>
> <body>
> Body
> <%
>         String user = "user"; //request.getParameter("user");
>         String password = "passwd"; //request.getParameter("password");
>         String language = "1";
>         String validate="ok";
>
>
>         try{
>
>                 Hashtable h = new Hashtable();
>
>
> h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFacto
> ry
> ");
>
>                 h.put(Context.PROVIDER_URL, "t3://localhost:7001/"); //
> protocol://hostname:portnumber
>
>                 h.put(Context.SECURITY_PRINCIPAL, "system");
>
>                 h.put(Context.SECURITY_CREDENTIALS, "kdiwakar");
>
>                 Context initial = new InitialContext(h);
>
>                 AuthorisationManagerHome home;
>
>                 home = (AuthorisationManagerHome)
> initial.lookup("WilcoOnline.AuthorisationManager");
>
>                 AuthorisationManager authManagerBean
> =(AuthorisationManager)home.create();
>
>                 validate =
> authManagerBean.Validate(user,password,language);
>
>                 out.println(validate);
>
> //              request.setAttribute();
> //              RequestDispatcher rd;
> //              rd =
> getServletContext().getRequestDispatcher(/AccountStatus.jsp);
> //              rd.forward(req, res);
>
>         } catch (NamingException ne) {
>             System.err.println("Problem looking up " + ne);
>             out.println(ne.getMessage());
>             ne.printStackTrace();
>         }catch (RemoteException re) {
>             System.err.println("Problem looking up "  + ": " + re);
>             out.println(re.getMessage());
>             re.printStackTrace();
>         }catch (CreateException ce) {
>             System.err.println("Problem looking up "  + ": " + ce);
>             out.println(ce.getMessage());
>             ce.printStackTrace();
>         }catch(Exception e) {
>             out.println(e.toString());
>         }
>
> %>
> </body>
> </html>
>
> ------------------------------error
> report-------------------------------------
>
> Fri Jul 14 15:12:47 GMT+05:30 2000:<E> <ServletContext-General> Cannot
> find
> resource 'WolJava/Genera
> lStyle.css' in document root 'C:\weblogic\myserver\public_html'
> Problem looking up javax.naming.CommunicationException [Root exception is
> weblogic.rmi.UnmarshalExce
> ption: Unmarshalling return
>  - with nested exception:
> [java.lang.ClassNotFoundException: class
> com.wilco.wilco_online.authorisationmanager.AuthorisationMa
> nagerBeanHomeImpl_ServiceStub previously not found]]
> javax.naming.CommunicationException.  Root exception is
> java.lang.ClassNotFoundException: class com.
> wilco.wilco_online.authorisationmanager.AuthorisationManagerBeanHomeImpl_S
> er
> viceStub previously not
> found
>         at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code)
>         at
> weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java,
> Compiled Code)
>         at
> weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java,
> Compiled
> Code)
>         at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java, Compiled Code)
>         at
> weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.j
> av
> a, Compiled C
> ode)
>         at
> weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java,
> Compiled Code)
>         at weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java,
> Compiled Code)
>         at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java, Compiled
> Code)
>         at
> weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java,
> Compiled Code)
>         at
> weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> Code)
>
> --------------- nested within: ------------------
> weblogic.rmi.UnmarshalException: Unmarshalling return
>  - with nested exception:
> [java.lang.ClassNotFoundException: class
> com.wilco.wilco_online.authorisationmanager.AuthorisationMa
> nagerBeanHomeImpl_ServiceStub previously not found]
>         at
> weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.j
> av
> a, Compiled C
> ode)
>         at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java,
> Compiled Code)
>         at javax.naming.InitialContext.lookup(InitialContext.java:349)
>         at
> jsp_servlet._woljava._login_95_result._jspService(_login_95_result.java:12
> 0)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java, Compiled
> Code)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
> va
> , Compiled Co
> de)
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
> mp
> l.java, Compi
> led Code)
>         at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
> mp
> l.java, Compi
> led Code)
>         at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletConte
> xt
> Manager.java,
>  Compiled Code)
>         at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java,
> Compiled Code)
>         at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java,
> Compiled Code)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> Code)
> --------------------------------------------------------------------------
> --
> ----------------
>
> regards,
>
> Diwakar.
> (office) +91-40-3308600 x8547.
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to