Hi,
I have created a Spring Boot project in Eclipse. Unfortunately, the hint about the missing dependency does not help. When running the application, an error occurs as soon as the start page is called.
Error message:
Code:
...
2021-11-26 18:45:09.655 INFO 11944 --- [ main] springbootstartup.SBApplication : Started SBApplication in 13.708 seconds (JVM running for 14.931)
2021-11-26 18:45:14.123 INFO 11944 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-11-26 18:45:14.123 INFO 11944 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-11-26 18:45:14.138 DEBUG 11944 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Detected StandardServletMultipartResolver
2021-11-26 18:45:14.146 DEBUG 11944 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data
2021-11-26 18:45:14.146 INFO 11944 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 8 ms
2021-11-26 18:45:14.177 DEBUG 11944 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : GET "/", parameters={}
2021-11-26 18:45:14.198 DEBUG 11944 --- [nio-8080-exec-1] o.s.b.a.w.s.WelcomePageHandlerMapping : Mapped to ParameterizableViewController [view="index"]
2021-11-26 18:45:14.213 DEBUG 11944 --- [nio-8080-exec-1] o.s.w.s.v.ContentNegotiatingViewResolver : Selected 'text/html' given [text/html, application/xhtml+xml, image/avif, image/webp, application/xml;q=0.9, */*;q=0.8]
2021-11-26 18:45:14.213 DEBUG 11944 --- [nio-8080-exec-1] o.s.web.servlet.view.JstlView : View name 'index', model {}
2021-11-26 18:45:14.234 DEBUG 11944 --- [nio-8080-exec-1] o.s.web.servlet.view.JstlView : Forwarding to [/WEB-INF/jsp/index.jsp]
2021-11-26 18:45:14.394 ERROR 11944 --- [nio-8080-exec-1] o.a.c.c.C.[.[localhost].[/].[jsp] : Servlet.service() for servlet [jsp] threw exception
org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsf/core] cannot be resolved in either web.xml or the jar files deployed with this application
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55) ~[tomcat-embed-jasper-9.0.38.jar!/:9.0.38]
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294) ~[tomcat-embed-jasper-9.0.38.jar!/:9.0.38]
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81) ~[tomcat-embed-jasper-9.0.38.jar!/:9.0.38]
at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:251) ~[tomcat-embed-jasper-9.0.38.jar!/:9.0.38]
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:122) ~[tomcat-embed-jasper-9.0.38.jar!/:9.0.38]
...
Indexpage:
Code:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<html lang="en">
<body>
<div>
<div>
<h1>Spring Boot JSP Example</h1>
<h2>Hello !!</h2>
Click on this <strong><a href="next">link</a></strong> to visit another page.
</div>
</div>
</body>
</html>
I have provide the pom.xml, which corresponds to the standard of the Spring Boot CaptainCasa archetype.
I use Eclipse IDE for Enterprise Java Developers.
Version: 2018-12 (4.10.0)
Build id: 20181214-0600
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 11.0.13
I am grateful for any advice.
Kind regards,
Johann