You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tcs <ta...@hotmail.com> on 2007/12/06 22:14:04 UTC

tomcat error - SEVERE: Error listenerStart

hi, 

I'm upgrading from XFire to CXF.  By following the documentation notes, I
created a HelloWorld webservice and was able to deploy it on Jetty and was
able to access the WSDL using the browser.

I used maven to update my eclipse project build path by running the command
maven eclipse:eclipse from the command line.  Note, I used the pom.xml from
the documentation.  Over 50 jars were added to my eclipse project classpath.

Next I tried to spring enable my web service and I wrote the web.xml and
beans.xml file as per the documentation.  I used maven2 (mvn install) to
build the war file. I deployed this on my tomcat server. When I start
tomcat, I see the following message in the console and the catalina.log
file:

INFO: Deploying web application archive hw-1.0.war
6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\geronim
o-servlet_2.5_spec-1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3,
section 9.7.2. Offending clas
s: javax/servlet/Servlet.class
6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
-api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax/servlet/
Servlet.class
6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
-api-2.5-6.1.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax/se
rvlet/Servlet.class
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/hw-1.0] startup failed due to previous errors


-- 
View this message in context: http://www.nabble.com/tomcat-error---SEVERE%3A-Error-listenerStart-tf4958591.html#a14201054
Sent from the cxf-user mailing list archive at Nabble.com.


Re: tomcat error - SEVERE: Error listenerStart

Posted by tcs <ta...@hotmail.com>.
I used the example pom.xml in the online documentation.

My pom.xml looks as follows:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<groupId>hw</groupId>
	<artifactId>hw</artifactId>
	<packaging>war</packaging>
	<version>1.0</version>
	<repositories>
		<repository>
			<id>apache.incubating.releases</id>
			<name>
				Apache Incubating Release Distribution Repository
			</name>
			<url>
				http://people.apache.org/repo/m2-incubating-repository
			</url>
		</repository>
	</repositories>
	<properties>
		<spring.version>2.0.6</spring.version>
		<cxf.version>2.0.3</cxf.version>
	</properties>
	<dependencies>
		<!-- 
                     Spring is directly included to override the version
2.0.4 cxf 
                     brings in its own dependencies.  This is not strictly
necessary but
                     just being shown to let you know how this is done.
                -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-core</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-beans</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>${spring.version}</version>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.14</version>
		</dependency>
		
		<!-- Depending on your requirements you may need more or less modules from
cxf -->
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-incubator</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.mortbay.jetty</groupId>
			<artifactId>jetty</artifactId>
			<version>6.1.5</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>uhn-ehr-oracle</groupId>
			<artifactId>uhn-ehr-oracle</artifactId>
			<version>1.4</version>
		</dependency>
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
		</plugins>
		<sourceDirectory>src/main/java</sourceDirectory>        
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/*</include>
				</includes>
			</resource>
		</resources>
	</build>
</project>



Glen Mazza-2 wrote:
> 
> I just did that yesterday with Maven, and was able to get Tomcat 5.5 and
> 6.0 to work with CXF (I still have a problem with Metro though on Tomcat
> 6.0 I need to look at.)  Perhaps my pom files[1] vs. yours might give
> some indication as to the problem--perhaps you have too many
> dependencies loaded and one of them is interfering with Tomcat. I just
> needed a minimal set of two or three for it to work.
> 
> HTH,
> Glen
> 
> [1] http://www.jroller.com/gmazza/date/20071205
> 
> Am Donnerstag, den 06.12.2007, 13:14 -0800 schrieb tcs:
>> hi, 
>> 
>> I'm upgrading from XFire to CXF.  By following the documentation notes, I
>> created a HelloWorld webservice and was able to deploy it on Jetty and
>> was
>> able to access the WSDL using the browser.
>> 
>> I used maven to update my eclipse project build path by running the
>> command
>> maven eclipse:eclipse from the command line.  Note, I used the pom.xml
>> from
>> the documentation.  Over 50 jars were added to my eclipse project
>> classpath.
>> 
>> Next I tried to spring enable my web service and I wrote the web.xml and
>> beans.xml file as per the documentation.  I used maven2 (mvn install) to
>> build the war file. I deployed this on my tomcat server. When I start
>> tomcat, I see the following message in the console and the catalina.log
>> file:
>> 
>> INFO: Deploying web application archive hw-1.0.war
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\geronim
>> o-servlet_2.5_spec-1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3,
>> section 9.7.2. Offending clas
>> s: javax/servlet/Servlet.class
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
>> -api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
>> Offending class: javax/servlet/
>> Servlet.class
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
>> -api-2.5-6.1.5.jar) - jar not loaded. See Servlet Spec 2.3, section
>> 9.7.2.
>> Offending class: javax/se
>> rvlet/Servlet.class
>> log4j:WARN No appenders could be found for logger
>> (org.apache.commons.digester.Digester).
>> log4j:WARN Please initialize the log4j system properly.
>> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/hw-1.0] startup failed due to previous errors
>> 
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat-error---SEVERE%3A-Error-listenerStart-tf4958591.html#a14219681
Sent from the cxf-user mailing list archive at Nabble.com.


Re: tomcat error - SEVERE: Error listenerStart

Posted by Glen Mazza <gl...@verizon.net>.
Am Donnerstag, den 06.12.2007, 19:03 -0800 schrieb woostreet:
> look at localhost log to get more detail information or run catalina.sh run
> instead of startup.sh 
> 

Thanks, I did not know of the "catalina.sh run" option, that makes
output easier to see.  Problem fixed with Metro--turned out to be an
EBKAC error.

Glen

> 
> 
> Glen Mazza-2 wrote:
> > 
> > I just did that yesterday with Maven, and was able to get Tomcat 5.5 and
> > 6.0 to work with CXF (I still have a problem with Metro though on Tomcat
> > 6.0 I need to look at.)  Perhaps my pom files[1] vs. yours might give
> > some indication as to the problem--perhaps you have too many
> > dependencies loaded and one of them is interfering with Tomcat. I just
> > needed a minimal set of two or three for it to work.
> > 
> > HTH,
> > Glen
> > 
> > [1] http://www.jroller.com/gmazza/date/20071205
> > 


Re: tomcat error - SEVERE: Error listenerStart

Posted by woostreet <vm...@gmail.com>.
look at localhost log to get more detail information or run catalina.sh run
instead of startup.sh 



Glen Mazza-2 wrote:
> 
> I just did that yesterday with Maven, and was able to get Tomcat 5.5 and
> 6.0 to work with CXF (I still have a problem with Metro though on Tomcat
> 6.0 I need to look at.)  Perhaps my pom files[1] vs. yours might give
> some indication as to the problem--perhaps you have too many
> dependencies loaded and one of them is interfering with Tomcat. I just
> needed a minimal set of two or three for it to work.
> 
> HTH,
> Glen
> 
> [1] http://www.jroller.com/gmazza/date/20071205
> 
> Am Donnerstag, den 06.12.2007, 13:14 -0800 schrieb tcs:
>> hi, 
>> 
>> I'm upgrading from XFire to CXF.  By following the documentation notes, I
>> created a HelloWorld webservice and was able to deploy it on Jetty and
>> was
>> able to access the WSDL using the browser.
>> 
>> I used maven to update my eclipse project build path by running the
>> command
>> maven eclipse:eclipse from the command line.  Note, I used the pom.xml
>> from
>> the documentation.  Over 50 jars were added to my eclipse project
>> classpath.
>> 
>> Next I tried to spring enable my web service and I wrote the web.xml and
>> beans.xml file as per the documentation.  I used maven2 (mvn install) to
>> build the war file. I deployed this on my tomcat server. When I start
>> tomcat, I see the following message in the console and the catalina.log
>> file:
>> 
>> INFO: Deploying web application archive hw-1.0.war
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\geronim
>> o-servlet_2.5_spec-1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3,
>> section 9.7.2. Offending clas
>> s: javax/servlet/Servlet.class
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
>> -api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
>> Offending class: javax/servlet/
>> Servlet.class
>> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
>> validateJarFile
>> INFO:
>> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
>> -api-2.5-6.1.5.jar) - jar not loaded. See Servlet Spec 2.3, section
>> 9.7.2.
>> Offending class: javax/se
>> rvlet/Servlet.class
>> log4j:WARN No appenders could be found for logger
>> (org.apache.commons.digester.Digester).
>> log4j:WARN Please initialize the log4j system properly.
>> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/hw-1.0] startup failed due to previous errors
>> 
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat-error---SEVERE%3A-Error-listenerStart-tf4958591.html#a14205929
Sent from the cxf-user mailing list archive at Nabble.com.


Re: tomcat error - SEVERE: Error listenerStart

Posted by Glen Mazza <gl...@verizon.net>.
I just did that yesterday with Maven, and was able to get Tomcat 5.5 and
6.0 to work with CXF (I still have a problem with Metro though on Tomcat
6.0 I need to look at.)  Perhaps my pom files[1] vs. yours might give
some indication as to the problem--perhaps you have too many
dependencies loaded and one of them is interfering with Tomcat. I just
needed a minimal set of two or three for it to work.

HTH,
Glen

[1] http://www.jroller.com/gmazza/date/20071205

Am Donnerstag, den 06.12.2007, 13:14 -0800 schrieb tcs:
> hi, 
> 
> I'm upgrading from XFire to CXF.  By following the documentation notes, I
> created a HelloWorld webservice and was able to deploy it on Jetty and was
> able to access the WSDL using the browser.
> 
> I used maven to update my eclipse project build path by running the command
> maven eclipse:eclipse from the command line.  Note, I used the pom.xml from
> the documentation.  Over 50 jars were added to my eclipse project classpath.
> 
> Next I tried to spring enable my web service and I wrote the web.xml and
> beans.xml file as per the documentation.  I used maven2 (mvn install) to
> build the war file. I deployed this on my tomcat server. When I start
> tomcat, I see the following message in the console and the catalina.log
> file:
> 
> INFO: Deploying web application archive hw-1.0.war
> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\geronim
> o-servlet_2.5_spec-1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3,
> section 9.7.2. Offending clas
> s: javax/servlet/Servlet.class
> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
> -api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
> Offending class: javax/servlet/
> Servlet.class
> 6-Dec-2007 3:35:21 PM org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO:
> validateJarFile(C:\apache-tomcat-5.5.25\webapps\hw-1.0\WEB-INF\lib\servlet
> -api-2.5-6.1.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
> Offending class: javax/se
> rvlet/Servlet.class
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.Digester).
> log4j:WARN Please initialize the log4j system properly.
> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 6-Dec-2007 3:35:22 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/hw-1.0] startup failed due to previous errors
> 
>