4 Replies Latest reply on Jun 6, 2006 2:59 PM by Thomas Diesler

    error when declaringWebMethod  that throws an Exception

    emailms box Newbie

      I'm using jboss-4.0.4.GA with jbossws-1.0.0.GA
      When trying to declare

      ...
       @WebMethod
       public MyData getData(int key, String user) throws Exception{
      .....
      


      I get the following deploment error


      16:13:10,296 INFO [ScannerThread] [jboss.ejb3.EJB3Deployer] Deployed: file:/D:/java/jboss/jboss-4.0.4.GA/server/default/deploy/MySoapTest.jar
      16:13:10,328 INFO [ScannerThread] [ws.server.WSDLFilePublisher] WSDL published to: file:/D:/java/jboss/jboss-4.0.4.GA/server/default/data/wsdl/MySoapTest.jar/SoapUserFacadeImplService31592.wsdl
      16:13:10,515 ERROR [ScannerThread] [wsdl.xmlschema.JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'tns:Throwable' to a
      (n) 'type definition' component.
      16:13:10,593 ERROR [ScannerThread] [wsdl.xmlschema.JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'tns:Throwable' to a
      (n) 'type definition' component.
      16:13:10,640 ERROR [ScannerThread] [wsdl.xmlschema.JBossXSErrorHandler] JBossWS_bean.soap.stargate.cti2.com_jaws31602.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-reso
      lve: Cannot resolve the name 'tns:Throwable' to a(n) 'type definition' component.
      16:13:10,703 ERROR [ScannerThread] [wsdl.xmlschema.JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'tns:Throwable' to a
      (n) 'type definition' component.
      16:13:10,750 ERROR [ScannerThread] [wsdl.xmlschema.JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'tns:Throwable' to a
      (n) 'type definition' component.
      16:13:10,828 ERROR [ScannerThread] [jboss.deployment.MainDeployer] Could not start deployment: file:/D:/java/jboss/jboss-4.0.4.GA/server/default/deploy/MySoapTest.jar
      org.jboss.ws.WSException: Element message found in jaxrpc-mapping but not in the schema: {http://bean.soap.test.com/jaws}Exception
      at org.jboss.ws.jaxb.SchemaBindingBuilder.processXmlElementName(SchemaBindingBuilder.java:289)
      at org.jboss.ws.jaxb.SchemaBindingBuilder.processNonArrayType(SchemaBindingBuilder.java:189)
      ....


      but when I use Throwable instead ,

      ...
       @WebMethod
       public MyData getData(int key, String user) throws Throwable{
      .....
      


      I do not get errors

      Any ideas ???