RE: startup script not working

2005-03-02 Thread java
I don't know about Tomcat 5.5 specifically, but in Tomcat 5.0, startup.bat calls
catalina.bat which calls setclasspath.bat.  You'll see it runs the following,
and if it can't find any of the files (probably because your JAVA_HOME is a JRE
and not a JDK), it'll call exit and close your window:

if not exist %JAVA_HOME%\bin\java.exe goto noJavaHome
if not exist %JAVA_HOME%\bin\javaw.exe goto noJavaHome
if not exist %JAVA_HOME%\bin\jdb.exe goto noJavaHome
if not exist %JAVA_HOME%\bin\javac.exe goto noJavaHome

It's kinda hard to see the meaningful error message from this batch file when
the window closes.  I've always wondered if this is a bug?

Jay [www.vtgroup.com]
 

-Original Message-
From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 02, 2004 10:02 AM
To: tomcat-user@jakarta.apache.org
Subject: startup script not working

Hi,

I am downloading distribution Tomcat 5.5.7.zip and unzip it. When I try to
run the startup script the CMD prompt window show up, throw an error and
closes automatically. So Anyone know what the error could be?? There is no
errorlog sterr or something else available. Please help!!

Maarten



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






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



RE: startup script not working

2005-03-02 Thread Caldarale, Charles R
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Subject: startup script not working
 
 When I try to run the startup script the CMD prompt window show up, throw 
 an error and closes automatically.

The startup.bat script does little other than kick off catalina.bat.  You can 
run catalina.bat directly in your currrent command prompt window to see 
whatever error messages are being displayed

 - 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]



Re: startup script not working

2005-03-02 Thread Jason Bainbridge
On Sun, 2 May 2004 17:01:44 +0200, Bedrijven.nl [EMAIL PROTECTED] wrote:
 Hi,
 
 I am downloading distribution Tomcat 5.5.7.zip and unzip it. When I try to
 run the startup script the CMD prompt window show up, throw an error and
 closes automatically. So Anyone know what the error could be?? There is no
 errorlog sterr or something else available. Please help!!
 

Is your JAVA_HOME environment variable set to the root directory of a
JDK install? Something like C:\JDK_1.4.2_02

Try opening up a command prompt and then running startup.bat from
there so you can see what settings get picked up for your environment
variables.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: startup script not working

2005-03-02 Thread Bedrijven.nl
This is my error...

D:\Tomcat557\bincatalina run
Using CATALINA_BASE:   D:\Tomcat557
Using CATALINA_HOME:   D:\Tomcat557
Using CATALINA_TMPDIR: D:\Tomcat557\temp
Using JAVA_HOME:   C:\jdk
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NoSuchMethodError:
javax.management.ObjectName.quote(Ljava/
lang/String;)Ljava/lang/String;
at
org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.jav
a:1232)
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:651
)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe
ans(GlobalResourcesLifecycleListener.java:216)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe
ans(GlobalResourcesLifecycleListener.java:146)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe
ans(GlobalResourcesLifecycleListener.java:108)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle
Event(GlobalResourcesLifecycleListener.java:80)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:676
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
... 6 more

anyone any idea???



-Oorspronkelijk bericht-
Van: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 02, 2005 5:14 PM
Aan: Tomcat Users List
Onderwerp: RE: startup script not working


 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Subject: startup script not working
 
 When I try to run the startup script the CMD prompt window show up, throw 
 an error and closes automatically.

The startup.bat script does little other than kick off catalina.bat.  You
can run catalina.bat directly in your currrent command prompt window to see
whatever error messages are being displayed

 - 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]

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

RE: startup script not working

2005-03-02 Thread Caldarale, Charles R
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Subject: RE: startup script not working
 
 Caused by: java.lang.NoSuchMethodError:
 javax.management.ObjectName.quote(Ljava/lang/String;)Ljava/lang/String;

It looks like you're trying to use Tomcat 5.5.7 with a 1.4 JDK.  You can either 
install a 5.0 JRE (or 1.5 JDK), or download and use the compat.zip package from 
the Tomcat download area.  See RUNNING.txt for details.

 - 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]



RE: startup script not working

2005-03-02 Thread David Tonhofer, m-plify S.A.
Try commenting out the listeners in server.xml:
 Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
Or upgrade the JMX package
--On Wednesday, March 02, 2005 5:22 PM +0100 Bedrijven.nl [EMAIL PROTECTED] 
wrote:
Caused by: java.lang.NoSuchMethodError:
javax.management.ObjectName.quote(Ljava/
lang/String;)Ljava/lang/String;
at


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


RE: startup script not working

2005-03-02 Thread Bedrijven.nl
ok..the errors are away by commenting out. But now the next error shows up:

D:\Tomcat557\bincatalina run
Using CATALINA_BASE:   D:\Tomcat557
Using CATALINA_HOME:   D:\Tomcat557
Using CATALINA_TMPDIR: D:\Tomcat557\temp
Using JAVA_HOME:   C:\jdk
java.lang.NoSuchMethodError:
org.apache.commons.logging.LogFactory.release(Ljava
/lang/ClassLoader;)V
at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.j
ava:1499)
at
org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:706)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:43
08)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:892)
at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1
147)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1119)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:312)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1051)
at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1063)
at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:445)

at
org.apache.catalina.core.StandardService.stop(StandardService.java:51
2)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)


Any idea's???

When i install it as a service everything is ok, but I won't do that because
i want to set up multiple instances with the use of catalina_base

Maarten

-Oorspronkelijk bericht-
Van: David Tonhofer, m-plify S.A. [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 02, 2005 5:49 PM
Aan: Tomcat Users List
Onderwerp: RE: startup script not working


Try commenting out the listeners in server.xml:

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

Or upgrade the JMX package

--On Wednesday, March 02, 2005 5:22 PM +0100 Bedrijven.nl
[EMAIL PROTECTED] wrote:

 Caused by: java.lang.NoSuchMethodError:
 javax.management.ObjectName.quote(Ljava/
 lang/String;)Ljava/lang/String;
 at




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


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



RE: startup script not working

2005-03-02 Thread David Tonhofer, m-plify S.A.
You need to upgrade to the latest commons-logging.
See:
http://jakarta.apache.org/commons/logging/api/index.html
You still seem to have logging 1.0.2 =:-o
http://jakarta.apache.org/commons/logging/commons-logging-1.0.2/docs/api/
Make sure that you have the packages at the version described in the 
build.properties
(or higher), like these:
commons-beanutils.loc=${base-jakarta.loc}/commons/beanutils/binaries/commons-beanutils-1.7.0.tar.gz
commons-launcher.loc=${base-jakarta.loc}/commons/launcher/binaries/launcher-0.9.tar.gz
commons-daemon.loc=${base-jakarta.loc}/commons/daemon/binaries/commons-daemon-1.0.tar.gz
commons-digester.loc=${base-jakarta.loc}/commons/digester/binaries/commons-digester-1.6.tar.gz
commons-el.loc=${base-jakarta.loc}/commons/el/binaries/commons-el-1.0.tar.gz
commons-logging.loc=${base-jakarta.loc}/commons/logging/binaries/commons-logging-1.0.4.tar.gz
commons-modeler.loc=${base-jakarta.loc}/commons/modeler/binaries/modeler-1.1.tar.gz
xerces.loc=${base-xml.loc}/xerces-j/binaries/Xerces-J-bin.2.6.2.tar.gz
jdt.loc=http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.0.1-200409161125/eclipse-JDT-3.0.1.zip
log4j.loc=${base-logging.loc}/log4j/1.2.9/logging-log4j-1.2.9.tar.gz
commons-dbcp-src.loc=${base-jakarta.loc}/commons/dbcp/source/commons-dbcp-1.2.1-src.tar.gz
commons-httpclient.loc=${base-jakarta.loc}/commons/httpclient/binary/commons-httpclient-2.0.tar.gz
commons-pool-src.loc=${base-jakarta.loc}/commons/pool/source/commons-pool-1.2-src.tar.gz
commons-collections.loc=${base-jakarta.loc}/commons/collections/binaries/commons-collections-3.1.tar.gz
commons-collections-src.loc=${base-jakarta.loc}/commons/collections/source/commons-collections-3.1-src.tar.gz
commons-fileupload.loc=${base-jakarta.loc}/commons/fileupload/binaries/commons-fileupload-1.0.tar.gz
jmx.loc=${base-sf.loc}/mx4j/mx4j-2.1.0.zip
junit.loc=${base-sf.loc}/junit/junit3.8.1.zip
struts.loc=${base-struts.loc}/binaries/struts-1.2.6.tar.gz
jaxen.loc=${base-sf.loc}/jaxen/jaxen-1.0-FCS.tar.gz
saxpath.loc=${base-sf.loc}/saxpath/saxpath-1.0.tar.gz

--On Sunday, May 02, 2004 6:01 PM +0200 Bedrijven.nl [EMAIL PROTECTED] 
wrote:
java.lang.NoSuchMethodError:
org.apache.commons.logging.LogFactory.release(Ljava
/lang/ClassLoader;)V


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


RE: startup script not working

2005-03-02 Thread Caldarale, Charles R
 From: Bedrijven.nl [mailto:[EMAIL PROTECTED]
 Subject: RE: startup script not working
 
 ok..the errors are away by commenting out. 

You really can't comment those lines out.  As I said before, you must use the 
proper JRE/JDK or the Compat.zip package.  No shortcuts here.

 - 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]



RE: startup script

2003-02-13 Thread Raible, Matt
Here's how I've done it:

http://tinyurl.com/5s4x

HTH,

Matt

 -Original Message-
 From: Jon Roberts [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 8:55 AM
 To: Tomcat Users
 Subject: startup script
 
 
 Does anybody have an /etc/init.d style startup script for tomcat? 
 Ideally, I'd like it to export the _HOME variables and start under a 
 non-root user. TIA.
 
 Jon Roberts
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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




Re: Startup script doesn't work on reboot

2001-05-02 Thread Hari Yellina

tomcat doesnt start it self automatically. you have to place your
/bin/startup.sh in proile.bash file. so, when you are logging as a user it
starts automatically.
- Original Message -
From: Dave Simms [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 02, 2001 3:13 AM
Subject: Startup script doesn't work on reboot



 Hi All,

 I used both a script I created, and one I found when I searched through
this
 mailing list (Neil's Aggarwal's script, 2/15/01).  Both scripts worked
fine
 when ran while our computer was on (running RedHat 7.0, tomcat 3.1).  But
 when I reboot the machine, tomcat doesn't start (although when I look at
the
 processes using ps ax --- it does show tomcat processes running).  Does
 anyone know what the problem here could be?  I don't think it should make
a
 difference, but I am starting tomcat with a different server.xml file with
 the command:

 /usr/local/jakarta-tomcat/bin/startup.sh -f
 /usr/local/jakarta-tomcat/conf/server_SITE1.xml

 Thanks,
 Dave
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com





Re: Startup Script

2001-04-20 Thread Ryan



I'm using slackware 7.1 and the only thing I added 
was this line to my rc.httpd

sh /usr/local/tomcat/bin/startup.sh 

You could also just paste this line in your own 
rc.tomcat file. I was too lazy.




  - Original Message - 
  From: 
  Curtis Spencer 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, April 20, 2001 4:37 
AM
  Subject: Startup Script
  
  I am a newbie to Tomcat and I was wondering what 
  the best way to get it to start up when Linux 7.0 is starting up. I 
  created a symbolic link in the rc3.d folder. Is this the best way? 
  
  Also what should be in the server 
  script
  
  Thanks,

  Curtis


Re: Startup Script

2001-04-20 Thread Ferdinand Enario



Hello,

I am also a newbie to Tomcat. I am running Mandrake 
Linux 7.1 Tomcat 3.2.1 and JDK1.22. I was able to run tomcat with Apache using 
Adam Fowler tomcat script (Thanks Adam). I modified some of it to suit my 
configurations. Attached is the file which should be placed in the 
/etc/rc.d/init.d directory. Also, please change the appropriate configurations 
that suit to your machine config. After placing this in your /etc/rc.d/init.d 
directory make a symbolic link on the /etc/rc.d/rcx.d directory.

My machine is defaulted to runlevel 3, so in the 
directory /etc/rc.d/rc3.d I created a symbolic link like this:

ln -s /etc/rc.d/init.d/tomcat 
/etc/rc5.d/Sxxtomcat
where xx is numbered "84" which is lower than my 
S85httpd (we need to start tomcat ahead of apache). Your machine might have 
different settings. Restart your machine.
I hope this will help you.

Ferdinand

- Original Message 
To: [EMAIL PROTECTED] 

  Sent: Friday, April 20, 2001 4:37 
AM
  Subject: Startup Script
  
  I am a newbie to Tomcat and I was wondering what 
  the best way to get it to start up when Linux 7.0 is starting up. I 
  created a symbolic link in the rc3.d folder. Is this the best way? 
  
  Also what should be in the server 
  script
  
  Thanks,

  Curtis
 tomcat