10 Replies Latest reply on Oct 19, 2012 3:40 PM by Keith Babo

    Does SwitchYard Smooks support include freemarker template

    Jeff DeLong Master

      I have a Smooks Freemarker template ported over from SOA-P 5.2.

       

      It failed to deploy in the older ftl format, so I tweaked in using the Smooks 1.4 doc to looks like:

       

      <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"

                              xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">

       

           <ftl:freemarker applyOnElement="$document">

              <ftl:template><!--<?xml version="1.0" encoding="UTF-8"?>...

       

       

      However, when I deploy it as a part of a SY service, I get

       

      15:12:49,723 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

          at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:79)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]

          at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

      Caused by: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

          at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:70)

          at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:37)

          at org.switchyard.transform.TransformerRegistryLoader.newTransformers(TransformerRegistryLoader.java:196)

          at org.switchyard.transform.TransformerRegistryLoader.registerTransformers(TransformerRegistryLoader.java:92)

          at org.switchyard.deploy.internal.Deployment.registerTransformers(Deployment.java:251)

          at org.switchyard.deploy.internal.Deployment.doInit(Deployment.java:113)

          at org.switchyard.deploy.internal.AbstractDeployment.init(AbstractDeployment.java:134)

          at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:103)

          at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72)

          ... 5 more

      Caused by: org.milyn.cdr.SmooksConfigurationException: Error invoking @Initialize method 'initialize' on class 'org.milyn.templating.freemarker.FreeMarkerTemplateProcessor'.

          at org.milyn.cdr.annotation.Configurator.invoke(Configurator.java:457)

          at org.milyn.cdr.annotation.Configurator.initialise(Configurator.java:439)

          at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:91)

          at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:66)

          at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:90)

          at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:78)

          at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.addCDU(ContentDeliveryConfigBuilder.java:642)

          at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyCDUStrategy(ContentDeliveryConfigBuilder.java:590)

          at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyStrategy(ContentDeliveryConfigBuilder.java:556)

          at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.iterate(ContentDeliveryConfigBuilder.java:730)

          at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.access$300(ContentDeliveryConfigBuilder.java:709)

          at org.milyn.delivery.ContentDeliveryConfigBuilder.extractContentHandlers(ContentDeliveryConfigBuilder.java:494)

          at org.milyn.delivery.ContentDeliveryConfigBuilder.load(ContentDeliveryConfigBuilder.java:356)

          at org.milyn.delivery.ContentDeliveryConfigBuilder.getConfig(ContentDeliveryConfigBuilder.java:147)

          at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:91)

          at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:65)

          at org.milyn.Smooks.createExecutionContext(Smooks.java:418)

          at org.milyn.Smooks.createExecutionContext(Smooks.java:376)

          at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:68)

          ... 13 more

      Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Priority

          at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)

          at freemarker.log.Logger.getLogger(Logger.java:255)

          at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)

          at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)

          at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)

          at freemarker.core.Configurable.<init>(Configurable.java:132)

          at freemarker.template.Configuration.<init>(Configuration.java:109)

          at freemarker.template.Configuration.<clinit>(Configuration.java:96)

          at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.loadTemplate(FreeMarkerTemplateProcessor.java:110)

          at org.milyn.templating.AbstractTemplateProcessor.initialize(AbstractTemplateProcessor.java:141)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

          at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

          at org.milyn.cdr.annotation.Configurator.invoke(Configurator.java:453)

          ... 31 more

      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main" from local module loader @1f78040 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules)]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

          ... 46 more

       

      15:12:49,743 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'."}}

      15:12:49,758 INFO  [org.jboss.weld.deployer] (MSC service thread 1-11) JBAS016009: Stopping weld service for deployment PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar

      15:12:49,761 INFO  [org.jboss.as.jpa] (MSC service thread 1-10) JBAS011403: Stopping Persistence Unit Service 'PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar#org.jbpm.persistence.jpa'

      15:12:49,778 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015877: Stopped deployment PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar in 34ms

      15:12:49,780 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

       

      15:12:49,782 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'."}}}}

        • 1. Re: Does SwitchYard Smooks support include freemarker template
          Tomohisa igarashi Master

          Hi Jeff,

           

          Could you try and see what's happen if you add log4j dependency in the org.freemarker module?

          --- switchyard-as7-0.6/modules/org/freemarker/main/module.xml2012-10-08 17:00:28.000000000 -0400
          +++ switchyard-as7-0.6/modules/org/freemarker/main/module.xml.new2012-10-17 11:41:29.891550714 -0400

          @@ -29,5 +29,6 @@

               </resources>

           

               <dependencies>

          +        <module name="org.apache.log4j"/>

               </dependencies>

          </module>

           

          Thanks,

          Tomo

          • 2. Re: Does SwitchYard Smooks support include freemarker template
            Jeff DeLong Master

            That got me by that error to:

             

            15:57:33,645 WARN  [org.jboss.modules] (MSC service thread 1-15) Failed to define class freemarker.core.TemplateElement in Module "org.freemarker:main" from local module loader @1f78040 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules): java.lang.LinkageError: Failed to link freemarker/core/TemplateElement (Module "org.freemarker:main" from local module loader @1f78040 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules))

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                at org.jboss.modules.Module.loadModuleClass(Module.java:517)

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.loadTemplate(FreeMarkerTemplateProcessor.java:123) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.templating.AbstractTemplateProcessor.initialize(AbstractTemplateProcessor.java:141) [milyn-smooks-all-1.5.1.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

                at org.milyn.cdr.annotation.Configurator.invoke(Configurator.java:453) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.cdr.annotation.Configurator.initialise(Configurator.java:439) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:91) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:66) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:90) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:78) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.addCDU(ContentDeliveryConfigBuilder.java:642) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyCDUStrategy(ContentDeliveryConfigBuilder.java:590) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyStrategy(ContentDeliveryConfigBuilder.java:556) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.iterate(ContentDeliveryConfigBuilder.java:730) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.access$300(ContentDeliveryConfigBuilder.java:709) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder.extractContentHandlers(ContentDeliveryConfigBuilder.java:494) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder.load(ContentDeliveryConfigBuilder.java:356) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.delivery.ContentDeliveryConfigBuilder.getConfig(ContentDeliveryConfigBuilder.java:147) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:91) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:65) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.Smooks.createExecutionContext(Smooks.java:418) [milyn-smooks-all-1.5.1.jar:]

                at org.milyn.Smooks.createExecutionContext(Smooks.java:376) [milyn-smooks-all-1.5.1.jar:]

                at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:68) [switchyard-transform-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:37) [switchyard-transform-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.switchyard.transform.TransformerRegistryLoader.newTransformers(TransformerRegistryLoader.java:196) [switchyard-transform-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.switchyard.transform.TransformerRegistryLoader.registerTransformers(TransformerRegistryLoader.java:92) [switchyard-transform-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.switchyard.deploy.internal.Deployment.registerTransformers(Deployment.java:251)

                at org.switchyard.deploy.internal.Deployment.doInit(Deployment.java:113)

                at org.switchyard.deploy.internal.AbstractDeployment.init(AbstractDeployment.java:134)

                at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:103) [switchyard-deploy-jboss-as7-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72) [switchyard-deploy-jboss-as7-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

            Caused by: java.lang.NoClassDefFoundError: javax/swing/tree/TreeNode

                at java.lang.ClassLoader.defineClass1(Native Method) [classes.jar:1.6.0_29]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [classes.jar:1.6.0_29]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [classes.jar:1.6.0_29]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [classes.jar:1.6.0_29]

                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                ... 47 more

            Caused by: java.lang.ClassNotFoundException: javax.swing.tree.TreeNode from [Module "org.freemarker:main" from local module loader @1f78040 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules)]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                ... 53 more

             

            15:57:33,663 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC00001: Failed to start service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

                at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:79)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

            Caused by: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

                at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:70)

                at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:37)

                at org.switchyard.transform.TransformerRegistryLoader.newTransformers(TransformerRegistryLoader.java:196)

                at org.switchyard.transform.TransformerRegistryLoader.registerTransformers(TransformerRegistryLoader.java:92)

                at org.switchyard.deploy.internal.Deployment.registerTransformers(Deployment.java:251)

                at org.switchyard.deploy.internal.Deployment.doInit(Deployment.java:113)

                at org.switchyard.deploy.internal.AbstractDeployment.init(AbstractDeployment.java:134)

                at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:103)

                at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72)

                ... 5 more

            Caused by: org.milyn.cdr.SmooksConfigurationException: Error invoking @Initialize method 'initialize' on class 'org.milyn.templating.freemarker.FreeMarkerTemplateProcessor'.

                at org.milyn.cdr.annotation.Configurator.invoke(Configurator.java:457)

                at org.milyn.cdr.annotation.Configurator.initialise(Configurator.java:439)

                at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:91)

                at org.milyn.cdr.annotation.Configurator.configure(Configurator.java:66)

                at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:90)

                at org.milyn.templating.freemarker.FreeMarkerContentHandlerFactory.create(FreeMarkerContentHandlerFactory.java:78)

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.addCDU(ContentDeliveryConfigBuilder.java:642)

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyCDUStrategy(ContentDeliveryConfigBuilder.java:590)

                at org.milyn.delivery.ContentDeliveryConfigBuilder$ContentHandlerExtractionStrategy.applyStrategy(ContentDeliveryConfigBuilder.java:556)

                at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.iterate(ContentDeliveryConfigBuilder.java:730)

                at org.milyn.delivery.ContentDeliveryConfigBuilder$SmooksResourceConfigurationTableIterator.access$300(ContentDeliveryConfigBuilder.java:709)

                at org.milyn.delivery.ContentDeliveryConfigBuilder.extractContentHandlers(ContentDeliveryConfigBuilder.java:494)

                at org.milyn.delivery.ContentDeliveryConfigBuilder.load(ContentDeliveryConfigBuilder.java:356)

                at org.milyn.delivery.ContentDeliveryConfigBuilder.getConfig(ContentDeliveryConfigBuilder.java:147)

                at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:91)

                at org.milyn.container.standalone.StandaloneExecutionContext.<init>(StandaloneExecutionContext.java:65)

                at org.milyn.Smooks.createExecutionContext(Smooks.java:418)

                at org.milyn.Smooks.createExecutionContext(Smooks.java:376)

                at org.switchyard.transform.smooks.internal.SmooksTransformFactory.newTransformer(SmooksTransformFactory.java:68)

                ... 13 more

            Caused by: java.lang.NoClassDefFoundError: freemarker/core/TemplateElement

                at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.loadTemplate(FreeMarkerTemplateProcessor.java:123)

                at org.milyn.templating.AbstractTemplateProcessor.initialize(AbstractTemplateProcessor.java:141)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

                at org.milyn.cdr.annotation.Configurator.invoke(Configurator.java:453)

                ... 31 more

            Caused by: java.lang.ClassNotFoundException: freemarker.core.TemplateElement from [Module "org.freemarker:main" from local module loader @1f78040 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules)]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                ... 38 more

             

            15:57:33,679 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'."}}

            15:57:33,683 INFO  [org.jboss.weld.deployer] (MSC service thread 1-16) JBAS016009: Stopping weld service for deployment PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar

            15:57:33,686 INFO  [org.jboss.as.jpa] (MSC service thread 1-14) JBAS011403: Stopping Persistence Unit Service 'PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar#org.jbpm.persistence.jpa'

            15:57:33,691 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015877: Stopped deployment PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar in 11ms

            15:57:33,693 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

            JBAS014777:   Services which failed to start:      service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'.

             

            15:57:33,695 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"PolicyQuoteProcessService-0.0.1-SNAPSHOT.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Failed to create Smooks instance for config 'smooks/PolicyQuoteReplyConfigSmooks.xml'."}}}}

            • 3. Re: Does SwitchYard Smooks support include freemarker template
              Keith Babo Master

              What on Earth is Freemarker doing with Swing TreeNodes?  Try adding another dependency to the freemarker module that Tomo referenced above:

               

              <module name="javax.api"/>

              • 4. Re: Does SwitchYard Smooks support include freemarker template
                Jeff DeLong Master

                Making progress. The service deploys, but I get another classloader issue when I execute:

                 

                 

                16:22:12,487 WARN  [org.jboss.modules] (http-localhost-127.0.0.1-8080-1) Failed to define class com.thoughtworks.xstream.io.xml.SaxWriter in Module "com.thoughtworks.xstream:main" from local module loader @1171b26 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules): java.lang.LinkageError: Failed to link com/thoughtworks/xstream/io/xml/SaxWriter (Module "com.thoughtworks.xstream:main" from local module loader @1171b26 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules))

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                    at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                    at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                    at org.jboss.modules.Module.loadModuleClass(Module.java:517)

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                    at java.lang.Class.getDeclaredFields0(Native Method) [classes.jar:1.6.0_29]

                    at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [classes.jar:1.6.0_29]

                    at java.lang.Class.getDeclaredFields(Class.java:1743) [classes.jar:1.6.0_29]

                    at org.milyn.cdr.annotation.Configurator.checkPropertiesConfigured(Configurator.java:204) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.cdr.annotation.Configurator.initialise(Configurator.java:438) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.delivery.AbstractParser.createXMLReader(AbstractParser.java:315) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:62) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:64) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.Smooks._filter(Smooks.java:526) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.Smooks.filterSource(Smooks.java:482) [milyn-smooks-all-1.5.1.jar:]

                    at org.milyn.Smooks.filterSource(Smooks.java:456) [milyn-smooks-all-1.5.1.jar:]

                    at org.switchyard.transform.smooks.internal.SmooksTransformer.transform(SmooksTransformer.java:76) [switchyard-transform-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.transform.TransformSequence.apply(TransformSequence.java:123) [switchyard-api-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.transform.TransformSequence.applySequence(TransformSequence.java:211) [switchyard-api-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.handlers.TransformHandler.handleMessage(TransformHandler.java:93) [switchyard-runtime-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.bus.camel.processors.HandlerProcessor.process(HandlerProcessor.java:83) [switchyard-bus-camel-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:58) [switchyard-bus-camel-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.Pipeline.process(Pipeline.java:117) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.FilterProcessor.process(FilterProcessor.java:58) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:91) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:58) [switchyard-bus-camel-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:303) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.Pipeline.process(Pipeline.java:117) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:45) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:122) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:360) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:331) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:227) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:331) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:169) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:111) [camel-core-2.10.0.jar:2.10.0]

                    at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:97) [camel-core-2.10.0.jar:2.10.0]

                    at org.switchyard.bus.camel.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:64) [switchyard-bus-camel-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.internal.ExchangeImpl.sendInternal(ExchangeImpl.java:199) [switchyard-runtime-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.internal.ExchangeImpl.send(ExchangeImpl.java:114) [switchyard-runtime-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.component.soap.InboundHandler.invoke(InboundHandler.java:207) [switchyard-component-soap-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:113) [switchyard-component-soap-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at org.switchyard.component.soap.endpoint.BaseWebService.invoke(BaseWebService.java:43) [switchyard-component-soap-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_29]

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_29]

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_29]

                    at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_29]

                    at org.jboss.ws.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:111)

                    at org.jboss.wsf.stack.cxf.JBossWSInvoker._invokeInternal(JBossWSInvoker.java:181)

                    at org.jboss.wsf.stack.cxf.JBossWSInvoker.invoke(JBossWSInvoker.java:127)

                    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [classes.jar:1.6.0_29]

                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [classes.jar:1.6.0_29]

                    at java.util.concurrent.FutureTask.run(FutureTask.java:138) [classes.jar:1.6.0_29]

                    at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

                    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

                    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)

                    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

                    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)

                    at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:91)

                    at org.jboss.wsf.stack.cxf.transport.ServletHelper.callRequestHandler(ServletHelper.java:169)

                    at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:87)

                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)

                    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                    at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:135)

                    at org.jboss.wsf.spi.deployment.WSFServlet.service(WSFServlet.java:140) [jbossws-spi-2.0.3.GA.jar:2.0.3.GA]

                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                    at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

                Caused by: java.lang.NoClassDefFoundError: org/xml/sax/XMLReader

                    at java.lang.ClassLoader.defineClass1(Native Method) [classes.jar:1.6.0_29]

                    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [classes.jar:1.6.0_29]

                    at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [classes.jar:1.6.0_29]

                    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [classes.jar:1.6.0_29]

                    at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                    at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                    ... 136 more

                Caused by: java.lang.ClassNotFoundException: org.xml.sax.XMLReader from [Module "com.thoughtworks.xstream:main" from local module loader @1171b26 (roots: /Users/jdelong/SOA6Workshop/Software/switchyard-as7-0.6/modules)]

                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                    ... 142 more

                • 5. Re: Does SwitchYard Smooks support include freemarker template
                  Keith Babo Master

                  Looks like xstream needs the javax.api dependency as well.  Can you try adding it to modules/com/thoughtworks/xstream/main/module.xml ?

                   

                  </resources>
                  
                       <dependencies>
                          <module name="javax.api/>
                       </dependencies>
                  
                  • 6. Re: Does SwitchYard Smooks support include freemarker template
                    Jeff DeLong Master

                    That worked. Thanks. Want me to write a JIRA?

                    • 10. Re: Does SwitchYard Smooks support include freemarker template
                      Keith Babo Master

                      Thanks, Jeff.  This is a minor change, so no worries on getting this in for 0.6.