This content has been marked as final.
Show 1 reply
-
1. Re: java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils when deploying web application
jaysensharma May 28, 2015 2:09 PM (in response to christopher.lambrou)I tried with a very simple webapplication and i can see that JBoss EAP6 does not have any issue. The application can access the "org.apache.commons.lang" module and the classes present inside this module jar using "TestAppe.war/META-INF/MANIFEST.MF" Dependencies entry.
Tried the following JSP to access that class :
<%@ page import="org.apache.commons.lang.StringUtils" %> <% Class c = Class.forName("org.apache.commons.lang.StringUtils"); out.println("Class c = " + c); %>
I see no issues. The "TestApp.war/META-INF.MANIFEST.MF" file has the following entry in it
Dependencies: org.apache.commons.lang
I am attaching that simple WAR so that you can test it at your end and compare it with your application.
-
TestApp.war 428 bytes
-