Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 79878 invoked by uid 500); 29 May 2001 12:44:37 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 79811 invoked from network); 29 May 2001 12:44:36 -0000 Received: from unknown (HELO zaphod.smartbrief.com) (204.147.141.202) by h31.sny.collab.net with SMTP; 29 May 2001 12:44:36 -0000 Received: (qmail 1620 invoked from network); 29 May 2001 09:44:15 -0400 Received: from unknown (HELO cmcneilly) (192.168.1.106) by zaphod.smartbrief.com with SMTP; 29 May 2001 09:44:15 -0400 From: "Chris McNeilly" To: Subject: RE: xalan ApplyXSL sample servlet fails Date: Tue, 29 May 2001 08:46:25 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <004601c0e83b$cce88980$6961a8c0@devitt.local> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Funny you should ask. I had (possibly) a very similar problem last week. After combing through maillists etc, I found a reference suggesting that there was a conflict with the xerces xml parser and the xml parser included with tomcat. It suggested removing parser.jar and jaxp.jar from the classpath in the tomcat startup scripts (tomcat.bat for me). That worked for me. I've only been playing with it for a day or two, but it doesn't seem to break tomcat and now my xalan-based servlets function. Chris > -----Original Message----- > From: Stan Devitt [mailto:jsdevitt@stratumtek.com] > Sent: Tuesday, May 29, 2001 8:35 AM > To: tomcat-user@jakarta.apache.org > Subject: xalan ApplyXSL sample servlet fails > > > Any pointers to additional info, a working example, > or direct help in resolving the following would > be most appreciated. > > Stan Devitt > > ================================== > I am attempting to run the servlet example that is part of > the xalan1.2.2 zip file - specifically with DefaultApplyXSL, > whose purpose is to apply xslt transformations. > > I am using tomcat 3.2.1. (more details below) > > I have installed the servlet in a Test context > and a sample xml and style file tested independently. > > I successfully link to the servlet using: > > http://localhost:8080/Test/servlet/DefaultApplyXSL? > debug=true&URL=/Test/main.xml&xslURL=/Test/styles/main.xsl > > but the transformation fails in the process method in ApplyXSL during > > xslprocessor.process(xmlSource, xslSource, outBuffer); > > The debug response indicates that > a) it is finding the servlet, > b) it is finding the xml file and its style file, > > however, a SAX exception occurs while it is being processed to > generate html output - the log shows > > SystemId Unknown; Line 1; Column 1; SystemId Unknown; Line 0; > Column 0; > Exception is org.xml.sax.SAX Exception > > Additional Notes: > > 1. The xml and style file has been validated and successfully > transformed using both xt and xalan in command line mode. > > 2. I am using tomcat 3.2.1, together with jdk1.3.1, > xerces 1.2.3 and xalan 1.2.2 on Windows 2000. > > 3. There is no DOCTYPE in the xml file, nor is there a > style sheet processing instruction. > > 4. The xalan.jar and xerces.jar files are at the start of the > class path. > > Thanks in advance. > > >