开发者

Runtime error when using StringUtils

开发者 https://www.devze.com 2022-12-13 22:51 出处:网络
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:

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:开发者_如何学Python219: 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-lang jar file in your classpath, means you should add it in your applications WEB-INF/lib.

0

精彩评论

暂无评论...
验证码 换一张
取 消