Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-3658

Smooks ignores context class loader

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.10
    • Fix Version/s: 4.10 CP1
    • Component/s: Transformation Service
    • Labels:
      None
    • Environment:

      jbossesb-4.10@jboss-5.1.0.GA
      java version "1.6.0_26"

      Description

      I'm running webservice_consumer_wise2:

      07:31:16,166 ERROR [STDERR] org.milyn.SmooksException: Failed to apply processing unit [org.milyn.javabean.ext.PropertyChecker] to [org:milyn:smooks:unknowndoc:/smooks-resource-list/jb:bean/jb:value].
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.processVisitorException(SmooksDOMFilter.java:823)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.access$700(SmooksDOMFilter.java:134)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:765)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:710)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:666)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:385)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:238)
      07:31:16,166 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:216)
      07:31:16,167 ERROR [STDERR] at org.milyn.Smooks._filter(Smooks.java:516)
      07:31:16,167 ERROR [STDERR] at org.milyn.Smooks.filterSource(Smooks.java:470)
      07:31:16,167 ERROR [STDERR] at org.milyn.cdr.XMLConfigDigester.digestExtendedResourceConfig(XMLConfigDigester.java:555)
      07:31:16,167 ERROR [STDERR] at org.milyn.cdr.XMLConfigDigester.digestV11XSDValidatedConfig(XMLConfigDigester.java:340)
      07:31:16,167 ERROR [STDERR] at org.milyn.cdr.XMLConfigDigester.digestConfigRecursively(XMLConfigDigester.java:226)
      07:31:16,167 ERROR [STDERR] at org.milyn.cdr.XMLConfigDigester.digestConfig(XMLConfigDigester.java:184)
      07:31:16,167 ERROR [STDERR] at org.milyn.cdr.SmooksResourceConfigurationStore.registerResources(SmooksResourceConfigurationStore.java:227)
      07:31:16,167 ERROR [STDERR] at org.milyn.Smooks.addConfigurations(Smooks.java:338)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.actions.soap.wise.SmooksMapper.applyMapping(SmooksMapper.java:95)
      07:31:16,167 ERROR [STDERR] at it.javalinux.wise.core.client.WSMethod.invoke(WSMethod.java:114)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.actions.soap.wise.SOAPClient.process(SOAPClient.java:253)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:649)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433)
      07:31:16,167 ERROR [STDERR] at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:550)
      07:31:16,167 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      07:31:16,167 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      07:31:16,167 ERROR [STDERR] at java.lang.Thread.run(Thread.java:680)
      07:31:16,167 ERROR [STDERR] Caused by: org.milyn.cdr.SmooksConfigurationException: Bean class 'org.jboss.soa.esb.samples.quickstart.webservice_consumer_wise2.generated.ComplexObject' not avilable on classpath.
      07:31:16,167 ERROR [STDERR] at org.milyn.javabean.ext.PropertyChecker.getBeanClass(PropertyChecker.java:97)
      07:31:16,167 ERROR [STDERR] at org.milyn.javabean.ext.PropertyChecker.getBeanType(PropertyChecker.java:78)
      07:31:16,167 ERROR [STDERR] at org.milyn.javabean.ext.PropertyChecker.visitBefore(PropertyChecker.java:47)
      07:31:16,167 ERROR [STDERR] at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:759)
      07:31:16,168 ERROR [STDERR] ... 23 more

      I guess a Smooks classloader issue? I have to put the generated ComplexObjcet class (from the wise.tmpDir) into the esb archive to have it working.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kconner Kevin Conner
                  Reporter:
                  jaroslaw.kijanowski Jaroslaw Kijanowski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: