File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes security excetion : sealing violation ....while using XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "security excetion : sealing violation ....while using XSLT " Watch "security excetion : sealing violation ....while using XSLT " New topic
Author

security excetion : sealing violation ....while using XSLT

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Hi
I m using jdk1.2.2 and jaxp1.1
While running the code i get security exception sealing violation
I m unable to find the clues even on java web site..
here is my code..
import javax.xml.parsers.*;
import org.xml.sax.*;
import java.io.*;
import org.w3c.dom.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
public class ParseWSDL
{
static Document document;
public static void main(String args[])
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

try
{
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(new File("ajit.xml"));
Element e=document.getDocumentElement();
System.out.println("element..."+e.toString());
TransformerFactory trf=TransformerFactory.newInstance();
Transformer transformer= trf.newTransformer();
DOMSource source= new DOMSource(document);
//Transform tree to xml
File newxml = new File("newxml.xml");
//FileInputStream os = new FileInputStream (newxml);
StreamResult result = new StreamResult(newxml);
transformer.transform(source,result);

}catch(Exception e){System.out.println("Exception is : "+e);}
}//main
}//ParseWSDL

can somebody help...
i m not finding the reason
Thanx in advance
Ajit


Thankx
Ajit
Rosalinde Casalini
Greenhorn

Joined: Jul 13, 2001
Posts: 5
HI,
I had that same error once, it was actually caused because there was more than one DOM implementation on my classpath. I had XML4j before JAXP. I took XML4j out of my classpath and the error went away. I hope this helps.
Rosalinde
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Thanx rose
The problem was with classpath only..I removed unwanted classpath..
Tnanx again
Ajit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: security excetion : sealing violation ....while using XSLT
 
Similar Threads
Getting length(no of bytes) of Dom document which is in memory
problem in deleting the file
xml error_please help
unbale to view xml file in browser
Appending data to existing XML file