You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Laurent LAUBIN <La...@S2M.FR> on 2001/04/06 13:59:35 UTC

Servlet autoreloading troubles ...

Hello everybody

I have some questions about tomcat 3.2 & servlet reloading :

I have a context for development with reloadable="true", I put all the
.class in the WEB-INF/classes of this context.

If the .java are not in the same directory, it looks like servlet reloading
doesn't work ...

Moreover, if I delete the classfile of the servlet, I still can access it
until I restart tomcat ... (And it's not a problem of my navigator's cache
:)

So what are the rules for the servlet auto reloading ??? How can I unload
servlet from the server without restart it ?


For information, server is RedHat 7.0 with Apache 1.3.12/ModSSL2.6.6  and
Tomcat 3.2.1 with JDK1.3 from sun ;)



Thanks in advance,

_______________________________________________________
Laurent LAUBIN              S2M
Ingénieur système           2, rue des champs - BP 2282
Tél : +33 232 64 33 76      27950 St-Marcel - France
Fax : +33 232 21 25 99      http://www.s2m.fr/
_______________________________________________________
 


-----Message d'origine-----
De : Ralf Weiss [mailto:Ralf.Weiss@acs-gmbh.de]
Envoyé : mardi 27 février 2001 17:50
À : tomcat-user@jakarta.apache.org
Objet : Error 404 running isapi with PWS 4.0 and Tomcat 3.2





Hi all ,

I´m trying to let PWS 4.0 work together with Tomcat 3.2 under NT 4.0.

I think the isapi_redirect.dll is properly configured but I alway get the
error 404 and don´t know why. I also studied the several How-To´s
but I didn´t find any new hint.

The isapi.log looks like this when I´m trying to acces the url
"http://localhost/examples/jsp/index.html":

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is
 points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/jakarta/isapi_redirect.dll
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll ] is
not
a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/jakarta/isapi_redirect.dll
] is points to the web-inf directory


Any idea?

Thanks in advance

Ralf



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

RE: Servlet autoreloading troubles ...

Posted by Benoît Jacquemont <be...@smile.fr>.
Hi,

Servlet reloading is an alpha feature and it is known to doesn't work in
many cases. You have to restart Tomcat each time you build a .class.

Benoît

> Hello everybody
>
> I have some questions about tomcat 3.2 & servlet reloading :
>
> I have a context for development with reloadable="true", I put all the
> .class in the WEB-INF/classes of this context.
>
> If the .java are not in the same directory, it looks like
> servlet reloading
> doesn't work ...
>
> Moreover, if I delete the classfile of the servlet, I still
> can access it
> until I restart tomcat ... (And it's not a problem of my
> navigator's cache
> :)
>
> So what are the rules for the servlet auto reloading ??? How
> can I unload
> servlet from the server without restart it ?
>
>
> For information, server is RedHat 7.0 with Apache
> 1.3.12/ModSSL2.6.6  and
> Tomcat 3.2.1 with JDK1.3 from sun ;)
>
>
>
> Thanks in advance,
>
> _______________________________________________________
> Laurent LAUBIN              S2M
> Ingénieur système           2, rue des champs - BP 2282
> Tél : +33 232 64 33 76      27950 St-Marcel - France
> Fax : +33 232 21 25 99      http://www.s2m.fr/
> _______________________________________________________
>
>
>
> -----Message d'origine-----
> De : Ralf Weiss [mailto:Ralf.Weiss@acs-gmbh.de]
> Envoyé : mardi 27 février 2001 17:50
> À : tomcat-user@jakarta.apache.org
> Objet : Error 404 running isapi with PWS 4.0 and Tomcat 3.2
>
>
>
>
>
> Hi all ,
>
> I´m trying to let PWS 4.0 work together with Tomcat 3.2 under NT 4.0.
>
> I think the isapi_redirect.dll is properly configured but I
> alway get the
> error 404 and don´t know why. I also studied the several How-To´s
> but I didn´t find any new hint.
>
> The isapi.log looks like this when I´m trying to acces the url
> "http://localhost/examples/jsp/index.html":
>
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /examples/jsp/index.html
> [jk_uri_worker_map.c (344)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]:
> jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc
> [/examples/jsp/index.html] is a
> servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/examples/jsp/index.html] is
>  points to the web-inf directory
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /jakarta/isapi_redirect.dll
> [jk_uri_worker_map.c (344)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (434)]:
> jk_uri_worker_map_t::map_uri_to_worker, done
> without a match
> [jk_isapi_plugin.c (452)]: HttpFilterProc
> [/jakarta/isapi_redirect.dll ] is
> not
> a servlet url
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/jakarta/isapi_redirect.dll
> ] is points to the web-inf directory
>
>
> Any idea?
>
> Thanks in advance
>
> Ralf
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org