On Thu, 7 Sep 2000, Robert Pottschmidt wrote:

> Hi, 
> 
>     Please forgive me for this post I am a newbie to system adm. Our setup is an 
>academic server. Running Redhat 6.1 with Apache and Jserv. Our problem deals with a 
>lab we assigned that all of our users where to do an applet using swing to draw a 
>moiré pattern. When we view them on the server using Netscape one of the students 
>applets gets load by all the other students pages. This only happen on the server. 
>Instead of showing the actual students applet it shows an students applet. All the 
>class are named the same. 

I think the JServe process is keeping track of the classes it has
loaded by class name, and once it has loaded that name once, it
won't reload it.

Because all your students are using the same class name, the process
is loading the first student's version, and re-using it for all 
subsequent accesses.

I think you need to either have the students use unique class names, or
find a way to force JServe to reload classes even if JServe thinks it
has seen them before.  Bouncing JServe would do it but that probably
isn't an option for a lab server.

I see this sort of behaviour running unit tests with JUnit.  JUnit works
around this problem by providing a custom class loader that does not
attempt to be so clever.

Hopefully someone with specific JServe experience can offer a definitive
solution for your problem.


--
Joi Ellis                    Software Engineer
Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to