0
嗨,我收到以下異常石英工作已經與Spring MVC和駱駝
org.apache.camel.FailedToCreateRouteException: Failed to create route healthCheckRoute: Route(healthCheckRoute)[[From[quartz://healthCheck?cron={{sf... because of Failed to resolve endpoint: quartz://healthCheck?cron=0%2F30+*+*+*+*+%3F due to: A Quartz job already exists with the name/group: healthCheck/Camel
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:182)
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:770)
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1914)
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1670)
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1544)
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1512)
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:301)
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98)
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:776)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:485)
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
javax.servlet.GenericServlet.init(GenericServlet.java:160)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:724)
發生這種情況時,我部署並啓動我的Spring MVC的Web應用程序.Though隔離測試名/組存在案件在同一工作罰款。有誰知道這個問題。
請幫助
我只有一個途徑healthcheckroute在我的駱駝背景下,但仍然收到這個錯誤..與一個測試用例,但在春季MVC控制器工作時也能正常工作調用相同會導致錯誤 –
檢查您是否不加載駱駝上下文兩次。 – Andres
ya @Andres它的加載兩次我得到這個'org.apache.camel.management.DefaultManagementLifecycleStrategy 消息:這個CamelContext(salesForceInbound)將使用名稱:salesForceInbound-1進行註冊,因爲與已經在MBeanServer中註冊的現有名稱發生衝突。 org.apache.camel.management.DefaultManagementLifecycleStrategy 消息:此CamelContext(salesForceInbound)將使用名稱:salesForceInbound-2進行註冊,原因是與已在MBeanServer中註冊的現有名稱衝突。 –