1 Reply Latest reply on Sep 28, 2005 11:02 AM by ryan.campbell

    JBWS79TestCase bug fix is not working

    vkathiravan

      Hello All,

      The "JBWS79TestCase" was failed in JBoss 4.0.2 in both linux and HP-UX 11.11, 11.23 platforms. I am using Java 1.4.2 version in these machines.

      I have tried the changes mentioned in the following URL, http://jira.jboss.com/jira/browse/JBWS-159

      But it didn't work for me. Is there any other code changes made in that discussion other than displayed in that URL?. Will this test case change's are available in any CVS ?

      I have done the changes in JBoss-4.0.2/testsuite/src/resources/webservice/jbws79/WEB-INF/wsdl/HelloService.wsdl as,


      *************************************

      <definitions name="HelloService" targetNamespace="http://org.jboss.test.webservice/jbws79" xmlns:tns="http://org.jboss.test.webservice/jbws79" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">




      <soap:address location="http://dev03.pub.qa.atl.jboss.com:8080/ws4ee-jbws79/HelloOne"/>




      <soap:address location="http://dev03.pub.qa.atl.jboss.com:8080/ws4ee-jbws79/HelloTwo"/>




      *************************************

      I compiled the source and run it as,

      $ ant compile-classes-only
      $ ant _jars-webservice
      $ ant one-test -Dtest=org.jboss.test.webservice.jbws79.JBWS79TestCase

      It gave the following error,

      ****************************

      18:00:28,227 ERROR [ServiceDeployer] Cannot startup webservice for: ws4ee-jbws79.war
      java.lang.IllegalStateException: Cannot obtain WSDL definition, cause: WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://dev03.pub.qa.atl.jboss.com:8080/ws4ee-jbws79/HelloOne?wsdl&resource=HelloOneService.wsdl'.: Cannot access imported wsdl [http://dev03.pub.qa.atl.jboss.com:8080/ws4ee-jbws79/HelloOne?wsdl&resource=HelloOneService.wsdl], Connection refused: java.lang.RuntimeException: Cannot access imported wsdl [http://dev03.pub.qa.atl.jboss.com:8080/ws4ee-jbws79/HelloOne?wsdl&resource=HelloOneService.wsdl], Connection refused

      ****************************


      So I replaced the "'http://dev03.pub.qa.atl.jboss.com" with my hostname in the abaove change....But that also produces the error,

      ****************************

      [junit] javax.naming.NamingException: Could not dereference object [Root exception is javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: META-INF/jaxrpc-mapping-two.xml]
      [junit] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1135)
      [junit] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:690)
      [junit] at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:120)
      [junit] at $Proxy2.lookup(Unknown Source)

      **********************************************
      Regards,
      Kathir