HTTP Status 500 – Internal Server Error


Type Exception Report

Message Unable to compile class for JSP:

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: [91] in the jsp file: [/projects/openfire/plugins-beta.jsp]
PluginDownloadServlet cannot be resolved
88:             </tr>
89: 
90:         <%
91:             File[] plugins = PluginDownloadServlet.getPlugins( pluginDir );
92:         %>
93: 
94:         <%  if (plugins == null || plugins.length == 0) { %>


An error occurred at line: [111] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method getPluginFile(File, String) is undefined for the type plugins_002dbeta_jsp
108:         <%  DateFormat formatter = DateFormat.getDateInstance(DateFormat.MEDIUM);
109:             SimpleDateFormat parser = new SimpleDateFormat("MM/dd/yyyy");
110:             for (int i=0; plugins!=null && i<plugins.length; i++) {
111:                 String pluginXML = new String(getPluginFile(plugins[i], "plugin.xml"));
112:                 if (pluginXML != null) {
113:                     String pname = plugins[i].getName().toLowerCase();
114:                     pname = pname.substring(0, pname.length() - 4);


An error occurred at line: [117] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method pluginFileExists(File, String) is undefined for the type plugins_002dbeta_jsp
114:                     pname = pname.substring(0, pname.length() - 4);
115: 
116:                     // See if a README and changelog exist.
117:                     boolean readmeExists = pluginFileExists(plugins[i], "readme.html");
118:                     boolean changelogExists = pluginFileExists(plugins[i], "changelog.html");
119:                     boolean iconGifExists = pluginFileExists(plugins[i], "logo_small.gif");
120:                     boolean iconPngExists = pluginFileExists(plugins[i], "logo_small.png");


An error occurred at line: [118] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method pluginFileExists(File, String) is undefined for the type plugins_002dbeta_jsp
115: 
116:                     // See if a README and changelog exist.
117:                     boolean readmeExists = pluginFileExists(plugins[i], "readme.html");
118:                     boolean changelogExists = pluginFileExists(plugins[i], "changelog.html");
119:                     boolean iconGifExists = pluginFileExists(plugins[i], "logo_small.gif");
120:                     boolean iconPngExists = pluginFileExists(plugins[i], "logo_small.png");
121: 


An error occurred at line: [119] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method pluginFileExists(File, String) is undefined for the type plugins_002dbeta_jsp
116:                     // See if a README and changelog exist.
117:                     boolean readmeExists = pluginFileExists(plugins[i], "readme.html");
118:                     boolean changelogExists = pluginFileExists(plugins[i], "changelog.html");
119:                     boolean iconGifExists = pluginFileExists(plugins[i], "logo_small.gif");
120:                     boolean iconPngExists = pluginFileExists(plugins[i], "logo_small.png");
121: 
122:                     // Parse the XML


An error occurred at line: [120] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method pluginFileExists(File, String) is undefined for the type plugins_002dbeta_jsp
117:                     boolean readmeExists = pluginFileExists(plugins[i], "readme.html");
118:                     boolean changelogExists = pluginFileExists(plugins[i], "changelog.html");
119:                     boolean iconGifExists = pluginFileExists(plugins[i], "logo_small.gif");
120:                     boolean iconPngExists = pluginFileExists(plugins[i], "logo_small.png");
121: 
122:                     // Parse the XML
123:                     SAXReader saxReader = new SAXReader();


An error occurred at line: [155] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method geti18nText(File, String) is undefined for the type plugins_002dbeta_jsp
152:                             <td width="99%">
153:                                 <span class="plugname">
154:                                 <b><%= (pluginName != null ?
155:                                         geti18nText(plugins[i], pluginName.getTextTrim()) :
156:                                         plugins[i].getName()) %></b>
157:                                 </span>
158:                             </td>


An error occurred at line: [164] in the jsp file: [/projects/openfire/plugins-beta.jsp]
The method geti18nText(File, String) is undefined for the type plugins_002dbeta_jsp
161:                             <tr>
162:                                 <td colspan="2">
163:                                     <span class="description">
164:                                     <%= geti18nText(plugins[i], pluginDescription.getTextTrim()) %>
165:                                     </span>
166:                                 </td>
167:                             </tr>


Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:101)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:214)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:600)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:381)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:383)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:331)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:583)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/8.5.95