aspose file tools
The moose likes XML and Related Technologies and the fly likes XML & XSL in Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML & XSL in Servlet" Watch "XML & XSL in Servlet" New topic
Author

XML & XSL in Servlet

Elisabeth Van
Ranch Hand

Joined: Feb 09, 2001
Posts: 42
I'm trying to use XML and XSL within a servlet to produce HTML output.
From the command line, I can use

and I get the results that I want.
I have tried accomplishing the same thing via a servlet (in Tomcat) using

as well as with

Either of these versions will compile, but when I access the servlet via the browser, I get the following error:

Anyone have any ideas on this? Thanks!

[ Ajith disabled smilies in this post ]
[This message has been edited by Ajith Kallambella (edited May 18, 2001).]
Elisabeth Van
Ranch Hand

Joined: Feb 09, 2001
Posts: 42
Just in case anyone else runs into this problem, thought I'd post the solution to the problem that I was having.
What was causing problems for me was having parser.jar in my tomcat lib directory. Once I removed this, all was well.
Of course what I don't know now is what the purpose of parser.jar was, or if it's actually needed if I have the xalan.jar and xerces.jar files.
Laurent Kempeneers
Greenhorn

Joined: May 21, 2001
Posts: 3
I already answered to the same problem in the posted question "how to use Xalan with Weblogic as a web server" in the same forum.
I propose you to have a look !-)
Darryl Andrew
Greenhorn

Joined: Jun 21, 2001
Posts: 12
Hi, i did not use a Weblogic server, i'm using tomcat.
I also did not have parser.jar in my folder and xalan.jar is before xerces.jar in my classpath but i still get the following error when i access the servlet from the browser.
Error: java.lang.ClassNotFoundException: org.apache.xalan.xslt.XSLTProcessorFactory
Can anybody pls help?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XML & XSL in Servlet
 
Similar Threads
Using FOP
Strange FOP behaviour
https problem
how to use Xalan with Weblogic as a web server
how to use Xalan under WebLogic5.1