• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

TransformerConfigurationException

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm stumped.

I'm trying to parse an xml file on my server but I keep getting a TransformerConfigurationException with no detail as to what is causing the problem.

Here is where the exception occurs:
Templates stylesheet = factory.newTemplates(xslSource);

I am using IBM Java 1.4.2 on the server (This was parsing correctly at some point in the past).

I just tested this on my desktop with Sun Java 1.6 and it worked fine.

This is how I get the xslSource:
StreamSource xslSource = new StreamSource("/var/www/webapp/WEB-INF/xsl/myxsl.xsl");

I have verified the path to the xsl file is correct.

Has anyone seen this before?

How can I get some details about what is causing the exception?

Thanks!
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic