Either the big cxf jar (that we ship in lib) or the cxf-rt-frontend-jaxws jar is not actually on the classpath. It's looking for a file in META- INF/services that define the implementation to load and it's not finding it. Definitely check that the cxf jar really is there.
Dan On Wed August 12 2009 7:52:52 pm bwd wrote: > I'm attempting to build and run a service from a WSDL file along the lines > described in http://cwiki.apache.org/CXF20DOC/a-simple-jax-ws-service.html > and http://cwiki.apache.org/CXF20DOC/developing-a-service.html (using CXF > 2.2.3) > > Steps that were taken: > > 1.) Compiled the WSDL using "wsdl2java -server -verbose -impl -validate > -ant -d ..." > 2.) Built the service using the generated ant build.xml file > 3.) Edit the generated *Impl class to provide a trivial test > implementation. 4.) Start the service via a *.bat file with "java > -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties > -classpath %CLASSPATH% ...". > > The classpath in the *.bat file has all of the jar files found in > CFX_HOME/lib, and the service was launched via the main() in the generated > *Port_Server file. > > When I launch the server, I see the following in the console: > > Starting Server > Publishing ... > Exception in thread "main" > javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider > org.apache.axis2.jaxws.spi.Provider not found > at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:135) > at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:264) > at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:122) > at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:42) > at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:255) > at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:264) > at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:165) > at javax.xml.ws.spi.Provider.provider(Provider.java:39) > at javax.xml.ws.Endpoint.publish(Endpoint.java:47) > > A search for this exception within Nabble and the web found the following > discussion, but it was client focused: > http://www.nabble.com/anybody-encount-this-problem--td21200201.html > > Is there some necessary step missing (or not obvious) from the > documentation? > > Thanks, > > Bentley -- Daniel Kulp [email protected] http://www.dankulp.com/blog
