Hi
We are using java based workflow to generate JSP files.
Following method is throwing an exception. The id that we use to run the program seems to have access to all dcrpath, ptpath and the outputpath, still permission denied filenotfound exception is being thrown.
Values grabbed from log:
DCRPath - /default/main/customer/english/WORKAREA/work/templatedata/mi_modules/lead_promotion/data/leadpromo1.dcr
Presentation - /default/main/customer/english/WORKAREA/work/templatedata/mi_modules/lead_promotion/presentation/lead_promotion1.xsl
Output: /default/main/silkair/english/WORKAREA/work/htdocs/jsp/en_UK/mi_modules/leadpromo1.jsp
Has any one faced this issue before, dcr and presentation is all set with unix 777 attribute and output location is writable for the id that we use.
Following method is throwing java.io.FileNotFoundException at line transformer.transform(new javax.xml.transform.stream.StreamSource(
dcrPath), new javax.xml.transform.stream.StreamResult(
new FileOutputStream(outPutPath)));
public static void generateJSP(String dcrPath, String ptPath, String outPutPath) {
try {
logger.info("DCRPath"+dcrPath+"Presentation"+ptPath+"Output"+outPutPath);
outPutPath=
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory
.newTransformer(new javax.xml.transform.stream.StreamSource(ptPath));
logger.error(transformer.getOutputProperties());
transformer.transform(new javax.xml.transform.stream.StreamSource(
dcrPath), new javax.xml.transform.stream.StreamResult(
new FileOutputStream(outPutPath)));
} catch (Exception e) {
logger.info("Exception occured while creating JSP"+e);
}