Re: Clicking helloworld link got java.lang.NoSuchMethodError: org.apache.commons.lang3.reflect.MethodUtils.getAnnotation

2017-09-04 Thread Yasser Zamani
>> Although I had done the following: >> export >> CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$HOME/Struts2/struts-2.5.12/lib:$CATALINA_HOME/lib:. If you would like to solve it like above, I think you may try below instead ($CLASSPATH at end): export

Re: Clicking helloworld link got java.lang.NoSuchMethodError: org.apache.commons.lang3.reflect.MethodUtils.getAnnotation

2017-09-04 Thread Yasser Zamani
So as I guessed at first, you have `commons-lang3-3.5.jar` in your tomee lib directory (/home/alkao/tomee/apache-tomee-plus-7.0.3/lib/) which has precedence to be loaded before jars in your app's lib folder! i.e. you will have commons-lang3-3.5 loaded rather than 3.6. Unfortunately, with some

Re: Clicking helloworld link got java.lang.NoSuchMethodError: org.apache.commons.lang3.reflect.MethodUtils.getAnnotation

2017-09-04 Thread albert kao
As per your instruction, modify catalina.sh: JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -XX:+TraceClassLoading -XX:+TraceClassUnloading" $ catalina.sh run > my_tomcat.log 2>&1 my_tomcat.log: [Loaded org.apache.commons.lang3.reflect.MethodUtils from