Getting exceptions on restarts
gazebo888 Mar 27, 2013 6:39 PMI have just migrated my application to JBOSS 7.1.1 and I'm running into problems. Hopefully somebody can help me with my problem. I have finished migrating and my applications seem to be running ok so far. However, when I shut down the server and restart, I get
Caused by: java.lang.NoSuchMethodError: org.jgroups.jmx.JmxConfigurator.registerChannel(Lorg/jgroups/JChannel;Ljavax/management/MBeanServer;Ljava/lang/String;)Lorg/jgroups/jmx/JChannel;
at org.jboss.cache.TreeCache.registerChannelInJmx(TreeCache.java:6677) [jboss-cache-jdk50.jar:1.4.1.SP4]
at org.jboss.cache.TreeCache._createService(TreeCache.java:1476) [jboss-cache-jdk50.jar:1.4.1.SP4]
at org.jboss.cache.TreeCache.createService(TreeCache.java:1388) [jboss-cache-jdk50.jar:1.4.1.SP4]
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245) [jboss-system.jar:4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042341)]
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173) [jboss-system.jar:4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042341)]
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:265) [jboss-system.jar:4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042341)]
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181) [jboss-system.jar:4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042341)]
at org.hibernate.cache.TreeCacheProvider.start(TreeCacheProvider.java:75) [hibernate3.jar:3.2.5.ga]
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:183) [hibernate3.jar:3.2.5.ga]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) [hibernate3.jar:3.2.5.ga]
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) [hibernate-annotations.jar:3.2.5.ga]
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:816) [spring-orm.jar:2.5.2]
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:734) [spring-orm.jar:2.5.2]
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) [spring-orm.jar:2.5.2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1333) [spring-beans.jar:2.5.2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1299) [spring-beans.jar:2.5.2]
... 23 more
But, if I "Disable" and then "Enable" again, it works again without errors. Does anybody know why this is happening?
Here's my jboss-deployment-structure:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.hibernate" />
<module name="org.jgroups" />
</exclusions>
</deployment>
</jboss-deployment-structure>
Could it be that the jboss-deployment-structure xml file is not read on server restart but rather only on "Enable"? Thanks.