Tomcat JSTL subfolder problem

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: [] 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

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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