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
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to