You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Marc Ende <ml...@e-beyond.de> on 2008/07/14 09:47:41 UTC
Unable to locate Spring NamesapceHandler for element 'jaxws:endpoint'
of schema namespace 'http://cxf.apache.org/jaxws'
Hi there,
I've got such a warning when I'm using SpringIDE:
Unable to locate Spring NamespaceHandler for element 'jaxws:endpoint' of
schema namespace 'http://cxf.apache.org/jaxws'
I think it's related to the CXF-Parts of the applicationContext.xml
because it only
occurs on the CXF parts. Other namespaces didn't produce such warings.
Do you have an idea to avoid this warnings?
yours
Marc
My applicationContext.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<context:annotation-config />
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import
resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
<bean id="passwordCallback"
class="test.server.PasswordCallbackHandlerImpl" />
<jaxws:endpoint id="distributionApi" implementor="#distributionBean"
address="http://0.0.0.0:4321/distribution">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="passwordCallbackRef">
<ref bean="passwordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
<jaxws:endpoint id="configurationApi" implementor="#configurationBean"
address="http://0.0.0.0:4321/configuration">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="passwordCallbackRef">
<ref bean="passwordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
<jaxws:endpoint id="destinationApi" implementor="#destinationBean"
address="http://0.0.0.0:4321/destination">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="passwordCallbackRef">
<ref bean="passwordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
<jaxws:endpoint id="sourceApi" implementor="#sourceBean"
address="http://0.0.0.0:4321/source">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="passwordCallbackRef">
<ref bean="passwordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
<jaxws:endpoint id="sysApi" implementor="#sysBean"
address="http://0.0.0.0:4321/sys">
<jaxws:inInterceptors>
<bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
<constructor-arg>
<map>
<entry key="action" value="UsernameToken" />
<entry key="passwordType" value="PasswordDigest" />
<entry key="passwordCallbackRef">
<ref bean="passwordCallback" />
</entry>
</map>
</constructor-arg>
</bean>
</jaxws:inInterceptors>
</jaxws:endpoint>
</beans>
Re: Unable to locate Spring NamesapceHandler for element
'jaxws:endpoint' of schema namespace 'http://cxf.apache.org/jaxws'
Posted by "avinash.deshmukh" <d....@gmail.com>.
Hi Daniel,
I think you are getting this message after a long time period.
Here I am getting error message as
"Unable to locate Spring NamespaceHandler for XML schema namespace
[http://cxf.apache.org/jaxws]"
while running the application through eclipse IDE, however, when I run the
same application through tomcat server there are no issues.
Below is my Maven configuration:
Dependencies of Spring:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-oxm-tiger</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>2.5.6</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>2.5.6</version>
</dependency>
Dependencies of Apache CXF -
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.6.0</version>
</dependency>
And my spring configuration is :
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:configuration="http://cxf.apache.org/transports/http/configuration"
xmlns:core="http://cxf.apache.org/core"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:simple="http://cxf.apache.org/simple"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/wsdl/http-conf.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
http://cxf.apache.org/bindings/soap
http://cxf.apache.org/schemas/configuration/soap.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
......
......
</beans>
Do I need to do any additional configuration in IDE or is there any Jar file
missing?
Thanks in advance.....
Avinash Deshmukh
--
View this message in context: http://cxf.547215.n5.nabble.com/Unable-to-locate-Spring-NamesapceHandler-for-element-jaxws-endpoint-of-schema-namespace-http-cxf-apa-tp558987p5713534.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Unable to locate Spring NamesapceHandler for element 'jaxws:endpoint' of schema namespace 'http://cxf.apache.org/jaxws'
Posted by Daniel Kulp <dk...@apache.org>.
Other than double check to make sure the jars on the classpath have
the proper META-INF/spring.handlers file available and has the line:
http\://cxf.apache.org/
jaxws=org.apache.cxf.jaxws.spring.NamespaceHandler
in it. Our cxf jar should have that just fine. However, make sure
some classloader or something isn't blocking access to it.
Dan
On Jul 14, 2008, at 3:47 AM, Marc Ende wrote:
> Hi there,
>
> I've got such a warning when I'm using SpringIDE:
>
> Unable to locate Spring NamespaceHandler for element
> 'jaxws:endpoint' of schema namespace 'http://cxf.apache.org/jaxws'
>
> I think it's related to the CXF-Parts of the applicationContext.xml
> because it only
> occurs on the CXF parts. Other namespaces didn't produce such warings.
>
> Do you have an idea to avoid this warnings?
>
> yours
>
> Marc
>
> My applicationContext.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:context="http://www.springframework.org/schema/context"
> xmlns:aop="http://www.springframework.org/schema/aop"
> xmlns:tx="http://www.springframework.org/schema/tx"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
> http://cxf.apache.org/jaxws
> http://cxf.apache.org/schemas/jaxws.xsd">
> <context:annotation-config />
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-http-
> jetty.xml" />
> <bean id="passwordCallback"
> class="test.server.PasswordCallbackHandlerImpl" />
> <jaxws:endpoint id="distributionApi" implementor="#distributionBean"
> address="http://0.0.0.0:4321/distribution">
> <jaxws:inInterceptors>
> <bean
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> <bean
> class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordDigest" />
> <entry key="passwordCallbackRef">
> <ref bean="passwordCallback" />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> <jaxws:endpoint id="configurationApi"
> implementor="#configurationBean"
> address="http://0.0.0.0:4321/configuration">
> <jaxws:inInterceptors>
> <bean
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> <bean
> class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordDigest" />
> <entry key="passwordCallbackRef">
> <ref bean="passwordCallback" />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> <jaxws:endpoint id="destinationApi" implementor="#destinationBean"
> address="http://0.0.0.0:4321/destination">
> <jaxws:inInterceptors>
> <bean
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> <bean
> class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordDigest" />
> <entry key="passwordCallbackRef">
> <ref bean="passwordCallback" />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> <jaxws:endpoint id="sourceApi" implementor="#sourceBean"
> address="http://0.0.0.0:4321/source">
> <jaxws:inInterceptors>
> <bean
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> <bean
> class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordDigest" />
> <entry key="passwordCallbackRef">
> <ref bean="passwordCallback" />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> <jaxws:endpoint id="sysApi" implementor="#sysBean"
> address="http://0.0.0.0:4321/sys">
> <jaxws:inInterceptors>
> <bean
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
> <bean
> class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
> <constructor-arg>
> <map>
> <entry key="action" value="UsernameToken" />
> <entry key="passwordType" value="PasswordDigest" />
> <entry key="passwordCallbackRef">
> <ref bean="passwordCallback" />
> </entry>
> </map>
> </constructor-arg>
> </bean>
> </jaxws:inInterceptors>
> </jaxws:endpoint>
> </beans>
---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog