This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getAssociatedStylesheets failed

 
Andrew Leer
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm doing a tutorial on Dev Shed on the basics of Transformation. All of the examples in the tutorial worked except for the last one that uses a JSP page to transform a stylesheet. I'm using Tomcat 4.0.6 that comes with net beans.
The error that I'm getting is:
javax.xml.transform.TransformerConfigurationException: getAssociatedStylesheets failed
The JSP page is supposed to get the location of the XSL Transformation stylesheet from the XML file on a line like....
<?xml-stylesheet type="text/xsl" href="./addresses.xsl"?>
in the XML file.
I don't understand what is causing it, except that maybe the directory it is searching for the xsl file is not the right one? I don't know. I've tried absolute paths and everything.
Anyway here are the files, the class is contained in /mywebapp/WEB-INF/Classes and the JSP is contained in the same directory as the XML and XSL files.

The XML file....
-------------------------------------------------------


The XSL file
----------------------------------

The JSP File
--------------------------------------

And last but not least...The Class file from WEB-INF/classes

Thanks in advance,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic