hotdeploy JBoss AS 6.1
poyge394 Jan 23, 2012 8:58 AMI try to uppgrade from JBoss 5 and ESB 4.7 to JBoss 6.1 and ESB 4.10 and have following issu.
I have an sar file and an esb file. The esb file depends to the sar file.
In the startup off the server i get following warning when i have that sar file deployed on the server.
14:24:47,749 WARN [BaseDelegateLoader] Unexpected error creating policy from factory: org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule$3@4ae523ed: java.lang.IllegalStateException: ClassLoaderPolicy not available
at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule$3.createClassLoaderPolicy(ClassLoaderPolicyModule.java:314) [jboss-classloading.jar:2.2.1.GA]
But evrything seams to work fine and i can call the esb service.
The problem is when I try to hotdeploy the esb service then i get:
java.lang.ClassNotFoundException: com.esb.actions.log.LogAction
LogAction exist in the sar file.
My config files in sar archive:
META-INF/jboss-classloading.xml
<?xml version="1.0" encoding="UTF-8"?>
<classloading domain="canonical-${jaxb-domain-objects.classloading.version}" export-all="NON_EMPTY" import-all="true"
parent-domain="DefaultDomain" xmlns="urn:jboss:classloading:1.0">
<requirements>
<module name="jaxb-domain-objects" version="${jaxb-domain-objects.classloading.version}"/>
</requirements>
<capabilities>
<module name="esb-commons" version="${esb-commons.classloading.version}"/>
</capabilities>
</classloading>
In ESB archive:
META-INF/jboss-classloading.xml
<?xml version="1.0" encoding="UTF-8"?>
<classloading domain="canonical-${jaxb-domain-objects.classloading.version}" import-all="true"
parent-domain="DefaultDomain" parent-first="false" xmlns="urn:jboss:classloading:1.0">
<requirements>
<module name="jaxb-domain-objects" version="${jaxb-domain-objects.classloading.version}"/>
<module name="esb-commons" version="${esb-commons.classloading.version}"/>
</requirements>
</classloading>
Any ideas, somthing that have bean changed in JBoss 6.1 ?