Re: FOP Example Servlet error

2006-03-07 Thread J.Pietschmann

Sir Strongbad wrote:

I am trying to test it by passing it a
simple XML and XSL document, but it is generating an error as seen
below, in Tomcat.  Is the servlet no seeing the stylesheet?


That's the most probable cause. Another possibility is a faulty
style sheet.
Test your source XML+XSLT using the FOP command line application,
in order to see whether this works.
The path to the style sheet must be either relative to tomcat's CWD,
or a full absolute path (it is not run through the URIResolver).

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FOP Example Servlet error

2006-03-07 Thread Sir Strongbad
After a little trouble (and MUCH help from this board!) I was able to
run the FOP servlet build.  I am trying to test it by passing it a
simple XML and XSL document, but it is generating an error as seen
below, in Tomcat.  Is the servlet no seeing the stylesheet?  I have
tried passing the whole path to the XSL, but to no avail.   Any
suggestions?  Thanks in advance...

javax.servlet.ServletException: Could not compile stylesheet
FopServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

org.apache.fop.apps.FOPException: Could not compile stylesheet

org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInputHandler.java:108)
org.apache.fop.apps.TraxInputHandler.(TraxInputHandler.java:84)
org.apache.fop.apps.XSLTInputHandler.(XSLTInputHandler.java:71)
FopServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)

org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]