[
https://issues.jboss.org/browse/JBAS-8701?page=com.atlassian.jira.plugin....
]
Richard Achmatowicz commented on JBAS-8701:
-------------------------------------------
These tests deploy jars containing webservice artifacts:
ws4ee-client.jar
ws4ee-admindevel.jar
ws4ee-admindevel-client.jar
and
webservice-jbas5614.ear
These artifacts contain wsdl.xml files and jboss-client.xml files making reference to wsdl
override URLs and soap:address location URLs.
These URLs were being improperly formed when the jars were created, due to substitution of
an IPv6 literal address into the URL instead of an IPv6 literal enclosed in brackets, as
per rfc2732.
I modified the following files so that the URLs are correctly constructed for both IPv4
and IPv6 addresses:
testsuite/imports/section/webservice.xml
testsuite/src/resources/webservice/admindevel/META-INF/jboss-client.xml
testsuite/src/resources/webservice/endpoint/wsdl/TestService.wsdl
testsuite/src/resources/webservice/jbas5614/META-INF/jboss-client.xml
testsuite/src/resources/webservice/jbws309/META-INF/wsdl/OrganizationService.wsdl
Most of these tests now pass:
tests-webservice:
[junit] Running org.jboss.test.webservice.admindevel.ExampleTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 24.714 sec
[junit] Running org.jboss.test.webservice.admindevel.ExplodedExampleTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 7.15 sec
[junit] Running org.jboss.test.webservice.admindevel.RedeployExampleTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 4.461 sec
[junit] Running org.jboss.test.webservice.jbas5614.JBAS5614TestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4.536 sec
but I will have to do a full run to confirm.
WebServices tests in org.jboss.webservice failing when run against
IPv6 addresses
----------------------------------------------------------------------------------
Key: JBAS-8701
URL:
https://issues.jboss.org/browse/JBAS-8701
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 6.0.0.CR1
Reporter: Richard Achmatowicz
Assignee: Alessio Soldano
Fix For: TBD-6.x
Attachments: server.log, test.log
When running the testsuite with IPv6 addresses, tests from the following test classes are
failing:
org.jboss.test.webservice.admindevel.ExampleTestCase
org.jboss.test.webservice.admindevel.ExplodedExampleTestCase
org.jboss.test.webservice.admindevel.RedeployExampleTestCase
org.jboss.test.webservice.jbas5614.JBAS5614TestCase
The details of the failures can be found here in the Hudson job for the run:
http://hudson.qa.jboss.com/hudson/view/JBoss%20AS/job/JBoss-AS-6.0.x-test...
These test failures exhibit a common error (for example, in ExampleTestCase):
Error Message
Could not dereference object
Stacktrace
javax.naming.NamingException: Could not dereference object [Root exception is
javax.xml.ws.WebServiceException: Cannot find wsdl-override:
http://fec0:0:a16:ffff::1:8080/admindevel?wsdl]
at
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)
at
org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:153)
at $Proxy0.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.test.webservice.admindevel.ExampleTestCase.setUp(ExampleTestCase.java:61)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
Caused by: javax.xml.ws.WebServiceException: Cannot find wsdl-override:
http://fec0:0:a16:ffff::1:8080/admindevel?wsdl
at
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData.getWsdlLocation(UnifiedServiceRefMetaData.java:360)
at
org.jboss.ws.core.jaxrpc.client.ServiceObjectFactoryJAXRPC.getObjectInstance(ServiceObjectFactoryJAXRPC.java:144)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
Caused by: java.io.IOException: Cannot get URL for:
http://fec0:0:a16:ffff::1:8080/admindevel?wsdl
at org.jboss.wsf.spi.util.URLLoaderAdapter.findChild(URLLoaderAdapter.java:118)
at
org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData.getWsdlLocation(UnifiedServiceRefMetaData.java:356)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira