0 Replies Latest reply on Dec 7, 2011 2:59 AM by Kee Kiat Koo

    JBoss 7 and Spring

    Kee Kiat Koo Newbie

      Hi All,

       

      I am trying to port an application from JBoss 4 to JBoss 7 and encountered the following error:

       

      I could not make out this error because it gives no details.

      15:32:28,099 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

       

      The hint given was vague because given the WAR file works in JBoss4.2.3

      15:32:30,567 INFO  [stdout] (MSC service thread 1-3) [ERROR] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable.  Most likely, this is due to an incorrect or missing library dependency.

       

      The bean "configPropertiesService" has already been defined in one of the XML files. 

       

      The same WAR file works fine in JBoss 4.2.3. Any assistance is appreciated. Thanks!

      ============================================================================

       

      15:32:23,145 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) Deploying JDBC-compliant driver class org.apache.derby.jdbc.AutoloadedDriver (version 10.3)
      15:32:23,458 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/erpvep]] (MSC service thread 1-3) Initializing Spring root WebApplicationContext
      15:32:28,099 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,130 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,161 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,411 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,614 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,614 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,630 INFO  [stdout] (MSC service thread 1-3) [ERROR] java.lang.ExceptionInInitializerError

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3) org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'configPropertiesService' is defined

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3)  at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3)  at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914)

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3)  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3)  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

      15:32:28,942 ERROR [stderr] (MSC service thread 1-3)  at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:757)

      .

      .

      .

      15:32:30,567 INFO  [stdout] (MSC service thread 1-3) [ERROR] Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable.  Most likely, this is due to an incorrect or missing library dependency.

      15:32:30,583 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/erpvep]] (MSC service thread 1-3) Marking servlet action as unavailable