Jsp Jstl Core Jar File

insidernew
2 min readNov 2, 2021

Download here

Active4 years, 6 months ago

I have looked up for a solution. This is the closest it gets and This. Any of these did not worked. I get the following exception. I am using spring boot. I am running it as a Spring boot app. not inside Tomcat.

‘The absolute uri: cannot be resolved in either web.xml or the jar files deployed with this application’.

this is my pom.

It seems to me every thing is in place. I still get the error. I looked at the Maven dependancies. I can see the jstl-1.2.jar

Community♦

diyoda_diyoda_

3,84044 gold badges4141 silver badges8383 bronze badges

2 Answers

You’re trying to use Jetty as an embedded container and, as stated in the Spring Boot documentation, JSPs are not supported with embedded Jetty:

When running a Spring Boot application that uses an embedded servlet container (and is packaged as an executable archive), there are some limitations in the JSP support.

  • With Tomcat it should work if you use war packaging, i.e. an executable war will work, and will also be deployable to a standard container (not limited to, but including Tomcat). An executable jar will not work because of a hard coded file pattern in Tomcat.
  • Jetty does not currently work as an embedded container with JSPs.
  • Undertow does not support JSPs.

There is a JSP sample so you can see how to set things up.

Andy WilkinsonAndy Wilkinson

65.7k1010 gold badges162162 silver badges169169 bronze badges

The jasper is provided in the tomcat container. So, when this is run as a Spring boot application, it does not have jasper dependency provided. So, I added this instead of making this provided.

diyoda_diyoda_

3,84044 gold badges4141 silver badges8383 bronze badges

Jsp Jstl Tags

Not the answer you’re looking for? Browse other questions tagged springmavenjstlspring-boottaglib or ask your own question.

Download here

--

--