Announcement Announcement Module
Collapse
No announcement yet.
Migration Spring 3.2.2 to 3.2.3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Migration Spring 3.2.2 to 3.2.3

    Hi gentlemen,

    I'm trying migrate Spring 3.2.2 to 3.2.3 on my project.

    I'm using maven to managed dependencies.

    I'm receiving this stack trace when I try deploy the application:

    Code:
    Caused by: java.lang.RuntimeException: Error getting reflective information for class org.springframework.web.servlet.DispatcherServlet with ClassLoader ModuleClassLoader for Module "deployment.sgn-ear.ear.sgn-orcamento-web-0.0.1-SNAPSHOT.war:main" from Service Module Loader
    	at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.springframework.web.servlet.HttpServletBean.setEnvironment(Lorg/springframework/core/env/Environment;)V" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/springframework/web/servlet/HttpServletBean, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for interface org/springframework/context/EnvironmentAware have different Class objects for the type org/springframework/core/env/Environment;)V used in the signature
    	at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_21]
    	at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_21]
    	at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_21]
    	at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	... 10 more
    
    11:53:32,203 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC00001: Failed to start service jboss.deployment.subunit."sgn-ear.ear"."sgn-web-0.0.1-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."sgn-ear.ear"."sgn-web-0.0.1-SNAPSHOT.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "sgn-web-0.0.1-SNAPSHOT.war" of deployment "sgn-ear.ear"
    	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
    	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
    Caused by: java.lang.RuntimeException: Error getting reflective information for class org.springframework.web.servlet.DispatcherServlet with ClassLoader ModuleClassLoader for Module "deployment.sgn-ear.ear.sgn-web-0.0.1-SNAPSHOT.war:main" from Service Module Loader
    	at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.springframework.web.servlet.HttpServletBean.setEnvironment(Lorg/springframework/core/env/Environment;)V" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/springframework/web/servlet/HttpServletBean, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for interface org/springframework/context/EnvironmentAware have different Class objects for the type org/springframework/core/env/Environment;)V used in the signature
    	at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_21]
    	at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_21]
    	at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_21]
    	at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	at 
    11:53:32,436 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015863: Replacement of deployment "sgn-ear.ear" by deployment "sgn-ear.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"sgn-ear.ear\".\"sgn-orcamento-web-0.0.1-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"sgn-ear.ear\".\"sgn-orcamento-web-0.0.1-SNAPSHOT.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"sgn-orcamento-web-0.0.1-SNAPSHOT.war\" of deployment \"sgn-ear.ear\"","jboss.deployment.subunit.\"sgn-ear.ear\".\"sgn-web-0.0.1-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"sgn-ear.ear\".\"sgn-web-0.0.1-SNAPSHOT.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"sgn-web-0.0.1-SNAPSHOT.war\" of deployment \"sgn-ear.ear\""}}
    11:53:33,329 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "sgn-web-0.0.1-SNAPSHOT.war"
    11:53:33,329 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015876: Starting deployment of "sgn-orcamento-web-0.0.1-SNAPSHOT.war"
    11:53:33,377 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
    11:53:33,378 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
    11:53:33,626 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC00001: Failed to start service jboss.deployment.subunit."sgn-ear.ear"."sgn-orcamento-web-0.0.1-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."sgn-ear.ear"."sgn-orcamento-web-0.0.1-SNAPSHOT.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "sgn-orcamento-web-0.0.1-SNAPSHOT.war" of deployment "sgn-ear.ear"
    	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
    	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
    Caused by: java.lang.RuntimeException: Error getting reflective information for class org.springframework.web.servlet.DispatcherServlet with ClassLoader ModuleClassLoader for Module "deployment.sgn-ear.ear.sgn-orcamento-web-0.0.1-SNAPSHOT.war:main" from Service Module Loader
    	at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	... 5 more
    Caused by: java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.springframework.web.servlet.HttpServletBean.setEnvironment(Lorg/springframework/core/env/Environment;)V" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, org/springframework/web/servlet/HttpServletBean, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for interface org/springframework/context/EnvironmentAware have different Class objects for the type org/springframework/core/env/Environment;)V used in the signature
    	at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_21]
    	at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_21]
    	at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_21]
    	at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
    	... 10 more
    
    11:53:33,627 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC00001: Failed to start service jboss.deployment.subunit."sgn-ear.ear"."sgn-web-0.0.1-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."sgn-ear.ear"."sgn-web-0.0.1-SNAPSHOT.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "sgn-web-0.0.1-SNAPSHOT.war" of deployment "sgn-ear.ear"
    Caused by: java.lang.RuntimeException: Error getting reflective information for class org.springframework.web.servlet.DispatcherServlet with ClassLoader ModuleClassLoader for Module "deployment.sgn-ear.ear.sgn-web-0.0.1-SNAPSHOT.war:main" from Service Module Loader
Working...
X