1

I have a JAX-WS that so far ran on TomCat and JBoss. So far everything worked perfectly.

Because of various reasons I switched to Glassfish 4. I slightly adapted my war and deployed it to Glassfish. Everything seems to work regarding deployment, the web service appears under "Applications" and is enabled.

However, I am not able to find the link to the WSDL or the endpoint. Furthermore, somehow, I get the impression the web service was not really deployed as web service (I compare to some screenshots I found). This is what it displays under "edit application":

modules and components

What could have gone wrong? Is something wrong with my web.xml or should I check my annotations again?

4

1 回答 1

3

问题是过时的 web.xml。我创建了一个新的 web.xml(现在名为 glassfish-web.xml),内容如下

<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD 
GlassFish Application Server 3.1 Servlet 3.0//EN" 
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app>
  <context-root>myApp</context-root>
</glassfish-web-app>

现在它可以工作了。

于 2013-06-18T16:02:14.907 回答