I am using
* tomcat 5.5.20,
* Apache 2.0 on linux Fedora Core 6
I just installed opengrok 0.5.
The indexing happened without any errors or warnings.
I installed the source.war in the webapps...When I access the page, however,
following java exception gets thrown. Note that my opengrok 0.4 installation
works great for the same source.
Do I need to upgrade any other component beside opengrok?
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /projects.jspf
The type List is not generic; it cannot be parameterized with arguments
22: --%><%@ page import="org.opensolaris.opengrok.configuration.*,
java.util.List" session="false" errorPage="error.jsp" %><%
23: boolean hasProjects = false;
24: String project = null;
25: List projects;
26: RuntimeEnvironment env = RuntimeEnvironment.getInstance();
27: env.register();
28:
An error occurred at line: 25 in the jsp file: /projects.jspf
Syntax error, parameterized types are only available if source level is 5.0
22: --%><%@ page import="org.opensolaris.opengrok.configuration.*,
java.util.List" session="false" errorPage="error.jsp" %><%
23: boolean hasProjects = false;
24: String project = null;
25: List projects;
26: RuntimeEnvironment env = RuntimeEnvironment.getInstance();
27: env.register();
28:
An error occurred at line: 40 in the jsp file: /projects.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
37:
38: Cookie[] cookies = request.getCookies();
39: if (cookies != null) {
40: for (Cookie cookie : cookies) {
41: if (cookie.getName().equals("OpenGrok/project")) {
42: project = cookie.getValue();
43: break;
An error occurred at line: 52 in the jsp file: /projects.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
49: String p[] = request.getParameterValues("project");
50: if (p != null) {
51: StringBuilder sb = new StringBuilder();
52: for (String s : p) {
53: sb.append(s);
54: sb.append(" ");
55: }
An error occurred at line: 62 in the jsp file: /projects.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
59: // see that this is a valid project..
60: if (project != null) {
61: StringBuilder sb = new StringBuilder();
62: for (String aproj : project.split(" ")) {
63: boolean valid = false;
64: for (Project proj : projects) {
65: if (proj.getPath().equalsIgnoreCase(aproj)) {
An error occurred at line: 64 in the jsp file: /projects.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
61: StringBuilder sb = new StringBuilder();
62: for (String aproj : project.split(" ")) {
63: boolean valid = false;
64: for (Project proj : projects) {
65: if (proj.getPath().equalsIgnoreCase(aproj)) {
66: valid = true;
67: break;
An error occurred at line: 41 in the jsp file: /menu.jspf
Syntax error, 'for each' statements are only available if source level is 5.0
38:
39:
This message posted from opensolaris.org