You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sunil Dath <su...@gmail.com> on 2013/07/02 03:31:20 UTC

Unable to start running Tomcat "startup" script

Hello,

I am using apache-tomcat-7.0.41 and I have downloaded the

   - 64-bit Windows
zip<http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip>
    (pgp<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.asc>
   , md5<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.md5>
   )

binary distribution. I have copied it to C:\ directory on my Windows
machine (which is running as a VM).

I have installed jdk-7u25-windows-x64 for Windows.

Before starting the Tomcat server, I created a file named setenv.bat under
CATALINA_HOME/bin directory. The contents of the file are,

set "JAVA_HOME=%ProgramFiles%\Java\jdk1.7.0_25"
set "JRE_HOME=%ProgramFiles%\Java\jre7"
exit /b 0

Then, I launch the command window and went to "C:\apache-tomcat-7.0.41\bin"
directory and ran "startup" script. But the script exits with the following
error message,

C:\apache-tomcat-7.0.41\bin>startup
Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
Using JRE_HOME:        "C:\Program Files\Java\jre7"
Using CLASSPATH:
"C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomc
at-7.0.41\bin\tomcat-juli.jar"

C:\apache-tomcat-7.0.41\bin>shutdown
Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
Using JRE_HOME:        "C:\Program Files\Java\jre7"
Using CLASSPATH:
"C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomc
at-7.0.41\bin\tomcat-juli.jar"
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/juli/loggi
ng/LogFactory
        at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Caused by: java.lang.ClassNotFoundException:
org.apache.juli.logging.LogFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more
C:\apache-tomcat-7.0.41\bin>

I tried multiple options without any luck. Can someone please advise on how
to get the Tomcat application server working?

Thanks,
Sunil.

Re: Unable to start running Tomcat "startup" script

Posted by Sunil Dath <su...@gmail.com>.
Chuck,

Thanks for your response. I see the same issue with startup and shutdown as
well. Its just that the window startup script spawns disappears. I see the
java version also to be right.

C:\Program Files\Java\jre7\bin>java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

C:\Program Files\Java\jre7\bin>

Is the VM causing an issue here?

Thanks,
Sunil.

On Mon, Jul 1, 2013 at 7:14 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Sunil Dath [mailto:sunildath@gmail.com]
> > Subject: Unable to start running Tomcat "startup" script
>
> > set "JAVA_HOME=%ProgramFiles%\Java\jdk1.7.0_25"
> > set "JRE_HOME=%ProgramFiles%\Java\jre7"
>
> In general, you should set just one or the other of the above, not both.
>
> > exit /b 0
>
> The exit command isn't necessary, but shouldn't hurt.
>
> > C:\apache-tomcat-7.0.41\bin>startup
> > Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> > Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> > Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> > Using JRE_HOME:        "C:\Program Files\Java\jre7"
> > Using CLASSPATH:
> >
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar"
>
> So the startup runs without error?
>
> > C:\apache-tomcat-7.0.41\bin>shutdown
> > Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> > Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> > Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> > Using JRE_HOME:        "C:\Program Files\Java\jre7"
> > Using CLASSPATH:
> >
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar"
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/juli/logging/LogFactory
>
> I just downloaded 7.0.41 from the same site you used, and it starts up and
> shuts down without problem, using the same JDK you have.
>
> I can't think of any reason why startup.bat would run, but shutdown.bat
> wouldn't.  If both are failing, make sure the JVM installed in your jre7
> directory is what you expect; try:
>
> %ProgramFiles%\Java\jre7\java -version
>
> Try removing the excess lines from setenv.bat and see what happens.
>
>  - 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Unable to start running Tomcat "startup" script

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Sunil Dath [mailto:sunildath@gmail.com] 
> Subject: Unable to start running Tomcat "startup" script

> set "JAVA_HOME=%ProgramFiles%\Java\jdk1.7.0_25"
> set "JRE_HOME=%ProgramFiles%\Java\jre7"

In general, you should set just one or the other of the above, not both.

> exit /b 0

The exit command isn't necessary, but shouldn't hurt.

> C:\apache-tomcat-7.0.41\bin>startup
> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> Using JRE_HOME:        "C:\Program Files\Java\jre7"
> Using CLASSPATH:
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar"

So the startup runs without error?

> C:\apache-tomcat-7.0.41\bin>shutdown
> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> Using JRE_HOME:        "C:\Program Files\Java\jre7"
> Using CLASSPATH:
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomcat-7.0.41\bin\tomcat-juli.jar"
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/juli/logging/LogFactory

I just downloaded 7.0.41 from the same site you used, and it starts up and shuts down without problem, using the same JDK you have.

I can't think of any reason why startup.bat would run, but shutdown.bat wouldn't.  If both are failing, make sure the JVM installed in your jre7 directory is what you expect; try:

%ProgramFiles%\Java\jre7\java -version

Try removing the excess lines from setenv.bat and see what happens.

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


Re: Unable to start running Tomcat "startup" script

Posted by Sunil Dath <su...@gmail.com>.
Mark,

I did unpack under "C:\Users\me\" without any luck.

C:\Users\Me>cd apache-tomcat-7.0.41

C:\Users\Me\apache-tomcat-7.0.41>cd bin

C:\Users\Me\apache-tomcat-7.0.41\bin>startup
Using CATALINA_BASE:   "C:\Users\Me\apache-tomcat-7.0.41"
Using CATALINA_HOME:   "C:\Users\Me\apache-tomcat-7.0.41"
Using CATALINA_TMPDIR: "C:\Users\Me\apache-tomcat-7.0.41\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_25"
Using CLASSPATH:       "C:\Users\Me\apache-tomcat-7.0.41\bin\bootstrap.jar
;C:\Users\Me\apache-tomcat-7.0.41\bin\tomcat-juli.jar"
C:\Users\Me\apache-tomcat-7.0.41\bin>

It seems to a simple step which should work. I am not sure what I am
missing.

Please advise.

Thanks,
Sunil.

On Mon, Jul 1, 2013 at 7:09 PM, Mark Eggers <it...@yahoo.com> wrote:

> On 7/1/2013 6:31 PM, Sunil Dath wrote:
>
>> Hello,
>>
>> I am using apache-tomcat-7.0.41 and I have downloaded the
>>
>>     - 64-bit Windows
>> zip<http://mirror.cc.columbia.**edu/pub/software/apache/**
>> tomcat/tomcat-7/v7.0.41/bin/**apache-tomcat-7.0.41-windows-**x64.zip<http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip>
>> >
>>      (pgp<http://www.apache.org/**dist/tomcat/tomcat-7/v7.0.41/**
>> bin/apache-tomcat-7.0.41-**windows-x64.zip.asc<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.asc>
>> >
>>     , md5<http://www.apache.org/**dist/tomcat/tomcat-7/v7.0.41/**
>> bin/apache-tomcat-7.0.41-**windows-x64.zip.md5<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.md5>
>> >
>>     )
>>
>> binary distribution. I have copied it to C:\ directory on my Windows
>> machine (which is running as a VM).
>>
>> I have installed jdk-7u25-windows-x64 for Windows.
>>
>> Before starting the Tomcat server, I created a file named setenv.bat under
>> CATALINA_HOME/bin directory. The contents of the file are,
>>
>> set "JAVA_HOME=%ProgramFiles%\**Java\jdk1.7.0_25"
>> set "JRE_HOME=%ProgramFiles%\Java\**jre7"
>> exit /b 0
>>
>> Then, I launch the command window and went to
>> "C:\apache-tomcat-7.0.41\bin"
>> directory and ran "startup" script. But the script exits with the
>> following
>> error message,
>>
>> C:\apache-tomcat-7.0.41\bin>**startup
>> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
>> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
>> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
>> Using JRE_HOME:        "C:\Program Files\Java\jre7"
>> Using CLASSPATH:
>> "C:\apache-tomcat-7.0.41\bin\**bootstrap.jar;C:\apache-tomc
>> at-7.0.41\bin\tomcat-juli.jar"
>>
>> C:\apache-tomcat-7.0.41\bin>**shutdown
>> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
>> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
>> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
>> Using JRE_HOME:        "C:\Program Files\Java\jre7"
>> Using CLASSPATH:
>> "C:\apache-tomcat-7.0.41\bin\**bootstrap.jar;C:\apache-tomc
>> at-7.0.41\bin\tomcat-juli.jar"
>> Exception in thread "main" java.lang.**NoClassDefFoundError:
>> org/apache/juli/loggi
>> ng/LogFactory
>>          at org.apache.catalina.startup.**Bootstrap.<clinit>(Bootstrap.**
>> java:60)
>> Caused by: java.lang.**ClassNotFoundException:
>> org.apache.juli.logging.**LogFactory
>>          at java.net.URLClassLoader$1.run(**Unknown Source)
>>          at java.net.URLClassLoader$1.run(**Unknown Source)
>>          at java.security.**AccessController.doPrivileged(**Native
>> Method)
>>          at java.net.URLClassLoader.**findClass(Unknown Source)
>>          at java.lang.ClassLoader.**loadClass(Unknown Source)
>>          at java.lang.ClassLoader.**loadClass(Unknown Source)
>>          ... 1 more
>> C:\apache-tomcat-7.0.41\bin>
>>
>> I tried multiple options without any luck. Can someone please advise on
>> how
>> to get the Tomcat application server working?
>>
>> Thanks,
>> Sunil.
>>
>>
> Do you have the proper permissions? Normally, I don't think a normal user
> has the permissions to read/write, and execute on directories directly off
> the C drive.
>
> I create a directory called Apache underneath my home directory
> (C:\Users\me\Apache). I then unpack stuff there. I run multiple versions of
> Tomcat with no problem, both from the .bat file and from within Eclipse and
> NetBeans.
>
> just my two cents . . . .
> /mde/
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Unable to start running Tomcat "startup" script

Posted by Mark Eggers <it...@yahoo.com>.
On 7/1/2013 6:31 PM, Sunil Dath wrote:
> Hello,
>
> I am using apache-tomcat-7.0.41 and I have downloaded the
>
>     - 64-bit Windows
> zip<http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip>
>      (pgp<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.asc>
>     , md5<http://www.apache.org/dist/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41-windows-x64.zip.md5>
>     )
>
> binary distribution. I have copied it to C:\ directory on my Windows
> machine (which is running as a VM).
>
> I have installed jdk-7u25-windows-x64 for Windows.
>
> Before starting the Tomcat server, I created a file named setenv.bat under
> CATALINA_HOME/bin directory. The contents of the file are,
>
> set "JAVA_HOME=%ProgramFiles%\Java\jdk1.7.0_25"
> set "JRE_HOME=%ProgramFiles%\Java\jre7"
> exit /b 0
>
> Then, I launch the command window and went to "C:\apache-tomcat-7.0.41\bin"
> directory and ran "startup" script. But the script exits with the following
> error message,
>
> C:\apache-tomcat-7.0.41\bin>startup
> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> Using JRE_HOME:        "C:\Program Files\Java\jre7"
> Using CLASSPATH:
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomc
> at-7.0.41\bin\tomcat-juli.jar"
>
> C:\apache-tomcat-7.0.41\bin>shutdown
> Using CATALINA_BASE:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_HOME:   "C:\apache-tomcat-7.0.41"
> Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.41\temp"
> Using JRE_HOME:        "C:\Program Files\Java\jre7"
> Using CLASSPATH:
> "C:\apache-tomcat-7.0.41\bin\bootstrap.jar;C:\apache-tomc
> at-7.0.41\bin\tomcat-juli.jar"
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/juli/loggi
> ng/LogFactory
>          at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.juli.logging.LogFactory
>          at java.net.URLClassLoader$1.run(Unknown Source)
>          at java.net.URLClassLoader$1.run(Unknown Source)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          ... 1 more
> C:\apache-tomcat-7.0.41\bin>
>
> I tried multiple options without any luck. Can someone please advise on how
> to get the Tomcat application server working?
>
> Thanks,
> Sunil.
>

Do you have the proper permissions? Normally, I don't think a normal 
user has the permissions to read/write, and execute on directories 
directly off the C drive.

I create a directory called Apache underneath my home directory 
(C:\Users\me\Apache). I then unpack stuff there. I run multiple versions 
of Tomcat with no problem, both from the .bat file and from within 
Eclipse and NetBeans.

just my two cents . . . .
/mde/

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