Java Reference
In-Depth Information
<version>5</version>
<scope>provided</scope>
</dependency>
Then you have to replace the web-app declaration. Look in your project's src/main/webapp/
WEB-INFfolder for the web.xmlfile, and replace the following code:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>My Service</display-name>
</web-app>
with the Servlet 2.5 version specified here:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>My Service</display-name>
</web-app>
You also need to set up dependencies for Metro only if you are doing any Metro-specific
code (like WS-Addressing on the client, or a stateful web service that relies on Metro's export
mechanism):
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>webservices-rt</artifactId>
<version>1.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>webservices-api</artifactId>
<version>1.3</version>
<scope>provided</scope>
</dependency>
Search WWH ::




Custom Search