----- Original Message ----- From: "Shawn Bayern" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 2:45 PM Subject: Re: Problems running <x:transform> example
> 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. Hmm. This is weird. It is, in fact, in the xalan.jar that's in the JSTL Beta 2 distribution, but it's not in the xalan.jar that was bundled into the 4/26 nightly build. A problem with the nightly build process, perhaps? > > 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. Sigh. Class loaders bite me again. ;-{ > My best advice is to use the JAXP 1.2 set of JARs consistently; that > should be the easiest way to fix the problem. I presume you mean the JAXP 1.2 EA2 that's bundled with the JAX Pack? Also presumably, I'll need to replace the containers' JAXP implementations with this, and not just what's in the standard-examples web app? Thanks, Shawn. -- Martin Cooper > > -- > 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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>