Xavier Dury [
https://community.jboss.org/people/xdury] created the discussion
"Re: Migrating secured WS from JBoss 5.1 to 7.1.1"
To view the discussion, visit:
https://community.jboss.org/message/780379#780379
--------------------------------------------------------------
Ok, I installed the last version of JBossWS with -Dspring=true.
Now, jbossws-cxf.xml seems to be read but there's a problem with the schema
validation:
14:47:11,737 WARN [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC
service thread 1-7) Ignored XML validation warning: org.xml.sax.SAXParseException;
systemId:
http://cxf.apache.org/schemas/jaxws.xsd;
http://cxf.apache.org/schemas/jaxws.xsd; lineNumber: 30; columnNumber: 145;
schema_reference.4: Failed to read schema document '
http://cxf.apache.org/schemas/configuration/cxf-beans.xsd
http://cxf.apache.org/schemas/configuration/cxf-beans.xsd';, because 1) could not find
the document; 2) the document could not be read; 3) the root element of the document is
not <xsd:schema>.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:97)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2525)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1834)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(XSDHandler.java:1755)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(XSDHandler.java:905)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:559)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:554)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2526)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1813)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
[xercesImpl-2.9.1-jbossas-1.jar:]
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
[xercesImpl-2.9.1-jbossas-1.jar:]
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
[xercesImpl-2.9.1-jbossas-1.jar:]
at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
[spring-beans.jar:3.0.7.RELEASE]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
[spring-beans.jar:3.0.7.RELEASE]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
[spring-beans.jar:3.0.7.RELEASE]
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
[spring-beans.jar:3.0.7.RELEASE]
at
org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.loadAdditionalConfig(SpringBusHolder.java:190)
[jbossws-cxf-server.jar:4.1.0.Final]
at
org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.configure(SpringBusHolder.java:138)
[jbossws-cxf-server.jar:4.1.0.Final]
at
org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:129)
[jbossws-cxf-server.jar:4.1.0.Final]
at
org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:68)
[jbossws-cxf-server.jar:4.1.0.Final]
at
org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
[jbossws-jboss711-server-integration.jar:4.1.0.Final]
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_03]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
14:47:11,792 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed
to start service
jboss.deployment.subunit."myproject.ear"."my_webservice.jar".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.subunit."myproject.ear"."my_webservice.jar".INSTALL:
Failed to process phase INSTALL of subdeployment "my_webservice.jar" of
deployment "myproject.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119)
[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
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.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_03]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 106
in XML document from resource loaded through InputStream is invalid; nested exception is
org.xml.sax.SAXParseException; systemId:
http://cxf.apache.org/schemas/jaxws.xsd;
http://cxf.apache.org/schemas/jaxws.xsd; lineNumber: 106; columnNumber: 63; src-resolve:
Cannot resolve the name 'cxf-beans:beanAttributes' to a(n) 'attribute
group' component.
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at
org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.loadAdditionalConfig(SpringBusHolder.java:190)
at
org.jboss.wsf.stack.cxf.configuration.SpringBusHolder.configure(SpringBusHolder.java:138)
at
org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:129)
at
org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:68)
at
org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)
[jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.xml.sax.SAXParseException; systemId:
http://cxf.apache.org/schemas/jaxws.xsd;
http://cxf.apache.org/schemas/jaxws.xsd;
lineNumber: 106; columnNumber: 63; src-resolve: Cannot resolve the name
'cxf-beans:beanAttributes' to a(n) 'attribute group' component.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2514)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1393)
at
org.apache.xerces.impl.xs.traversers.XSDAttributeGroupTraverser.traverseLocal(XSDAttributeGroupTraverser.java:77)
at
org.apache.xerces.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(XSDAbstractTraverser.java:583)
at
org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.processComplexContent(XSDComplexTypeTraverser.java:1071)
at
org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(XSDComplexTypeTraverser.java:776)
at
org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:262)
at
org.apache.xerces.impl.xs.traversers.XSDComplexTypeTraverser.traverseLocal(XSDComplexTypeTraverser.java:134)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:366)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseGlobal(XSDElementTraverser.java:237)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1255)
at
org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:569)
at
org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:554)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2526)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1813)
at
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
... 13 more
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/780379#780379]
Start a new discussion in JBoss Web Services at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]