Eric Mckenna wrote:
Hello group,
Using Webwork 1.4 with tomcat 4.1.29 and have run into a problem when the
XSLTServlet tries to get the stylesheet for the action.
Here's the first part of the exception:
----------- javax.servlet.ServletException: XSLT Transformation failed:
javax.xml.transform.TransformerException:
Stylesheet null not found at
webwork.view.xslt.XSLTServlet.service(XSLTServlet.java:118)
-----------
along with lines 122-132 from XSLTServlet
-----------
protected Templates getTemplates(HttpServletRequest request)
throws TransformerException, java.io.IOException {
String uri = (String)
request.getAttribute("javax.servlet.include.servlet_path");
if (uri == null) {
uri = request.getServletPath();
}
String path = getServletContext().getRealPath(uri); if (path == null) { throw new TransformerException("Stylesheet " + path + " not found"); } ----------
After digging a little bit, getRealPath() doesn't work with war files. Tomcat does expand the war file but that doesn't seem to help, since the tomcat docBase attribute of Context is set to the war file. Using an expanded directory and setting tomcat's context docBase to the expanded directory allowed access to the stylesheet but I'd rather use a war file.
So, anyone know get around getRealPath when using a war file? And is there a reason getResourceAsStream isn't used by XSLTServlet for getting the stylesheet?
thanks, eric.
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork