Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3432

WebservicesFactory can't parse webservices.xml with javaee:descriptionGroup references

XMLWordPrintable

      webservices.xml with proper structure is refused to deploy due to parsing/validation error

      <?xml version="1.0" encoding="UTF-8"?>
      <webservices xmlns="http://java.sun.com/xml/ns/javaee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee	http://java.sun.com/xml/ns/javaee/javaee_web_services_1_3.xsd"
            version="1.3">
      
      	<description>PicketLink STS web service descriptor
      	</description>
      	<webservice-description>
      		<webservice-description-name>
      			PicketLinkSTS
      		</webservice-description-name>
      		<wsdl-file>
      			WEB-INF/wsdl/PicketLinkSTS.wsdl
      		</wsdl-file>
      		<port-component>
      			<description>PicketLink STS Port</description>
      			<port-component-name>PicketLinkSTSPort</port-component-name>
      			<wsdl-port xmlns:tns="urn:picketlink:identity-federation:sts">PicketLinkSTSPort</wsdl-port>
      			<!-- TODO: we don't have interface yet  
      			<service-endpoint-interface>endpoint.WeatherService</service-endpoint-interface>
      			-->
      			<service-impl-bean>
      				<servlet-link>PicketLinkSTS</servlet-link>
      			</service-impl-bean>
      		</port-component>
      	</webservice-description>
      </webservices>
      

      Deployer complains about both description tags (webservices/description and webservices/webservice-description/port-component/description).

      See exception:

      18:46:59,061 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."picketlink-sts.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."picketlink-sts.war".PARSE: Failed to process phase PARSE of deployment "picketlink-sts.war"
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
      Caused by: javax.xml.ws.WebServiceException: Failed to unmarshall:vfs:/content/picketlink-sts.war/WEB-INF/webservices.xml
              at org.jboss.wsf.spi.metadata.webservices.WebservicesFactory.load(WebservicesFactory.java:143)
              at org.jboss.wsf.spi.metadata.webservices.WebservicesFactory.loadFromVFSRoot(WebservicesFactory.java:126)
              at org.jboss.as.webservices.deployers.WebservicesDescriptorDeploymentProcessor.deploy(WebservicesDescriptorDeploymentProcessor.java:48)
              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
              ... 5 more
      Caused by: java.lang.IllegalStateException: Unexpected element: description
              at org.jboss.wsf.spi.metadata.webservices.WebservicesFactory.parseWebservices(WebservicesFactory.java:237)
              at org.jboss.wsf.spi.metadata.webservices.WebservicesFactory.parse(WebservicesFactory.java:203)
              at org.jboss.wsf.spi.metadata.webservices.WebservicesFactory.load(WebservicesFactory.java:139)
              ... 8 more
      

              rhn-engineering-ema Jim Ma
              pskopek@redhat.com Peter Skopek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: