maven - Problems once migrate jsf 1.2 to jsf 2.2.12 -
i migrating project jsf 1.2 jsf 2.2.12. after built successful, deployed jboss 7 server , got error message that:
14:14:10,255 error [org.jboss.msc.service.fail] (msc service thread 1-7) msc00001: failed start service jboss.deployment.unit."myproject-war.war".post_module: org.jboss.msc.service.startexception in service jboss.deployment.unit."myproject-war.war".post_module: failed process phase post_module of deployment "myproject-war.war" @ org.jboss.as.server.deployment.deploymentunitphaseservice.start(deploymentunitphaseservice.java:119) [jboss-as-server-7.1.1.final.jar:7.1.1.final] @ org.jboss.msc.service.servicecontrollerimpl$starttask.startservice(servicecontrollerimpl.java:1811) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ org.jboss.msc.service.servicecontrollerimpl$starttask.run(servicecontrollerimpl.java:1746) [jboss-msc-1.0.2.ga.jar:1.0.2.ga] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [rt.jar:1.7.0_80] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [rt.jar:1.7.0_80] @ java.lang.thread.run(thread.java:745) [rt.jar:1.7.0_80] caused by: java.lang.runtimeexception: error getting reflective information class org.richfaces.taglib.columnstag classloader moduleclassloader module "deployment.myproject-war.war:main" service module loader @ org.jboss.as.server.deployment.reflect.deploymentreflectionindex.getclassindex(deploymentreflectionindex.java:70) [jboss-as-server-7.1.1.final.jar:7.1.1.final] @ org.jboss.as.ee.metadata.methodannotationaggregator.runtimeannotationinformation(methodannotationaggregator.java:58) @ org.jboss.as.ee.component.deployers.interceptorannotationprocessor.handleannotations(interceptorannotationprocessor.java:85) @ org.jboss.as.ee.component.deployers.interceptorannotationprocessor.processcomponentconfig(interceptorannotationprocessor.java:70) @ org.jboss.as.ee.component.deployers.interceptorannotationprocessor.deploy(interceptorannotationprocessor.java:55) @ 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 "javax.faces.webapp.uicomponentclassictagbase.getparent()ljavax/servlet/jsp/tagext/tag;" class loader (instance of org/jboss/modules/moduleclassloader) of current class, org/richfaces/taglib/columnstag, , class loader (instance of org/jboss/modules/moduleclassloader) interface javax/servlet/jsp/tagext/tag have different class objects type ervlet/jsp/tagext/tag; used in signature @ java.lang.class.getdeclaredfields0(native method) [rt.jar:1.7.0_80] @ java.lang.class.privategetdeclaredfields(class.java:2509) [rt.jar:1.7.0_80] @ java.lang.class.getdeclaredfields(class.java:1819) [rt.jar:1.7.0_80] @ org.jboss.as.server.deployment.reflect.classreflectionindex.<init>(classreflectionindex.java:57) [jboss-as-server-7.1.1.final.jar:7.1.1.final] @ 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 14:14:10,286 info [org.jboss.as.server] (management-handler-thread - 2) jbas015870: deploy of deployment "myproject-war.war" rolled failure message {"jbas014671: failed services" => {"jboss.deployment.unit.\"myproject-war.war\".post_module" => "org.jboss.msc.service.startexception in service jboss.deployment.unit.\"myproject-war.war\".post_module: failed process phase post_module of deployment \"myproject-war.war\""}} 14:14:10,484 info [org.jboss.as.server.deployment] (msc service thread 1-4) jbas015877: stopped deployment myproject-war.war in 198ms 14:14:10,486 info [org.jboss.as.controller] (management-handler-thread - 2) jbas014774: service status report jbas014777: services failed start: service jboss.deployment.unit."myproject-war.war".post_module: org.jboss.msc.service.startexception in service jboss.deployment.unit."myproject-war.war".post_module: failed process phase post_module of deployment "myproject-war.war" [2015-09-30 02:14:10,579] artifact myproject-war:war exploded: error during artifact deployment. see server log details. [2015-09-30 02:14:10,579] artifact myproject-war:war exploded: java.lang.exception: {"jbas014671: failed services" => {"jboss.deployment.unit.\"myproject-war.war\".post_module" => "org.jboss.msc.service.startexception in service jboss.deployment.unit.\"myproject-war.war\".post_module: failed process phase post_module of deployment \"myproject-war.war\""}}
could have idea one?
here system detail: server: jboss7 current libs: jsf 1.2, richfaces 3.3.3 migration libs: jsf 2.2.17 build: maven
best regards,
caused by: java.lang.linkageerror: loader constraint violation in interface itable initialization: when resolving method "javax.faces.webapp.uicomponentclassictagbase.getparent()ljavax/servlet/jsp/tagext/tag;" class loader (instance of org/jboss/modules/moduleclassloader) of current class, org/richfaces/taglib/columnstag, , class loader (instance of org/jboss/modules/moduleclassloader) interface javax/servlet/jsp/tagext/tag have different class objects type ervlet/jsp/tagext/tag; used in signature
java.lang.linkageerror
sign of classpath pollution multiple different versioned libraries. you'd best let maven produce war file , inspect /web-inf/lib
libraries doesn't belong there (i.e. libraries supposed provided target server, such java ee, jsp, servlet, jsf, etc.. in case jboss as). fix maven pom.xml
accordingly mark provided
.
the particular 1 got suggests duplicated javax.servlet.jsp.*
api. you'll in /web-inf/lib
have jsp-api.jar
or jar covers (e.g. javaee.jar
). in case, need mark dependency in pom.xml
provided
. or, if it's jsp-api
, remove altogether , use single javaee-api
or javaee-web-api
dependency version 6.0
, scope provided
covers entire java ee 6 (web profile) already, done jboss 7.
Comments
Post a Comment