Re: 'for each' statements are only available if source level is 1.5 or greater
Mark Thomas <[email protected]>
| Newsgroups | gmane.comp.jakarta.tomcat.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/12/2025 05:17, Mark Foley wrote: <snip/> > The "source level is 1.5 or greater" is on the web page. Here are the first > several lines: > > 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: [17] in the jsp file: [/include/homePageImage.inc] > Syntax error, 'for each' statements are only available if source level is 1.5 or greater OK. We need to see CATALINA_BASE/conf/web.xml It will be big but better we see the whole thing to be sure. Also, the a web application with that error, we need to see WEB-INF/web.xml <snip/> > I don't know that I have "junk" in the conf files. I don't tend to be inventive > with these things myself. Here's my whole server.xml file, sans comments. Please > let me know if you see anything wrong. <snip/> > <Host name="www.horeb-wright3.org" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> Set autoDeploy="false". I think you will be getting double deployment. Remove the 2 xml settings. a) the belong on the Context, not the Host and b) you are using the defaults so there is no need to include them at all. > <Alias>horeb-wright3.org</Alias> > <Logger className="org.apache.catalina.logger.FileLogger" directory="logs/" prefix="horeb_access_log" suffix=".log" timestamp="true"/> Remove the entire Logger element. It is unsupported and isn't doing anything. If you want an access log, add the access log valve. Mark > > <Context path="" docBase="horeb-wright3" reloadable="false" allowLinking="true"> > <WatchedResource>/WEB-INF/web.xml</WatchedResource> > <WatchedResource>/style.css</WatchedResource> > </Context> > </Host> > > </Engine> > </Service> > </Server> > > This last <Host> tag block is repeated another 20 times, almost identically > except for the domain names, for the additional hosts on this server. Otherwise, > this server.xml file is nearly identical to the one on the running system except > this "new" one has maxParameterCount="1000" in the connector tags and the > running system server.xml does not. > > --Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >