Tomcat Server window closes automatically when I start it

Hi,
I am using Apache Tomcat 4.1 to work a small Web application. Each time when I start the Tomcat server the window comes up and closes automatically. Is something wrong with my configuration ?
Do I have to make any changes to server.xml ?
Pls help..
Thanks,
bobby.

I think Tomcat 4.1 works fine with JDK1.5.0. Untill last week I was able to work on my application.
This problem started after I did a reboot. Ever since then I am having this problem
I tried to set the JAVA_HOME from the CATALINA_HOME dir and this is what I got,
C:\PROGRA~1\APACHE~1\Tomcat 4.1\bin>set JAVA_HOME = C:\PROGRA~1\JAVA\jdk1.5.0_0
C:\PROGRA~1\APACHE~1\Tomcat 4.1\bin>catalina run
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Using CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME: C:\Program Files\JAVA\jdk1.5.0_00
'-Dsun.io.useCanonCaches' is not recognized as an internal or external command, operable program or batch file.
And when I did a sanity check this is what I got,
C:\PROGRA~1\APACHE~1\Tomcat 4.1\bin>dir C:\PROGRA~1\JAVA\jdk1.5.0_0
Volume in drive C is PCSRP21
Volume Serial Number is D84F-A786
Directory of C:\PROGRA~1\JAVA
File Not Found
C:\PROGRA~1\APACHE~1\Tomcat 4.1\bin>dir C:|PROGRA~1\JAVA\jdk1.5.0_00
The system cannot find the path specified.
C:\PROGRA~1\APACHE~1\Tomcat 4.1\bin>dir C:\PROGRA~1\JAVA\jdk1.5.0_00
Volume in drive C is PCSRP21
Volume Serial Number is D84F-A786
Directory of C:\PROGRA~1\JAVA
File Not Found
Does this imply Tomcat is not able to recognize my Java directory ?
Thanks,
bobby.

Similar Messages

  • My mozilla opening automatic when i start my computer. And when i close mozilla its open back! How can i fix this???

    My mozilla opening automatic when i start my computer. And when i close mozilla its open back! How can i fix this???

    Welcome to Apple Communities
    Press Shift key in boot. Open > http://thexlab.com/faqs/kernelpanics.html

  • Print Templates print preview window closes unexpectly when printing document

    This is a cross posting from Internet Explorer Web Development after a suggestion that this forum would be a better location. See
    https://social.msdn.microsoft.com/Forums/ie/en-US/351e1245-b606-4467-9f3c-1c72f9cdf9ea/print-templates-print-preview-window-closes-unexpectly-when-printing-document?forum=iewebdevelopment.
    I have raised an issue through Connect for this:
    https://connect.microsoft.com/IE/feedback/details/1134168/ie9-to-ie11-print-templates-print-preview-window-closes-unexpectly-when-printing-document, but I would like some more visibility of the issue as my customers thought my application was closing when
    they printed a document.  I also don't know if an issue in Connect gets any priority support via MSDN, but this forum does.
    This looks to me like a problem in the IE Print Templates startDoc API call, but if there is a more appropriate forum to raise this issue in please let me know.
    In the application where I use print templates, the window closing is not in it self a problem because the Javascript that is calling startDoc also closes the Print Preview window when the print is finished.
    The fact that the application looses focus and can be hidden by the windows of other applications when the Print Preview window is closed by startDoc is the issue noticed by our customers, so I need a fix preferably, or a work around at a pinch.
    Details of the issue reproduced below.
    When using IE Print Templates, the startDoc function is causing the print preview window to close.  This behaviour started with IE9, and is still present with IE11.
    When an application is using print templates (see
    https://msdn.microsoft.com/en-us/library/aa753279(v=vs.85).aspx) for print functionality, this has the effect of causing the application to become hidden by any other application window once printing from the print preview window has started.  It is
    actually this behaviour that started me looking at this issue as the users thought the hosting application had closed.
    Print Templates are not accessible by using IE as a web browser, but only when using the WebBrowser Control to embed IE in an application.  The reference for this feature is available from this url:https://msdn.microsoft.com/en-us/library/aa753279(v=vs.85).aspx
    and a sample Microsoft application that demonstrates the use of Print Templates can be used to demonstrate the problem (required for the reproduction steps).  The application is available via this article and searching for "download spiffy".
    Steps to reproduce the problem:
    To see the full effect of the issue, first ensure there is a window from another application (like Windows Explorer) that will cover the sample applications window if brought to the foreground (making the Windows Explorer window full screen works).
    Start the sample application (and ensure that the full screen Window Explorer is the next application to activate).
    Then in the drop down box in the top right corner of the UI select Template8.htm.
    Click the Print Preview button that is just below the drop down box (this will open a new Print Preview window).
    In the new window click the Print… button (this will open a Print dialog).
    Click the Print button at the bottom of the Print dialog.
    The Print dialog closes (expected) and then the Print Preview window also closes (not expected), however the document is still printed successfully.
    When the Print Preview windows is closed unexpectedly, the Windows Explorer window is brought to the foreground (obscuring the sample applications window).
    If you reselect the sample application and click the Print Preview button again, the Print Preview dialog is not displayed unless you restart the application (this looks to be a symptom of the same issue, not a separate problem).
    To see that the Print Preview window appears to be closed by the startDoc call, use the resource editor in Visual Studio (the exe can be opened directly by File | Open | File…) to edit the HTML resource "TEMPLATE8.HTM" (I found I needed to delete
    it and add it back in for the change to stick), find the startDoc call and add two alerts, one on the line before and one on the line after.  When IE is accessing the template, it is being done using the name of the executable (so do not rename the modified
    version of printtemplates.exe, make the changes to a copy in a different directory if you don't want to change the original).  Start the modified version of the application and follow the same steps as in the reproduction.  This time, after clicking
    the Print button in the Print dialog, the dialog will close, the first alert will pop up, then the Print Preview window will close, then
    the second alert will pop up.
    Thank you,
    Warren.

    Hi Shu,
    I have noticed that the print templates API is listed as part of the Legacy APIs. 
    Is this just because it hasn't changed or is not new?  Or does this mean that it is no longer maintained and may be removed (or at least deprecated) at some point in the future? 
    It would good to know if we should start planning for the implementation of a different method of printing.
    I understand that the sample application is no longer maintained, but I also think that the Print Template API that it uses has not changed, and so should still work (and it does mostly).
    If the Print Preview window was being closed as a result of using the Print dialog (and if it had behaved the same way with IE8) I would be willing to go with the by design argument.  
    I have found that the Print Preview window is not closed until startDoc is called, and it closes before control is returned from the startDoc function. 
    Just as part of investigating and try to find a workaround, if I call window.close(), any alert calls made no longer display the alert window after the close call. 
    Alert still functions after startDoc has closed the window however. 
    The is not the sort of consistent behaviour I would expect from something that is by design. 
    Also while investigating, I found that calling startDoc after calling window.close() results in an exception with the error code -2147467259 (0x80004005), this is probably quite normal and expected, but does indicate that the Web Browser Control should
    not be closed till after printing.
    I had found that old thread, and I had concluded it was the same issue, but it was also aimed at different aspect of the problem (which I see in the sample application, but not my application). 
    The visible issue I have is that my users think the application has been closed because after clicking print (on the Print dialog) the application gets hidden by other windows from other applications. 
    This aspect affects the sample in the same manner and so it was a convenient way to demonstrate the problem.
    If IE connect do not look at this issue any time soon, do I have any other avenues to resolve this issue?
    Thank you,
    Warren.

  • The windows close automaticly every few minutes

    since i updated the software of my computer the last time, it don't work properly. the windows close automaticly every minute during some seconds, while i'm working... the aplications not, but i lost the cursor, and the windows (finder) with the documents closed.
    please if someone can help me...
    thank you a lot

    Hi and welcome to Apple Discussions!
    You might like to have a look at this thread:
    http://discussions.apple.com/thread.jspa?threadID=1873700&tstart=0
    for advice. Seems yours is a common problem when Stuffit AVR is added as a preference pane in System Preferences.
    Good luck,
    Adrian

  • Since recent updates, I have noticed that my apps close automatically when I am distracted. In some cases it is time consuming to sign back in and get back to the task I was doing. Is it possible to change a setting so the apps will stay open?

    Since recent updates of iOS, I have noticed when using my iPad that my apps close automatically when I have to leave the room or am otherwise distracted for a few minutes. It is sometimes time consuming to sign back in and get back to the task where i left off. Is there a setting I can change so it will keep the apps open until I am ready to close them? Thanks for your help.

    Did you have this problem before Restoring you iPad?
    If you did then did you restore with a backup. You may have reinstalled something that is conflicting in this back up
    If not then sounds like either something went array with the clean install or a hardware issue.
    I know it's long winded but have you tired a clean install then downloading the apps again?
    PJRS

  • Why does the folder "C:\Program Files\Adobe\Elements" open automatically when I start my PC?

    Why does the folder "C:\Program Files\Adobe\Elements" open automatically when I start my PC? How do I adjust settings to stop this from happening?

    Hi,
    This folder is probably treated as a program to run at startup.
    So you will have to look at the places where such programs are referenced.
    For instance, you may have a shortcut to that folder in your Start Menu > Startup.
    Or it may be in the Registry.
    Click on Start >  Execute, the type msconfig and click OK.
    This will show you in the Startup tab all the programs launched at startup.
    Astugev

  • IPhoto starts automatically when i start my computer!

    iPhoto starts automatically when i start my computer, how do i turn this off?! I have a lot of photos on the program so it takes a while to load and bogs down my startup.

    Right-click on the iPhoto icon in the dock, and deselect "Open at Login".
    Also a handy trick if there ARE programs you want started when you login

  • I have word, iTunes, and other application that starts automatically when I start my laptop and how can i change start up options?

    I have word, iTunes, and other application that starts automatically when I start my laptop and how can i change start up options?

    Go to System Preferences / Accounts - Login Items.
    In order to make changes, click the lock icon bottom left corner of the pane. You may be prompted for your admin password.
    Select the apps you don't want to launch on startup then click - (minus).

  • How can I prevent all workbooks from opening automatically when Excel starts?

    I am using Office 2011 (14.2.1) service pack 2 on Mac os X 10.7.3. Whenever I open Excel, all my workbooks open.  How can I prevent all workbooks from opening automatically when Excel starts?
    Please Help, Thanks

    You can look at: Stop Autoplay: https://addons.mozilla.org/firefox/addon/1765

  • Microsoft word opens automatically when I start my computer. How do I turn it off so it will not start up when I turn on my computer?

    Microsoft word opens automatically when I start my computer. How do I turn it off so it will not start up when I turn on my computer?
    janer

    Go to System Preferences>Accounts and then select your account, then startup items, remove Word from the list and reboot, you should be fine then.

  • Every time I change my home page then close Firefox, when I start it up again, my new home page is replaced by a search window...how do I change my home page?

    In prior versions of Firefox I had three tabs pop up when I started the program. I load the addresses for those same three tabs into my home page setting under options...close Firefox...then start it up again and the tabs don't get saved. Not sure where I'm going wrong...this process worked in earlier versions.

    After trying many of the suggestions found online I found that the only thing that worked was to completely uninstall firefox and re-install it again!

  • I have windows 7 and when i start up i tunes i get a message..."The registry settings used by the i Tunes drivers for importing and burning CD's and DVD's are missing. This can happen as a result of installing other CD burning software. Please reinstall i

    when i start up i tunes i get the message,"The registry settings used by the i Tunes drivers for importing and burning CD's and DVD's are missing. This can happen as a result of installing other CD burning software. Please reinstall i Tunes." I tried reinstalling and still get the same message. when I ran the i Tunes diagnostics is says that the high and low filters are missing.
    when i was having trouble with my optical drive(before Dell sent me a new one) the dell tech support representative had me delete some reg. files to try to fix the problem. I was told this would not affect the new drive when i install it or any of my existing programs. here is what he had me do....
    Agent (CLKsmb_RyanJose_224427): "Click on Start
    Click on Run
    Type in REGEDIT
    Click on OK
    Click on the plus sign next to HKEY_LOCAL_MACHINE
    Click on the plus sign next to SYSTEM
    Click on the plus sign next to CurrentControlSet
    Click on the plus sign next to Control"
    Click on the plus sign next to Class
    Click on the plus sign next to {4D36E965-E325-11CE-BFC1-08002BE10318}
    On the right pane, click to highlight Upperfilters
    Right click on Upperfilters
    Click on Delete
    Click on OK
    On the right pane, click t
    o highlight Lowerfilters
    Right click on Lowerfilters
    Click on Delete
    Click on OK
    Right click on Silent Install
    Click on Delete
    Click on OK
    Close the Registry Editor
    Reboot the computer
    how can i get this message box to stop poping up every time i open i tunes? otherwise i tunes works fine. it still rips cd's. I just keep getting this message even after reinstalling i tines.
    thanks,
    chris

    Refer to this article to fix:
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/TS3299

  • Why is it no longer possible to make the download window close automatically after downloading is finished ?

    Only two days ago the download window closed after downloading.
    What happened ?
    And why is there a new and less efficient download window ?

    Firefox now manages the downloads in the Downloads folder in the Library (History > Show All History > Downloads) and download are treated as history items.
    *https://support.mozilla.org/kb/Downloads+window
    So you open the Library if you inspect all downloads and this Library window doesn't close automatically.
    When a download is in progress then you see a download progress (timer) bar on the Navigation Toolbar instead of the Download Manager button and that button is highlighted once the download has finished to make you aware the their are new downloads.
    You can view the new Download Manager in a tab by opening the about:downloads page and consider to open this page in a separate window.
    You can set the Boolean pref browser.download.useToolkitUI to <i>true</i> on the <b>about:config</b> page to restore the classic Download Manager window and make all download settings appear in "Tools > Options > General".
    *http://kb.mozillazine.org/about:config

  • Reader X closes automatically when pressing any key

    Hi everyone, I updated the Reader yesterday and now the following occurs:
    I may adjust the toolbars, make snapshots, print, etc. - but whenever I am hitting the keyboard, either when trying to enter a comment or when choosing side numbers in the printer menu, the program closes automatically without further comment, error message, etc. It may be opened again without any problems, but I cannot find a solution to the keyboard problem. I am using Windows XP, SP 3.
    Thanks in advance for your help!

    I was having this issue today on a co-worker's machine.
    However I found a solution thanks to brian.hart.
    Go into your registry editor (Run >> regedit)
    Go to Hive [HKEY_LOCAL_MACHINE\Software\Policies\Adobe\Acrobat reader\10.0\FeatureLockDown]
    Right click >> go to New >> DWORD
    Give it the name "bProtectedMode"
    Hit okay. Close Regedit. Win.
    You may have to restart the computer. I didn't have to though.

  • I have Windows 7. When I start Firefox 4, I get a warning, "Do you want to allow this program to make changes to this computer"? Is there a way to stop this warning?

    Question
    I have Windows 7 Home Premium. When I start Firefox 4, I get a User Account Control warning, "Do you want to allow the following program to make changes to this computer"? Is there a way to stop this warning?

    Check that you do not run Firefox as Administrator.
    Right-click the Firefox desktop shortcut and choose "Properties".
    In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.
    Also check the Properties of the firefox.exe program in the Firefox program directory.

Maybe you are looking for

  • Problem with built in Sound

    I have this simple PE NEO-2 motherboard .. and i use the built in sound of the board... the problem i m having is that the sound suddenly disappears during the game.. or other music application... sometime it disappear after 2 min or some time after

  • TS3406 Message Send Failure: "Not Delivered"

    Recently, I upgraded to iPhone. Unlike before, this error message (in the subject heading) appears when sending messages abroad to two contacts simultaneously. I've gone through trouble shooting in Apple Support and have done everything but contact m

  • Playback of any clip crashes CS 5.5

    I have been using adobe premire pro cs 5.5 for months and it has worked flawlessly. Now, when i try to do some edditing today, every time i try to play any clip on the timeline the program crashes, no error message, just the windows message: "adobe p

  • Errors usnig CLIENT_OLE2 when upgrading to jinitiator 1.3.1.21

    Hi all, I have an application in forms 10G. When using jinitiator 1.3.1.13, i can use client_ole2 to perform several actions in excel. Due to a bug in this version (applet loses focus when performing printscreen), i want to upgrade to jinitiator 1.3.

  • How can I add more widgets to the noticication center?

    Hi, So I was wondering if there were widgets that I could install into the noticication center on the iPod touch. Or do I have to do that by jailbreaking, which I don't want to do. I have the newest iPod Touch. Thank you.