0 Replies Latest reply on Jan 12, 2020 11:40 PM by Manuprabath Madushanka

    Spring Web Application Deployement error with Jboss EAP

    Manuprabath Madushanka Newbie

      Hi Guys,

       

      I'm new to the Jboss EAP. Currently I'm having an issue while deploying the spring web application with Jboss EAP for UAT environment.

       

      I have the .war file and it is succeffully getting deployed to dev environment. but when I try to deploy the same .war file to UAT environment it got failed. The error log saying like this.

       

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilter' defined in "/content/casemgr-admin.war/WEB-INF/classes/project/filter/SpringSecurityFilter.class": Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [project.casemanageradmin.filter.SpringSecurityFilter]: Constructor threw exception; nested exception is java.lang.NullPointerException

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1076) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1021) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

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

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:960) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              ... 74 more

      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [project.casemanageradmin.filter.SpringSecurityFilter]: Constructor threw exception; nested exception is java.lang.NullPointerException

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilter' defined in "/content/casemgr-admin.war/WEB-INF/classes/project/filter/SpringSecurityFilter.class": Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [project.filter.SpringSecurityFilter]: Constructor threw exception; nested exception is java.lang.NullPointerException

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1076) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1021) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

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

              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:960) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480) [spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]

              ... 74 more

       

      If it is a bean instantiation issue, then it should not be deployed to DEV environment as well. but it is getting deployed to DEV but not for UAT. Only the mentioned error is keep getting popup in the log file. no any other error.

       

      Could anyone please help me on this.