I am using StringUtils in my Java code written in Intellij IDEA. My server is resin 3.1.9. I have no problem compiling the code but when I ran it, i get the following runtime exception:
com.caucho.java.JavaCompileException:/sample.jsp:219:
cannot find symbol symbol : method
startsWithIgnoreCase(java.lang.String,java.lang.String)
location: class
org.apache.commons.lang.StringUtils
Am i missing something?
Thanks
You said you are not having any compile time error. But in actuality this is a compile time error. You got this when your server tried to compile your JSP page. Show the code of your JSP at line no. 219.
Most probably you don’t have the
commons-langjar file in your classpath, means you should add it in your applicationsWEB-INF/lib.