users@glassfish.java.net

Control a webservice endpoint url

From: Alberto Gori <A.Gori_at_siaspa.com>
Date: Tue, 3 Apr 2012 16:05:36 +0000

Hi all,
I can't take control on webservices (JAX-WS) endpoint urls in Glassfish 3.1.2. In my situation I am not allowed to edit webservices annotations and classes, so I should take advantage from glassfish-web.xml. My webservices are deployed inside the web module of a EAR.

I tried this glassfish-web.xml (webmodule/WEB-INF/glassfish-web.xml):

<?xml version="1.0" encoding="UTF-8"?>
<!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>
<webservice-endpoint>
               <port-component-name>BaseServicesImpl</port-component-name>
                <endpoint-address-uri>/jmil/services/base</endpoint-address-uri>
</webservice-endpoint>

</glassfish-web-app>


But during deployments I see these messages on servlet.log:

[#|2012-04-03T17:35:40.965+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|DPL8007: Unsupported deployment descriptors element port-component-name value BaseServicesImpl|#]

[#|2012-04-03T17:35:40.965+0200|WARNING|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=18;_ThreadName=Thread-2;|DPL8007: Unsupported deployment descriptors element endpoint-address-uri value /jmil/services/base|#]

Any idea? Thanks.

Alberto Gori