Thanks.
I put the servlet and UserInfo into servletclasss and it works well.
Best Regards
Huyong
>From: Papaya Head <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Servlet in Weblogic
>Date: Thu, 6 Jan 2000 11:19:03 CST
>
>which classpath is your servlet in? and which classpath is the UserInfo in?
>
>if they are in different classpath, i.e. the servlet is in
>servletsclasspath
>and UserInfo is in the system classpath, then they use different
>classloaders, that's probably why the servlet couldn't find UserInfo.
>
>try to put them in the same classpath?
>
>
>>From: Yong Hu <[EMAIL PROTECTED]>
>>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>> Servlet API Technology." <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Servlet in Weblogic
>>Date: Thu, 6 Jan 2000 12:20:36 GMT
>>MIME-Version: 1.0
>>X-Originating-IP: [202.120.189.245]
>>Received: from [204.160.241.28] by hotmail.com (3.2) with ESMTP id
>>MHotMailBA3DE2C300BED82197B4CCA0F11CFC382; Thu Jan 06 05:25:25 2000
>>Received: from mail (mail.java.sun.com [204.160.241.28])by
>>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA01792;Thu, 6 Jan 2000
>>05:22:54 -0800 (PST)
>>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>>with spool id 3565827 for [EMAIL PROTECTED]; Thu, 6
>>Jan 2000 04:21:16 -0800
>>Received: from hotmail.com (f88.law3.hotmail.com [209.185.241.88]) by
>> mail.java.sun.com (8.9.3+Sun/8.9.3) with SMTP id EAA19675 for
>><[EMAIL PROTECTED]>; Thu, 6 Jan 2000 04:21:15 -0800 (PST)
>>Received: (qmail 51033 invoked by uid 0); 6 Jan 2000 12:20:36 -0000
>>Received: from 202.120.189.245 by www.hotmail.com with HTTP; Thu, 06 Jan
>>2000 04:20:36 PST
>>From [EMAIL PROTECTED] Thu Jan 06 05:36:43 2000
>>Message-ID: <[EMAIL PROTECTED]>
>>Sender: "A mailing list for discussion about Sun Microsystem's Java
>> Servlet API Technology." <[EMAIL PROTECTED]>
>>
>>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
>
>______________________________________________________
>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
______________________________________________________
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