cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <sergey.beryoz...@iona.com>
Subject Re: Problems setting up jax-rs server
Date Thu, 20 Mar 2008 14:05:46 GMT
Hi

What version of CXF you're using ? This schema is located inside a cxf-rt-frontend-jaxrs jar...
May be that jar is not available on a classpath ?

Cheers, Sergey

> I'm following the example in:
> 
> http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html
> 
> and get this error when I fire up jetty:
> 
> [INFO] XmlBeanDefinitionReader - Loading XML bean definitions from  
> ServletContext resource [/WEB-INF/beans.xml]
> [WARN] XmlBeanDefinitionReader - Ignored XML validation warning  
> <org.xml.sax.SAXParseException: schema_reference.4: Failed to read  
> schema document 'http://cxf.apache.org/schemas/jaxrs.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>.>org.xml.sax.SAXParseException: schema_reference.4:  
> Failed to read schema document 'http://cxf.apache.org/schemas/ 
> jaxrs.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: 
> 232)
> at  
> org 
> .apache 
> .xerces.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:141)
> at  
> org 
> .apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java: 
> 358)
> at  
> org 
> .apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java: 
> 296)
> at  
> org 
> .apache 
> .xerces 
> .impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:1951)
> at  
> org 
> .apache.xerces.impl.xs.traversers.XSDHandler.getSchema(XSDHandler.java: 
> 1377)
> at  
> org 
> .apache 
> .xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:359)
> at  
> org 
> .apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java: 
> 491)
> at  
> org 
> .apache 
> .xerces 
> .impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java: 
> 2292)
> at  
> org 
> .apache 
> .xerces 
> .impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java: 
> 1797)
> at  
> org 
> .apache 
> .xerces 
> .impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:566)
> at  
> org 
> .apache 
> .xerces 
> .impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:876)
> at  
> org 
> .apache 
> .xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java: 
> 568)
> at  
> org 
> .apache 
> .xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:756)
> at  
> org 
> .apache 
> .xerces 
> .impl 
> .XMLDocumentFragmentScannerImpl 
> .scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
> $ 
> FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java: 
> 1453)
> at  
> org 
> .apache 
> .xerces 
> .impl 
> .XMLDocumentFragmentScannerImpl 
> .scanDocument(XMLDocumentFragmentScannerImpl.java:333)
> at  
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
> 524)
> at  
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 
> 580)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
> at  
> org 
> .apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java: 
> 201)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinitionReader 
> .loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinitionReader 
> .loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions

> (XmlWebApplicationContext.java:124)
> at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions

> (XmlWebApplicationContext.java:92)
> at  
> org 
> .springframework 
> .context 
> .support 
> .AbstractRefreshableApplicationContext 
> .refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
> at  
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .obtainFreshBeanFactory(AbstractApplicationContext.java:389)
> at  
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
> at org.springframework.web.context.ContextLoader.createWebApplicationContext 
> (ContextLoader.java:244)
> at org.springframework.web.context.ContextLoader.initWebApplicationContext 
> (ContextLoader.java:187)
> at org.springframework.web.context.ContextLoaderListener.contextInitialized 
> (ContextLoaderListener.java:49)
> at  
> org 
> .mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: 
> 530)
> at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
> at  
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 
> 1218)
> at  
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 
> 500)
> at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 
> 448)
> at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> at  
> org 
> .mortbay 
> .jetty 
> .handler 
> .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
> at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at  
> org 
> .mortbay 
> .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
> at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at  
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 
> 117)
> at org.mortbay.jetty.Server.doStart(Server.java:217)
> at  
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> at  
> org 
> .mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java: 
> 132)
> at  
> org 
> .mortbay 
> .jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:345)
> at  
> org 
> .mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java: 
> 286)
> at  
> org 
> .mortbay 
> .jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java: 
> 204)
> at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java: 
> 183)
> at  
> org 
> .apache 
> .maven 
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 
> 539)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor 
> .executeTaskSegments(DefaultLifecycleExecutor.java:278)
> at  
> org 
> .apache 
> .maven 
> .lifecycle 
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at  
> sun 
> .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
> 39)
> at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
> 25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
> 430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message