You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/02/25 21:44:00 UTC

[Bug 57129] Regression. Load WEB-INF/lib jarfiles in alphabetical order

https://bz.apache.org/bugzilla/show_bug.cgi?id=57129

--- Comment #17 from CBen <ch...@gmail.com> ---
We have upgraded from Tomcat 6 / Java 6 to Tomcat 8 / Java 7.
Everything was deployed and working successfully in tests environments and 3
prod servers. However, the deployment was failing in the two prod servers. The
error faced is “java.lang.NoSuchMethodError”.

After reading this thread mentioning that Tomcat 8 loads the libraries in same
folder depends on File System and not in alphabetical order. As a workaround,
we decided explicitly just to rename the library facing the issue by putting
“a-“ at the front of the name to see if the issue with the alphabetical
ordering will persist. This resolved the issue. We tried also by putting “z-“
and it worked too. As soon as we re-named it to its original, the issue was
evident again.

The behavior is confirmed when we display the libraries loaded in debug mode.
We clearly see that the order of libraries loaded is different from an
environment to the other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org