how do i fix this error?

i'm using the below java code in an orcle 8.l.7 database to transform a xml file with a xsl file and output the transformed xml file. the code compiles fine in the database and it does the transformation  fine on my local machine using just java. when i try to run this in the oracle database i get the error:

ERROR at line 1:
ORA-29532: Java call terminate by uncaught Java exception:
javax.xml.transform.TransformerConfigurationException: XSL-1000: (Fatal Error)
Error while parsing XSL file (the Permission (java.io.FilePermission
/home/ehsitdev/EIMS/xsl/100004350a.xsl read) has not been granted by
dbms_java.grant_permission to
SchemaProtectionDomain(EMS_PROCS|PolicyTableProxy(EMS_PROCS))).
ORA-06512: at "EMS_PROCS.TRANSFORM_COMMAND_PROC", line 0
ORA-06512: at line 1

i am unable to find any documentation on this. does anyone know what permission i need? how do i fix this? thanks.

ben


CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED TRANSFORMXML AS
import java.io.*;
import java.lang.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;

/**
 * A simple demo of JAXP 1.1
 */
public class TransformXml {

    /**
     * Accept three command line arguments: the name of an XML
     * file, the name of an XSLT stylesheet, and the output file.
     * The result of the transformation is written to the output file.
     */

    public static void TransformFile (String p_xmlfile, String p_xslfile, String p_outputfile)
         throws javax.xml.transform.TransformerException {
     
     File xmlFile = new File(p_xmlfile);
     File xsltFile = new File(p_xslfile);
     File outputFile = new File (p_outputfile);

     javax.xml.transform.Source xmlSource =
       new javax.xml.transform.stream.StreamSource(xmlFile);
     javax.xml.transform.Source xsltSource =
       new javax.xml.transform.stream.StreamSource(xsltFile);
     javax.xml.transform.Result result =
       new javax.xml.transform.stream.StreamResult(outputFile);

     // create an instance of TransformerFactory
     javax.xml.transform.TransformerFactory transFact =
       javax.xml.transform.TransformerFactory.newInstance();

     javax.xml.transform.Transformer trans =
        transFact.newTransformer(xsltSource);

     trans.transform(xmlSource, result);

 }
}
/
LVL 1
benpungAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

benpungAuthor Commented:
i've been playing with the java permissions, and i think i have the original problem solved, but now i'm getting the error:

*
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.SecurityException: relative pathnames are not
allowed(file:///home/ehsitdev/EIMS/xml/output.xml)
ORA-06512: at "EMS_PROCS.TRANSFORM_COMMAND_PROC", line 0
ORA-06512: at line 1

how is /home/ehsitdev/EIMS/xml/output.xml a relative pathname? it's the longest name i know? any thoughts?
0
indypungCommented:
you are initializing the the outputfile wrong.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.