You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Gustavo A. Daud" <gu...@sofisa.com.br> on 2010/03/10 21:15:34 UTC
TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Hello,
I'm trying to install the tomcat 6 in a OpenSuse system, but when I start the aplication I recieved the following message:
"Using CATALINA_BASE: /opt/tomcat6
Using CATALINA_HOME: /opt/tomcat6
Using CATALINA_TMPDIR: /opt/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/jdk1.6
Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit."
I try to find any documentation on google about this, but I don't find anything. I also tried to change the JRE_HOME and CLASSPATH, but, nothing.
I don't find any archive bootstrap.jar on system!
I'm using:
-OpenSuse 11
-Tomcat 6
-JDK 1.6
I will thank's for any help.
Ass: Gustavo
________________________________
"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser entendida ou utilizada como uma oferta, requerimento para a compra ou venda de qualquer instrumento financeiro ou confirmação de qualquer transação ou negócio. No caso desta mensagem conter dados ou outras informações utilizadas pelo mercado financeiro deverão estes ser considerados como meras estimativas, não lhes sendo outorgadas qualquer garantia quanto a sua correção, estando sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, subsidiárias ou filiais."
RES: RES: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Gustavo A. Daud" <gu...@sofisa.com.br>.
That is it... Now it works... I really get the wrong file... I'm sorry for my mistake!
But, tankyou all... Mark, Chuck, André and Konstantin... for helping me...
I'll pay more attention now... I'm a beginner on tomcat yet...
Tank's fellas!!!
________________________________________
De: Mark Thomas [markt@apache.org]
Enviado: quinta-feira, 11 de março de 2010 10:49
Para: Tomcat Users List
Assunto: Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
On 11/03/2010 13:23, André Warnier wrote:
> Mark Thomas wrote:
>> On 11/03/2010 12:49, Gustavo A. Daud wrote:
>>> Chuck,
>>>
>>> I install again the tomcat 6 and now I'm using other user to running
>>> tomcat, as you sugest. But, the error persists...
>>> Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar".
>>> I perform a search on tomcat files looking for any bootstrap and here
>>> the result:
>>>
>>> gustavo@suse-server:/opt/tomcat6> find . -iname bootstrap*
>>> ./res/META-INF/bootstrap.jar.manifest
>>> ./res/META-INF/bootstrap.jar
>>> ./java/org/apache/catalina/startup/Bootstrap.java
>>>
>>> There are no bootstrap.jar on tomcat6/bin/. Is this normal?
>>
>> That looks like you are trying to run Tomcat from a source
>> distribution rather than a binary one.
>>
> (Sound of 10 hands hitting 10 heads)
> See, that's why Mark is a Committer, and we are mere helpers here.
> Why did we not think of that ?
I think you are being a little hard on yourself and your fellow
contributors. This was the first post where there was enough information
to determine what was happening.
Of course, it helped that I have made a similar mistake (building from
source and running start.bat from the wrong directory) enough times
myself to recognise the error message...
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser entendida ou utilizada como uma oferta, requerimento para a compra ou venda de qualquer instrumento financeiro ou confirmação de qualquer transação ou negócio. No caso desta mensagem conter dados ou outras informações utilizadas pelo mercado financeiro deverão estes ser considerados como meras estimativas, não lhes sendo outorgadas qualquer garantia quanto a sua correção, estando sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, subsidiárias ou filiais."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap
Posted by Mark Thomas <ma...@apache.org>.
On 11/03/2010 13:23, André Warnier wrote:
> Mark Thomas wrote:
>> On 11/03/2010 12:49, Gustavo A. Daud wrote:
>>> Chuck,
>>>
>>> I install again the tomcat 6 and now I'm using other user to running
>>> tomcat, as you sugest. But, the error persists...
>>> Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar".
>>> I perform a search on tomcat files looking for any bootstrap and here
>>> the result:
>>>
>>> gustavo@suse-server:/opt/tomcat6> find . -iname bootstrap*
>>> ./res/META-INF/bootstrap.jar.manifest
>>> ./res/META-INF/bootstrap.jar
>>> ./java/org/apache/catalina/startup/Bootstrap.java
>>>
>>> There are no bootstrap.jar on tomcat6/bin/. Is this normal?
>>
>> That looks like you are trying to run Tomcat from a source
>> distribution rather than a binary one.
>>
> (Sound of 10 hands hitting 10 heads)
> See, that's why Mark is a Committer, and we are mere helpers here.
> Why did we not think of that ?
I think you are being a little hard on yourself and your fellow
contributors. This was the first post where there was enough information
to determine what was happening.
Of course, it helped that I have made a similar mistake (building from
source and running start.bat from the wrong directory) enough times
myself to recognise the error message...
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap
Posted by André Warnier <aw...@ice-sa.com>.
Mark Thomas wrote:
> On 11/03/2010 12:49, Gustavo A. Daud wrote:
>> Chuck,
>>
>> I install again the tomcat 6 and now I'm using other user to running
>> tomcat, as you sugest. But, the error persists...
>> Look at this line: "Using CLASSPATH:
>> /opt/tomcat6/bin/bootstrap.jar". I perform a search on tomcat files
>> looking for any bootstrap and here the result:
>>
>> gustavo@suse-server:/opt/tomcat6> find . -iname bootstrap*
>> ./res/META-INF/bootstrap.jar.manifest
>> ./res/META-INF/bootstrap.jar
>> ./java/org/apache/catalina/startup/Bootstrap.java
>>
>> There are no bootstrap.jar on tomcat6/bin/. Is this normal?
>
> That looks like you are trying to run Tomcat from a source distribution
> rather than a binary one.
>
(Sound of 10 hands hitting 10 heads)
See, that's why Mark is a Committer, and we are mere helpers here.
Why did we not think of that ?
This link :
http://mirror.pop-sc.rnp.br/apache/tomcat/tomcat-6/v6.0.24/src/apache-tomcat-6.0.24-src.tar.gz
is for the /sources/ of Tomcat.
Right above this link, is a README which explains what each package
contains.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: RES: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap
Posted by Mark Thomas <ma...@apache.org>.
On 11/03/2010 12:49, Gustavo A. Daud wrote:
> Chuck,
>
> I install again the tomcat 6 and now I'm using other user to running tomcat, as you sugest. But, the error persists...
> Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar". I perform a search on tomcat files looking for any bootstrap and here the result:
>
> gustavo@suse-server:/opt/tomcat6> find . -iname bootstrap*
> ./res/META-INF/bootstrap.jar.manifest
> ./res/META-INF/bootstrap.jar
> ./java/org/apache/catalina/startup/Bootstrap.java
>
> There are no bootstrap.jar on tomcat6/bin/. Is this normal?
That looks like you are trying to run Tomcat from a source distribution
rather than a binary one.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RES: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Gustavo A. Daud" <gu...@sofisa.com.br>.
Hum,
To download tomcat I go to http://tomcat.apache.org/download-60.cgi and get from this link:
http://mirror.pop-sc.rnp.br/apache/tomcat/tomcat-6/v6.0.24/src/apache-tomcat-6.0.24-src.tar.gz
Is this wrong?
________________________________________
De: Konstantin Kolinko [knst.kolinko@gmail.com]
Enviado: quinta-feira, 11 de março de 2010 10:05
Para: Tomcat Users List
Assunto: Re: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
2010/3/11 Gustavo A. Daud <gu...@sofisa.com.br>:
> I install again the tomcat 6
How did you install Tomcat?
Did you download the proper distributive from http://tomcat.apache.org/ ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser entendida ou utilizada como uma oferta, requerimento para a compra ou venda de qualquer instrumento financeiro ou confirmação de qualquer transação ou negócio. No caso desta mensagem conter dados ou outras informações utilizadas pelo mercado financeiro deverão estes ser considerados como meras estimativas, não lhes sendo outorgadas qualquer garantia quanto a sua correção, estando sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, subsidiárias ou filiais."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap
Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/3/11 Gustavo A. Daud <gu...@sofisa.com.br>:
> I install again the tomcat 6
How did you install Tomcat?
Did you download the proper distributive from http://tomcat.apache.org/ ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RES: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Gustavo A. Daud" <gu...@sofisa.com.br>.
Chuck,
I install again the tomcat 6 and now I'm using other user to running tomcat, as you sugest. But, the error persists...
Look at this line: "Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar". I perform a search on tomcat files looking for any bootstrap and here the result:
gustavo@suse-server:/opt/tomcat6> find . -iname bootstrap*
./res/META-INF/bootstrap.jar.manifest
./res/META-INF/bootstrap.jar
./java/org/apache/catalina/startup/Bootstrap.java
There are no bootstrap.jar on tomcat6/bin/. Is this normal?
The same error again:
Using CATALINA_BASE: /opt/tomcat6
Using CATALINA_HOME: /opt/tomcat6
Using CATALINA_TMPDIR: /opt/tomcat6/temp
Using JRE_HOME: /usr/lib/jvm/jdk1.6
Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit.
Thank's
Gustavo.
________________________________________
De: Caldarale, Charles R [Chuck.Caldarale@unisys.com]
Enviado: quarta-feira, 10 de março de 2010 17:46
Para: Tomcat Users List
Assunto: RE: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
> From: Gustavo A. Daud [mailto:gustavo@sofisa.com.br]
> Subject: RES: TOMCAT 6 Error: Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
>
> But as you can see, bootstrap.jar, is not in there
So you have a corrupted Tomcat installation; start over.
> I'm running Tomcat as a root user!
Not a good idea. If you're not using ports less than 1024, you can run as a normal user with no other considerations. If you do need ports below 1024, use jsvc or iptables, as described in the Tomcat doc and FAQ.
- 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
"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser entendida ou utilizada como uma oferta, requerimento para a compra ou venda de qualquer instrumento financeiro ou confirmação de qualquer transação ou negócio. No caso desta mensagem conter dados ou outras informações utilizadas pelo mercado financeiro deverão estes ser considerados como meras estimativas, não lhes sendo outorgadas qualquer garantia quanto a sua correção, estando sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, subsidiárias ou filiais."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gustavo A. Daud [mailto:gustavo@sofisa.com.br]
> Subject: RES: TOMCAT 6 Error: Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
>
> But as you can see, bootstrap.jar, is not in there
So you have a corrupted Tomcat installation; start over.
> I'm running Tomcat as a root user!
Not a good idea. If you're not using ports less than 1024, you can run as a normal user with no other considerations. If you do need ports below 1024, use jsvc or iptables, as described in the Tomcat doc and FAQ.
- 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
RES: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Gustavo A. Daud" <gu...@sofisa.com.br>.
The path /opt/tomcat6/bin exists and contain this files:
catalina-tasks.xml digest.sh shutdown.sh version.bat
catalina.bat service.bat startup.bat version.sh
catalina.sh setclasspath.bat startup.sh
cpappend.bat setclasspath.sh tool-wrapper.bat
digest.bat shutdown.bat tool-wrapper.sh
But as you can see, bootstrap.jar, is not in there, actually, isn't in any where.
I'm running Tomcat as a root user!
Ass: Gustavo
________________________________________
De: Caldarale, Charles R [Chuck.Caldarale@unisys.com]
Enviado: quarta-feira, 10 de março de 2010 17:19
Para: Tomcat Users List
Assunto: RE: TOMCAT 6 Error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
> From: Gustavo A. Daud [mailto:gustavo@sofisa.com.br]
> Subject: TOMCAT 6 Error: Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
>
> "Using CATALINA_BASE: /opt/tomcat6
> Using CATALINA_HOME: /opt/tomcat6
> Using CATALINA_TMPDIR: /opt/tomcat6/temp
> Using JRE_HOME: /usr/lib/jvm/jdk1.6
> Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar
Does /opt/tomcat6/bin/bootstrap.jar actually exist?
Does the userid you're running Tomcat with have access to it?
- 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
"Esta mensagem é emitida exclusivamente com fins informativos, não devendo ser entendida ou utilizada como uma oferta, requerimento para a compra ou venda de qualquer instrumento financeiro ou confirmação de qualquer transação ou negócio. No caso desta mensagem conter dados ou outras informações utilizadas pelo mercado financeiro deverão estes ser considerados como meras estimativas, não lhes sendo outorgadas qualquer garantia quanto a sua correção, estando sujeitos a mudanças sem prévio aviso. Qualquer(Quaisquer) comentário(s) ou declaração(ões) aqui enunciadas não reflete(m), necessariamente, o posicionamento do Banco Sofisa S/A, suas coligadas, subsidiárias ou filiais."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: TOMCAT 6 Error: Exception in thread "main"
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Gustavo A. Daud [mailto:gustavo@sofisa.com.br]
> Subject: TOMCAT 6 Error: Exception in thread "main"
> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
>
> "Using CATALINA_BASE: /opt/tomcat6
> Using CATALINA_HOME: /opt/tomcat6
> Using CATALINA_TMPDIR: /opt/tomcat6/temp
> Using JRE_HOME: /usr/lib/jvm/jdk1.6
> Using CLASSPATH: /opt/tomcat6/bin/bootstrap.jar
Does /opt/tomcat6/bin/bootstrap.jar actually exist?
Does the userid you're running Tomcat with have access to it?
- 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