[
https://issues.apache.org/jira/browse/CAMEL-13890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912246#comment-16912246
]
Claus Ibsen edited comment on CAMEL-13890 at 8/21/19 12:26 PM:
---------------------------------------------------------------
Ah so in the camel-cxf JAR there are spring mapping files to map XSD namespaces
to local files so it will not load over the internet.
And it has all versions
http\://camel.apache.org/schema/cxf/camel-cxf-2.18.1.xsd=schema/cxfEndpoint.xsd
And also without version number (most ppl use that)
So it may be something on your IBM WebSphere that causes something to load over
the internet. You should be able to start up without internet connectivity
was (Author: davsclaus):
You should NOT use versions in the XSD files ideally as then the XSD is not
loaded over the internet
Just use
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf-spring.xsd
Or use the 2nd last version, eg 2.18.0 if you really must. As the 2.18.1
version is not in the JAR file, eg chicken and egg
> Starting from yesterday cfxEndpoint wont start
> ----------------------------------------------
>
> Key: CAMEL-13890
> URL: https://issues.apache.org/jira/browse/CAMEL-13890
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Reporter: Thomas Juul Malthesen
> Assignee: Zoran Regvart
> Priority: Blocker
>
> Starting from yesterday suddenly all cfxEndpoints won't start. This is in
> production and all environments and on local machines.
> My suspicion is some problems loading xmlns from camel. I get 403 - forbidden:
>
> https://camel.apache.org/schema/cxf/
> http://cxf.apache.org/jaxrs
>
> It gives this exception:
>
> springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in
> XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: White spaces
> are required between publicId and systemId.
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
> at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
> at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
> at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
> at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:613)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:514)
> at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
> at
> com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2376)
> at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1004)
> at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6566)
> at
> com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:467)
> at
> com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:462)
> at
> com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:1132)
> at
> com.ibm.ws.webcontainer.osgi.WebContainer.startModule(WebContainer.java:937)
> at
> com.ibm.ws.app.manager.module.internal.ModuleHandlerBase.deployModule(ModuleHandlerBase.java:99)
> at
> com.ibm.ws.app.manager.module.internal.DeployedModuleInfoImpl.installModule(DeployedModuleInfoImpl.java:49)
> at
> com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployModules(DeployedAppInfoBase.java:429)
> at
> com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployApp(DeployedAppInfoBase.java:415)
> at
> com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.install(WARApplicationHandlerImpl.java:65)
> at
> com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:140)
> at
> com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1258)
> at
> com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:873)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> at java.lang.Thread.run(Thread.java:812)
> Caused by: org.xml.sax.SAXParseException: White spaces are required between
> publicId and systemId.
>
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)