1 Reply Latest reply on Aug 9, 2018 7:38 AM by Frank Langelage

    Spring Jars are not working in JBoss EAP Server

    chinna raja Newbie

      Hello All,

       

      we had one war working in Tomcat it's working fine in My windows developer machine, once i deployed the same application in the Jboss EAP in Linux, its thowing the Spring Errrors,

       

      Can you please suggest some one

       

      08-08-2018 18:52:04,238 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 47) Context initialization failed: java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;

      at org.springframework.core.convert.support.GenericConversionService.getRequiredTypeInfo(GenericConversionService.java:304) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.GenericConversionService.addConverter(GenericConversionService.java:98) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.addScalarConverters(DefaultConversionService.java:61) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.addDefaultConverters(DefaultConversionService.java:53) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.<init>(DefaultConversionService.java:42) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.AbstractPropertyResolver.<init>(AbstractPropertyResolver.java:44) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.PropertySourcesPropertyResolver.<init>(PropertySourcesPropertyResolver.java:42) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:78) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:78) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.<init>(AbstractBeanDefinitionReader.java:57) [org.springframework.beans-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.<init>(XmlBeanDefinitionReader.java:135) [org.springframework.beans-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:82) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) [spring.jar:2.5.2]

      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254) [spring.jar:2.5.2]

      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198) [spring.jar:2.5.2]

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

      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_60]

      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

       

      08-08-2018 18:52:04,245 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Journalist]] (ServerService Thread Pool -- 47) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;

      at org.springframework.core.convert.support.GenericConversionService.getRequiredTypeInfo(GenericConversionService.java:304) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.GenericConversionService.addConverter(GenericConversionService.java:98) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.addScalarConverters(DefaultConversionService.java:61) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.addDefaultConverters(DefaultConversionService.java:53) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.convert.support.DefaultConversionService.<init>(DefaultConversionService.java:42) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.AbstractPropertyResolver.<init>(AbstractPropertyResolver.java:44) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.PropertySourcesPropertyResolver.<init>(PropertySourcesPropertyResolver.java:42) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:78) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:78) [org.springframework.core-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.<init>(AbstractBeanDefinitionReader.java:57) [org.springframework.beans-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.<init>(XmlBeanDefinitionReader.java:135) [org.springframework.beans-3.1.0.M2.jar:3.1.0.M2]

      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:82) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) [spring.jar:2.5.2]

      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) [spring.jar:2.5.2]

      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:254) [spring.jar:2.5.2]

      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198) [spring.jar:2.5.2]

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

      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3777) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]

      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93) [jboss-as-web-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_60]

      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

       

      08-08-2018 18:52:04,278 ERROR [org.apache.catalina.core] (ServerService Thread Pool -- 47) JBWEB001103: Error detected during context /Journalist start, will stop it

      08-08-2018 18:52:04,286 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Journalist]] (ServerService Thread Pool -- 47) Closing Spring root WebApplicationContext

      08-08-2018 18:52:04,290 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 47) MSC000001: Failed to start service jboss.web.deployment.default-host./Journalist: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./Journalist: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

      at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_60]

      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

      at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context

      at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161)