• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

XML & XSL in Servlet

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !-)
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic