HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML Forums › Technical questions / Troubleshooting › relative URL to a servlet in the “img”-tag throws a MalformedURLException › Reply To: relative URL to a servlet in the “img”-tag throws a MalformedURLException
Thank you very much for your answer. I have moved the pd4ml-4.0.16.jar from the application/lib directory to the WEB-INF/lib.
Unfortunately the result is the same! The same exception again and again:
java.net.MalformedURLException: SRVE0238E: Resource paths must contain a preceding slash.
at com.ibm.ws.webcontainer.webapp.WebApp.getResource(WebApp.java:2453)
at com.ibm.ws.webcontainer.webapp.WebApp.getResourceAsStream(WebApp.java:2419)
at com.pd4ml.cache.ServletResourceProvider.getResourceAsStream(y:1928)
at com.pd4ml.ResourceProvider.getResourceAsBytes(y:2080)