Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to locate Spring Namespace for JAX-WS
    text
    copied!<p>I want to integrate JAX-WS to my Spring project. Found this link: <a href="http://jax-ws-commons.java.net/spring/" rel="noreferrer">http://jax-ws-commons.java.net/spring/</a></p> <p>I adopted it and integrated it to my <em>applicationContext.xml</em>: </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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:task="http://www.springframework.org/schema/task" xmlns:ws="http://jax-ws.dev.java.net/spring/core" xmlns:wss="http://jax-ws.dev.java.net/spring/servlet" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd http://jax-ws.dev.java.net/spring/core http://jax-ws.dev.java.net/spring/core.xsd http://jax-ws.dev.java.net/spring/servlet http://jax-ws.dev.java.net/spring/servlet.xsd"&gt; &lt;context:annotation-config /&gt; &lt;context:component-scan base-package="cloud" /&gt; &lt;task:annotation-driven/&gt; &lt;wss:binding url="/notification" service="#notificationService"&gt;&lt;/wss:binding&gt; &lt;ws:service id="notificationService" bean="#notificationImpl"&gt;&lt;/ws:service&gt; &lt;bean id="notificationImpl" class="cloud.balancer.Notification" /&gt; &lt;/beans&gt; </code></pre> <p>But every time I start Tomcat, I get this exception:</p> <blockquote> <p>SEVERE: Exception sending context initialized event to listener instance of class <code>org.springframework.web.context.ContextLoaderListener</code> <code>org.springframework.beans.factory.parsing.BeanDefinitionParsingException</code>: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [<code>http://jax-ws.dev.java.net/spring/servlet</code>] Offending resource: ServletContext resource [<code>/WEB-INF/applicationContext.xml</code>]</p> </blockquote> <p>Eclipse does not report any errors about the namespace. I found a few similar problems with google, but none fixed my error.</p> <p>Thanks for your help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload