Hi,
I use Weblogic as my servlet server and want to use getObject() to get
information from applet.The information I use is defined as a class which
implements java.io.Serializable named UserInfo.The UserInfo.class is added
to a .jar file which doesn't located in c:\weblogic\servletclasses.
In applet,the code is:
UserInfo user=new UserInfo();
user.setName("Huyong"); //setName is a method of UserInfo
outtoServlet.writeObject(user);
//outtoServlet is a outstream var
These code can run successfully,the servlet's code is
UserInfo user=null; //right!!!
user=(UserInfo)infromApplet.readObject(); //error!!!
These code can be compiled successfully and the first row can run well,but
the second row can't run right and throwes
java.lang.ClassNotFoundException:UserInfo.
I don't know why it throwes such a exception since UserInfo user=null can
run successful. Can not the servlet find the .jar file when it run? Is there
some setting about servlet in Weblogic?
Any suggetion is helpful to me.
Thanks in advanced.
Huyong
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html