tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "andrew.jenkins" <andrew.jenk...@bankofamerica.com>
Subject RE: RELOAD!!! not working
Date Wed, 19 Jul 2000 19:01:51 GMT
The reason that WEB-INF/classes should NOT be in the CLASSPATH is that,
per the 2.2 Servlet spec, the servlet container (i.e. Tomcat) should:

1. search this directory _automatically_ whenever it is looking up classes
to service requests to your web application.
2. check to see that the class file hasn't been updated since it was last
loaded
by the container.

Classes loaded from the CLASSPATH do not have the 2nd property; they
are loaded when first needed and not necessarily reloaded if the class
file is updated.

To ensure the class is reloaded when it changes, it shouldn't be in
the CLASSPATH.

--Andy

Andy Jenkins
Bank of America - GCIB Software Engineering
voice: 704.387.4168
mailto:andrew.jenkins@bankofamerica.com

> -----Original Message-----
> From:	jlinzer [SMTP:jlinzer@alabanza.com]
> Sent:	Wednesday, July 19, 2000 2:05 PM
> To:	tomcat-user
> Subject:	Re: RELOAD!!! not working
> 
> Hi,
> I am sorry if this is a silly question, but, why does everyone think that
> having
> /WEB-INF/classes in the classpath is bad? Why shouldn't it be there?
> 
> Thanks for any clarity on this subject.
> 
> Jeremy
> 
> Scott Bell wrote:
> 
> > Dont think this is this case. I do not have ../WEB-INF/classes in my
> > classpath.
> >
> > here it is the classpath that tomcat spits out. there is nothing for
> > /WEB-INF/classes
> >
> > D:\jdk1.3\local\project\tomcat\bin>startup
> > Starting tomcat in new window
> > Using classpath:
> > d:\jdk1.3\local\project\tomcat\classes;d:\jdk1.3\local\project\
> >
> tomcat\lib\xerces.jar;d:\jdk1.3\local\project\tomcat\lib\webserver.jar;d:\
> jdk1.3
> >
> \local\project\tomcat\lib\jasper.jar;d:\jdk1.3\local\project\tomcat\lib\xm
> l.jar;
> >
> d:\jdk1.3\local\project\tomcat\lib\servlet.jar;d:\jdk1.3\lib\tools.jar;.;D
> :\jdk1
> >
> .3\local\project\JARS\xerces1.0.3.jar;D:\jdk1.3\local\project\JARS\IBM-SOA
> P.jar;
> >
> D:\jdk1.3\JavaSoft\Jaxp1.0.1\jaxp.jar;D:\jdk1.3\JavaSoft\Jaxp1.0.1\parser.
> jar;D:
> >
> \jdk1.3\local\jdhs\jdhs.jar;D:\jdk1.3\local;D:\jdk1.3\local\project;D:\jdk
> 1.3\li
> >
> b\tools.jar;D:\jdk1.3\local\project\JARS\xalan.jar;D:\jdk1.3\local\project
> \JARS\
> >
> bsf.jar;D:\jdk1.3\local\project\JARS\bsfengines.jar;D:\jdk1.3\local\projec
> t\JARS
> >
> \ant.jar;D:\jdk1.3\local\project\nassl-1.1\lib\nassl.jar;d:\jdk1.3\local\p
> roject
> > \SOAP
> >
> > >From: Vincent Aumont <vincent.aumont@vslab.com>
> > >Reply-To: tomcat-user@jakarta.apache.org
> > >To: tomcat-user@jakarta.apache.org
> > >Subject: Re: RELOAD!!! not working
> > >Date: Wed, 19 Jul 2000 09:25:51 -0700
> > >
> > >It's probably because .../WEB-INF/classes is in your CLASSPATH.
> > >
> > >
> > >Scott Bell wrote:
> > >
> > > > I have my classes for an app in
> > > >
> > > > .../WEB-INF/classes/service.class
> > > >
> > > > however when i recompile service.java, although tomcat gives me the
> > >message
> > > > RELOAD!!! it dosnt work!
> > > >
> > > > I assumed this meant it reloaded the class file since it had
> changed.
> > > > however it still seems to use the old classfile
> > > > I have been very careful with filenames and paths etc. its not
> picking
> > >the
> > > > class up from anywhere else, since when i shutdown and then startup,
> it
> > >gets
> > > > the new class file.
> > > >
> > > > NEW2 in server side register
> > > >
> > > > http://localhost:4040/soap/rpcrouter.jsp1000
> > > > RELOAD!!!
> > > > >>(Wed Jul 19 16:58:39 GMT+01:00 2000) Processing SOAP request...
> > > > NEW2 in server side register
> > >http://localhost:4040/soap/rpcrouter.jsp1000
> > > > >>(Wed Jul 19 16:59:08 GMT+01:00 2000) Processing SOAP request...
> > > > NEW2 in server side register
> > >http://localhost:4040/soap/rpcrouter.jsp1000
> > > >
> > > >
> ________________________________________________________________________
> > > > Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
> > >
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Mime
View raw message