>From: Yaron Klein <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: reloading classes in tomcat 3.2
>Date: Wed, 17 Jan 2001 18:55:10 +0200
>
>Hi,
>I am a new user of tomcat 3.2 and I'm trying to implements few classes
>with
>tag libraries.
>In order to do so I have some packages that I wanted to use not under the
>tomcat directory, so in order to use them I added the path to those
>packages
>in the tomcat.bat file. I think that is the reason that the classes don't
>reload automatically after I changed them and I have to restart the tomcat
>again and again (question 6.4 in the FAQ).
>So, my question is divided into two parts:
>1) how can I reload the classes automatically when I change them, without
>removing the package directory from the path ?
I don't know, it seems that it could not be possible.
>2) If (1) is not possible, how can I use packages and classes that are not
>under the root ?
Make your Servlets using packages, compile everything from the directory
one degree above in the tree (the directory that your subdirectory is
connect).
Use web.xml in your context (under WEB-INF) and put:
<servlet>
<servlet-name>somethingthatusespackage</servlet-name>
<servlet-class>nameOfPackage.SomeThingThatUsesPackage</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>somethingthatusespackage</servlet-name>
<url-pattern>/somethingthatusespackage</url-pattern>
</servlet-mapping>
That is it, whem your start Tomcat and Netscape and put
"http://127.0.0.1:8080/yourcontext/somethingthatusespackage" your servlet
that would be in
"/opt/tomcat/webapps/yourcontext/WEB-INF/classes/nameOfPackage/SomeThingThatUsesPackage.class"
will be loaded.
>
>I need the answers ASAP and I will be more than thankful to have them,
>Thank you very very much,
>Yaron Klein.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]