cxf jaxws with spring on gwt 2.0

Posted by Karl on Stack Overflow See other posts from Stack Overflow or by Karl
Published on 2010-02-03T08:30:38Z Indexed on 2010/05/16 2:00 UTC
Read the original article Hit count: 720

Filed under:
|
|
|
|

Hi, I'm trying to use an application which uses cxf-jaxws in bean definition:

    <beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sec="http://cxf.apache.org/configuration/security"
 xmlns:jaxws="http://cxf.apache.org/jaxws"
 xmlns:util="http://www.springframework.org/schema/util"
 xsi:schemaLocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 
 http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd 
 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">

however in combination with the jetty from gwt 2.0 development shell my context doesn't load and I get this exception:

    org.springframework.web.context.ContextLoader: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
enter code hereOffending resource: class path resource [bean_definition.xml]

My project is maven-based and I got cxf-rt-frontend-jaxws which contains the namespacehandler and spring.handlers on the classpath.

I added cxf-transports-http-jetty.jar as well.

Has anyone experienced this kind of problem and found a solution?

It seems to be a classpath issue, added the cxf-rt-frontend-jaxws.jar by hand and it works... Somehow the maven dependency doesn't get added to the classpath.

Thanks in advance, karl

© Stack Overflow or respective owner

Related posts about jax-ws

Related posts about cxf