Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Tomcat won't recompile servlet

Thread view: 
bikemh - 04 Sep 2006 21:57 GMT
With Tomcat/5.5.7, the example servlets are running correctly. But if I
edit the HelloWorldExample source
($catalina_home\webapps\servlets-examples\WEB-INF\classes\HelloWorldExample.java),
the HelloWorldExample servlet does not change. If I use the manager to
reload the context of /servlets-examples, then the manager reports the
msg, "OK - Reloaded application at context path /servlets-examples" but
the servlet is not changed. If I restart Tomcat completely, the servlet
is still not changed.

Why not?
Arne Vajhøj - 04 Sep 2006 23:28 GMT
> With Tomcat/5.5.7, the example servlets are running correctly. But if I
> edit the HelloWorldExample source
[quoted text clipped - 4 lines]
> the servlet is not changed. If I restart Tomcat completely, the servlet
> is still not changed.

In default setup at least Tomcat does not compile
servlets ever.

You edit the code, you compile, you deploy and
restart app.

Arne
bikemh - 12 Sep 2006 20:41 GMT
> In default setup at least Tomcat does not compile
> servlets ever.
>
> You edit the code, you compile, you deploy and
> restart app.

thanks, Arne. I am re-acquainting myself with servlets from a few years
ago and was mistaken about tomcat doing autocompiling. I believe,
though, that Resin might have done autocompiling.

Also, since I have now edited tomcat_home/conf/context.xml by changing:
<Context>

to:
<Context reloadable="true">

restarting is not necessary (for the development stage)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.