Installation error - Only a type can be imported

cancel
Showing results for 
Search instead for 
Did you mean: 
FabioVaprio
Member II

Installation error - Only a type can be imported

Hi,

I'm trying to install community edition 7.3 on a Tomcat 10.1.13 with Java 20.0.2.

I think to have followed all steps of the documentation, but when I try to start the project, the following error appears.

Someone can help me? Thanks.

 

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

An error occurred at line: [14] in the generated java file: [C:\Program Files (x86)\Apache-Tomcat-10\work\Catalina\localhost\ROOT\org\apache\jsp\index_jsp.java]
Only a type can be imported. javax.servlet.ServletContext resolves to a package

An error occurred at line: [15] in the generated java file: [C:\Program Files (x86)\Apache-Tomcat-10\work\Catalina\localhost\ROOT\org\apache\jsp\index_jsp.java]
Only a type can be imported. javax.servlet.RequestDispatcher resolves to a package

2023-09-04 14_34_04-HTTP Status 500 – Internal Server Error – Mozilla Firefox.png