I believe there should be a companion program "tomcat6w.exe" that allows
you to see the registry settings used by the service.

--David

Varuna Seneviratna wrote:
> Andre:
>      I edited the service.bat, only part that had to be added was "echo
> Using %EXECUTABLE%:"
>
> 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
>
> Using C:\apache-tomcat-6.0.20\bin\tomcat6.exe:
> "C:\apache-tomcat-6.0.20\bin\tom
> cat6.exe" //IS//Tomcat6 --StartClass org.apache.catalina.startup.Bootstrap
> --Sto
> pClass org.apache.catalina.startup.Bootstrap --StartParams start
> --StopParams st
> op
> The service 'Tomcat6' has been installed.
>
> I copied and pasted the path to the "JAVA_HOME" may be that's what made the
> difference this time.But if JAVA_HOME was pointed to the wrong path how
> could it be started in a non service mode.Now "apache tomcat6" is in the
> services list But can not be started.When tried to start
> the message is "Error 3: The system can not find the path specified".The
> "Using JVM" earlier was  C:\Program
> Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll and now it has become
> jre\bin\server\jvm.dll.In both these locations there is a jvm.dll
>                   In the Event Viewer under system the message was
>
> Event Type:    Error
> Event Source:    Service Control Manager
> Event Category:    None
> Event ID:    7000
> Date:        23/07/2009
> Time:        16:52:44
> User:        N/A
> Computer:    VARUNA
> Description:
> The Apache Tomcat 6 service failed to start due to the following error:
> The system cannot find the path specified.
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
>
> When given the long command
>
> C:\apache-tomcat-6.0.20\bin>"tomcat6.exe" //IS//%SERVICE_NAME% --StartClass
> org.
> apache.catalina.startup.Bootstrap --StopClass
> org.apache.catalina.startup.Bootst
> rap --StartParams start --StopParams stop
>
> The above command displayed a message box with a big Red X round shape
> mark(What do you call it?), titled "Application System"  and it's message
> was nonAlpha 37
>
>
> Thanks for your help
>
> Varuna
>
> 2009/7/23 André Warnier <a...@ice-sa.com>
>
>   
>> 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