[
https://issues.apache.org/jira/browse/CAMEL-13890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912181#comment-16912181
]
Thomas Juul Malthesen commented on CAMEL-13890:
-----------------------------------------------
That was my suspicion to. But of course that should not be a problem when I
have a schemaLocaltion which I do.
My XML looks like this:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:cxf="http://camel.apache.org/schema/cxf"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf-2.18.1-spring.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<cxf:cxfEndpoint id="email.hent.service"
address="${CICS_SERVICES_URL}/services/RSBLA" serviceClass="rsbla.RSBLA">
<!-- cxf:inInterceptors>
<ref bean="loggingInInterceptor" />
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="loggingOutInterceptor" />
</cxf:outInterceptors-->
</cxf:cxfEndpoint>
If I have the cxf:cxfEndpoint inside my applicationContext.xml it fails if I
remove it it starts up.
I can't figure out why. It is in all our running Apache Camel applications that
uses cxf:cxfEndpoint, and it started yesterday afternoon - or at least after
restart this morning.
> 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
> 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)