0 Replies Latest reply on Jul 8, 2005 12:22 PM by Jing Song

    JbossWS threw JAXRPCException--jaxrpc-mapping.xml

    Jing Song Newbie

      Tom,

      I have used Jboss 4.0 to successfully publish HelloBean to WSDL, but using the same jaxrpc-mappings.xml with package-type change, it threw:

      RuntimeMBeanException: null Cause: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: jaxrpc_mappings.xml).



      Since you are the one to write this piece of code to throw JAXRPCException, therefore, you might know why.

      Thanks for the help.



      Here is the success one:



      <?xml version="1.0" encoding="UTF-8"?>



      <!DOCTYPE java-wsdl-mapping PUBLIC

      "-//IBM Corporation, Inc.//DTD J2EE JAX-RPC mapping 1.0//EN"

      "http://www.ibm.com/webservices/dtd/j2ee_jaxrpc_mapping_1_0.dtd">



      <java-wsdl-mapping>

      <package-mapping>

      <package-type>de.hpi.dcl.asg</package-type>

      http://Asg

      </package-mapping>

      </java-wsdl-mapping>



      Here is mine failed one:

      <?xml version="1.0" encoding="UTF-8"?>



      <!DOCTYPE java-wsdl-mapping PUBLIC

      "-//IBM Corporation, Inc.//DTD J2EE JAX-RPC mapping 1.0//EN"

      "http://www.ibm.com/webservices/dtd/j2ee_jaxrpc_mapping_1_0.dtd">



      <java-wsdl-mapping>

      <package-mapping>

      <package-type>com.intuit.bob.partyref</package-type>

      http://com.intuit.bob.partyref

      </package-mapping>

      </java-wsdl-mapping>





      Also, I used your sample one, it failed too:



      <?xml version="1.0" encoding="UTF-8"?>

      <java-wsdl-mapping

      xmlns="http://java.sun.com/xml/ns/j2ee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee

      http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"

      version="1.1">



      <package-mapping>

      <package-type>com.intuit.bob.partyref</package-type>

      http://com.intuit.bob.partyref

      </package-mapping>



      </java-wsdl-mapping>