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 / January 2008

Tip: Looking for answers? Try searching our database.

servlet not updating :(

Thread view: 
tiewknvc9 - 02 Jan 2008 02:37 GMT
Hi!

I know the easy answer is to restart the server, but I can't do that
with my hosting company.,,

My issue is that I am updating a servlet on my web hosting company
(godaddy), and it is supposed to update in 45 seconds from when it is
uploaded.  Sadly though, it is not updating.

Clearly, this makes it really hard to debug it.

Is there something that I can do to force it to update on the host?  I
know that the outputted content should change (I made the changes
blatently obvious in my servlet) - only it will only update when they
reboot the server (once a day).

This is a huge inconvenience...  Any ideas on what I can do?
Arne Vajhøj - 02 Jan 2008 02:48 GMT
> I know the easy answer is to restart the server, but I can't do that
> with my hosting company.,,
>
> My issue is that I am updating a servlet on my web hosting company
> (godaddy), and it is supposed to update in 45 seconds from when it is
> uploaded.  Sadly though, it is not updating.

It is common for Tomcat to automatically detect changes to JSP's but not
to class files.

> Is there something that I can do to force it to update on the host?  I
> know that the outputted content should change (I made the changes
> blatently obvious in my servlet) - only it will only update when they
> reboot the server (once a day).

Do you have access to restart the web app ?

Arne
Lew - 02 Jan 2008 03:00 GMT
>> I know the easy answer is to restart the server, but I can't do that
>> with my hosting company.,,
[quoted text clipped - 12 lines]
>
> Do you have access to restart the web app ?

One way, if you have access, is through the 'manager' app in Tomcat.

Signature

Lew

proudbug - 02 Jan 2008 16:34 GMT
> >> I know the easy answer is to restart the server, but I can't do that
> >> with my hosting company.,,
[quoted text clipped - 14 lines]
>
> One way, if you have access, is through the 'manager' app in Tomcat.

Another way, if you have access, is to add/update reloadable attribute
of Context to true. It should be in context.xml file under %
{catalina_home}\conf\

Happy New year, everyone!  -xw
Manish Pandit - 02 Jan 2008 21:29 GMT
> Hi!
>
[quoted text clipped - 13 lines]
>
> This is a huge inconvenience...  Any ideas on what I can do?

Can you provide more details on what the servlet does? I am trying to
understand the changes you might be doing in the code every 45 seconds
prompting a reload. Most applications have change in state with time,
not in the behavior. A state change can be managed outside of the
application logic (the actual code) as variables or externalized in a
database - hence reloading the servlet is something I am trying to
understand as a requirement..that too every 45 seconds.

-cheers,
Manish
tiewknvc9 - 02 Jan 2008 22:52 GMT
I dont have access to the server.  The code doesn't change every 45
seconds, but the server used to update every 45 seconds - so if I
uploaded a new version of the servlet - it would update in 45 seconds
after I uploaded it.

Sadly I think Im screwed...

> > Hi!
>
[quoted text clipped - 24 lines]
> -cheers,
> Manish


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



©2009 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.