Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:26:22+00:00 2026-06-14T05:26:22+00:00

I have a camel context which uses the xslt component. When I run my

  • 0

I have a camel context which uses the xslt component.
When I run my routes on my local development machine I don’t experience any problems.

But when I deployed my project on a remote server I experience some problems with the xslt component.
I daemonized the project so I can run in the background maybe this is causing a issue?
I checked the path to the xsl files(tested the path found in my log), they are correct I even use absolute paths.

Does anybody have some hints? Or an idea why this is going wrong?

The error log has logged these errors:

ERROR:  'Syntax error in '()'.'
FATAL ERROR:  'Could not compile stylesheet'
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> To[ref:hoo_transformer] <<< in route: Route[[From[jms:incomingHoo]] -> [To[ref:hoo_transformer], T... because of Failed to resolve endpoint: ref://hoo_transformer due to: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hoo_transformer': FactoryBean threw exception on object creation; nested exception is org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1140)
    at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
    at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:237)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
    at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:219)
    at org.apache.camel.spring.Main.doStart(Main.java:173)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
    at org.apache.camel.impl.MainSupport.run(MainSupport.java:114)
    at nl.kabisa.seacon.SwsDeamon.start(SwsDeamon.java:17)
    ... 5 more
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route2 at: >>> To[ref:hoo_transformer] <<< in route: Route[[From[jms:incomingHoo]] -> [To[ref:hoo_transformer], T... because of Failed to resolve endpoint: ref://hoo_transformer due to: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hoo_transformer': FactoryBean threw exception on object creation; nested exception is org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:773)
    at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:174)
    at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:610)
    at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1514)
    at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1306)
    at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1213)
    at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1191)
    at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
    at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
    ... 18 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: ref://hoo_transformer due to: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hoo_transformer': FactoryBean threw exception on object creation; nested exception is org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
    at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
    at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:189)
    at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
    at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
    at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:64)
    at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:58)
    at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:394)
    at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:172)
    at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:770)
    ... 29 more
Caused by: org.apache.camel.RuntimeCamelException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hoo_transformer': FactoryBean threw exception on object creation; nested exception is org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1140)
    at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:56)
    at org.apache.camel.component.ref.RefComponent.lookupEndpoint(RefComponent.java:52)
    at org.apache.camel.component.ref.RefComponent.createEndpoint(RefComponent.java:41)
    at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:75)
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:419)
    ... 38 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hoo_transformer': FactoryBean threw exception on object creation; nested exception is org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:109)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1414)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:245)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
    at org.apache.camel.spring.spi.ApplicationContextRegistry.lookup(ApplicationContextRegistry.java:41)
    at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:54)
    ... 42 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://file:/var/java/sws/xslt/transform_hoo.xsl due to: Could not compile stylesheet
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:437)
    at org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean.getObject(AbstractCamelEndpointFactoryBean.java:57)
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
    ... 49 more
Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
    at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:843)
    at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:231)
    at org.apache.camel.builder.xml.XsltBuilder.setTransformerInputStream(XsltBuilder.java:261)
    at org.apache.camel.component.xslt.XsltComponent.createEndpoint(XsltComponent.java:120)
    at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:75)
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:419)
    ... 51 more
Cannot start daemon
Service exit with a return value of 5
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:26:23+00:00Added an answer on June 14, 2026 at 5:26 am

    I found the issue.

    I was converting this old camel project to run as daemon.
    Because the project was mavenized I believed every lib was fetched remotely .
    Apparently the pom also contained a path to a local library, included in the git repo of the project.
    The actual jar missing was the Saxon jar needed for the XSLT component.

    So when I ran the project locally I didn’t experience any problem because the jar was there.
    But when I build the jar and deployed it the Saxon jar wasn’t included.

    My solution:

    I added an new hosted repository to our Nexus Server and included that dependency into the pom file. So there are no local dependencies anymore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an apache servicemix (camel 2.9) route which calls a bean, that in
I have a state machine with one state which dispatches some message (e.g. text)
I have a Toolbarbutton <toolbarbutton context=TabMenue id=esbTb_rss_reader label=News type=menu> with a Context menue which
I'm trying to run a smooks transformation in a camel route. I have seen
I have a layout which uses min-width and works great. So I came to
I have a camel route file which I want to populate/configure based on certain
I have a problem which is hard to explain so lets get started: Context:
I have a record that came from the follow linq query: using (var context
I have started playing around with Apache camel recently. So being the experimental type
I have given client's queue connection details to connect to it using Camel. While

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.