Announcement Announcement Module
Collapse
No announcement yet.
Developing Apache CXF - JAXWS webservice, using STS and jdk 1.6 maven 3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Developing Apache CXF - JAXWS webservice, using STS and jdk 1.6 maven 3

    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/cxf-beans.xml]
    Mar 13, 2013 2:49:23 PM org.springframework.util.xml.SimpleSaxErrorHandler warning
    WARNING: Ignored XML validation warning
    org.xml.sax.SAXParseException: src-import.0: Faile
    d to read imported schema document 'null'.

    cxf fails to load my beans, hence service fails. I am not sure what needs to be done to resolve it.

    STS 3.1
    JDK 1.6
    Apache CXF 2.7
    Maven 3

    generating WSDL from java code using STS ide, through create webservice approach. It generates WSDL, adds cxf servlet entry into web.xml. creates cxf-beans.xml for my jaxws endpoint bean. still fails with above error when deploying into tomcat.

    13, 2013 2:49:23 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    Mar 13, 2013 2:49:23 PM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    Mar 13, 2013 2:49:23 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing Root WebApplicationContext: startup date [Wed Mar 13 14:49:23 CDT 2013]; root of context hierarchy
    Mar 13, 2013 2:49:23 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/cxf-beans.xml]
    Mar 13, 2013 2:49:23 PM org.springframework.util.xml.SimpleSaxErrorHandler warning
    WARNING: Ignored XML validation warning
    org.xml.sax.SAXParseException: src-import.0: Failed to read imported schema document 'null'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(ErrorHandlerWrapper.java:232)
    at org.apache.xerces.util.ErrorHandlerWrapper.warning (ErrorHandlerWrapper.java:141)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(XMLErrorReporter.java:358)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.re portSchemaWarning(XSDHandler.java:1837)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.ge tSchema(XSDHandler.java:1298)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.ge tSchema(XSDHandler.java:1240)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.co nstructTrees(XSDHandler.java:611)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.pa rseSchema(XSDHandler.java:403)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.pa rseSchema(XSDHandler.java:381)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.parse Schema(XMLSchemaValidator.java:2250)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.findS chemaGrammar(XMLSchemaValidator.java:2178)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handl eStartElement(XMLSchemaValidator.java:1724)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.start Element(XMLSchemaValidator.java:568)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleSt artElement(XMLNamespaceBinder.java:832)
    at org.apache.xerces.impl.XMLNamespaceBinder.startEle ment(XMLNamespaceBinder.java:568)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.startEl ement(XMLDTDValidator.java:796)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanStartElement(XMLDocumentFragmentScannerImp l.java:752)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$Cont entDispatcher.scanRootElementHook(XMLDocumentScann erImpl.java:927)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(XMLDocument FragmentScannerImpl.java:1519)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(XMLDocumentFragmentScannerImpl.ja va:333)
    at org.apache.xerces.parsers.StandardParserConfigurat ion.parse(StandardParserConfiguration.java:529)
    at org.apache.xerces.parsers.StandardParserConfigurat ion.parse(StandardParserConfiguration.java:585)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParse r.java:147)
    at org.apache.xerces.parsers.DOMParser.parse(DOMParse r.java:221)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(D ocumentBuilderImpl.java:201)
    at org.springframework.beans.factory.xml.DefaultDocum entLoader.loadDocument(DefaultDocumentLoader.java: 75)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:388)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:334)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:302)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:149)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:124)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:93)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:130)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:467)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:397)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:282)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:204)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:4797)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:5291)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Mar 13, 2013 2:49:23 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
    Mar 13, 2013 2:49:23 PM org.springframework.util.xml.SimpleSaxErrorHandler warning
    WARNING: Ignored XML validation warning
    org.xml.sax.SAXParseException: src-import.0: Failed to read imported schema document 'null'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(ErrorHandlerWrapper.java:232)
    at org.apache.xerces.util.ErrorHandlerWrapper.warning (ErrorHandlerWrapper.java:141)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(XMLErrorReporter.java:358)
Working...
X