Compare lib/WHICH_JARS to what you've got from eclipse. Or build one of the war-packaged samples and look inside.
On Sat, Nov 13, 2010 at 7:53 AM, Michael <[email protected]> wrote: > Daniel, > > Since this last post I've tried something else. I built a .war file from > Eclipse and then took a look at the CXF jars it exported to it. As expected > it exported all the CXF jars for my projects build path in Eclipse. > > But in the .war I built I did not see anything that looked like > "cxf-rt-transport-http jar or the larger cxf bundle jar". Can you tell me > what the specific names of these jars are? Should they be in > [CXF_HOME]\lib? If not where do I get them? > > Thanks, > Mike > > ----- Original Message ----- From: "Michael" <[email protected]> > To: <[email protected]> > Sent: Friday, November 12, 2010 7:33 PM > Subject: Re: CXFServlet Errors Starting Tomcat In Eclipse > > >> 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" <[email protected]> >> To: <[email protected]> >> Cc: "Michael" <[email protected]> >> 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.standardclassloa...@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 >>> [email protected] >>> http://dankulp.com/blog >> > >
