Smooks doesn't work with class loading isolation in JBoss SOA?
Issue
We've got a situation where a class com.jboss.examples.database.model.MyData called is part of our ESB. Smooks is called as part our our ESB. When we introduced the classloading isolation and we get the exception below. Without the isolation it works fine. It looks like Smooks which is part of JBoss SOA is trying to load a class and is unable.
Caused by: org.milyn.cdr.SmooksConfigurationException: Bean class 'com.jboss.examples.database.model.MyData' not avilable on classpath. at
org.milyn.javabean.ext.PropertyChecker.getBeanClass(PropertyChecker.java:97) at
org.milyn.javabean.ext.PropertyChecker.getBeanType(PropertyChecker.java:78) at
org.milyn.javabean.ext.PropertyChecker.visitBefore(PropertyChecker.java:47) at
org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:759)
... 43 more
Our jboss-classloading.xml looks like this
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="MyApplicationDomain"
parent-domain="DefaultDomain"
parent-first="false"
export-all="NON_EMPTY"
import-all="true">
</classloading>
Environment
- JBoss Service Oriented Architecture (SOA) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
