You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Michael <mt...@optonline.net> on 2010/11/11 23:31:30 UTC
CXFServlet Errors Starting Tomcat In Eclipse
Although I been working with web services for quite some time this is my first attempt to create web services using CXF. I'm starting with a very simple service (Java first) and using a simple standalone Jave console app as the client.
My development environment is JDK 1.6, Java EE 6, Eclipse Helios (With WTP) and Tomcat 6.
When I start my Tomcat server in Eclipse I get the following errors:
Nov 11, 2010 5:19:02 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
context: /SimpleCXFWebServiceForTomcat
delegate: false
repositories:
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1004901
org.apache.cxf.transport.servlet.CXFServlet
java.lang.ClassNotFoundException: org.apache.cxf.transport.servlet.CXFServlet
Nov 11, 2010 5:19:02 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /SimpleCXFWebServiceForTomcat threw load() exception
java.lang.ClassNotFoundException: org.apache.cxf.transport.servlet.CXFServlet
Can anyone explain and tell me how to correct?
Thanks,
Mike
Re: CXFServlet Errors Starting Tomcat In Eclipse
Posted by Michael <mt...@optonline.net>.
Daniel,
Thanks for your reply.
In Eclipse I have the CXF proferences set to export runtime libraries to
WEB-INF\lib at deployment.
Now I'm running the service from an instance of Tomcat within Eclipse. My
internal Tomcat instance shows the following CXF files included in the web
module deployed to the internal Tomcat server instance:
ant-1.8.1.jar
ant-launcher-1.8.1.jar
jaxb-xjc-2.1.13.jar
js-1.7R.1.jar
serializer-2.7.1.jar
xalan-2.7.1.jar
xml-resolver-1.2.jar
My Eclipse buildpath for my project contains the CXF library which has the
JAR's listed above but not the CXF JAR's you mention.
Is the CXF bundle JAR cxf-2.2.10.jar?
Why is the cxf-rt-transport-http JAR not included in my Apache CXF Library
in Eclipse?
Is there any good, step-by-step guide for how to use Eclipse\Tomcat\CXF, all
integrated in the Eclipse WTP?
----- Original Message -----
From: "Daniel Kulp" <dk...@apache.org>
To: <us...@cxf.apache.org>
Cc: "Michael" <mt...@optonline.net>
Sent: Friday, November 12, 2010 3:29 PM
Subject: Re: CXFServlet Errors Starting Tomcat In Eclipse
> On Thursday 11 November 2010 5:31:30 pm Michael wrote:
>> Although I been working with web services for quite some time this is my
>> first attempt to create web services using CXF. I'm starting with a very
>> simple service (Java first) and using a simple standalone Jave console
>> app
>> as the client.
>>
>> My development environment is JDK 1.6, Java EE 6, Eclipse Helios (With
>> WTP)
>> and Tomcat 6.
>>
>> When I start my Tomcat server in Eclipse I get the following errors:
>>
>> Nov 11, 2010 5:19:02 PM org.apache.catalina.core.ApplicationContext log
>> SEVERE: Error loading WebappClassLoader
>> context: /SimpleCXFWebServiceForTomcat
>> delegate: false
>> repositories:
>> ----------> Parent Classloader:
>> org.apache.catalina.loader.StandardClassLoader@1004901
>> org.apache.cxf.transport.servlet.CXFServlet
>> java.lang.ClassNotFoundException:
>> org.apache.cxf.transport.servlet.CXFServlet
>>
>> Nov 11, 2010 5:19:02 PM org.apache.catalina.core.StandardContext
>> loadOnStartup SEVERE: Servlet /SimpleCXFWebServiceForTomcat threw load()
>> exception java.lang.ClassNotFoundException:
>> org.apache.cxf.transport.servlet.CXFServlet
>>
>> Can anyone explain and tell me how to correct?
>
> Well, the "war" project or whatever would need to have all the required
> CXF
> deps. In this case, it would definitely need the cxf-rt-transport-http
> jar
> (or the larger cxf bundle jar)
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
Re: CXFServlet Errors Starting Tomcat In Eclipse
Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 11 November 2010 5:31:30 pm Michael wrote:
> Although I been working with web services for quite some time this is my
> first attempt to create web services using CXF. I'm starting with a very
> simple service (Java first) and using a simple standalone Jave console app
> as the client.
>
> My development environment is JDK 1.6, Java EE 6, Eclipse Helios (With WTP)
> and Tomcat 6.
>
> When I start my Tomcat server in Eclipse I get the following errors:
>
> Nov 11, 2010 5:19:02 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: Error loading WebappClassLoader
> context: /SimpleCXFWebServiceForTomcat
> delegate: false
> repositories:
> ----------> Parent Classloader:
> org.apache.catalina.loader.StandardClassLoader@1004901
> org.apache.cxf.transport.servlet.CXFServlet
> java.lang.ClassNotFoundException:
> org.apache.cxf.transport.servlet.CXFServlet
>
> Nov 11, 2010 5:19:02 PM org.apache.catalina.core.StandardContext
> loadOnStartup SEVERE: Servlet /SimpleCXFWebServiceForTomcat threw load()
> exception java.lang.ClassNotFoundException:
> org.apache.cxf.transport.servlet.CXFServlet
>
> Can anyone explain and tell me how to correct?
Well, the "war" project or whatever would need to have all the required CXF
deps. In this case, it would definitely need the cxf-rt-transport-http jar
(or the larger cxf bundle jar)
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog