0 Replies Latest reply on Nov 11, 2010 5:13 AM by Till Essers

    @SchemaValidation: cannot deploy my WebService

    Till Essers Newbie

      Hi

       

      We made a WebService using the JBossWS native stack using the top down approach and are deploying it on a JBoss 5.0.1.

      We have 2 xsd files (one including the other) and a wsdl file.

      Everything is working fine, until we add the @SchemaValidation annotation to the endpoint. Now all we get is:

       

      10:16:32,267 INFO  [TomcatDeployment] deploy, ctxPath=/ri-bahnnet-ws
      10:16:32,769 INFO  [TomcatDeployment] undeploy, ctxPath=/ri-bahnnet-ws

      INFO  [TomcatDeployment] deploy, ctxPath=/mywebservice

      INFO  [TomcatDeployment] undeploy, ctxPath=/mywebservice

       

       

      After this JBoss undeploys the whole ear and freezes.

       

      What are we doing wrong?

       

      edit:

       

      Now we got an error message and a stacktrace:

       

       

       

      Caused by: javax.xml.ws.WebServiceException: Unsupported feature: class org.jbos

      s.ws.feature.SchemaValidationFeature

              at org.jboss.ws.metadata.builder.jaxws.EndpointFeatureProcessor.processE

      ndpointFeatures(EndpointFeatureProcessor.java:117)

              at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu

      ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:138)

              at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP

      roviderOrWebService(JAXWSServerMetaDataBuilder.java:50)

              at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMeta

      Data(JAXWSMetaDataBuilderJSE.java:61)

              at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(Unifie

      dMetaDataDeploymentAspect.java:64)

              at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy

      (DeploymentAspectManagerImpl.java:129)

              at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(A

      rchiveDeployerHook.java:76)

              at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.i

      nternalDeploy(AbstractWebServiceDeployer.java:60)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(

      AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer

      Wrapper.java:171)

              ... 30 more

       

      edit2:

      I added the annotation to the generated interface, now I'm getting this stacktrace:

      11:06:12,006 ERROR [SOAPFaultHelperJAXWS] SOAP request exception

      java.lang.ClassCastException: org.jboss.ws.core.soap.EnvelopeBuilderDOM cannot b

      e cast to org.jboss.ws.core.soap.EnvelopeBuilder

              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactor

      yImpl.java:289)

              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactor

      yImpl.java:193)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan

      dlerImpl.java:449)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand

      lerImpl.java:293)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl

      .java:203)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request

      HandlerImpl.java:129)

              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(Abstract

      EndpointServlet.java:85)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi

      lter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit

      yAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv

      e.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce

      ss(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok

      e(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC

      onnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44

      7)

              at java.lang.Thread.run(Thread.java:619)

      11:06:12,034 ERROR [RequestHandlerImpl] Error processing web service request

      org.jboss.ws.WSException: java.lang.ClassCastException: org.jboss.ws.core.soap.M

      essageFactoryImpl cannot be cast to org.jboss.ws.core.soap.MessageFactoryImpl

              at org.jboss.ws.WSException.rethrow(WSException.java:68)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand

      lerImpl.java:330)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl

      .java:203)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request

      HandlerImpl.java:129)

              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(Abstract

      EndpointServlet.java:85)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi

      lter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit

      yAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv

      e.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce

      ss(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok

      e(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC

      onnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44

      7)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.ClassCastException: org.jboss.ws.core.soap.MessageFactoryIm

      pl cannot be cast to org.jboss.ws.core.soap.MessageFactoryImpl

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.createSOAPMessage(SOAPFa

      ultHelperJAXWS.java:288)

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultH

      elperJAXWS.java:256)

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(

      SOAPFaultHelperJAXWS.java:187)

              at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessage

      FromException(SOAP11BindingJAXWS.java:102)

              at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBindin

      g.java:650)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan

      dlerImpl.java:490)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand

      lerImpl.java:293)

              ... 24 more

      11:06:12,051 ERROR [[MyWS]] Servlet.service() for servlet MyWS threw exception

      java.lang.ClassCastException: org.jboss.ws.core.soap.MessageFactoryImpl cannot b

      e cast to org.jboss.ws.core.soap.MessageFactoryImpl

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.createSOAPMessage(SOAPFa

      ultHelperJAXWS.java:288)

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultH

      elperJAXWS.java:256)

              at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(

      SOAPFaultHelperJAXWS.java:187)

              at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessage

      FromException(SOAP11BindingJAXWS.java:102)

              at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBindin

      g.java:650)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan

      dlerImpl.java:490)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand

      lerImpl.java:293)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl

      .java:203)

              at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request

      HandlerImpl.java:129)

              at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(Abstract

      EndpointServlet.java:85)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi

      lter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

      icationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

      ilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

      alve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

      alve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit

      yAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv

      e.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce

      ss(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok

      e(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

      ava:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

      ava:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC

      onnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

      ve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav

      a:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java

      :829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce

      ss(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44

      7)

              at java.lang.Thread.run(Thread.java:619)