I am using JBossAS4.0.5 with JBossWS1.0.3. I have followed JBossWS user guide to developed
a JSR181 based web service. I started with WSDL and generated Java interface using
wstools.sh. After implementing the interface, I packaged the jaxrpc-mapping.xml,
application-client.xml, jboss-client.xml, web.xml, WSDL file and compiled classes into a
WAR file. The deployment went fine and JBoss 4.0.5 server starts fine. I can access my
webservice using a browser. However when I access it using a Java client, I get following
error:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Not supported
xsdType: anyType, hashCode=-842881210
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
er.java:156)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
:126)
at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshall
erImpl.java:63)
... 32 more
Caused by: java.lang.IllegalStateException: Not supported xsdType: anyType, hash
Code=-842881210
at org.jboss.xb.binding.SimpleTypeBindings.unmarshal(SimpleTypeBindings.
java:940)
at org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler.unmarshal
(CharactersHandler.java:111)
at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHa
ndler.unmarshal(RtCharactersHandler.java:64)
at org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler.unmarshal
(CharactersHandler.java:116)
at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHa
ndler.unmarshal(RtCharactersHandler.java:64)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endEle
ment(SundayContentHandler.java:599)
more clipboard.txt
Caused by:
org.jboss.xb.binding.JBossXBException: Failed to parse source: Not su
pported xsdType: anyType, hashCode=-842881210
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
er.java:156)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
:126)
at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshall
erImpl.java:63)
... 32 more
Caused by: java.lang.IllegalStateException: Not supported xsdType: anyType, hash
Code=-842881210
at org.jboss.xb.binding.SimpleTypeBindings.unmarshal(SimpleTypeBindings.
java:940)
at org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler.unmarshal
(CharactersHandler.java:111)
at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHa
ndler.unmarshal(RtCharactersHandler.java:64)
at org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler.unmarshal
(CharactersHandler.java:116)
at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHa
ndler.unmarshal(RtCharactersHandler.java:64)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endEle
ment(SundayContentHandler.java:599)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endEle
ment(SundayContentHandler.java:133)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHan
dler.endElement(SaxJBossXBParser.java:273)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
ce)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
er.java:152)
... 34 more
It looks like some schema has xsd:anyType in it. However neither WSDL nor any imported
schema has anyType in it.
Please help understand why this error is coming.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985182#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...