Why do I need to restart Apache and Tomcat every time a java file is change

If a java file is changed and complied the changes are not reflected if Tomcat is not restarted.
The settings in server.xml are as:
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager" debug="0" privileged="true"/>
     <Context path="/cf" docBase="cf" debug="0" reloadable="false"/>
Here "cf" is my Application folder under webapps. The reloadable property when set to "true" for standalone Tomcat on Windows98 reflects the changes for compiled java files without restarting Tomcat. But on Linux 7.1 with Apache 1.3.19 and Tomcat 4.0.3 this is not working.
Also tried out with Manager Application of tomcat-users.xml with reloadable="false" as well as reloadable="true",
But when I reload the application using the command
http://servername:8080/manager/reload?path=/appli.name
It tells me that the application is reloaded but changes in the java file are still not reflected.
Also when reloaded through Manager Servlet, Only my load-on-startup servlet is reloaded, but other java classes are not.
Is it neccessary to execute this reload command from the server itself. I m executing it from a remote m/c. and have mapped the application with a domain name virtually.
Is it the case with Tomcat on Linux with Apache. Or is something going wrong on my part.
Can someone Help out plz.
Regards,
Rupali

or you can "touch" your web.xml file.
touch web.xmlor that command is for *nix systems, not sure what the Windows command is.  But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Why do I need to restart my wifi adapter every time my MacBook Air awakes from sleep?

    My wifi is turned on, but when I awake my Air from sleep, Safari and other apps that use the internet don't work. But if I turn off and then back on the wifi, everything works again. Any help appreciated with solving this problem.

    or you can "touch" your web.xml file.
    touch web.xmlor that command is for *nix systems, not sure what the Windows command is.  But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Why do I need to unplugg all USB devices every time I want to boot up my pc?

    Hello, recently I came across this weird problem where i need to unplug my usb devices every time I want to boot up my PC. I've disabled the "boot from usb" option in the BIOS however it didn't fix it. This issue is on my HP elite 8300 CMT. Any help will be appreciated thanks in advance.

    Typically what happens - one device causes the problem.  If you find the offending device by doing one device at a time, perhaps it will be something that you do not really need all the time.  I had a USB printer that would prevent proper bootup or shut down, so just left it disconnected most of the time.
    {---------- Please click the "Thumbs Up" to say thanks for helping.
    Please click "Accept As Solution" if my help has solved your problem. ----------}
    This is a user supported forum. I am a volunteer and I do not work for HP.

  • I got infected with XP Internet Secutiry 2012 and now every time I load FF it changes the access methodd to a manual proxy connection of 127.0.0.1

    How do I stop the proxy information from being changed?

    Parts of that infection may be left behind.
    Have your tried going to Options > Options > Advanced > Network > Connection > Settings, tick "No proxy"? Then close Firefox, restart Firefox from your desktop icon, check the setting just made to be sure it "sticks".
    You can get some help/information about that malware here: http://www.bleepingcomputer.com/virus-removal/remove-win-7-antispyware-2012
    The procedure on bleepingcomputer.com (above) is involved. If you feel uncomfortable doing it yourself, you can scroll to the bottom of that page and received '''''expert help''''' on their forum. Just follow their instructions and do exactly what they tell you to do, no more/no less. Be patient, they reply in the order that posts in the forum are received.
    <br />
    Your question under More information: '''''"Is it illegal to kill people who impregnate you PC with extortionware?"'''''
    Sometimes I wish it wasn't illegal, but I am sure that it is.
    <br />
    <br />
    After you get the problem above resolved. you need to do the following.
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • Why do I need to re-install flash player every time I restart my PC

    About a week ago my I nocticed that when every I tried to watch a flash video (with the exception of using Chrome) I was asked to install flash player with I already had installed.  However if I reinstall it everything works until I restart my PC.  Needless to say the is getting frustrating but I can't seem to fix it.  I have tried uninstalling and reistalling but this doesn't help... Once I restart the computer it doesn't work.  Any help would be appriated.
    Edit:  Forgot to mention I'm running Windows 7 (64 bit).

    Try a clean install as described in http://forums.adobe.com/thread/928315
    Download the installers from http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#Ins tall_in_a_firewall_proxy_server_environment
    If the problem persists, run the uninstaller again, then try fixing the permissions on your system: http://forums.adobe.com/thread/987370

  • I guess I need help just using this forum. What happened to the question I just asked? Where do I find the answers? And finally, why do I need to select a new name every time I need information?

    The tutorial seems to assume you want to catalog everything on your camera/card.  I want to be able to download my day's shooting so I can browse through them on my computer to decide what to save, what to delete, what to catalog, etc. I'm not opposed to change, but so far it seems that Lightroom has its own flow that does not fit how I work. Am I missing something?

    Two things to note on this:
    When you are in the Import dialog box, you can click Uncheck All and then click on the small box (upper left) for the photos you want to import.
    Even easier, Lightroom won't import duplicates. Photos you have already imported will be dim. New photos will be checked. It's a good idea to also turn on "Don't Turn on Suspected Duplicates" on the right side of the dialog, under File Handling.

  • "You Need To Restart Your Computer" Message every time I try to boot up

    I recently installed Mac OS X 10.4 onto my Mac Mini after a licence became available in my home. All was working fine and I updated to 10.4.11 updated safari, flash all that kinda stuff I was missing with 10.3. There was a mega (20.4GB) log file called ARDAgent.crash.log that was clogging up my 80GB Hard Drive leaving it with very little free. This file was there in 10.3.9 but I didn't delete it there and then. After installing 10.4 (I thought maybe it would sort it out - it didn't) it was still there so I tried deleting it. "In use". So I restarted with it moved and as another help topic said I deleted it using terminal. Computer seemed to be running normally and after updating Sockwave Player and a few other things I decided it was time for a restart.
    I restarted and 75% the way thru the blue OS X launch sequence I got the "You Must Restart Your Computer" message. Oh Dear thought me. Ah well, do as I'm told. Next time I didn't get as far. It got to just before it loaded OS X bar and then did the same. So, try launch from the 10.4 DVD - worth a try. Did so and for some bizar reason gave me a blue screen. Ok. So what next? I tried the 10.3 restore CDs that came with the Mini and it looked great. It got to the stage of clicking continue to do tests / install OS X and it crashed giving me the restart the computer.
    I've reset the PRAM and PMU.
    It now crashes with the Grey Screen and Apple logo with the loading sign at the bottom after about 15 seconds after bootup.
    I've got a backup but for some crazy reason it's not bootable :'(. I've got other backups but they're of 10.5 and 10.6 so I doubt the mini will even boot into them so I can have a look at the HD to diagnose any further.
    Any help would be really appreciated as taking it into a Mac Store is near impossible.

    Yes, you are getting kernel panics. A leading cause is memory, however, there are other causes. If you haven't read this, it may help: http://www.thexlab.com/faqs/kernelpanics.html

  • Why do we need to Restart XI Production server frequently ?

    Hi Friends,
                    We have faced issue like Timeout , deadloack  in  JDBC Adapter and many issues . If we restart the XIPRD once  the problem get solved .
                <b> 1.   Can you please suggest why do we need to restart teh XI  Server ?
                  2.  In what way it will be helpful for us ?
                   3. Will it clear any locks ? or any dump files ?
                   4. Is it recommended to star t and stop the sever ?</b>
                              Can you please give valuable replies as why  should we restart the xi sevrer in particular period like once in a month like that
    Regards.,
    Shyam.S

    1. Can you please suggest why do we need to restart teh XI Server ?
    It is not done on the frequent basis until you fae some problems like file adapter not appearing in the adapter configuration.....none of the adaters are present in ID (EX)
    it will only start the servicess or other things which were hanging or not responding state.....
    2. In what way it will be helpful for us ?
    ot moght e helpfull some times but not always...it depends on the probelm you are facing...lot of problems can be solved without restarting the server
    3. Will it clear any locks ? or any dump files ?
       Not sure
    4. Is it recommended to star t and stop the sever ?
      Not recomded to do it frequenlty without any valid reason (until you apply some patches etc)

  • Why do i need to restart my imac everyday like ten times to get it to work, also the screen displays little digital squares.

    Why do i need to restart my imac everyday like ten times to get it to work, also the screen displays little digital squares.

    Hi Matt,
    I purchased my imac in November of 2010 and below is a cut and past from Hardware overview. It has 1 TB hardrive, with 670 GB free. When i start up in the morning, it boots normal then freezes. Half the time i can get it to restart before it freezes, other half i have to power down then restart. At the same time throughout this process the little pixel squares show up sometimes in a single line or two aross the screen, then sometimes more random. After about 7 times of rebooting, everything runs fine for the day with no weird pixels. then i shut down at night, and start the porcess over in the morning. Thanks for your help!
    iMac
      Model Identifier:
    iMac11,3
      Processor Name:
    Intel Core i5
      Processor Speed:
    2.8 GHz
      Number Of Processors:
    1
      Total Number Of Cores:
    4
      L2 Cache (per core):
    256 KB
      L3 Cache:
    8 MB
      Memory:
    4 GB
      Processor Interconnect Speed:
    4.8 GT/s
      Boot ROM Version:
    IM112.0057.B00
      SMC Version (system):
    1.59f2
      Serial Number (system):
      Hardware UUID:
    AF510593-DDA2-513F-AE18-631B726F0BB1

  • I need to restart my printer at every print. why?

    I need to restart my printer at every print. why?

    Modelnaam:          iMac
      Modelaanduiding:          iMac10,1
      Processornaam:          Intel Core 2 Duo
      Processorsnelheid:          3,06 GHz
      Aantal processors:          1
      Totale aantal cores:          2
      L2-cache:          3 MB
      Geheugen:          4 GB
      Bussnelheid:          1,07 GHz
      Opstart-ROM-versie:          IM101.00CC.B00
    Software  Mac OS X Lion 10.7.5 (11G63)
    and the printer is a Brother 3040CN

  • Service Registry: why do i need two bindings (wsdlDeployment and endPoint)

    based on the technical note of Clemens Utschig "Enabling a Dynamic, Reusable SOA with Oracle BPEL Process Manager and Oracle Service Registry" i have one question:
    why do i need two bindings (wsdlDeployment and endPoint) in my service in the service registry. if i only define the wsdlDeployment if get this messages:
    <2006-12-07 09:39:02,559> <FATAL> <default.collaxa.cube.ws> no endpoint found - nothing to adjust
    <2006-12-07 09:39:02,559> <WARN> <default.collaxa.cube.ws> Could not lookup base endpoint!
    the problem of defining two bindings is that the url to my partner is redundant.

    Hi Clemens,
    The UDDI Version 3.0.2 Specification (http://www.uddi.org/pubs/uddi_v3.htm) say this:
    B.1.2 Using the "wsdlDeployment" value
    Instead of directly providing the network address in the accessPoint, it is occasionally useful or necessary to provide this information through indirect means. One common scenario for such a behavior is when the accessPoint is embedded within a WSDL file. In such a scenario, the UDDI accessPoint contains the address of the WSDL file, and the client then must retrieve the WSDL file and extract the end point address from the WSDL file itself.
    In this case, decorating the UDDI accessPoint with a useType="wsdlDeployment" is appropriate. A sample of such behavior is as follows:
    <bindingTemplate bindingKey="uddi:example.org:catalog">
       <description xml:lang="en">
           Browse catalog Web service
       </description>
       <accessPoint useType="wsdlDeployment">
           http://www.example.org/CatalogWebService/catalog.wsdl
       </accessPoint>
       <categoryBag>
           <keyedReference keyName="uddi-org:types:wsdl"
           keyValue="wsdlDeployment"
           tModelKey="uddi:uddi.org:categorization:types"/>
       </categoryBag>
    </bindingTemplate>In the example above, a client would be able to parse the result of the bindingTemplate and determine the end point of the Web service within the WSDL file discovered in the accessPoint element. Note that the bindingTemplate has also been categorized with the "wsdlDeployment" value from the uddi.org:categorization:types scheme so that it can be discovered through a find_binding API call.
    1) This means for me that providing one binding with useType=wsdlDeployment should be enough.
    2) Sadly the "Business Service Control" of the Service Registry (Publish new WSDL service) does not create the correct structure needed by the bpel-engine. The "Publish new WSDL service" wizard just creates one service with one binding with useType=other (http). So if i want to reuse this published service from bpel (as a service consumer) i have to switch to the "Service Registry Admin Control" and create a second binding with useType=wsdlDeployment. But i don't want the developers to get inside the "Service Registry Admin Control"! They should only work with the "Business Service Control".
    All this makes the usage of the service-registry very unhandy and reduce the acceptance for developers because of unnecessary manual steps and broken security principles.
    My wish for this issue is that the "Publish new WSDL service" inside the "Business Service Control" of the Service Registry would additionlly create this needed binding with useType=wsdlDeployment.
    Best Regards,
    Harald Reinmueller

  • TS2972 have to restart Itunes and computer several times before apple tv will connect...do i need to reinstall itunes?

    have to restart Itunes and computer several times before apple tv will connect...do i need to reinstall itunes?

    It is quite possible to have a different iCLoud AppleID from the iTunes one - have you set up maybe Phot Stream using an non-iTunes AppleID?

  • HT1379 why do i need to resetting  PRAM and NVRAM

    why do i need to resetting  PRAM and NVRAM

    why do i need to resetting  PRAM and NVRAM
    If you computer is working fine you do not need to reset this. It is not a maintenance procedure.
    Mac OS X: What's stored in PRAM

  • HT201328 If the new SIM is working, and I backed up the Iphone-4, why do I need to to RESET and Restore, as mentioned in the "About Unlocking"  instruction?

    If the new SIM is working, and I backed up the Iphone-4, why do I need to to RESET and Restore, as mentioned in the "About Unlocking"  instruction?

    I think you haven't told us the whole story. If the phone was working on multiple carriers before it was officially unlocked it was hacked to do so. If it wasn't, and you haven't seen the message "Congratulations. Your iPhone is unlocked" then you must still Restore iOS on it to get this message.

  • I got the "You need to restart" message, and now my macbook won't start up past the blue screen.

    I got the "You need to restart" message, and after I restarted it my macbook is stuck on the blue loading screen.

    Please try to boot in safe mode. If successful, launch the Console application and look under "System Diagnostic Reports" for the most recent panic log. Select it and post the contents here.
    Mac OS X: Starting up in Safe Mode
    If you can't boot in safe mode, follow the other instructions here:
    Mac OS X 10.6 Help: If you see a blue screen at startup

Maybe you are looking for

  • FAT32 Partitions on GUID Partition Table External Drive Not Seen in Vista

    I have an interesting predicament. I have repartitioned my external hard drive to have 5 partitions: 2 HFS+ and 3 FAT32. The external drive has a GUID Partition Table. The drive was formatted and partitioned using Disk Utility. When I boot into Windo

  • What files can be excluded from user-managed backup in noarchivelog mode?

    what files can be excluded from user-managed backup in noarchivelog mode? control files, sqlnet.ora file, tnsnames.ora, datafiles associated with read-only tablespaces, datafiles associated with read/write tablespaces, of these, what can be excluded

  • Finder cannot see synology drive

    With the upgrade to Lion, I cannot see all the files, some but not all, on my synology diskstation. Time machine works but one folder appears messed up in finder. All files look fine on the diskstation.

  • N95 Music Library Problem

    Hi, I have a problem in my N95. When I open my music library, there is an artist entry that is empty. The song, which should normally be there, is under an "Untitled" folder. Now, when I try to delete the empty artist entry, it comes up with a messag

  • HT1937 why i cannot use skype using iphone

    I want to use Lap top to send sms, whatsapps while connecting the Iphone.. I wans to use planning tool and task and to do list using both lap top and Iphone, how can syncronise betwwn the two devises Mohamed