Shelton,

You should include this library in Servlet Path,
so it will be dynimec lodaded to, like the JSP or servlets.

Bruno

----- Original Message -----
From: Shelton, William D <[EMAIL PROTECTED]>
To: JRun List (E-mail) (E-mail) <[EMAIL PROTECTED]>
Sent: Thursday, August 03, 2000 1:03 PM
Subject: Object Caching Problem


> Hi List:
>
> I'm new to JRun and somewhat new to Java, so please bear with me.
>
> Symptom:
> When I make changes to a class in a package, those changes are not
reflected
> in the calling servlet or JSP page UNLESS I restart the JRun Server. In
> fact, I get a java.lang.NoSuchMethodError
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /* Simplified Package Code: */
> package mystuff;
> public class
son{ 
> protected String firstName = null; 
> Person(){} 
> public void setFirstName( String fName ){ 
> this.firstName = fName; 
> } 
> 
> public String getFirstName(){ return this.firstName; } 
> } file://end 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> The above simple code works fine when I call it from a servlet or JSP page
> like so: 
> 
> import mystuff.*; 
> import other.packages.*; 
> // snip ... 
> Person p = new Person(); 
> p.setFirstName( "James" ); 
> out.println( p.getFirstName() ); 
> ... 
> 
> However, if I update this class to ALSO include: 
> 
> protected String lastName = null; 
> public void setLastName( String lName ){ 
> this.lastName = lName; 
> } 
> public String getLastName(){ return this.lastName } 
> ... 
> 
> Then when I invoke the servlet/JSP using : 
> 
> Person p = new Person(); 
> p.setFirstName( "James" ); 
> p.setLastName ( "Kirk" ); 
> out.println( p.getFirstName() + " " ); 
> out.println( p.getLastName() ); 
> ...
> 
> the servlet throws a java.lang.NoSuchMethodError ... 
> 
> If I restart the server, it works fine. It seems like JRun is caching the
> classes in the package or is not refreshing the package. 
> 
> Am I missing something obvious? Or is 
this a problem with a workaround?
>
> Thanks in advance!
> Bill
>
>
>
>
>
>
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.egroups.com/group/jrun-interest/
> Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
>

------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to