-
1. Generated double-slash in webservice URL
asoldano May 3, 2011 3:32 PM (in response to akulikov)Does the url with double slash still work? If not, please create a jira. This appears to be a bug with an edge case. Btw, do you really want to deploy to the / context root?
-
2. Generated double-slash in webservice URL
akulikov May 3, 2011 3:58 PM (in response to asoldano)Yes web services are working and “/” context root shouldstay.
Double-slash is making tree small problems:
1. we have a clients for an existing web services
2. we got some kind custom build flush map which is using current endpoint address(no way to rebuild it)
3. we are government organization - firewall and load-balancer rules is finalized.
Currently I am moving web services from current “WAR” fileto a new with a different context root. A lot of job. I am hoping to find simplesolution instance of rework part of the project.
-
-
4. Generated double-slash in webservice URL
akulikov May 3, 2011 4:32 PM (in response to asoldano)Thank you
here is more info
Java code:
package org.anatoliy;
importjavax.jws.WebService;
importjavax.jws.soap.SOAPBinding;
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class MyEchoClass {
public StringechoOne(String input)
{
return "returns:" + input ;
}
}
mapping in web.xml
<servlet>
<servlet-name>TestEcho</servlet-name>
<servlet-class>org.anatoliy.MyEchoClass</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestEcho</servlet-name>
<url-pattern>/testEcho</url-pattern>
</servlet-mapping>
Jboss-web.xml
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE jboss-webPUBLIC "-//JBoss//DTDWeb Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
<jboss-web>
<class-loading/>
<security-domain>java:/jaas/iseek</security-domain>
<context-root>uit</context-root>
<virtual-host>iseek.org</virtual-host>
<use-session-cookies>true</use-session-cookies>
<replication-config/>
</jboss-web>
jbossws/services will show:
Endpoint Name jboss.ws:context=uit,endpoint=TestEchoEndpoint Address http://localhost:8080/uit/testEcho
By changing context-root in jboss-web.xml from uit to “/”
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE jboss-webPUBLIC "-//JBoss//DTDWeb Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
<jboss-web>
<class-loading/>
<security-domain>java:/jaas/iseek</security-domain>
<context-root>/</context-root>
<virtual-host>iseek.org</virtual-host>
<use-session-cookies>true</use-session-cookies>
<replication-config/>
</jboss-web>
I will have a endpoint address with a double slash
Endpoint Name jboss.ws:context=,endpoint=TestEcho EndpointAddress http://localhost:8080//testEcho
Both configurations is working.
-
5. Re: Generated double-slash in webservice URL
xdat26 Feb 2, 2015 3:58 AM (in response to asoldano)hi.
i have the same problem on jboss5.1.GA(jdk-6) and jboss-cxf3.4.0
is there any way to solve the problem?