Unfortunately twiddle start does not work when using the standard 'all' 
configuration. The twiddle stop does successfully stop the web application and 
browser clients are served the '503 Application not available' and the 
following is logged by our context listener:

2005-10-28 11:43:20,375 INFO  [uk.co.woolworths.tsp.utility.ContextListener] 
Context destroyed

When twiddle start command is used (to start web app 'tsp'):

twiddle invoke 
"jboss.web:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/tsp"
 start

The following InstanceNotFoundException occurs :


2005-10-28 11:43:31,000 INFO  
[org.jboss.web.tomcat.tc5.session.JBossCacheManager] Starting JBossManager
2005-10-28 11:43:31,000 INFO  
[org.jboss.web.tomcat.tc5.session.JBossCacheManager] We are using mod_jk(2) for 
load-balancing. Will add JvmRouteValve.
2005-10-28 11:43:31,000 ERROR 
[org.jboss.web.tomcat.tc5.session.JBossCacheManager] Exception starting 
JBossCacheManager
javax.management.InstanceNotFoundException: 
jboss.web:j2eeType=WebModule,name=//localhost/tsp,J2EEApplication=none,J2EEServer=none
 is not registered.
        at 
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:509)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:638)
        at 
org.jboss.web.tomcat.tc5.session.JBossCacheManager.installJvmRouteValve(JBossCacheManager.java:727)
        at 
org.jboss.web.tomcat.tc5.session.JBossCacheManager.startEmbedded(JBossCacheManager.java:771)
        at 
org.jboss.web.tomcat.tc5.session.JBossCacheManager.start(JBossCacheManager.java:246)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4057).....


This also happens if using the jmx-console interface. 

It would appear that the stop method when used in a clustered environment is 
removing the mbean instance and therefore it (and the start method) is not 
subsequently available to JbossCacheManger.

My production environment is using Jboss 4.0.3RC2 and jdk 1.5.0_4 on Windows 
2003 Server Standard edition sp1.

Should I be using a different mbean because of the clustering?

Again any help would be appreciated.



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

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


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to