tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Yang <>
Subject The resource path [...] is not valid
Date Fri, 02 Oct 2015 14:42:50 GMT
Hi all,

I'm transforming xml into pdf files, but getting this strange error in my log. (tomcat 8.0.26)

The resource path [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.0/]
is not valid

Here is my code

//Setup sources
StreamSource xmlSrc = new StreamSource(new URL(rootUrl + "/output/xml/" + xml).openStream());
StreamSource xsltSrc = new StreamSource(new URL(rootUrl + "/output/xslt/" + xslt).openStream());

//Setup the XSL transformation
Transformer transformer = this.transFactory.newTransformer(xsltSrc);      //error out

XML & XSLT file are not stored locally, so I don't understand why it's looking at the
tomcat folder?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message