Hello
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(NamingContext.java:632)
[java] at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:118)
[java] at $Proxy0.lookup(Unknown Source)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at ws.test.client1.main(client1.java:14)
[java] Caused by: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: META-INF/jaxrpc-mapping.xml
[java] at org.jboss.metadata.ServiceRefMetaData.getJavaWsdlMapping(ServiceRefMetaData.java:113)
[java] at org.jboss.webservice.client.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:126)
[java] at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:621)
[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(Unmarshaller.java:170)
[java] at org.apache.crimson.parser.Parser2.error(Parser2.java:3359)
[java] at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1502)
[java] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
[java] at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
[java] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
[java] at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:153)
[java] at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140)
[java] at org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMappingFactory.parse(JavaWsdlMappingFactory.java:57)
[java] at org.jboss.metadata.ServiceRefMetaData.getJavaWsdlMapping(ServiceRefMetaData.java:109)
[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......
-
client Cannot unmarshal jaxrpc-mapping-file (3 messages)
- Posted by: Alon Agmon
- Posted on: August 30 2004 04:26 EDT
Threaded Messages (3)
- the jaxrpc-mapping-file by Alon Agmon on August 30 2004 04:51 EDT
- Did u find a solution to this ? by Amit M on June 22 2005 02:56 EDT
- ClassCastExeption by Egor Sh on May 14 2006 00:54 EDT
-
the jaxrpc-mapping-file[ Go to top ]
- Posted by: Alon Agmon
- Posted on: August 30 2004 04:51 EDT
- in response to Alon Agmon
<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:impl="http://ws.test1/ws4ee"
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>ws.test1</package-type>
<namespaceURI>http://ws.test1/ws4ee</namespaceURI>
</package-mapping>
<java-xml-type-mapping>
<java-type>java.lang.String</java-type>
<root-type-qname>impl:in0</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>java.lang.String</java-type>
<root-type-qname>impl:getInfoReturn</root-type-qname>
<qname-scope>element</qname-scope>
</java-xml-type-mapping>
</java-wsdl-mapping> -
Did u find a solution to this ?[ Go to top ]
- Posted by: Amit M
- Posted on: June 22 2005 02:56 EDT
- in response to Alon Agmon
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...
PLEASE HELP ME OUTTA THIS.
Thanks
Amit. (amitm at interrait dot com) -
ClassCastExeption[ Go to top ]
- Posted by: Egor Sh
- Posted on: May 14 2006 00:54 EDT
- in response to Amit M
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.