On Fri, 26 Apr 2002, Martin Cooper wrote: > I'm trying to run the <x:transform> example in the standard-examples web > app, but am having problems with both Tomcat 4.0.2-b2 and Resin 2.1.0. > > With Tomcat, I get the following stack trace (this is the start of the root > cause part): > > java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException
This is just a missing class. In the crimson/xalan pair, it should be found in xalan.jar; in the JAXP 1.2 arrangement, it's in jaxp-api.jar. If you use the xalan.jar from the standard-examples.war application, the right classes should be there; note that not every JAR called 'xalan.jar' will include it. > I expected that the standard-examples web app would have everything needed > to run the examples, but apparently not. What do I need to add (and where) > to get this to work? > > With Resin, I get a different problem: > > javax.servlet.jsp.JspException: bad source This is from a TransformerConfigurationException; as a first guess, it's related to a behind-the-scenes error casting a class due to conflicts in the versions between two class loaders. My best advice is to use the JAXP 1.2 set of JARs consistently; that should be the easiest way to fix the problem. -- Shawn Bayern "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>