> From: andrew [mailto:[EMAIL PROTECTED]
> Subject: Re: service.bat install failure (Windows, v 6.0.18)
>
> I did a completely clean extract of the 6.0.18 tar.gz archive

I usually use the .zip for Windows, but it should be the same thing.

> I notice that it does not start the service, so I take care of
> that manually.

You can, of course, set the startup mode to automatic in the Services snap-in.

> 3. But if I visit http://localhost:8080/mytestapp the
> browser waits and waits forever.

Can you take a thread dump and see what's going on?  Do JConsole or JVisualVM 
show anything interesting (e.g., a thread looping or stuck on a lock)?

What happens if you configure the service to run under the same account you use 
when running Tomcat with the startup.bat script?  (Use the tomcat6w.exe program 
to set the account.)

> 4. Note that if I stop the Tomcat service, and then start
> Tomcat from a console using startup.bat, everything works
> fine -- html, jsp, servlets, db connection....

By "everything", do you mean mytestapp?

> Also, there isn't so much as a warning, much less an error
> message, on startup.

When running as a service, or as a regular program, or both?

> I did a completely clean extract again and tried to visit both
> http://localhost:8080/examples and http://localhost:8080/docs.
> I see the exact same endless wait.

But the Tomcat default home page works?  Is this page possibly just being 
cached by the browser?

> I could not find a file in the logs directory that gets updated
> at all when I hit the server from a browser.

You have to uncomment the AccessLogValve near the bottom of conf/server.xml.  
However, I don't think this logs anything until a response is sent.

> 2. Following the documentation, I unistalled the Tomcat
> service and tried to run it as
> tomcat6.exe //TS//Tomcat6 --other-startup-params

I think you misunderstood the doc.  You have to use //IS// first to install the 
service, after which you can run it with //TS// from the command prompt.

> Any chance you know of an easy fix for this one?

Easy answer - no.  But there are a few more questions:

1) Is this a 32- or 64-bit version of Windows?

2) What JVM do have have installed?

3) When you run tomcat6w.exe, what does the Java tab show (all fields, please)?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to