tutalii error??

2004-07-21 Thread Raúl Herranz Serrano




In OC4J with FOP 0.20.5... what is the problem with 
this piece of code?:

Tutalii: 
C:\desarrollo\java\install\oc4j\j2ee\home\applications\QuemasFOP\QuemasFOP\WEB-INF\lib/fop.jar[INFO] 
[1]


The code thatis generating this 
'error':

public ByteArrayOutputStream transform(Source 
xmlSrc, Source xslSrc) throws TransformerConfigurationException, 
TransformerException { 
ByteArrayOutputStream out = new ByteArrayOutputStream(); 
org.apache.fop.configuration.Configuration.put("baseDir","C:/desarrollo/java/install/oc4j/j2ee/home/applications/QuemasFOP/QuemasFOP/pages/baseDir"); 
Driver driver = new Driver(); Logger logger = new 
ConsoleLogger(ConsoleLogger.LEVEL_INFO); 
MessageHandler.setScreenLogger(logger); 
driver.setLogger(logger); 
driver.setRenderer(Driver.RENDER_PDF); 
driver.setOutputStream(out); TransformerFactory 
transformerFactory = TransformerFactory.newInstance(); 
Transformer transformer = 
transformerFactory.newTransformer(xslSrc); Result res = 
new SAXResult(driver.getContentHandler()); 
transformer.transform(xmlSrc, res); //this is the point where I get the 
tutalii error
 return out;
}


Thanks a lot!

 Raul Herranz 
(Spain)


Re: [XSL-FO] tutalii error??

2004-07-21 Thread Raúl Herranz Serrano

I have found that this is an error with the xml libraries that come with the
oc4j... I have to start the oc4j server with the following options:

-Xbootclasspath/a:/path to xml-apis.jar
-Xbootclasspath/a:/path to xalan-2.4.1.jar
-Xbootclasspath/a:/path to xercesImpl-2.2.1.jar

as I said before: amazing!! :)

Thanks everybody!!

Raul (Spain)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]