Solved

Servlet XML Output Problem

Posted on 2001-08-06
4
251 Views
Last Modified: 2013-11-24
I am working on a class that will allow me to write XML documents to standard text output. I have a class with a method PostDoc() that performs the following...

try {
 TransformerFactory tFactory = TransformerFactory.newInstance();
 Transformer t = tFactory.newTransformer();
 t.transform(new DOMSource(document),new StreamResult(new File(strFileName)));
   } catch(Exception e) {...}

When I run this from a test command line application the classes perform properly but when I try and load this via a servlet on Tomcat I get the error
 "java.lang.SecurityException: sealing violation"

I am at a loss. Is this a java problem or a tomcat configuration problem? Any idea on how I correct the problem?

TIA
John
0
Comment
Question by:jkb2
4 Comments
 

Accepted Solution

by:
jasonbrome earned 100 total points
ID: 6357538
Tomcat contains a portion of the classes found in  Xalan.jar.  

To resolve this issue, all you need to do is ensure that the JAXP jars (xalan.jar, jaxp.jar and crimson.jar) are defined first, before the Tomcat jars, in the classpath.
0
 
LVL 1

Author Comment

by:jkb2
ID: 6359348
Beautiful. I was beating my head against the wall on this one. Thanks
0
 
LVL 5

Expert Comment

by:lwinkenb
ID: 8937307
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comment by jasonbrome as answer.
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lwinkenb
EE Cleanup Volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question