• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem running client on different machine  RSS feed

 
Hema Bhandari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i've successfully deployed a stateless session bean simple eg.
my sample is working on the same machine as the server.but when i try to run it on a different machine it gives me the following error.
javax.naming.NoInitialContextException: cannot instantiate class:weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException:weblogic.jndi.WLInitialContextFactory.
thanx
hema
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Hema,
Have you set the classpath to classes.jar in your
enviornment?
regards,
Manjunath
 
Hema Bhandari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi manjunath,
can u please elaborate more on classes.jar.that is what all files should be in it.
thanx
hema
 
Kiran Karupalli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please put /weblogic/classes in the classpath. (on the server side). Or make jar file of this directory and move it to client machine and put that in classpath.

Thanks
Kiran
[This message has been edited by Kiran Karupalli (edited July 19, 2001).]
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Hema,
There is a folder called classes in your weblogic directory, which has all the necessary class files required to
run the client.For example, the WLInitialContextFactory class.
So set the classpath to this directory(i,e weblogic/classes)
before running the client.
Hope this helps,
Manjunath Subramanian
 
Hema Bhandari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Manjunath,Kiran
thanx a lot
i've put the weblogic.jar file on the client classpath and it worked fine.
i hope that was the right way.
thanx again.
hema
 
Mahesh Kulkarni
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm getting following error whenever there is request to server Weblogic(5.1).The data will be shown on the browser but this error is always there.I'm connecting to database(oracle 8i)in a servlet and the I'm redirecting the data to a JSP putting the data in session by putValue()method of session.I'm retrieving the data in jsp.If I run the same servlet from another m/c the data is not displayed. Please help me out.Also about excel connection I've recd no feed back yet.Please if anybody has gone through the same problem help me out .It's urgent.
Mon Jul 24 13:15:58 GMT 2000:<E> <ServletContext-General> Servlet failed with Exception
java.net.SocketException: socket write error (code=10053)
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java, Compiled Code)
at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Compiled Code)
at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java, Compiled Code)
at weblogic.servlet.FileServlet.sendFile(FileServlet.java, Compiled Code)
at weblogic.servlet.FileServlet.service(FileServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java, Compiled Code)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.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)
Thanx
MAhesh
 
suresh mulagala
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hema,
are u still getting that error? please let me know....ive not been checking this forum for a while...
cheers
Suresh
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suresh,
As you might have noticed, the thread you responded to dates back to 2001 and it very well might be that Hema is not around. Sending him a private message would probably be a better means of communication in this case (he might have pm-forwarding configured to an active mailbox).
Besides, it seems to me that Hema solved the problem already...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!