You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tenley ludewig <tr...@yahoo.com> on 2007/04/23 16:47:52 UTC

Cannot pass parameters to tomcat5.exe //IS//MyService and a few other questions

Hi.

I have three questions and am pretty desperate and lost as to how to resolve them.  Here goes.

1.  I am using Tomcat 5.5 and JDK 1.5 and trying to install a Windows service with the following command.

"%CATALINA_HOME%\bin\tomcat5.exe" //IS//MyService --StartClass org.apache.catalina.startup.Bootstrap \
--StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop --JvmOptions \
"-Dcatalina.base=%CATALINA_HOME%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed" \
--StartMode jvm --StopMode jvm --Jvm "%JAVA_HOME%\bin\client\jvm.dll" --Classpath "%CATALINA_HOME%\bin\bootstrap.jar;" \
 --LogPath "%CATALINA_HOME%\logs\catalina.out" --LogLevel DEBUG 

Installing the service 'MyService' ...
Using CATALINA_HOME xxx
Using CATALINA_BASE xxx
Using JAVA_HOME <my jdk>
'--StopClass' is not recognized as an internal or external command, operable program or batch file.
'--StartMode',  is not recognized as an internal or external command, operable program or batch file.
'--LogPath'  is not recognized as an internal or external command, operable program or batch file.

2.  I have tried starting Tomcat with catalina.sh start, and my server.xml file points to an HTTP connector on port 8888, and the log states that Tomcat does initialize on port 8888.  BUT, when I hit http://localhost:8888, I get Server not Found.  And when I hit http://localhost, I get the "IT WORKS" page.  My catalina.log has the following:

Apr 23, 2007 9:35:25 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\AOL\OPIS30\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Common Files\GTK\2.0\bin;C:\sun\appserver\jdk\bin;C:\bea\weblogic81\server\bin;C:\Program Files\Apache Software Foundation\Maven 1.0.2\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Infozip;C:\Program Files\JProbe 7.0\bin;C:\Program Files\Microsoft SQL Server\MSSQL\Binn;C:\Program Files\NSS\nss-3.11.4\bin;C:\WINDOWS;
Apr 23, 2007 9:35:26 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8888
Apr 23, 2007 9:35:26 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1953 ms
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Apr 23, 2007 9:35:26 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 23, 2007 9:35:26 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\AOL\OPIS30\webapps\aimauth\WEB-INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

Any ideas?

3.  Do I need to do anything special to start Tomcat with just a JRE (instead of a JDK) as of Tomcat 5.5?  I have seen conflicting messages regarding this.

Thanks so much for your help.

Sincerely,

Tenley




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Cannot pass parameters to tomcat5.exe //IS//MyService and a few other questions

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: tenley ludewig [mailto:trludewig@yahoo.com] 
> Subject: Cannot pass parameters to tomcat5.exe 
> //IS//MyService and a few other questions
> 
> 1.  I am using Tomcat 5.5 and JDK 1.5 and trying to install a 
> Windows service with the following command.

Why aren't you using the supplied .bat script or Tomcat's Windows
installer to create the service?  Rolling your own is rather risky.

> 2.  I have tried starting Tomcat with catalina.sh start

That would be a good trick on Windows.

> INFO: validateJarFile(C:\Program 
> Files\AOL\OPIS30\webapps\aimauth\WEB-INF\lib\javaee.jar) - 
> jar not loaded. See Servlet Spec 2.3, section 9.7.2. 
> Offending class: javax/servlet/Servlet.class

Do not ever, ever put javaee.jar inside your webapp.  Whatever container
you're using will supply the necessary EE classes to run in its
environment.

> 3.  Do I need to do anything special to start Tomcat with 
> just a JRE (instead of a JDK) as of Tomcat 5.5?  I have seen 
> conflicting messages regarding this.

You have to set the environment variable JRE_HOME rather than JAVA_HOME.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org