Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Wildfly/Camel inside eclipse fails to resolve JBOSS_HOME keyword(Execution inside of eclipse fails but works when run from dos shell)
Wildfly/Camel inside eclipse fails to resolve JBOSS_HOME keyword [message #1780677] Thu, 25 January 2018 16:31 Go to next message
Dennis Klotz is currently offline Dennis KlotzFriend
Messages: 4
Registered: July 2009
Junior Member
Greetings,

I have oxygen.2 with wildfly 10 as a server inside of eclipse. If I run inside of eclipse then camel fails to resolve an environment variable.

Caused by: java.lang.IllegalArgumentException: Cannot find system environment with key: JBOSS_HOME


If I start the wildfly server outside of eclipse with standalone.bat from a DOS command shell, it works fine. No errors!

I've been working on this problem for a couple of days trying to find the magic bullet.

Yes the environment variable is there. It works when run standalone. Other developers are using older versions of eclipse and work just fine. :(

Any ideas where I should look?

11:20:31,707 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Apache Camel 2.19.3 (CamelContext: dlimageservice-camel-context) is shutting down
11:20:31,710 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-7) WELD-000145: Bean identifier index built:
  BeanIdentifierIndex [hash=-627014625, indexed=11] 
     0: WELD%AbstractBuiltInBean%/C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war%HttpSession
     1: WELD%AbstractBuiltInBean%/C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/commons-fileupload-1.3.2.jar%HttpSession
     2: WELD%AbstractBuiltInBean%/C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/hawtio-system-1.5.6.jar%HttpSession
     3: WELD%AbstractBuiltInBean%/C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/sisu-inject-bean-2.3.4.jar%HttpSession
     4: WELD%AbstractBuiltInBean%com.sun.jsf-impl:main.additionalClasses%HttpSession
     5: WELD%AbstractBuiltInBean%org.hibernate.validator.cdi:main.additionalClasses%HttpSession
     6: WELD%AbstractBuiltInBean%org.jberet.jberet-core:main.additionalClasses%HttpSession
     7: WELD%AbstractBuiltInBean%org.jboss.as.jsf:main.additionalClasses%HttpSession
     8: WELD%AbstractBuiltInBean%org.jboss.jts:main.additionalClasses%HttpSession
     9: WELD%AbstractBuiltInBean%org.jboss.resteasy.resteasy-cdi:main.additionalClasses%HttpSession
    10: WELD%AbstractBuiltInBean%org.wildfly.extension.messaging-activemq:main.additionalClasses%HttpSession

11:20:31,729 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-7) EE modules: [BeanDeploymentModule [id=deployment.hawtio-default-1.5.6.war:main, web=true, managers=[/C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war, /C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/sisu-inject-bean-2.3.4.jar, /C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/hawtio-system-1.5.6.jar, /C:/Development/ApplicationServers/wildfly-10.1.0.Final/bin/content/hawtio-default-1.5.6.war/WEB-INF/lib/commons-fileupload-1.3.2.jar]], BeanDeploymentModule [id=BeanDeploymentModules.DEFAULT, web=false, managers=[org.jboss.resteasy.resteasy-cdi:main.additionalClasses, org.jberet.jberet-core:main.additionalClasses, com.sun.jsf-impl:main.additionalClasses, org.hibernate.validator.cdi:main.additionalClasses, org.jboss.jts:main.additionalClasses, org.jboss.as.jsf:main.additionalClasses, org.hibernate.validator:main.additionalClasses, org.wildfly.extension.messaging-activemq:main.additionalClasses]]]
11:20:31,753 INFO  [org.wildfly.extension.camel] (MSC service thread 1-5) Camel context stopped: dlimageservice-camel-context
11:20:31,774 INFO  [org.wildfly.extension.camel] (MSC service thread 1-8) Unbind camel naming object: java:jboss/camel/context/dlimageservice-camel-context
11:20:31,779 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Apache Camel 2.19.3 (CamelContext: dlimageservice-camel-context) uptime 0.482 seconds
11:20:31,779 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Apache Camel 2.19.3 (CamelContext: dlimageservice-camel-context) is shutdown in 0.072 seconds
11:20:31,779 ERROR [org.wildfly.extension.camel] (MSC service thread 1-5) Cannot start camel context: dlimageservice-camel-context: org.apache.camel.FailedToCreateRouteException: Failed to create route folioStoreWithReplace at: >>> To[xslt:file:{{xslt.dir}}/FolioStoreWithReplace-to-folio.xslt] <<< in route: Route(folioStoreWithReplace)[[From[direct:FolioStoreWithRepl... because of Cannot find system environment with key: JBOSS_HOME
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1298)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:204)
	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1087)
	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3540)
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3271)
	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:202)
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3089)
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3085)
	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3108)
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3085)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3022)
	at org.wildfly.extension.camel.deployment.CamelContextActivationProcessor$1.call(CamelContextActivationProcessor.java:61)
	at org.wildfly.extension.camel.deployment.CamelContextActivationProcessor$1.call(CamelContextActivationProcessor.java:58)
	at org.wildfly.extension.camel.proxy.ProxyUtils$1.invoke(ProxyUtils.java:51)
	at com.sun.proxy.$Proxy100.call(Unknown Source)
	at org.wildfly.extension.camel.proxy.ProxyUtils.invokeProxied(ProxyUtils.java:55)
	at org.wildfly.extension.camel.deployment.CamelContextActivationProcessor.deploy(CamelContextActivationProcessor.java:58)
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Cannot find system environment with key: JBOSS_HOME
	at org.apache.camel.util.FilePathResolver.resolvePath(FilePathResolver.java:54)
	at org.apache.camel.component.properties.PropertiesComponent.parseLocations(PropertiesComponent.java:544)
	at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:196)
	at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:173)
	at org.apache.camel.impl.DefaultCamelContext.resolvePropertyPlaceholders(DefaultCamelContext.java:2411)
	at org.apache.camel.model.ProcessorDefinitionHelper.resolvePropertyPlaceholders(ProcessorDefinitionHelper.java:735)
	at org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:524)
	at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:510)
	at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:226)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1295)
	... 23 more

11:20:31,784 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Apache Camel 2.19.3 (CamelContext: fabricservice-camel-context) is starting
11:20:31,784 INFO  [org.apache.camel.management.ManagedManagementStrategy] (MSC service thread 1-5) JMX is enabled
11:20:31,788 INFO  [org.wildfly.extension.camel] (MSC service thread 1-5) Camel context starting: fabricservice-camel-context
11:20:31,788 INFO  [org.wildfly.extension.camel] (MSC service thread 1-3) Bound camel naming object: java:jboss/camel/context/fabricservice-camel-context
11:20:31,805 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-5) Loaded 324 type converters
11:20:31,815 INFO  [org.apache.camel.impl.DefaultRuntimeEndpointRegistry] (MSC service thread 1-5) Runtime endpoint registry is in extended mode gathering usage statistics of all incoming and outgoing endpoints (cache limit: 1000)
11:20:31,878 INFO  [org.apache.camel.spring.SpringCamelContext] (MSC service thread 1-5) Apache Camel 2.19.3 (CamelContext: fabricservice-camel-context) is shutting down
11:20:31,879 INFO  [org.wildfly.extension.camel] (MSC service thread 1-5) Camel context stopped: fabricservice-camel-context


Re: Wildfly/Camel inside eclipse fails to resolve JBOSS_HOME keyword [message #1780784 is a reply to message #1780677] Sat, 27 January 2018 05:42 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29385
Registered: July 2009
Senior Member
This sounds more like a question to ask on the WTP (Web Tools Platform) forum or on a JBoss forum.
Previous Topic:newbie questions: Navigator and projects
Next Topic:can't remote debug
Goto Forum:
  


Current Time: Wed Jun 20 17:26:28 GMT 2018

Powered by FUDForum. Page generated in 0.02454 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top