Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1843

Unable to deploy jcommune.war on JBoss EAP 6.2

VotersWatchers
    XMLWordPrintable

    Details

      Description

      Perform steps from installation guide, but use JBoss EAP 6.2.0 instead of Tomcat. The deployment fails with following error:

      13:40:20,398 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jcommune]] (ServerService Thread Pool -- 51) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'managementService' defined in class path resource [org/jtalks/jcommune/service/applicationContext-service.xml]: Cannot resolve reference to bean 'mbeanServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mbeanServer': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: org.jtalks.common.model.dao.Crud [Xlint:invalidAbsoluteTypeName]

      After some investigation I've localized the problem. Seems JBoss AS 7 can't properly load classes used by Spring AOP here:
      jcommune\jcommune-model\src\main\resources\org\jtalks\jcommune\model\entity\applicationContext-dao.xml

       <aop:config> 
          <aop:advisor advice-ref="exceptionTranslationInterceptor"   
                       pointcut="execution(* org.jtalks.common.model.dao.Crud+.* (*))"/>
          <aop:advisor advice-ref="exceptionTranslationInterceptor"
                       pointcut="execution(* org.jtalks.jcommune.model.dao.ForumStatisticsDao.* (*))"/>
          <aop:advisor advice-ref="exceptionTranslationInterceptor"
                       pointcut="execution(* org.jtalks.jcommune.model.dao.ValidatorDao.* (*))"/>
        </aop:config>
      

      As a quick workaround add * before class name (for example *Crud) and the error should go away (however this is not real solution)
      Need additional investigation how to load these ones in JBoss as 7 environment.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                trod Boris Wainberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel