AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tomcat5+CentOS 4.2+JDK 1.5.0_11 Failure

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions
View previous topic :: View next topic  
Author Message
Chen Yang
Guest





PostPosted: Fri Apr 20, 2007 7:08 am    Post subject: Tomcat5+CentOS 4.2+JDK 1.5.0_11 Failure Reply with quote



Hi all,

I have been working on this problem for two days, any suggestion would
be very appreciated.

I am installing Tomcat5 on CentOS 4.2 with the following instructions:
http://www.law.emory.edu/~bchapman/tomcat5.html

1. I installed jpackage-utils by yum from jpackage repo
2. rpmbuild --rebuild /usr/local/src/java-1.5.0-sun-1.5.0.11-1jpp.nosrc.rpm
3. rpm -ivh /usr/src/redhat/RPMS/i586/java-1.5.0-sun-1.5.0.11-1jpp.i586.rpm
4. rpm -ivh
/usr/src/redhat/RPMS/i586/java-1.5.0-sun-devel-1.5.0.11-1jpp.i586.rpm
5. rpmbuild --rebuild --without javadoc
/usr/local/src/jta-1.0.1-0.b.4jpp.nosrc.rpm
6. rpm -ivh /usr/src/redhat/RPMS/noarch/jta-1.0.1-0.b.4jpp.noarch.rpm

So that I installed jdk 1.5.0_11, then I installed tomcat5 with
yum install yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps

There was a problem when I installed tomcat5:
JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory

I then modified /etc/tomcat5/tomcat5.conf, commented out JAVA_HOME to
use the system one.

I then run
# /etc/rc.d/init.d/tomcat5 start

It said OK but tomcat5 was not on. I check
/var/log/tomcat5/catalina.out, it said:

Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at
org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
at
org.apache.catalina.startup.ClassLoaderFactory.<clinit>(ClassLoaderF
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.jav
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)


I googled the error log, it seemed that the problem has to do with
commons-logging.jar, can any one help me with this?

Thank you so much for your time!

-Chen
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Discussions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.