Varuna Seneviratna wrote:
...

Well I did as you have instructed me


   1. *Stopped the Anti virus
   *
   2. *Downloaded apache-tomcat-6.0.20.zip (core)*
   3. *Unzipped it to the directory apache-tomcat-6.0.20*
   4. *Opened a console window*
   5. *Went to the directory c:\apache-tomcat-6.0.20\bin*
   6. *typed the command startup.bat, it started tomcat below is what
   appeared on the console window*

C:\apache-tomcat-6.0.20\bin>startup.bat
Using CATALINA_BASE:   C:\apache-tomcat-6.0.20
Using CATALINA_HOME:   C:\apache-tomcat-6.0.20
Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.20\temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_14

     7* Then typed shutdown.bat, it did stop tomcat*

C:\apache-tomcat-6.0.20\bin>shutdown.bat
Using CATALINA_BASE:   C:\apache-tomcat-6.0.20
Using CATALINA_HOME:   C:\apache-tomcat-6.0.20
Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.20\temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_14

*8 Issued the command service.bat install, the display in the console window
was*

C:\apache-tomcat-6.0.20\bin>service.bat install
Installing the service 'Tomcat6' ...
Using CATALINA_HOME:    C:\apache-tomcat-6.0.20
Using CATALINA_BASE:    C:\apache-tomcat-6.0.20
Using JAVA_HOME:        C:\Program Files\Java\jdk1.6.0_14
Using JVM:              C:\Program
Files\Java\jdk1.6.0_14\jre\bin\server\jvm.dll

Failed installing 'Tomcat6' service


*As always the service installation stops when using the JVM

Excellent. ;-)
It may seem to you that you have not made any progress.
But you would be wrong, because there is a lot of progress :
- now /we/ know exactly what you are doing
- now /you/ have the possibility to see at exactly which point this message appears, and maybe it's cause.
- and we may be all be able to do something about it.
That is progress.

Edit the script "service.bat".
You will see the point at which it displays the messages above (ending in "Using JVM:...".
Right after that, in my version, is a line that goes like :

"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop

(all in one line)

Since we're not totally sure what this "%EXECUTABLE%" is, let's add a line to the script, just after
echo Using JVM:              %PR_JVM%
echo Using executable:       %EXECUTABLE%

and re-run the script.
(It will break at the same point, most probably, but with Windows one never really knows, does one ?).

Also, do what Chuck recommended, and make sure the Java-related paths really point to a working JVM. It is unlikely, but always possible, that the service.bat script gets confused, and points to something invalid. I see such a possibility for example, if the environment variable JAVA_HOME is set to an incorrect path, before calling the script.

Then next, try to run the above long command yourself, directly in the command window. There may be some Windows message which we are otherwise missing.
(replace "%EXECUTABLE%" by "tomcat6.exe" and %SERVICE_NAME% by "Tomcat6")
And you may also find interesting messages in your Windows Event Logs (right-click on "My Computer"...Manage...Event Logs")

You can also try to call up the command "tomcat6w.exe" directly, to see if it comes up with anything interesting.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to