[jboss-user] [JCA] - Re: RAR classloading inversion

kukeltje do-not-reply at jboss.com
Wed Dec 9 10:07:37 EST 2009


Env:
- JBoss AS 5.1.0.GA
- JDK 1.6.0_12 
- Windows XP

I'm trying to create a rar for the filesystem jca example that I pointed to in my other post  The rar gets deployed, but when I try to create a corresponding -service.xml file, I get classloading errors. 

The error I get is :

Caused by: java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager

The logging (on level trace for the classloader) when deploying the fs-service.xml file, the fs-service.xml file itself are given below. 

It does not make a difference if I deploy this either in 'deploy' or in e.g. 'deploy/fs'.

My fs-service.xml file


  | <server>
  | 	<mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager"
  | 		name="jboss.jca:service=XATxCM,name=filesystem">
  | 		<depends>jboss.jca:service=RARDeployer</depends>
  | 		<depends optional-attribute-name="ManagedConnectionFactoryName">
  | 			<mbean code="org.jboss.resource.connectionmanager.RARDeployment"
  | 				name="jboss.jca:service=XATxFS,name=filesystem">
  | 				<depends optional-attribute-name="OldRarDeployment">
  | 					jboss.jca:service=RARDeployment,name=jca-filesystem-1.0.0-SNAPSHOT.rar
  | 				</depends>
  | 				<attribute name="ManagedConnectionFactoryProperties">
  | 					<properties>
  | 						<config-property>
  | 							<config-property-name>path</config-property-name>
  | 							<config-property-type>java.lang.String</config-property-type>
  | 							<config-property-value>/tmp/as/fs_store</config-property-value>
  | 						</config-property>
  | 					</properties>
  | 				</attribute>
  | 				<attribute name="ManagedConnectionFactoryClass">org.ewe.jca.fs.impl.FsManagedConnectionFactory</attribute>
  | 				<!--<attribute name="JndiName">TransFS</attribute>-->
  | 			</mbean>
  | 		</depends>
  | 		<depends optional-attribute-name="ManagedConnectionPool">
  | 			<mbean
  | 				code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
  | 				name="jboss.jca:service=ManagedConnectionPool,name=filesystem">
  | 				<attribute name="ManagedConnectionFactoryName">jboss.jca:service=XATxFS,name=filesystem</attribute>
  | 				<attribute name="MinSize">0</attribute>
  | 				<attribute name="MaxSize">50</attribute>
  | 				<attribute name="BlockingTimeoutMillis">5000</attribute>
  | 				<attribute name="IdleTimeoutMinutes">15</attribute>
  | 				<attribute name="Criteria">ByContainer</attribute>
  | 			</mbean>
  | 		</depends>
  | 		<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
  | 		<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
  | </server>
  | 

Logging on trace level (stacktraces shortend for readbility, do not show any (believe me) usable information)


  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Creating jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Created jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Starting jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Started jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} org.jboss.resource.connectionmanager.XATxConnectionManager matches parent beforeFilter=<EVERYTHING>
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} load class from parent org.jboss.resource.connectionmanager.XATxConnectionManager parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} findLoader org/jboss/resource/connectionmanager/XATxConnectionManager.class classLoader=BaseClassLoader at 168b2b6{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} allExports=false findInParent=false
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} trying to load org/jboss/resource/connectionmanager/XATxConnectionManager.class from all exports of package org.jboss.resource.connectionmanager [VFSClassLoaderPolicy at 30e4a7{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml}]
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.filter.FilteredDelegateLoader] (HDScanner) FilteredDelegateLoader at b7195c{delegate=VFSClassLoaderPolicy at 30e4a7{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml}} org/jboss/resource/connectionmanager/XATxConnectionManager.class matches resource filter=<EVERYTHING>
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} not loading org/jboss/resource/connectionmanager/XATxConnectionManager.class from imports it has no delegates
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} trying to load org/jboss/resource/connectionmanager/XATxConnectionManager.class from requesting BaseClassLoader at 168b2b6{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml}
  | 2009-12-09 14:29:54,422 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} org.jboss.resource.connectionmanager.XATxConnectionManager does NOT match parent afterFilter=<NOTHING>
  | 2009-12-09 14:29:54,422 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Instantiated: name=jboss.jca:name=filesystem,service=XATxCM state=Described mode=Manual requiredState=Configured
  | java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 168b2b6{VFSClassLoaderPolicy at acee53{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 22198957[path= context=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap real=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
  | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
  | 	...
  | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | 	at java.lang.Thread.run(Thread.java:619)
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Stopping jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Stopped jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Destroying jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,422 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Destroyed jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 14:29:54,423 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml state=PreReal mode=Manual requiredState=Real
  | org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jca:service=XATxCM,name=filesystem
  | 	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | 	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
  | 	...
  | 	at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 168b2b6{VFSClassLoaderPolicy at acee53{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 22198957[path= context=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap real=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
  | 	...
  | 	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
  | 	... 29 more
  | 2009-12-09 14:29:54,423 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} unregisterClassLoader BaseClassLoader at 168b2b6{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml}
  | 2009-12-09 14:29:54,423 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderPolicy] (HDScanner) VFSClassLoaderPolicy at acee53{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} shutdown!
  | 2009-12-09 14:29:54,423 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 168b2b6{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} shutdown!
  | 2009-12-09 14:29:54,423 TRACE [org.jboss.resource.deployers.RARParserDeployer] (HDScanner) Undeploying: vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml
  | 2009-12-09 14:29:54,423 TRACE [org.jboss.resource.deployers.RARParserDeployer] (HDScanner) Undeployed:  vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml
  | 2009-12-09 14:29:54,423 TRACE [org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer] (HDScanner) Undeploying: vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml
  | 2009-12-09 14:29:54,423 TRACE [org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer] (HDScanner) Undeployed:  vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml
  | 2009-12-09 14:29:54,423 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes
  | org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** DEPLOYMENTS IN ERROR: Name -> Error
  | 
  | vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml -> org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jca:service=XATxCM,name=filesystem
  | 
  | 
  | DEPLOYMENTS IN ERROR:
  |   Deployment "vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 168b2b6{VFSClassLoaderPolicy at acee53{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 22198957[path= context=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap real=vfsmemory://4p72304e-7ssefn-g300k9ql-1-g3050ic6-ap]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
  | 	...
  | 	at java.lang.Thread.run(Thread.java:619)
  | 
  | 

Now I also read the DZone article about classloading and tried a jboss-classloading.xml file: (the 'big-ball-o-mud')

<classloading xmlns="urn:jboss:classloading:1.0"
  |               domain="IsolatedDomain"
  |               export-all="NON_EMPTY"
  |               import-all="true">
  | </classloading>

and put this in META-INF in my RAR file.

The Error is the same, but I do see differences in the classloading:


  | 2009-12-09 15:31:19,405 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Creating jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,405 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Created jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,405 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Starting jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,406 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Started jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,406 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} loadClass org.jboss.resource.connectionmanager.XATxConnectionManager resolve=false
  | 2009-12-09 15:31:19,406 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} aquireLockFairly Thread[HDScanner,5,jboss]
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} aquiredLock Thread[HDScanner,5,jboss] holding=1
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} load from domain org.jboss.resource.connectionmanager.XATxConnectionManager domain=ClassLoaderDomain at 9b1670{DefaultDomain}
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} org.jboss.resource.connectionmanager.XATxConnectionManager matches parent beforeFilter=<EVERYTHING>
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} load class from parent org.jboss.resource.connectionmanager.XATxConnectionManager parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} findLoader org/jboss/resource/connectionmanager/XATxConnectionManager.class classLoader=BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} allExports=false findInParent=false
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} trying to load org/jboss/resource/connectionmanager/XATxConnectionManager.class from all exports of package org.jboss.resource.connectionmanager [VFSClassLoaderPolicy at 18297fe{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml}]
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.filter.FilteredDelegateLoader] (HDScanner) FilteredDelegateLoader at 1c8f644{delegate=VFSClassLoaderPolicy at 18297fe{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml}} org/jboss/resource/connectionmanager/XATxConnectionManager.class matches resource filter=<EVERYTHING>
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 165d118{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml} get resource locally org/jboss/resource/connectionmanager/XATxConnectionManager.class
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 165d118{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/conf/jboss-service.xml} resource is blacklisted org/jboss/resource/connectionmanager/XATxConnectionManager.class
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} not loading org/jboss/resource/connectionmanager/XATxConnectionManager.class from imports it has no delegates
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} trying to load org/jboss/resource/connectionmanager/XATxConnectionManager.class from requesting BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml}
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} get resource locally org/jboss/resource/connectionmanager/XATxConnectionManager.class
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} resource not found locally org/jboss/resource/connectionmanager/XATxConnectionManager.class
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.ClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} org.jboss.resource.connectionmanager.XATxConnectionManager does NOT match parent afterFilter=<NOTHING>
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} unlock Thread[HDScanner,5,jboss] holding=1
  | 2009-12-09 15:31:19,407 TRACE [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} class not found org.jboss.resource.connectionmanager.XATxConnectionManager
  | 2009-12-09 15:31:19,407 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Instantiated: name=jboss.jca:name=filesystem,service=XATxCM state=Described mode=Manual requiredState=Configured
  | java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 1218ac4{VFSClassLoaderPolicy at 11d6415{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 9817980[path= context=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab real=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
  | 	...
  | 	at java.lang.Thread.run(Thread.java:619)
  | 2009-12-09 15:31:19,409 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Stopping jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,409 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Stopped jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,409 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Destroying jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,409 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (HDScanner) Destroyed jboss.jca:service=ManagedConnectionPool,name=filesystem
  | 2009-12-09 15:31:19,416 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml state=PreReal mode=Manual requiredState=Real
  | org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jca:service=XATxCM,name=filesystem
  | 	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | 	...
  | 	at java.lang.Thread.run(Thread.java:619)
  | Caused by: java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 1218ac4{VFSClassLoaderPolicy at 11d6415{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 9817980[path= context=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab real=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
  | 	...
  | 	at org.jboss.system.ServiceController.install(ServiceController.java:274)
  | 	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
  | 	... 29 more
  | 2009-12-09 15:31:19,421 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (HDScanner) ClassLoaderDomain at 9b1670{DefaultDomain} unregisterClassLoader BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml}
  | 2009-12-09 15:31:19,422 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderPolicy] (HDScanner) VFSClassLoaderPolicy at 11d6415{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} shutdown!
  | 2009-12-09 15:31:19,422 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] (HDScanner) BaseClassLoader at 1218ac4{vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml} shutdown!
  | 2009-12-09 15:31:19,423 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes
  | org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** DEPLOYMENTS IN ERROR: Name -> Error
  | 
  | vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml -> org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.jca:service=XATxCM,name=filesystem
  | 
  | 
  | DEPLOYMENTS IN ERROR:
  |   Deployment "vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.XATxConnectionManager from BaseClassLoader at 1218ac4{VFSClassLoaderPolicy at 11d6415{name=vfsfile:/C:/Users/rvkuijk.OFFICE/applicaties/jboss-5.1.0.GA/server/default/deploy/fs-service.xml domain=ClassLoaderDomain at 9b1670{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader at e5855a} roots=[MemoryContextHandler at 9817980[path= context=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab real=vfsmemory://a22s4p-872h67-g306fh47-1-g3077hoq-ab]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
  | 
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
  | 	at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
  | 	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
  | 	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
  | 	at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
  | 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  | 	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  | 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
  | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
  | 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
  | 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  | 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | 	at java.lang.Thread.run(Thread.java:619)
  | 
  | 

In both situations it finds the class initally on a 'parent' level, but filters it out ('blacklisted' in te second case). I tried many different configurations of jboss-classloading.xml but without sucess. 

Does anybody have an idea what I do wrong? 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269812#4269812

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269812



More information about the jboss-user mailing list