client Cannot unmarshal jaxrpc-mapping-file


XML & Web services: client Cannot unmarshal jaxrpc-mapping-file

  1. client Cannot unmarshal jaxrpc-mapping-file (3 messages)

    im working on a webservice's application client with jboss-4rc
    the client's jar contain the full WSDL and original mapping file,the deployment of the app-client was clean
    but at runtime - after the initialcontext
    an exception is thrown here :

    javax.xml.rpc.Service service = (javax.xml.rpc.Service)ctx.lookup("java:comp/env/service/HOServiceJSE");

    the exception's stack:

      [java] got InitialContext
     [java] log4j:WARN No appenders could be found for logger (org.jboss.xml.binding.Unmarshaller).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] naming: Could not dereference object
     [java] cause: Cannot unmarshal jaxrpc-mapping-file: META-INF/jaxrpc-mapping.xml

     [java] javax.naming.NamingException: Could not dereference object [Root exception is javax.xml.rpc.JAXRPCException: Can
    -mapping-file: META-INF/jaxrpc-mapping.xml]
     [java] at org.jnp.interfaces.NamingContext.lookup(
     [java] at$EncContextProxy.invoke(
     [java] at $Proxy0.lookup(Unknown Source)
     [java] at javax.naming.InitialContext.lookup(
     [java] at ws.test.client1.main(
     [java] Caused by: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: META-INF/jaxrpc-mapping.xml
     [java] at org.jboss.metadata.ServiceRefMetaData.getJavaWsdlMapping(
     [java] at org.jboss.webservice.client.ServiceObjectFactory.getObjectInstance(
     [java] at javax.naming.spi.NamingManager.getObjectInstance(
     [java] at org.jnp.interfaces.NamingContext.lookup(
     [java] ... 4 more
     [java] Caused by: org.xml.sax.SAXException: Element type "java-wsdl-mapping" is not declared. @ *unknown*[3,-1]
     [java] at org.jboss.xml.binding.Unmarshaller$MetaDataErrorHandler.error(
     [java] at org.apache.crimson.parser.Parser2.error(
     [java] at org.apache.crimson.parser.Parser2.maybeElement(
     [java] at org.apache.crimson.parser.Parser2.parseInternal(
     [java] at org.apache.crimson.parser.Parser2.parse(
     [java] at org.apache.crimson.parser.XMLReaderImpl.parse(
     [java] at org.jboss.xml.binding.Unmarshaller.unmarshal(
     [java] at org.jboss.xml.binding.Unmarshaller.unmarshal(
     [java] at org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMappingFactory.parse(
     [java] at org.jboss.metadata.ServiceRefMetaData.getJavaWsdlMapping(
     [java] ... 7 more

    i checked the jndi name in jboss's jndi tree and it looks fine , the app-client descriptors seem fine too

    im really stuck here for some time now ,
    so if anybody has an idea......

    Threaded Messages (3)

  2. the jaxrpc-mapping-file[ Go to top ]

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

    <java-wsdl-mapping xmlns=""



  3. Did u find a solution to this ?[ Go to top ]

    Hi Alon,

    If you are still seeing this site, could you please let me know if you could go past the problem that you have stated in this thread (javax.naming.NamingException: Could not dereference object [Root exception is javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file)...Cuz, Now I am stuck on it for a long time....and the only search that google gives me on this problem is your name...


    Amit. (amitm at interrait dot com)
  4. ClassCastExeption[ Go to top ]

    Hi, I have same error: java.lang.ClassCastException: org.jboss.webservice.client.ServiceImpl - in simple java app it works fine, but whet I'm trying to get Servise in AppServer: javax.xml.rpc.Service service = ServiceFactory.newInstance().createService(new QName(sServiceName)); i have different result.