tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From albert kao <>
Subject How to load commons-lang3-3.6.jar from web-inf/lib of a war file
Date Fri, 15 Sep 2017 12:04:57 GMT
I created a hello-world.war from the from

Clicking the 'Hello World' link got the url:

which display:
HTTP Status 500 - Filter execution threw an exception

type Exception report

message Filter execution threw an exception

description The server encountered an internal error that prevented it from
fulfilling this request.


javax.servlet.ServletException: Filter execution threw an exception
root cause

note The full stack trace of the root cause is available in the Apache
Tomcat (TomEE)/8.5.11 (7.0.3) logs.

Apache Tomcat (TomEE)/8.5.11 (7.0.3)

Therefore the war file has a dependency to struts 2.5.12 which has (not
optional) dependency to commons lang3 3.6.
The war file directory structure is:

I add following line to
set "JAVA_OPTS=-XX:+TraceClassLoading -XX:+TraceClassUnloading"

then do: run > my_tomcat.log 2>&1

then finally search my_tomcat.log for MethodUtils

my_tomcat.log has this line:
[Loaded org.apache.commons.lang3.reflect.MethodUtils from

i.e. tomee 7.0.3 loads commons-lang3-3.5.jar.

How to load commons-lang3-3.6.jar from web-inf/lib of a war file using
tomee 7.0.3?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message