Running Tomcat as a service

I have two questions about running Tomcat as a service.
First, when I try to install and start tomcat 3.3.2 with the java sdk 1.4.0 using jk_nt_service, the service won't start. When I execute the following command, jk_nt_service -S Tomcat-3.3-2-Dev, I get a response of Tomcat-3.3.2-Dev failed to start. When I execute the following command, net start Tomcat-3.3.2-Dev, I get a system error 1067 response. Does anyone know how to get around this error?
Second, if we try to run Tomcat 4.1.27 as a service, we get very slow response compared to running startup.bat in the bin directory. Does anyone know why this is and what could be done to improve the performance?
Jim Field

I don't know the answer to the first question.
Regarding the second one: when you say "slow response", do you mean for every request you send to the service compared to sending the same request to Tomcat started with startup.bat, or are you referring to just starting the service?
Have you measured the response time for a number of requests to both the service and script-started Tomcat, or is this a subjective judgement? MOD

Similar Messages

  • A problem with Tomcat (Can't run tomcat as a service.).

    Hi
    May be you can help me (please).
    I do the following steps, as described in many documents I've found.
    1. Downloaded the jk_nt_service.exe and put it into jdk1.3.1jre\bin\classic
    2. configured wrapper.properties:
    wrapper.tomcat_home=C:\tomcat324 wrapper.java_home=C:\work\jdk1.3.1
    3. Run:
    C:\>jk_nt_service.exe -i tomcat C:\tomcat324conf\wrapper.properties
    C:\>jk_nt_service.exe -s tomcat
    C:\>net start tomcat
    In this step I get the following error:
    A system error has occurred.
    System error 1067 has occurred.
    The process terminated unexpectedly.
    I've got the same error on other computers and using Alexandria's program.. As I understood it's not only my problem, others have it too.
    Thanks in advance.

    Hi,
    First U should check if IIS and Tomcat are running together then Tomcat won't start coz both use the 80 port. u have shut down IIS and use Tomcat and enable Tomcat to start with the services, If shutting down IIS is not a problem.
    If u need both IIS and Tomcat to run together then u have change the server http port u can do it in the following manner
    drive:\Apache Tomcat 4.0\conf directory.
    Edit the sever.xml file
    In the server.xml file u will have to change the port in the following piece
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="60000"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    Change the port 8080 to 808x where x is any number between 0 to 9
    Restart the machine and this should work
    Good Luck
    Bye,
    MAX

  • Shutdown hook not getting called when running tomcat as a service

    I have a shutdown hook as part of a lifecycle <Listener> tomcat6 class, which gets created and registered in the class's constructor (class is referenced in the server.xml). The hook gets called during shutdown when tomcat has been started from a shell, but not when tomcat has been installed as a service. The -Xrs flag doesn't make a difference either way. I am running java 6u12 server VM (haven't tried client) and prior versions. Does anyone have any ideas? This has been tested by starting/stopping from the Control Panel, and also with 'tomcat6 //TS/ServiceName' (i.e. in test mode)
    One possibility is that tomcat internally calls Runtime.halt(), but the shutdown process appears to be normal and the same with either scenario. The other possibility is that the JVM has an issue. The tomcat user groups don't have anything to offer.
    Thoughts?
    tia

    sanokistoka wrote:
    jschell wrote:
    sanokistoka wrote:
    Let me ask the last question in a better way: Does anyone have any GOOD ideas?Get back to us when you have found your good solution.Stop wasting bandwidth. I didn't post here to be a smart ars like you and pretend that I have a solution to a rare problem... FYI - the workaround is to use the tomcat lifecycle events (AFTER_STOP_EVENT) to achieve the same - why do you think I mentioned it's a tomcat listener in the first place? Feel free to educate me.
    So you are claiming that Runtime.getRuntime().addShutdownHook() that you posted in the above is not part of the java API?
    Or perhaps that everything that is added via addShutdownHook() runs?
    Surely you are not claiming that it isn't calling addShutdownHook() in the first place?
    Get a life and a job.I have both but thanks for the concern.
    sanokistoka wrote:
    swamyv wrote:
    There are free tools available to debug windows. I think gdb is one of them. If you search you can find some good tools.
    If you find any good tools that you like share it with us.
    Yes I will try gdb (have cygwin) and see where this takes us - not sure if the JVM or tomcat6.exe have the symbols to get a meaningful stack trace. As luck would have it, [https://issues.apache.org/bugzilla/show_bug.cgi?id=10565|https://issues.apache.org/bugzilla/show_bug.cgi?id=10565] claims that "shutdown hooks are not supported in a container environment" although there is no such restriction in the servlet spec, which would make this a tomcat issue (it does sound like that tomcat6.exe wrapper is somehow involved). Unfortunately, tomcat does NOT issue the AFTER_STOP_EVENT if killed before it has completed its start-up (it appears its own shutdown hook, which sends the event, is not registered until it has fully come up); thus the need for a shutdown hook (at least, up until it's fully up). A shutdown hook is still required in my case for clean-up after tomcat is completely out of the picture. It sounds like the proper architecture here is to really embed tomcat in an application, and create a shutdown hook at the outer level.
    Educate me some more. The above description certainly seems like you are suggesting that both of the following are true.
    1. It is not a bug in the VM.
    2. The problem, for your implementation, is in how the wrapper terminates the windows service.
    Perhaps what is actually happening it that addShutdownHook() is never being called at all? Thus of course any processing of the thread associated with that would never, ever run.
    And that happens because you are banging on the stop service so fast that it doesn't actually have time to spin up?

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • Hi experts - cannot run HTTPS on tomcat as a service application

    I have configured HTTPS on my tomcat 4.1 web server.
    Now, when I run Tomcat as a console application it works fine and there is no problem. But When I run Tomcat as a service application, the server starts as a service properly but when I try to access the pages it says that "The Page Cannot Be Displayed"
    The configuration for HTTPS in conf/server.xml file is like this:
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
                   port="443" minProcessors="5" maxProcessors="75"
                   enableLookups="true"
                acceptCount="100" debug="0" scheme="https" secure="true"
                   useURIValidationHack="false" disableUploadTimeout="true" >
          <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
                   clientAuth="false" protocol="TLS" keystorefile="C:\Documents and Settings\deepak\"/>
        </Connector>M using tomcat 4.1
    Please experts help me with this.

    And what does your catalina.out logfile say?

  • Tomcat as a service

    Is it possible to run Tomcat as a service under Win2K. If so, how do I do it? We need it to run all the time, even when I log off the machine.

    Hello,
    I had the same problem and I found that the tomcat.exe can be used to install a service.
    tomcat -install Tomcat %java_home%\jre\bin\server\jvm.dll "-Djava.endorsed.dirs=%catalina_home%\bin;%catalina_home%\common\endorsed" "-Djava.class.path=%java_home%\lib\tools.jar;%catalina_home%\bin\bootstrap.jar" "-Dcatalina.base=%catalina_home%" "-Dcatalina.home=%catalina_home%" "-Djava.io.tmpdir=%catalina_home%\temp" -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop
    Succes

  • Tomcat 4 as service plus invoke servlet on startup

    Hi all. My two questions are as follows, any feedback is much appreciated.
    1st)
    I wish to run tomcat as a service where it will start automatically on startup plus you can restart it from the win 2000 service console. I have followed the advice on the following link http://www.prabhums.org/weblogs/?postid=237 which places an entry into the service console but doesn't start or stop tomcat as required.
    2nd)
    On tomcat startup I wish to invoke a servlet when the service starts. Where would I config this and any parameters etc? web.xml?
    Thanks in advance
    Tas

    It's very simple to have a servlet startup. Just use the load-on-startup element in your wbe.xml when you define the servlet.
    <servlet>
       <servlet-name>MyServlet</servlet-name>
       <servlet-class>com.kcole.mypackage.MyServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
    </servlet>Use a different number. I believe the numbers indicate order of startup.
    We use them to mainly to start processes/threads that run at an interval, like a TimerTask for example. We use them for things like setting up our custom connection pool and setting up jobs such as checking directories for files to import, etc.
    As to what the request and response objects contain, I don't think there are any. The servlet spec doesn't say regarding this when using the load-on-startup. It runs the init() method.
    Karl

  • Running Tomcat As a Stand Alone with IIS

    Hi,
    I am currently running a servlet from Tomcat 4.0.1 as a standalone concurrently with IIS 5.0. I found that I was able to access the servlet page (http://adt.barra.com:8080/examples/Test1) from computers within my company but when I tried to display the page at my home computer, I get a page cannot be displayed error�The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. Do I need to run Tomcat as a service or do I actually have to incorporate the two using isapi_redirect.dll? Or maybe it�s just that computer. The machines at work runs WinNT and Win2K but my home computer runs Win98. Thanks.

    As a previous poster stated the Firewall at your work is probebly stopping the traffic from coming in. You might be able to get away with this using the IIS isapi that tomcat provides, however you may still have firewall issues. If your network/security guys are not to anal about it, they might be able to open up pot 8080 for incoming traffic to that server only. Otherwise, you may want to try the Tomact isapi.
    Hope that helps to clarify it a bit... ;)
    rb

  • Dll not found when Tomcat run as an NT service

    I am running Tomcat 4.1.27 j2sdk 1.4.2 on Windows 2000 SP4.
    I am trying to connect to a datacom database using jdbc.
    When I run Tomcat in a separate DOS window - the database connection works fine.
    When I run Tomcat as an NT service I get the following error:
    org.apache.jasper.JasperException: no cadcdb32 in java.library.path
    The service is logged in as an administrator.
    cadcdb32.dll is located in C:\Program Files\CA\AdvantageDatacomServer5.0\
    This directory is in the PATH environmental variable.
    The batch file that starts the DOS window (which works) is:
    C:\j2sdk1.4.2\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start
    How can I have Tomcat find the dll when run as a service ?
    Thank you

    Create new user or use an existing user and Log On to this user in the Service {Properties->Log On->This account}.

  • Eroor in eclipse when i have run TOMCAT in debuge mode web service debuging

    hello all,
    i have a serious problem with debug my web service. I set local variable in eclipse (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000). And now if i run TOMCAT in normal mode all worked fine and i run remote java application fine, but if i run TOMCAT in debug mode, eclipse in console return error:
    "Error occurred during initialization of VM
    agent library failed to init: jdwp
    ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
    If anyone have this problem please tell me how to resolved it.
    Thank for help.

    Eclipse is kind of a competing product so this is not the best place to ask the question. With that most will be nice enough to lend a hand. I suggest ensuring that all other instances of tomcat are stopped then try again. In the Debug perspective ensure there are no servers running with the same name as the one you are attempting to use. If all else fails ensure there are no tomcat process running if they are kill them. Finally, if you cant get it to work reboot. If still no good the Eclipse might be a better place to go.

  • Running Tomcat from a java program

    I'm writing a program that shall run Tomcat from the program itself. The eacy way would be to just call org.apache.catalina.startup.Bootstrap.main(String[]) in a new thread, but that gives only a little information to the program about the state of the server. Actually I would only know when the server is told to start (just before the main method is called), and when the server had stopped (just after the main method).
    I have browsed the Catalina API documentation and source code for hours, but the only solution I have gotten, writes the standard startup text:
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.4
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.4If I could get that to work, I would could add a LifecycleListener, and get all the info. I need.
    The essence of the code I use is this:
    CatalinaService cs = new org.apache.catalina.startup.CatalinaService();
    Server s = new StandardServer();
    StandardService stdService = new org.apache.catalina.core.StandardService();
    s.addService(stdService);
    cs.setServer(s);
    cs.process(new String[]{"start"});but the following also produce a simmilar result:
    BootstrapService b = new org.apache.catalina.startup.BootstrapService();
    b.load(new TomcatLoader(),null);
    b.start();A dirty solution would be to copy the code form Bootstrap.main(String[]) and add a few lines, but I really dosn't like that. It would be a nightmare to maintain, primiarry because I would loose the functionallity of Catalinas class loader (where a lof of classes is loaded).
    Does anybody know how I can get Tomcat to run, so I still get my info. and don't use any dirty solutions?

    Check out the main method in the source code of class org.apache.catalina.startup.Embedded
    It should help you.
    Also check out this article
    http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html

  • Tomcat as a Service with -Xms512M -Xmx1024M

    Hello all,
    In order to run successfully my application with Tomcat 5.0.20 on Windows XP I had to change the memory settings.
    So in the System environment variable I've added:
    JAVA_OPTS = -Xms512M -Xmx1024M
    CATALINE_OPTS = -Xms512M -Xmx1024M
    and if I launch Tomcat with the startup.bat, my application runs fine.
    Now I am trying to run Tomcat as a Windows Service (using service.bat install) but this time Tomcat runs out of memory and generates exceptions despite the fact I've changed the following line in service.bat from:
    "%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto etc...
    to
    "%EXECUTABLE%" //IS//%SERVICE_NAME% JvmMs 512M JvmMx 1024M --Jvm auto etc...
    What am I doing wrong?
    Many thanks for your suggestions.
    regards
    denis

    Hello,
    I had the same problem and I found that the tomcat.exe can be used to install a service.
    tomcat -install Tomcat %java_home%\jre\bin\server\jvm.dll "-Djava.endorsed.dirs=%catalina_home%\bin;%catalina_home%\common\endorsed" "-Djava.class.path=%java_home%\lib\tools.jar;%catalina_home%\bin\bootstrap.jar" "-Dcatalina.base=%catalina_home%" "-Dcatalina.home=%catalina_home%" "-Djava.io.tmpdir=%catalina_home%\temp" -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop
    Succes

  • Java.lang.UnsatisfiedLinkError: running tomcat on java headless?

    Dear all,
    I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown:
    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib/amd64/libawt.so: libmlib_image.so: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
            at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
            at java.awt.Color.<clinit>(Color.java:250)
            at tablereport.processRequest(tablereport.java:55)
            at tablereport.doGet(tablereport.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
            at java.lang.Thread.run(Thread.java:595)After some research and verifying that libawt.so physically exists I read somewhere that whenever java is installed no a linux box without x (in my case it's a remote vps) java omits certain graphics related libraries like AWT (naturally).
    I also read that you can run java headless to avoid the dependencies to X. Now is there a way to run tomcat (or add variables to tomcat's startup.sh) to avoid having these dependencies?
    Thanks for your help,
    William

    [Googling the exception|http://www.google.com/search?q=java.lang.UnsatisfiedLinkError+at+java.awt.Color.%3Cclinit%3E%28Color.java%3A250%29+tomcat] learns me it's a bug in the mentioned Tomcat + JDK combo.
    Upgrade to the latest if possible.

  • Tomcat as windows service

    Hi everybody,
    Im trying to make Tomcat (5.0.25) run as a windows service. I tried using service.bat, which installs a windows service of type manual. As this is for client machines, setting the service type to automatic is not an option. So what I am looking for is either a way to use service.bat to create an automatic windows service, or a way to change a services type from manual to autmatic.

    Ignore my last post about the options. As of August 16, 2004, the page is out of date and the options are incorrect for the verison shipped with Tomcat 5.0.27.
    However, to find out how to use tomcat5.exe, look at the "service.bat" file in the bin directory. This wraps a call to it with the most common options you will need. I had some troubling customizing the script (using Tomcat 5.0.27) for my own needs, but eventually figured it out (with much help from posts on the Tomcat newsgroups.)
    The changes I made were:
    1) To allow allow compilation of JSPs, changed PR_CLASSPATH to include J2SDK tools.jar:
    Before
    set PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar
    After
    set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar2a) To use a specific JVM location, changed jvm option from 'auto'
    2b) To make service automatic instead of manual, added Startup option
    2c) To use customized server.xml file and pass multiple parameters to StartClass, changed StartParams by separating additional values by semi-colons:
    Before
    "%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto
    --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap
    --StartParams start --StopParams stop
    After
    "%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm "%JAVA_HOME%\jre\bin\server\jvm.dll"
    --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap
    --StartParams "-config;%CUSTOM_SERVERXML_FILE%;-nonaming;start" --StopParams stop
    --Startup Automatic3) To specify min and max memory limits, added extra jvm startup parameters
    Before
    "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions
    "-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
    --StartMode jvm --StopMode jvm
    After
    "%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions
    "-Xms128M;-Xmx256M;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
    --StartMode jvm --StopMode jvm

  • JAVA_HOME running tomcat

    hi!
    i recently downloaded the Java Web Services Developer pack. the installation went fine, howeve when i try to run tomcat it gives me
    Bad command or file name
    The JAVA_HOME environment variable is not defined
    This environment variable is needed to run this program
    i have in my autoexec
    SET PATH=c:\"program files"\j2sdk\bin;c:\windows;c:\windows\command
    SET JAVA_HOME=c:\"program files"\j2sdk
    on a friend's recommendation i have also tried
    SET JAVA_HOME=c:\"program files"\j2sdk\jre
    could someone help please.
    thanks

    my sdk is in c:\progra~1\j2sdk
    i have tried
    SET JAVA_HOME=c:\PROGRA~1\j2sdk
    SET PATH=%JAVA_HOME%;c:\windows;c:\windows\command
    when i then double click startup.bat, this gives me
    Bad command or file name
    Out of environment space
    Out of environment space
    The JWSDP_HOME environment variable is not defined
    This environment variable is needed to run this program
    File not found
    to see if JWSDP_HOME variable is defined
    i then did the right-click properties thing and changed memory to 2048 and then run the shortcut it placed
    this gave me
    Bad command or file name
    Bad command or file name
    i then did,
    SET JAVA_HOME=c:\PROGRA~1\j2sdk
    SET JWSDP_HOME=c:\PROGRA~1\jwsdp
    SET PATH=%JWSDP_HOME%;%JAVA_HOME%;c:\windows;c:\windows\command
    this gave me,
    double clicking startup.bat
    Bad command or file name
    Out of environment space
    Out of environment space
    The JWSDP_HOME environment variable is not defined
    This environment variable is needed to run this program
    File not found
    to see if JWSDP_HOME variable is defined
    double clicking startup.pif
    Bad command or file name
    Bad command or file name
    and excecuting startup.bat from commandline,
    Bad command or file name
    Out of environment space
    Error: com.sun.jwsdp.launcher.JWSDPLaunchFilter filter class encountered a probl
    em
    and executing startup.pif from command line
    Bad command or file name
    i'm at my wits end now. could some one please help. my sdk and jwsdp are installed in the right directories.
    thanks

Maybe you are looking for

  • Does anyone know of a good genealogy program for OSX?

    Most of the offerings in the app store whilst being relatively cheap really do not come anywhere near the quality of software such as Family Historian or even Family Tree Maker.  The graphics are at best "jazzy" and quite often hard to understand.  Q

  • Error 2063 everytime...

    Es ist ein unerwarteter Fehler aufgetreten. Adobe Muse wird beendet. IME$/set enabled-Error: Error #2063: Error attempting to execute IME command. The error occurs continuously, with insert of text or draw a box. You Can not work because Muse permane

  • Embedding Fonts in AS3

    Maybe someone here can help me understand this a bit better..... These questions are based on the AS3 Cookbook recipe 9.17 (Embedding Fonts)... According to the cookbook, embedding fonts in AS3 requires using the [Embed] metatag "inside an AS file ou

  • Preferences crashes my mac?

    Hi there, I am using Bridge v 2.1.1.9 on leopard v10.5.5 - when I try and access bridge preferences, it crashes the bridge program every time. always has. any ideas? Thanks Alan

  • How can I save the java console to a file in JDK 1.5

    There was a option in the java webstart perefernce before JDK 1.4.....For some reason, i can not find it any more in 1.5..... :(