wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Transformation works at the command line but fails in my web application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Transformation works at the command line but fails in my web application." Watch "Transformation works at the command line but fails in my web application." New topic
Author

Transformation works at the command line but fails in my web application.

Heath Lilley
Ranch Hand

Joined: Jan 09, 2001
Posts: 72
Hello,
I have an xml document that I can transform into a pdf with out issue from my command line environment, however when I try to do it in my web application I get the following error...


Now I have a simple xsl I can use in the application and the pdf gets created fine. Its only with the larger more complex xsl that there is an issue.
Has anyone seen this type of behaveior before?
[ February 11, 2004: Message edited by: Heath Lilley ]
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Heath Lilley:
Hello,
Now I have a simple xsl I can use in the application and the pdf gets created fine. Its only with the larger more complex xsl that there is an issue.
[ February 11, 2004: Message edited by: Heath Lilley ]

if your code(DocumentBean.java) can work for small xsl then it shd work for large complex xsl as well(normally).
Check again whether your large complex xsl is working on command line as well.


Spritle Software Blogs
Heath Lilley
Ranch Hand

Joined: Jan 09, 2001
Posts: 72
It all came down to this line...

I was trying to use the SreamSource constructor that used a String uri. For
some reason it was failing with the second ,larger, XLST document.
Thanks for your help.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Thanks for letting us know


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Consider Paul's rocket mass heater.
 
subject: Transformation works at the command line but fails in my web application.
 
Similar Threads
Code works in Websphere 3.5, but not in 4.0
Struts 1.1- EVAL_BODY_TAG fails on WSAD 5.0
classcastexception when running on Unix server.
Struts 1.1- EVAL_BODY_TAG fails on WSAD 5.0
Call servlet from action class