: I'm getting this error message: : : org.apache.jasper.JasperException: Unable to compile class for JSP : An error occurred at line: 18 in the jsp file: /admin/stats.jsp : Generated servlet error: : /var/lib/tomcat5/work/Catalina/localhost/solr/org/apache/jsp/admin/stats_jsp.java:106: for-each loops are not supported in -source 1.3 : (try -source 1.5 to enable for-each loops) : for (SolrInfoMBean.Category cat : SolrInfoMBean.Category.values()) {
This is an issue with TomCat trying to compile the JSPs using Java1.3 -- but Solr requires that it be compiled and run using Java1.5. I'm notsure why TomCat choose to make hte default 1.3, but you can change by setting the compilerSourceVM and compilerTargetVM values in your server config. They are documented here... http://tomcat.apache.org/tomcat-5.0-doc/jasper-howto.html#Configuration : java.lang.NullPointerException : java.io.File.<init>(File.java:194) : org.apache.jsp.admin.action_jsp._jspService(action_jsp.java:132) That was definitely a Solr bug. Chaning the log level uses the same JSP as togglging the "health check" status -- and that JSP wanted to make a File object out of the healthCheck file name ... even if there wasn't one. I've commited a fix. -Hoss