On 8/23/07, Stefan Schulze Frielinghaus <[EMAIL PROTECTED]> wrote: > I'm trying to write a GBean which dynamically deploys and undeploys > other GBeans. My first thought about this task was to get a list of > all running modules from which I could decide which to undeploy. ... > 14:38:55,100 ERROR [BaseDeploymentFactory] > org.apache.geronimo.web.deployment.WARConfigurer > java.lang.ClassCastException: > org.apache.geronimo.web.deployment.WARConfigurer > at > org.apache.geronimo.deployment.plugin.jmx.LocalDeploymentManager.loadMod > uleConfigurers(LocalDeploymentManager.java:51)
Hi, I won't help you with it, but perhaps point in the right direction. CCE is when a class is in two classloaders. I think the proper way is to declare a dependency on GBeanDeployer in your gbean descriptor. I have never done it before so it's way the answer is wacky. See var/config/config.xml for references how to wire gbeans (and await others' responses to get the real answer ;-)) > I even tried it with another URI (String uri = > "deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector";) but > with that I still got a worse result. Don't do that. There're simpler ways, I guess. I'd rather see gbean wiring used not Java Deployment API. BTW, It's a user question so you'd be better off sending it to the user mailing list - [EMAIL PROTECTED] (see http://geronimo.apache.org/mailing-lists.html). Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl