Report this

What is the reason for this report?

Tomcat JSTL subfolder problem

Posted on March 30, 2020

I am migrating from another server to Digital Ocean. I’ve set my droplet up, installed apache, tomcat, mysql etc. It’s broadly all working however I’m getting an error on files located within subfolders:

org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/sql] cannot be resolved in either web.xml or the jar files deployed with this application

All the jsp files in the root work fine. All the files in any subfolders don’t. If I relocate any subfolder files into the root the problem goes away.

Also the sufolder files also don’t appear to be able to find any include files located in the level above, e.g.

<%@ include file=“…/Connections/connection.jsp” %>

Perhaps the two are connected and this is a permissions error?

The deployment works fine on the old server so this must be a config issue rather than coding.

Any help greatly appreciated



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have now solved this problem, it was actually caused by incorrect URL forwarding from Apache to Tomcat

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.