tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <Larry.Isa...@sas.com>
Subject RE: Jakarta NT service error
Date Fri, 01 Feb 2002 21:11:33 GMT
I missed earlier the fact that "wrapper.class_path"
must include the entries set on the CLASSPATH in the
catalina.bat file.  These will be included on the
command line built using wrapper.properties.  Thus,
you would need to add:

    wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
    wrapper.class_path=$(wrapper.java_home)\lib\tools.jar

You might want to change the wrapper.tomcat_home's to
wrapper.catalina_home to avoid confusion.

Cheers,
Larry

> -----Original Message-----
> From: Cox, Charlie [mailto:ccox@cincom.com]
> Sent: Friday, February 01, 2002 3:58 PM
> To: 'Tomcat Users List'
> Subject: RE: Jakarta NT service error
> 
> 
> I think you need to remove the space(after '=') in your 
> catalina_home and
> java_home statements:
> 
> wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
> wrapper.java_home=C:\jdk1.2.2
> 
> that is one difference in my wrapper props and I seem to 
> remember that this
> 'feature' annoyed me before...
> Charlie
> 
> > -----Original Message-----
> > From: Atok Koenig [mailto:atok@mad.scientist.com]
> > Sent: Friday, February 01, 2002 3:38 PM
> > To: Tomcat Users List
> > Subject: RE: Jakarta NT service error
> > 
> > 
> > Yes, I followed the directions at 
> > http://www.stardeveloper.com/articles/060801-2.shtml
> > 
> > which says...
> > 
> > "Now you'll have to create two environment variables, 
> > CATALINA_HOME and JAVA_HOME. Most probably you'll have 
> > JAVA_HOME already created if you have installed Java 
> > Development Kit on your system. If not then you should create 
> > it. The values of these variables will be something like :
> > 
> > CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
> > JAVA_HOME : C:\jdk1.3 
> > To create these environment variables in Windows 2000, go to 
> > Start -> Settings -> Control Panel -> System -> Advanced -> 
> > Environment Variables -> System variables -> New. Enter the 
> > name and value for CATALINA_HOME and also for JAVA_HOME if 
> > not already there."
> > 
> > 
> > -----Original Message-----
> > From: "Cox, Charlie" <ccox@cincom.com>
> > Date: Fri, 1 Feb 2002 15:25:47 -0500 
> > To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> > Subject: RE: Jakarta NT service error
> > 
> > 
> > > you have JAVA_HOME set as a system environment variable, 
> > not a user env.
> > > variable?
> > > 
> > > > -----Original Message-----
> > > > From: Atok Koenig [mailto:atok@mad.scientist.com]
> > > > Sent: Friday, February 01, 2002 3:04 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: Jakarta NT service error
> > > > 
> > > > 
> > > > Dear Charlie,
> > > > 
> > > > Than you for the response. Someone had recomended looking in 
> > > > the batch files to compare setting info (batch files work but 
> > > > server stops when I log out) 
> > > > 
> > > > I am getting the message "$(wrapper.JAVA_HOME)\bin\java.exe 
> > > > -XrsError: cannot create new process - the system cannot find 
> > > > the path specified (0x3)
> > > > 
> > > > I have JAVA_HOME set up as a Windows Envoronment Variable 
> > > > pointing to c:\jdk1.2.2 and if you go to 
> > > > c:\jdk1.2.2\bin\java.exe is there
> > > > 
> > > > I included my wrapper.properties without comments below. All 
> > > > help is really appreciated, I am learning a lot
> > > > 
> > > > 
> > > > wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
> > > > wrapper.java_home= C:\jdk1.2.2
> > > > 
> > > > 
> > > > wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
> > > > wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
> > > > 
> > > > wrapper.ld_path=d:\
> > > > wrapper.ld_path=c:\
> > > > wrapper.class_path=$(wrapper.java_home)\classes\
> > > > 
> > > > wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
> > > > wrapper.shutdown_port=8007
> > > > 
> > > > wrapper.shutdown_protocol=ajp13
> > > > 
> > > > $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
> > > > $(wrapper.tomcat_home)
> > > > wrapper.cmd_line=$(wrapper.javabin) -Xrs 
> > > > -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
> > > > -Dcatalina.home="C:\jakarta-tomcat-4.0.1" -classpath 
> > > > $(wrapper.class_path)
> > > > $(wrapper.startup_class) -config $(wrapper.server_xml) start
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: "Cox, Charlie" <ccox@cincom.com>
> > > > Date: Fri, 1 Feb 2002 14:03:59 -0500 
> > > > To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> > > > Subject: RE: Jakarta NT service error
> > > > 
> > > > 
> > > > > when installed as a service, you don't need catalina.bat - 
> > > > everything is in
> > > > > your wrapper.properties
> > > > > 
> > > > > try this for your wrapper properties in TC4:
> > > > > 
> > > > > wrapper.startup_class=org.apache.catalina.startup.Bootstrap
> > > > > 
> > > > > wrapper.cmd_line=$(wrapper.javabin) -Xrs 
> > > > > -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
> > > > > -Dcatalina.home="D:\tomcat" -classpath $(wrapper.class_path) 
> > > > > $(wrapper.startup_class) -config $(wrapper.server_xml) start
> > > > > 
> > > > > Charlie
> > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Atok Koenig [mailto:atok@mad.scientist.com]
> > > > > > Sent: Friday, February 01, 2002 1:52 PM
> > > > > > To: Tomcat Users List
> > > > > > Subject: RE: Jakarta NT service error
> > > > > > 
> > > > > > 
> > > > > > I really appreciate the response
> > > > > > 
> > > > > > 
> > > > > > I did look at that but probably dont fully 
> understand what I 
> > > > > > am looking at
> > > > > > 
> > > > > > catalina.bat includes   set _RUNJAVA="%JAVA_HOME%\bin\java"
> > > > > > with Windows environmental variable set to  JAVA_HOME      

> > > > > > C:\jdk1.2.2
> > > > > > 
> > > > > > and my wrapper.properties file says...
> > > > > > set _STARTJAVA=start "%JAVA_HOME%\bin\java"
> > > > > > set _RUNJAVA="%JAVA_HOME%\bin\java"
> > > > > > and 
> > > > > > wrapper.javabin=$(wrapper.java_home)\bin\java.exe
> > > > > > 
> > > > > > so I thought that all looked fine, I commented out 
> everything 
> > > > > > related to the 3.2.x jars and the errror went away but 
> > > > > > starting the service fails, just saying "Asked (and given) 
> > > > > > winsock 1.1"
> > > > > > -----------------------------------------
> > > > > > Here are the main elements from my setup below...
> > > > > > 
> > > > > > My environmental variables...
> > > > > > 
> > > > > > CATALINA_HOME   C:\jakarta-tomcat-4.0.1
> > > > > > JAVA_HOME       C:\jdk1.2.2
> > > > > > 
> > > > > > 
> > > > > > from catalina.bat
> > > > > > 
> > > > > > if not "%OS%" == "Windows_NT" goto noTitle
> > > > > > set _STARTJAVA=start "Catalina" "%JAVA_HOME%\bin\java"
> > > > > > set _RUNJAVA="%JAVA_HOME%\bin\java"
> > > > > > goto gotTitle
> > > > > > :noTitle
> > > > > > set _STARTJAVA=start "%JAVA_HOME%\bin\java"
> > > > > > set _RUNJAVA="%JAVA_HOME%\bin\java"
> > > > > > :gotTitle
> > > > > > 
> > > > > > from wrapper.properties
> > > > > > 
> > > > > > wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
> > > > > > wrapper.java_home= C:\jdk1.2.2
> > > > > > 
> > > > > > 
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\classes
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
> > > > > > wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
> > > > > > 
> > > > > > wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
> > > > > > wrapper.class_path=$(wrapper.java_home)\classes\
> > > > > > wrapper.javabin=$(wrapper.java_home)\bin\java.exe
> > > > > > 
> > > > > > wrapper.startup_class=org.apache.tomcat.startup.Tomcat
> > > > > > 
> > > > > > wrapper.shutdown_port=8007
> > > > > > wrapper.shutdown_protocol=ajp13
> > > > > > 
> > > > > > wrapper.cmd_line=$(wrapper.javabin) -classpath 
> > > > > > $(wrapper.class_path) $(wrapper.startup_class) -config 
> > > > > > $(wrapper.server_xml) -home $(wrapper.tomcat_home)
> > > > > > 
> > > > > > 
> > > > > > -----Original Message-----
> > > > > > From: Larry Isaacs <Larry.Isaacs@sas.com>
> > > > > > Date: Fri, 1 Feb 2002 08:03:14 -0500 
> > > > > > To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> > > > > > Subject: RE: Jakarta NT service error
> > > > > > 
> > > > > > 
> > > > > > > You need to examine Tomcat 4.0.1's bin\catalina.bat 
> > to see the
> > > > > > > "Java" command used to start Catalina.  You must then
> > > > > > > update the "Java" command created by the wrapper.properies
> > > > > > > file to create the same command.  The error shown below
is
> > > > > > > including Tomcat 3.2.x's list of jars and startup 
> > class which
> > > > > > > aren't going to work with Catalina.
> > > > > > > 
> > > > > > > Cheers,
> > > > > > > Larry
> > > > > > > 
> > > > > > > > -----Original Message-----
> > > > > > > > From: Atok Koenig [mailto:atok@mad.scientist.com]
> > > > > > > > Sent: Thursday, January 31, 2002 5:57 PM
> > > > > > > > To: tomcat-user@jakarta.apache.org
> > > > > > > > Subject: Jakarta NT service error
> > > > > > > > 
> > > > > > > > 
> > > > > > > > Got NT service installed but it wont start 
> > getting the error 
> > > > > > > > below; none of these jar files were on the server

> > so I copied 
> > > > > > > > them from another box to this the paths listed in

> > the error 
> > > > > > > > and that didnt do anything
> > > > > > > > 
> > > > > > > > -Thanks
> > > > > > > > 
> > > > > > > > 
> > > > > > > > c:\Java>jk_nt_service -s tomcat
> > > > > > > > Asked (and given) winsock 1.1
> > > > > > > > 
> > > > > > > > c:\jdk1.2.2\bin\java.exe -classpath 
> > > > > > > > c:\jakarta-tomcat-4.0.1\classes; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\jaxp.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\parser.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\webserver.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\servlet.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\jasper.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\tools.jar; 
> > > > > > > > c:\jakarta-tomcat-4.0.1\lib\classes.zip 
> > > > > > > > org.apache.tomcat.startup.Tomcat -config 
> > > > > > > > c:\c:\jakarta-tomcat-4.0.1\conf\server.xml -home 
> > > > > > > > c:\jakarta-tomcat-4.0.1Error: Can not create new 
> > process - 
> > > > > > > > The filename, directory name, or volume label syntax
is 
> > > > > > > > incorrect (0x7b)
> > > > > > > > 
> > > > > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe:   
> > > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > > 
> > > 
> > 
> > -- 
> > 
> > _______________________________________________
> > Sign-up for your own FREE Personalized E-mail at Mail.com
> > http://www.mail.com/?sr=signup
> > 
> > Win a ski trip!
> > http://www.nowcode.com/register.asp?affiliate=1net2phone3a
> > 
> > 
> > 
> > --
> > To unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> > --
> > To unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> > 
> 
> -- 
> 
> _______________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
> 
> Win a ski trip!
> http://www.nowcode.com/register.asp?affiliate=1net2phone3a
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message