You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by bwd <be...@yahoo.com> on 2009/08/13 01:52:52 UTC

Trouble running Simple JAX-WS Service example

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

-- 
View this message in context: http://www.nabble.com/Trouble-running-Simple-JAX-WS-Service-example-tp24943844p24943844.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Trouble running Simple JAX-WS Service example

Posted by Benson Margulies <bi...@gmail.com>.
You have axis2 in your classpath somewhere.

On Wed, Aug 12, 2009 at 7:52 PM, bwd<be...@yahoo.com> 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
>
> --
> View this message in context: http://www.nabble.com/Trouble-running-Simple-JAX-WS-Service-example-tp24943844p24943844.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: Trouble running Simple JAX-WS Service example

Posted by bwd <be...@yahoo.com>.
Thanks Dan - There was a typo in my classpath entry to cxf-2.2.3.jar. 
Correcting that results in a running service.

Bentley




dkulp wrote:
> 
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Trouble-running-Simple-JAX-WS-Service-example-tp24943844p24955758.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Trouble running Simple JAX-WS Service example

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://www.dankulp.com/blog