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
> 
> 

Reply via email to