I have tried Tom's example but I am still having problems. I am attaching my
file for Tom (if anybody else is willing to take a look I would be more than
happy to send it!). The template is created as it shows in the console
output. I explicitly set the system properties for the factories like this:
System.setProperty("javax.xml.transform.TransformerFactory",
"org.apache.xalan.xsltc.trax.TransformerFactoryImpl");
System.setProperty("javax.xml.parsers.SAXParserFactory",
"org.apache.xerces.jaxp.SAXParserImpl");
The ERROR that is thrown says there is a TransformerConfigurationException
and that the template does not contain a valid translet class definition.
What do I do to fix this?
TIA,
-Rob
---------------------------
My CONSOLE says that the template is created:
xsl: file:/home/gudgeon/sites/master/WEB-INF/tool/site-chooser.xsl
in the try
xslSource is javax.xml.transform.stream.StreamSource@52c4d9
tFactory is org.apache.xalan.xsltc.trax.TransformerFactoryImpl@72380
template is org.apache.xalan.xsltc.trax.TemplatesImpl@7725c4
in doPost, templates is org.apache.xalan.xsltc.trax.TemplatesImpl@7725c4
---------------------------
But I get this error in the browser (any ideas???):
javax.xml.transform.TransformerConfigurationException: This template does
not contain a valid translet class definition.
at
org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:
199)
at com.koberg.makecontent.MasterLogin.doPost(MasterLogin.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:8
2)
at com.caucho.server.http.Invocation.service(Invocation.java:277)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)
MasterLogin.java