when package java "dynamic web project" in eclipse export, created war can launched onto server , app load correctly.
however, if try , build project maven (w/ , w/o jenkins), build claim succeeded resulting war messed somehow because attempting load app give me error:
**http status 500 - exception** org.apache.jasper.jasperexception: java.lang.classcastexception: org.apache.catalina.util.defaultannotationprocessor cannot cast org.apache.annotationprocessor .blah blah blah stacktrace goes here blah blah.... java.lang.classcastexception: org.apache.catalina.util.defaultannotationprocessor cannot cast org.apache.annotationprocessor . blah blah blah stacktrace goes here blah blah.... i've read can caused mismatch of tomcat versions between what's on server , what's in pom, i've made sure both v6.0.26.
is there else causing - else pom, maven configuration, or different?
this caused version incompatibility. server may contain jars brought in different versions maven eg. server contains commons-util-1.1.jar , maven downloads commons-util-1.2.jar web-inf/lib/
try compare 2 web-inf/lib/ directories (the 1 coming eclipse , 1 maven).
searching google message "defaultannotationprocessor cannot cast org.apache.annotationprocessor" find jar causes issue , concentrate on (but may not one, jar may hide jar :-) )
i recommend using totalcommander (http://www.ghisler.com/) compare directories sudirs , files directly different 1 command. (you can use search class in jars)
best regards, zied hamdi - http://1vu.fr
Comments
Post a Comment