I think the problem is that tomcat already has an xml parser in one
of the jar of its CLASSPATH (after all, it has to parse all the
xml configuration files). If you don 't put xerces at the
beggining, you are calling an old version of the xml parser, not
you xerces version. 

Regards, 

Martin


-----Original Message-----
From: PUB: Pedro Salazar [mailto:[EMAIL PROTECTED]]
Sent: MiƩrcoles, 27 de Junio de 2001 01:27 p.m.
To: [EMAIL PROTECTED]
Subject: Re: SERVLET : transform XSL+XML ->OUTPUT = blank page
[SOLUTION]


Pedro Salazar wrote:

> I made a servlet where I try to produce a result to output stream of the
> response object that came from a transformation of XML + XSL. But, I
> just get a blank page in output...!?
>
> I put the same piece of code that exists in doGet() of my servlet in a
> isolated test class [but redirecting the output to a file]. I ran it and
> it works ok... Why my servlet doesn't give nothing to my client??
>
> I put my code below. My servlet runs in the root "/" of my context.
> In my servlet, if I put a println of a string, i will saw the string,
> but just the string...
> ...


I just solve my problem... but before,...

[remember]
-I haven't no exception in servlet, just a blank page;
-my isolated class test worked just fine with the output expected;

[my test]
-I put my classpath in my isolated class test exactly with the same
classpath as tomcat gets when it starts.

[result]
- An exception occurred:
javax.xml.transform.TransformerConfigurationException: Namespace not
supported by SAXParser

[why...]
Why there is no exception in servlet? I just don't know!?!

[What I did...]
-I edited my "tomcat.sh" script I just after the definition of
CLASSPATH, I redefined the CLASSPATH with xerces.jar (the one that came
with xalan) in the beginning and the rest after.

[what happened...]
-Works ok...

[conclusions...]
-Why there is no exception in servlet since in any exception I write in
log and I write to outputstream of response???
-What is the conflict jar of tomcat with xerces.jar, since when I use
xerces it works just fine.

thanks,
Pedro Salazar

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to