3 Replies Latest reply on Sep 9, 2013 5:33 PM by Tomaz Cerar

    JBoss 7.1 Final configuration issues

    Allabakash Shaik Newbie

      Dear all, We've an application running on JBoss 4.2 version. Recently we started migrating to the 7.1.1 Final version. The application is built using the springs framework. However during the migration there has been a number of configuration changes that were required and finally we're struck at the following error. Any help in this regards is very much appreciated.

       

       

      The standalone.xml is configured with the database details as follows:

       

       

      <datasources>

        <datasource

        jndi-name="java:/jdbc/somename" pool-name="my_pool"

        enabled="true" jta="true"

        use-java-context="true" use-ccm="true">

        <connection-url>jdbc:mysql://xx.xx.xx.xx:xxxx/xxxxxxxxxxxx</connection-url>

        <driver>mysql</driver>

        <security>

        <user-name>xxxxxxxxxxxxxxxxx</user-name>

        <password>xxxxxxxxxxxxxxxx</password>

        </security>

        <statement>

        <prepared-statement-cache-size>

        100

        </prepared-statement-cache-size>

        <share-prepared-statements/>

        </statement>

        </datasource>

       

       

       

       

        <drivers>

        <driver name="mysql" module="com.mysql">

        <driver-class>

        com.mysql.jdbc.Driver

        </driver-class>

        <xa-datasource-class>

        com.mysql.jdbc.jdbc2.optional.MysqlXADataSource

        </xa-datasource-class>

        </driver>

        </drivers>

      </datasources>

       

       

       

       

      The error we're getting is as follows:

       

       

      ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Context initialization failed: org.springframework.beans.factory.BeanCreationException:

      Error creating bean with name '_filterChainProxy':

      Initialization of bean failed;

      nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.xxx.xxxx.xxx.xxxxx.xxxxx.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

        • 1. Re: JBoss 7.1 Final configuration issues
          Stephen Coy Master

          Hi there,

           

          Please attach a complete server.log file to the discussion.

           

          In addition please list the 3rd party jars that have been included in your application and their location (WEB-INF/lib, EAR, EAR/lib, etc).

          • 2. Re: JBoss 7.1 Final configuration issues
            vikram chowdary Newbie

            Hi Stephen,

             

            Thanks for helping us out.

             

            Below are the list of Jars available from war/WEB-INF/lib folder.

             

            GeoLite.jar

            acegi-security-1.0.7.jar

            activation.jar

            annotations-api.jar

            aopalliance.jar

            aspectjtools-1.6.0.jar

            axiom-api-1.2.8.jar

            axis.jar

            commons-attributes-api.jar

            commons-attributes-compiler.jar

            commons-beanutils.jar

            commons-codec.jar

            commons-collections-3.1.jar

            commons-digester.jar

            commons-fileupload.jar

            commons-httpclient.jar

            commons-io.jar

            commons-lang.jar

            commons-logging.jar

            dwr.jar

            freemarker.jar

            iText-2.0.7.jar

            jackson-annotations-2.2.0.jar

            jackson-core-2.2.0.jar

            jackson-databind-2.2.0.jar

            jasperreports-2.0.5.jar

            jcaptcha-1.0-all.jar

            jdom.jar

            json-rpc-1.0.jar

            jstl-1.2.jar

            jxl.jar

            log4j-1.2.15.jar

            log4j-1.2.9.jar

            mail.jar

            mysql-connector-java-5.1.7-bin.jar

            plaksa.jar

            poi-3.0.1.jar

            portlet-api.jar

            servlet-api.jar

            spring-aop-2.5.6.jar

            spring-beans.jar

            spring-context.jar

            spring-core.jar

            spring-dao-2.0.8.jar

            spring-modules-validation.jar

            spring-security-acl-2.0.5.RELEASE.jar

            spring-security-core-2.0.5.RELEASE.jar

            spring-security-core-tiger-2.0.5.RELEASE.jar

            spring-security-taglibs-2.0.5.RELEASE.jar

            spring-web.jar

            spring-webmvc-portlet.jar

            spring-webmvc-struts.jar

            spring-webmvc.jar

            standard-1.1.2.jar

            standard.jar

            struts.jar

            tinymce-3.2.1.jar

            velocity-1.5.jar

            velocity-tools-view-1.4.jar

             

            Complete server log is here.

             

             

             

             

             

             

            17:13:10,658 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

            17:13:11,523 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

            17:13:11,843 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

            17:13:16,932 INFO  [org.xnio] XNIO Version 3.0.3.GA

            17:13:16,952 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

            17:13:16,992 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

            17:13:17,044 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

            17:13:17,421 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

            17:13:18,729 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final

            17:13:18,953 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

            17:13:19,498 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

            17:13:19,476 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            17:13:21,004 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA

            17:13:21,984 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080

            17:13:22,379 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

            17:13:23,677 WARN  [com.arjuna.ats.arjuna] (Transaction Expired Entry Monitor) ARJUNA012210: Unable to use InetAddress.getLocalHost() to resolve address.

            17:13:23,683 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /0.0.0.0:9999

            17:13:23,733 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /opt/jboss7.1/standalone/deployments

            17:13:23,777 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /0.0.0.0:4447

            17:13:23,779 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment plaksa.war

            17:13:23,790 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment mysql-connector-java-5.1.26-bin.jar

            17:13:24,314 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            17:13:24,554 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

            JBAS014775:    New missing/unsatisfied dependencies:

                  service jboss.jdbc-driver.mysql-connector-java-5_1_26-bin_jar (missing) dependents: [service jboss.data-source.java:/jdbc/testds]

             

            17:13:24,607 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990

            17:13:24,609 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 15113ms - Started 133 of 211 services (2 services failed or missing dependencies, 74 services are passive or on-demand)

            17:13:24,735 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "mysql-connector-java-5.1.26-bin.jar"

            17:13:24,736 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "plaksa.war"

            17:13:26,025 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

            17:13:26,827 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:/jdbc/testds]

            17:13:41,049 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry iText.jar in "/content/plaksa.war/WEB-INF/lib/toolbox.jar"  does not point to a valid jar for a Class-Path reference.

            17:13:41,051 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry bc.jar in "/content/plaksa.war/WEB-INF/lib/toolbox.jar"  does not point to a valid jar for a Class-Path reference.

            17:13:41,055 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry itext-signed.jar in "/content/plaksa.war/WEB-INF/lib/toolbox.jar"  does not point to a valid jar for a Class-Path reference.

            17:13:41,057 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry bc-signed.jar in "/content/plaksa.war/WEB-INF/lib/toolbox.jar"  does not point to a valid jar for a Class-Path reference.

            17:13:41,092 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry bcprov-jdk14-138.jar in "/content/plaksa.war/WEB-INF/lib/iText-2.0.7.jar"  does not point to a valid jar for a Class-Path reference.

            17:13:45,593 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

            17:13:46,420 WARN  [org.jboss.web] (MSC service thread 1-2) JBAS018204: Clustering not supported, falling back to non-clustered session manager

            17:13:46,787 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext

            17:13:46,788 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started

            17:13:46,889 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Refreshing org.springframework.web.context.support.XmlWebApplicationContext@18188faa: display name [Root WebApplicationContext]; startup date [Mon Sep 09 17:13:46 UTC 2013]; root of context hierarchy

            17:13:47,000 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [applicationContext.xml]

            17:13:48,041 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [securityContext.xml]

            17:13:49,442 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@18188faa]: org.springframework.beans.factory.support.DefaultListableBeanFactory@20f5517f

            17:13:49,790 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

            17:13:49,840 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean '(inner bean)#1' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

            17:13:49,847 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean '_delegatingMethodDefinitionSource' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

            17:13:49,859 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Bean '_methodDefinitionSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

            17:13:49,938 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@20f5517f: defining beans [_delegatingMethodDefinitionSource,_accessManager,_methodSecurityInterceptor,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_filterChainProxyPostProcessor,_filterChainList,_securityContextHolderAwareRequestFilter,_portMapper,_exceptionTranslationFilter,_filterSecurityInterceptor,_sessionFixationProtectionFilter,_entryPointInjectionBeanPostProcessor,_userServiceInjectionPostProcessor,authenticationProcessingFilterEntryPoint,customeAuthenticationFilter,switchUserProcessingFilter,accountverificationFilter,plaksaAuthenticationProvider,rememberMeAuthenticationProvider,authenticationManager,org.springframework.security.providers.dao.DaoAuthenticationProvider#0,org.springframework.security.config.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,mySQLUserDetailService]; root of factory hierarchy

            17:13:50,036 INFO  [org.springframework.security.intercept.AbstractSecurityInterceptor] (MSC service thread 1-2) Validated configuration attributes

            17:13:50,110 INFO  [org.springframework.security.config.EntryPointInjectionBeanPostProcessor] (MSC service thread 1-2) Selecting AuthenticationEntryPoint for use in ExceptionTranslationFilter

            17:13:50,517 INFO  [org.springframework.security.config.EntryPointInjectionBeanPostProcessor] (MSC service thread 1-2) Using main configured AuthenticationEntryPoint.

            17:13:50,558 INFO  [org.springframework.security.config.EntryPointInjectionBeanPostProcessor] (MSC service thread 1-2) Using bean 'com.bodhtree.test.view.PlaksaAuthenticationMultiEntryPoint@301f417' as the entry point.

            17:13:50,613 INFO  [org.springframework.security.intercept.AbstractSecurityInterceptor] (MSC service thread 1-2) Validated configuration attributes

            17:13:51,715 ERROR [class com.bodhtree.test.util.Generic] (MSC service thread 1-2) Exception in getNewConfigInstance : java.io.FileNotFoundException: /content/plaksa.war/WEB-INF/classes/config.xml (No such file or directory)

            17:13:51,793 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@20f5517f: defining beans [_delegatingMethodDefinitionSource,_accessManager,_methodSecurityInterceptor,_methodSecurityInterceptorPostProcessor,_methodDefinitionSourceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,_authenticationManager,_filterChainProxy,_httpSessionContextIntegrationFilter,_filterChainProxyPostProcessor,_filterChainList,_securityContextHolderAwareRequestFilter,_portMapper,_exceptionTranslationFilter,_filterSecurityInterceptor,_sessionFixationProtectionFilter,_entryPointInjectionBeanPostProcessor,_userServiceInjectionPostProcessor,authenticationProcessingFilterEntryPoint,customeAuthenticationFilter,switchUserProcessingFilter,accountverificationFilter,plaksaAuthenticationProvider,rememberMeAuthenticationProvider,authenticationManager,org.springframework.security.providers.dao.DaoAuthenticationProvider#0,org.springframework.security.config.AuthenticationProviderBeanDefinitionParser$AuthenticationProviderCacheResolver#0,mySQLUserDetailService]; root of factory hierarchy

            17:13:51,800 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainProxy': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans.jar:2.5.4]

                    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) [spring-context.jar:2.5.4]

                    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) [spring-context.jar:2.5.4]

                    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) [spring-web.jar:2.5.4]

                    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring-web.jar:2.5.4]

                    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web.jar:2.5.4]

                    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.security.config.FilterChainProxyPostProcessor.postProcessBeforeInitialization(FilterChainProxyPostProcessor.java:52) [spring-security-core-2.0.5.RELEASE.jar:]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1329) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) [spring-beans.jar:2.5.4]

                    ... 22 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:458) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) [spring-beans.jar:2.5.4]

                    ... 40 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [spring-beans.jar:2.5.4]

                    ... 50 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:881) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:837) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [spring-beans.jar:2.5.4]

                    ... 63 more

            Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:111) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:875) [spring-beans.jar:2.5.4]

                    ... 74 more

            Caused by: java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at com.bodhtree.test.model.dao.AbstractDAO.<init>(AbstractDAO.java:52) [plaksa.jar:]

                    at com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService.<init>(MySQLUserDetailService.java:31) [plaksa.jar:]

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_31]

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_31]

                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_31]

                    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_31]

                    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:96) [spring-beans.jar:2.5.4]

                    ... 76 more

             

            17:13:52,098 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) 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 '_filterChainProxy': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans.jar:2.5.4]

                    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) [spring-context.jar:2.5.4]

                    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) [spring-context.jar:2.5.4]

                    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) [spring-web.jar:2.5.4]

                    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring-web.jar:2.5.4]

                    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web.jar:2.5.4]

                    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_filterChainList': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.OrderedFilterBeanDefinitionDecorator$OrderedFilterDecorator] while setting bean property 'filters' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.security.config.FilterChainProxyPostProcessor.postProcessBeforeInitialization(FilterChainProxyPostProcessor.java:52) [spring-security-core-2.0.5.RELEASE.jar:]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:350) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1329) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) [spring-beans.jar:2.5.4]

                    ... 22 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Cannot resolve reference to bean 'switchUserProcessingFilter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:458) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:160) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) [spring-beans.jar:2.5.4]

                    ... 40 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'switchUserProcessingFilter' defined in class path resource [securityContext.xml]: Cannot resolve reference to bean 'mySQLUserDetailService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [spring-beans.jar:2.5.4]

                    ... 50 more

            Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySQLUserDetailService' defined in class path resource [securityContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:881) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:837) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans.jar:2.5.4]

                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_31]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [spring-beans.jar:2.5.4]

                    ... 63 more

            Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:111) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) [spring-beans.jar:2.5.4]

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:875) [spring-beans.jar:2.5.4]

                    ... 74 more

            Caused by: java.lang.RuntimeException: Unable to initialize DatabaseConnectionFactory

                    at com.bodhtree.test.model.dao.AbstractDAO.<init>(AbstractDAO.java:52) [plaksa.jar:]

                    at com.bodhtree.test.model.dao.mysqlimpl.MySQLUserDetailService.<init>(MySQLUserDetailService.java:31) [plaksa.jar:]

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_31]

                    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_31]

                    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_31]

                    at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_31]

                    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:96) [spring-beans.jar:2.5.4]

                    ... 76 more

             

            17:13:52,867 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart

            17:13:52,868 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [] startup failed due to previous errors

            17:13:52,915 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-2) Closing Spring root WebApplicationContext

            17:13:52,928 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context

                    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

                    at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

             

            17:13:53,222 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "mysql-connector-java-5.1.26-bin.jar" was rolled back with no failure message

            17:13:53,256 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "plaksa.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context"}}

            17:13:53,429 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment mysql-connector-java-5.1.26-bin.jar in 215ms

            17:13:54,006 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment plaksa.war in 746ms

            17:13:54,010 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

            JBAS014776:    Newly corrected services:

                  service jboss.jdbc-driver.mysql-connector-java-5_1_26-bin_jar (no longer required)

            JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context

             

            17:13:54,014 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: JBAS018040: Failed to start context"}}}}

            17:13:54,017 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

            • 3. Re: JBoss 7.1 Final configuration issues
              Tomaz Cerar Master

              Some comments about jars you bundle

              vikram chowdary wrote:

               

              Hi Stephen,

               

              Thanks for helping us out.

               

              Below are the list of Jars available from war/WEB-INF/lib folder.

               

              GeoLite.jar

              acegi-security-1.0.7.jar

              activation.jar <-- remove it, part of JDK & app server

              annotations-api.jar

              aopalliance.jar

              aspectjtools-1.6.0.jar

              axiom-api-1.2.8.jar

              axis.jar

              commons-attributes-api.jar

              commons-attributes-compiler.jar

              commons-beanutils.jar

              commons-codec.jar

              commons-collections-3.1.jar

              commons-digester.jar

              commons-fileupload.jar

              commons-httpclient.jar

              commons-io.jar

              commons-lang.jar

              commons-logging.jar

              dwr.jar

              freemarker.jar

              iText-2.0.7.jar

              jackson-annotations-2.2.0.jar

              jackson-core-2.2.0.jar

              jackson-databind-2.2.0.jar

              jasperreports-2.0.5.jar

              jcaptcha-1.0-all.jar

              jdom.jar

              json-rpc-1.0.jar

              jstl-1.2.jar <-- remove this is par tof app server / servlet

              jxl.jar

              log4j-1.2.15.jar --< why two log4j?

              log4j-1.2.9.jar <-- why two log4j? remove one

              mail.jar <-- no need, part of app server

              mysql-connector-java-5.1.7-bin.jar <-- jdbc driver should not be deployed

              plaksa.jar

              poi-3.0.1.jar

              portlet-api.jar

              servlet-api.jar <-- remove, this is part of app server

              spring-aop-2.5.6.jar

              spring-beans.jar

              spring-context.jar

              spring-core.jar

              spring-dao-2.0.8.jar

              spring-modules-validation.jar

              spring-security-acl-2.0.5.RELEASE.jar

              spring-security-core-2.0.5.RELEASE.jar

              spring-security-core-tiger-2.0.5.RELEASE.jar

              spring-security-taglibs-2.0.5.RELEASE.jar

              spring-web.jar

              spring-webmvc-portlet.jar

              spring-webmvc-struts.jar

              spring-webmvc.jar

              standard-1.1.2.jar <-- remove part of app server

              standard.jar <-- remove part of app server

              struts.jar

              tinymce-3.2.1.jar

              velocity-1.5.jar

              velocity-tools-view-1.4.jar

              beyond that, upgrade spring to 3.x as 2.x does not work properly on AS7+