Can you catch the RuntimeMBeanException and print out the
Target Exception.
I made some changes to ContainerFactory but tested it on
JBoss/Tomcat (redeploy as well).
Have fun - Andy
----- Original Message -----
From: "Julian Gosnell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 10, 2001 4:12 PM
Subject: [JBoss-dev] Container Management MBean problem...
> CVS of ~22:30GMT 10/6/2001
>
> Trying to redeploy the same EAR, results in a pair of nasty exceptions:
>
> Just in case whoever is hacking on this is not aware of this one.
>
> Thanks,
>
> Jules
>
>
> [J2EE Deployer Default] Deploy J2EE application:
> file:/home/jules/cvs/JBoss/tomcat-test.ear
> [J2EE Deployer Default] Create application tomcat-test.ear
> [J2EE Deployer Default] inflate and install module tomcat-test.war
> [J2EE Deployer Default] install module tomcat-test.jar
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [Container factory]
>
Deploying:file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Def
ault/tomcat-test.ear
>
> [Verifier] Verifying
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/ejb1002.jar
>
> [Container factory] Deploying Optimized
> [Container Management Proxy] Initializing
> [Container Management Proxy] Initialized
> [Container Management Proxy] Starting
> [Container Management Proxy] Started
> [Container factory] Deploying NonOptimized
> [Container Management Proxy] Initializing
> [Container Management Proxy] Initialized
> [Container Management Proxy] Starting
> [Container Management Proxy] Started
> [Default] Added ClassLoader: org.jboss.web.WebClassLoader@6b67e8 URL:
> http://megalodon:8083/WebClassLoader@7038952/
> [Container factory] Deployed application:
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear
>
> [J2EE Deployer Default] Starting module tomcat-test.war
> [Jetty] Registered
>
com.mortbay.Jetty:name=Jetty,Jetty=0,context=/jboss,WebApplicationContext=0
>
> [Jetty] resolving -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
> : http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
> [Jetty] resolved -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
> :
>
jar:file:/home/jules/cvs/JBoss/contrib/jetty/dist/jetty/lib/com.mortbay.jett
y.jar!/com/mortbay/Jetty/Servlet/web.dtd
>
> [Jetty] no jboss-web.xml found
> [Jetty] Started SecurityHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] JSP: init
> [Jetty] Started ServletHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] Started WebInfProtect
> [Jetty] ResourceHandler started in
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/web1001/
>
> [Jetty] Started ResourceHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] Stopped SetupHandler in null
> [Jetty] successfully deployed
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/web1001/
> to /jboss
> [J2EE Deployer Default] J2EE application:
> file:/home/jules/cvs/JBoss/tomcat-test.ear is deployed.
> [J2EE Deployer Default] Checking module tomcat-test.ear
> [J2EE Deployer Default] Checking module tomcat-test.war
> [J2EE Deployer Default] Stopping module tomcat-test.war
> [Jetty] Stopped SecurityHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] Stopped ServletHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] Stopped WebInfProtect
> [Jetty] Stopped ResourceHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1001/]
>
> [Jetty] Deregister
>
com.mortbay.Jetty:name=Jetty,Jetty=0,context=/jboss,WebApplicationContext=0
>
> [Jetty] successfully undeployed
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/web1001/
>
> [J2EE Deployer Default] Stopping module tomcat-test.ear
> [Container factory]
>
Undeploying:file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/D
efault/tomcat-test.ear
>
> [Container factory] Undeployed application:
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear
>
> [J2EE Deployer Default] Destroying application tomcat-test.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/home/jules/cvs/JBoss/tomcat-test.ear
> [J2EE Deployer Default] Create application tomcat-test.ear
> [J2EE Deployer Default] inflate and install module tomcat-test.war
> [J2EE Deployer Default] install module tomcat-test.jar
> [J2EE Deployer Default] add all ejb jar files to the common classpath
> [Container factory]
>
Deploying:file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Def
ault/tomcat-test.ear
>
> [Verifier] Verifying
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/ejb1004.jar
>
> [Container factory] Deploying Optimized
> [Default] javax.management.RuntimeMBeanException: RuntimeException
> thrown in postRegister method
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.postRegisterInvoker(MBeanServerImpl.j
ava:2277)
>
> [Default]
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.ja
va:2356)
>
> [Default]
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:388)
>
> [Default]
> [Default] at
>
org.jboss.ejb.ContainerFactory.registerContainer(ContainerFactory.java:690)
>
> [Default]
> [Default] at
>
org.jboss.ejb.ContainerFactory.createStatelessSessionContainer(ContainerFact
ory.java:613)
>
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.createContainer(ContainerFactory.java:564)
>
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:445)
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:340)
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:279)
> [Default]
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:489)
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:467)
>
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:211)
> [Default]
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [Default]
> [Default] at
> com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
> [Default]
> [Default] at
>
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRequestHandler.ja
va:325)
>
> [Default]
> [Default] at
>
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlRequestHandler.java:
152)
>
> [Default]
> [Default] at
> com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
> [Default]
> [Default] at com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
>
> [Default]
> [Default] at java.lang.Thread.run(Thread.java:484)
> [Default]
> [Container factory] Deploying NonOptimized
> [Default] javax.management.RuntimeMBeanException: RuntimeException
> thrown in postRegister method
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.postRegisterInvoker(MBeanServerImpl.j
ava:2277)
>
> [Default]
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.ja
va:2356)
>
> [Default]
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:388)
>
> [Default]
> [Default] at
>
org.jboss.ejb.ContainerFactory.registerContainer(ContainerFactory.java:690)
>
> [Default]
> [Default] at
>
org.jboss.ejb.ContainerFactory.createStatelessSessionContainer(ContainerFact
ory.java:613)
>
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.createContainer(ContainerFactory.java:564)
>
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:445)
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:340)
> [Default]
> [Default] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:279)
> [Default]
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:489)
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:467)
>
> [Default]
> [Default] at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:211)
> [Default]
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [Default]
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [Default]
> [Default] at
> com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.java:240)
> [Default]
> [Default] at
>
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRequestHandler.ja
va:325)
>
> [Default]
> [Default] at
>
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlRequestHandler.java:
152)
>
> [Default]
> [Default] at
> com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler.java:79)
> [Default]
> [Default] at com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
>
> [Default]
> [Default] at java.lang.Thread.run(Thread.java:484)
> [Default]
> [Default] Added ClassLoader: org.jboss.web.WebClassLoader@1b808a URL:
> http://megalodon:8083/WebClassLoader@1802378/
> [Container factory] Deployed application:
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear
>
> [J2EE Deployer Default] Starting module tomcat-test.war
> [Jetty] Registered
>
com.mortbay.Jetty:name=Jetty,Jetty=0,context=/jboss,WebApplicationContext=1
>
> [Jetty] resolving -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
> : http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
> [Jetty] resolved -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
> :
>
jar:file:/home/jules/cvs/JBoss/contrib/jetty/dist/jetty/lib/com.mortbay.jett
y.jar!/com/mortbay/Jetty/Servlet/web.dtd
>
> [Jetty] no jboss-web.xml found
> [Jetty] Started SecurityHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1003/]
>
> [Jetty] JSP: init
> [Jetty] Started ServletHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1003/]
>
> [Jetty] Started WebInfProtect
> [Jetty] ResourceHandler started in
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/web1003/
>
> [Jetty] Started ResourceHandler in
>
WebApplicationContext[/jboss,file:/home/jules/cvs/JBoss/contrib/jetty/dist/j
boss/tmp/deploy/Default/tomcat-test.ear/web1003/]
>
> [Jetty] Stopped SetupHandler in null
> [Jetty] successfully deployed
>
file:/home/jules/cvs/JBoss/contrib/jetty/dist/jboss/tmp/deploy/Default/tomca
t-test.ear/web1003/
> to /jboss
> [J2EE Deployer Default] J2EE application:
> file:/home/jules/cvs/JBoss/tomcat-test.ear is deployed.
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development