aspose file tools*
The moose likes Tomcat and the fly likes Error with Tomcat Server while running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error with Tomcat Server while running " Watch "Error with Tomcat Server while running " New topic
Author

Error with Tomcat Server while running

sathish rontala
Greenhorn

Joined: Aug 28, 2006
Posts: 3
Hi

Here iam trying to run my project in Tomcat 5.x and it give me the fallowing error , can anybody tell the exact problem .


C:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Borland\JBuilder2005\thirdparty\jakarta-tomcat-5.0.27\bin\bootstrap.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-taglibs-standard-1.0.6\lib\jstl.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-taglibs-standard-1.0.6\lib\standard.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-taglibs-standard-1.0.6\lib\saxpath.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-taglibs-standard-1.0.6\lib\jaxen-full.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-beanutils.jar;C:\Borland\JBui lder2005\thirdparty\jakarta-struts-1.1-lib\commons-collections.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-digester.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-fileupload.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-lang.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-logging.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\commons-validator.jar;C:\Borland\JBuilder2005\thirdparty\jakar ta-struts-1.1-lib\jakarta-oro.jar;C:\Borland\JBuilder2005\thirdparty\jakarta-struts-1.1-lib\struts.jar;C:\Borland\JBuilder2005\lib\saaj.jar;C:\Borland\JBuilder2005\lib\jaxrpc.jar;C:\Borland\JBuilder2005\lib\axis.jar;C:\Borland\JBuilder2005\lib\axis-ant.jar;C:\Borland\JBuilder2005\lib\wsdl4j.jar;C:\Borland\JBuilder2005\lib\commons-logging.jar;C:\Borland\JBuilder2005\lib\commons-discovery.jar;C:\Borland\JBuilder2005\jdk1.4\lib\tools.jar" "-Dcatalina.home=C:/Borland/JBuilder2005/thirdparty/jakarta-tomcat-5.0.27" -Xbootclasspath/a:C:\CVSROOT\usuwd\projects\assets\source\config -Dcom.astrazeneca.rd.jaz.factory.impl.xmlconfig.path=target_services.xml -Dcom.astrazeneca.rd.jaz.factory.ServiceFactory=com.astrazeneca.rd.jaz.factory.impl.xmlconfig.ServiceFactoryXmlImpl org.apache.catalina.startup.Bootstrap -config C:\dev\Assets\source\assets\Tomcat\conf\server8080.xml start
Sep 3, 2008 1:42:29 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Sep 3, 2008 1:42:29 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 1011 ms

Sep 3, 2008 1:42:29 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Sep 3, 2008 1:42:29 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.0.27

Sep 3, 2008 1:42:29 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

Sep 3, 2008 1:42:29 PM org.apache.catalina.loader.WebappClassLoader validateJarFile

INFO: validateJarFile(C:\dev\Assets\source\assets\webapp\WEB-INF\lib\servletapi-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

java.lang.reflect.InvocationTargetException


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

Caused by: java.lang.ExceptionInInitializerError

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4261)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)

at org.apache.catalina.core.StandardService.start(StandardService.java:480)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at org.apache.catalina.startup.Catalina.start(Catalina.java:556)

... 6 more

Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1de9ac4 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1de9ac4 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger))

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)

at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)

at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)

at org.apache.catalina.startup.TldConfig.<clinit>(TldConfig.java:66)

... 14 more

Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1de9ac4 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Logger)

at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)

at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)

... 18 more

Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)

at java.lang.Class.getConstructor0(Class.java:1922)

at java.lang.Class.getConstructor(Class.java:1019)

at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)

... 19 more
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Your war file is including the J2EE Servlet jars. Do not include them in your war, they are already provided by Tomcat.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error with Tomcat Server while running