10 Replies Latest reply on Nov 2, 2011 10:40 AM by Claus Ibsen

    Using Velocity template

    Eric Bender Newbie

      I am currently trying to pick up a static XML file which contains a SOAP message to login to salesforce.  Effectively this is a small SOAP XML message stored on the file system.

       

      I am attempting to use the following simple route to send this static SOAP message to an endpoint (I have tested the endpoint through SOAP UI, everything works there) every 60 seconds and then store the resulting message on the file system to be picked up by other routes as needed for authentication later.

       

            

       

      At any rate, currently when the route is deployed I am getting the following error.  I tried installing the latest version of servicemix locally referencing camel 2.8 but that gives the same issue.  Is there a work around for this?  Or is there a better way to have a fixed message put into a route like I am trying to do without velocity?

       

      11:55:02,053 | ERROR | sforce           | DefaultErrorHandler              | 77 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Failed delivery for exchangeId: ID-adcinitiated1-59323-1319806668645-4-2. Exhausted after delivery attempt: 1 caught: org.apache.velocity.exception.VelocityException: Problem instantiating the template loader: org.apache.camel.component.velocity.CamelVelocityClasspathResourceLoader.

      Look at your properties file and make sure the

      name of the template loader is correct.

      org.apache.velocity.exception.VelocityException: Problem instantiating the template loader: org.apache.camel.component.velocity.CamelVelocityClasspathResourceLoader.

      Look at your properties file and make sure the

      name of the template loader is correct.

              at org.apache.velocity.runtime.resource.loader.ResourceLoaderFactory.getLoader(ResourceLoaderFactory.java:60)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]

              at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:130)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]

              at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:730)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]

              at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:263)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]

              at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]

              at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116)[62:org.apache.servicemix.bundles.velocity:1.7.0.1]