Bugs item #957032, was opened at 2004-05-19 13:37 Message generated for change (Comment added) made by starksm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=957032&group_id=22866
Category: JBossServer >Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: David Boon (davidmboon) >Assigned to: Scott M Stark (starksm) Summary: loader-repository in jboss-app.xml not working Initial Comment: Specifying loader-repository in jboss-app.xml does not work as described. I'm attempting to enable scoped classloading at the ear level. I would like each ear to have isolation from each other. I've added the following to, or similar to each ear: <loader-repository loaderRepositoryClass="org.jboss.mx.loading.HeirachicalLoaderRepository3"> lmnk:loader=ear_name_here.ear <loader-repository-config> java2ParentDelegaton=true </loader-repository-config> </loader-repository> When deploying the ears the following is printed to the logs: 2004.05.18 07:25:07.890 EDT INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/c:/khub/JBossEval/deploy/lms 2004.05.18 07:27:37.953 EDT INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/c:/khub/JBossEval/deploy/lms/dave.ear/ 2004.05.18 07:27:38.062 EDT INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/c:/khub/JBossEval/deploy/lms/dave2.ear/ 2004.05.18 07:27:38.140 EDT INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/c:/khub/JBossEval/deploy/lms/kauthor.ear/ 2004.05.18 07:27:38.171 EDT WARN [org.jboss.deployment.DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=LoaderRepositoryConfig(repositoryName: lmnk:loader=kauthor.ear, repositoryClassName: org.jboss.mx.loading.HeirachicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser, repositoryConfig: java2ParentDelegaton=true) 2004.05.18 07:27:38.687 EDT INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/c:/khub/JBossEval/deploy/lms/lms.ear/ 2004.05.18 07:27:38.750 EDT WARN [org.jboss.deployment.DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=LoaderRepositoryConfig(repositoryName: lmnk:loader=lms.ear, repositoryClassName: org.jboss.mx.loading.HeirachicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser, repositoryConfig: java2ParentDelegaton=true) Also, after the server is running the classes that I expected to have isolation are not isolated. Tried with 3.2.3, and 3.2.4RC1, operating system: windows XP, jdk 1.4.2 ---------------------------------------------------------------------- >Comment By: Scott M Stark (starksm) Date: 2004-05-21 10:38 Message: Logged In: YES user_id=175228 The warning means you have deployments in the ear that are tyring to set their own scoping and this cannot be done. Only the toplevel deployment, in this case the ear can set the scoping. Make sure you do not have the following URLDeploymentScanner attribute setting in conf/jboss-service.xml: <attribute name="RecursiveSearch">False</attribute> This would produce the behavior you are seeing because you have told the scanner to deploy the lms directory as a jar with nested deployments being the ears, and they all would share the unscoped class loader of the lms directory. What classes are not being isolated and where do they live? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=957032&group_id=22866 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development