On Fri Dec 12 09:09:13 2025 Fabian Hahn <[email protected]> wrote:
>
> > Am 12.12.2025 um 06:17 schrieb Mark Foley <[email protected]>:
> > 
> > On Thu Dec 11 23:42:52 2025 Thu, 11 Dec 2025 22:40:39 Chuck Caldarale 
> > <[email protected]>
> >> 
> >>> On 2025 Dec 11, at 22:10, Mark Foley <[email protected]> wrote:
> >>> 
> >>> On Thu, 11 Dec 2025 16:25:07 Christopher Schultz 
> >>> <[email protected]> wrote:
> >>>> 
> >>>> Mark,
> >>>> 
> >>>> On 12/11/25 4:19 PM, Mark Foley wrote:
> >>>>> On Thu, 11 Dec 2025 20:17:30 Mark Thomas <[email protected]> wrote:
> >>>>>> 
> >>>>>> On 11/12/2025 17:49, Mark Foley wrote:
> >>>>>>> I've upgraded 2 systems from Tomcat 8.5.11 to Tomcat 10.1.13. The 
> >>>>>>> first system
> >>>>>>> was done a couple of years ago and runs just fine.
> >>>>>>> 
> >>>>>>> I've just upgraded the 2nd system which is not running just fine. 
> >>>>>>> I've been working
> >>>>>>> on this for a week. When I run it I get numerous errors related to 
> >>>>>>> "source level
> >>>>>>> is 1.5 or greater."
> >>>>>>> 

[snip]

>   One of the problems seems to be that you are trying to compile the 
> JSP-files with a very old Java version compatibility.  You could improve this 
> by defining the jsp servlet in your web.xml (or tomcat-web.xml). Here you 
> define the Java version for compiling the JSPs. This should get rid of the 
> "source level" messages.
>
> <web-app 
>      . . .
>
>     <servlet>
>       <servlet-name>jsp</servlet-name>
>       <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
>       <init-param>
>         <param-name>compilerSourceVM</param-name>
>         <param-value>17</param-value>
>       </init-param>
>       <init-param>
>         <param-name>compilerTargetVM</param-name>
>         <param-value>17</param-value>
>       </init-param>
>     </servlet>
> </web-app>

The as-shipped compilerSourceVM is set to 11, but I changed it to 17 per your
suggestion and added the compilerTargetVM, which was not set.

Unfortunately, this made no difference. I still get the "source level is 1.5 or
greater." error.

>   Good luck,
>      Fabian 
>
>   PS: I do not understand why the default is not set to the min. required 
> Java version. Possibly the current version, sans possible dependency 
> restrictions. (i.e. Java 24 for Tomcat 11)

Thanks --Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to