illegalargumentexception - Project running on Netbeans but not on Tomcat as War file
Problem was in my import statement, which included:
Original code
<%@page contentType="text/html" pageEncoding="UTF-8" language="java" import="java.util.*,mypackage.one.*,mypackage.two.*;"%>
The issue was the ;
at the end of the import statement!
Corrected code:
<%@page contentType="text/html" pageEncoding="UTF-8" language="java" import="java.util.*,mypackage.one.*,mypackage.two.*"%>
Use Tomcat 7.0.21 some tomcat version giving this error, I have also faced the same issue with version 7.0.59 .