hi!!
  Even I was facing the same problem, I downloaded the
latest version of xalan-j_2_0_1.
 -check the CLASSPATH
 - I guess U should not use CommanLineOptions.class ,
I feel this is intended for standalone...use other
sample codes with the package
.eg,xalan-j_2_0_1\samples\Tranform\SimpleTransform

good luck,
bye,
Kumar


--- [EMAIL PROTECTED] wrote:
> Linda,
>  I'm using FOP in the context of a servlet running
> under WebLogic, and don't
> have this problem.  Can you zip up and attach your
> properties file? It
> sounds like the application/server isn't finding
> your stylesheet.  How did
> you configure your servlet(s) in your
> weblogic.properties file?
> 
> -----Original Message-----
> From: Linda Zammit [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: Running FOP on a Servlet
> 
> 
> Hello all,
>  
> Has anyone experience a problem like below?  I can't
> figure out why there is
> a difference when running this code in a Java
> application vs. a Servlet.
>  
> In Java application, the following code runs great. 
> But, if it's run in a
> Servlet on WebLogic then it errors with the
> following:
>  
> JAVA CODE:
>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
> String [] args = { "-d","-xml",
> "config\\mydomain\\applications
> try{
> CommandLineOptions options = new CommandLineOptions
> (args);
> Starter starter = options.getStarter();
> if(starter != null)
> out.println("<p>got starter");
> starter.run();
> out.println("<p>after run starter");
> }
> catch(Exception e){
> out.println("Exception" + e.getMessage());
> }
>  
>  
>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
>  
> ERROR MESSAGE:
> Input mode: xslt transformation
> xml input file:
>
config\mydomain\applications\DefaultWebApp_myserver\xml\xslfoRef
> .xml
> xslt stylesheet:
>
config\mydomain\applications\DefaultWebApp_myserver\xml\xml2pdf
> .xsl
> Output mode: pdf
> output file:
>
config\mydomain\applications\DefaultWebApp_myserver\pdf\test.pdf
> OPTIONS
> no user configuration file is used [default]
> debug mode on
> don't dump configuration [default]
> quiet mode off [default]
> base directory:
>
D:\product\bea\wlserver6.0sp1\config\mydomain\applications\Defau
> ltWebApp_myserver\xml
> FOP 0.18.1-DEV
> using SAX parser org.apache.xerces.parsers.SAXParser
> Input mode: xslt transformation
> xml input file:
>
config\mydomain\applications\DefaultWebApp_myserver\xml\xslfoRef
> .xml
> xslt stylesheet:
>
config\mydomain\applications\DefaultWebApp_myserver\xml\xml2pdf
> .xsl
> Output mode: pdf
> output file:
>
config\mydomain\applications\DefaultWebApp_myserver\pdf\test.pdf
> OPTIONS
> no user configuration file is used [default]
> debug mode on
> don't dump configuration [default]
> quiet mode off [default]
> base directory:
>
D:\product\bea\wlserver6.0sp1\config\mydomain\applications\Defau
> ltWebApp_myserver\xml
> FOP 0.18.1-DEV
> using SAX parser org.apache.xerces.parsers.SAXParser
>
D:\product\bea\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_mys
> erve
> r\xml\xml2pdf.xsl; Line 0; Column 0
>
D:\product\bea\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_mys
> erve
> r\xml\xml2pdf.xsl; Line 0; Column 0
> XSL Error: Could not parse
>
D:\product\bea\wlserver6.0sp1\config\mydomain\applica
> tions\DefaultWebApp_myserver\xml\xml2pdf.xsl
> document!
> java.lang.reflect.InvocationTargetException:
> org.apache.xalan.xslt.XSLProcessorE
> xception: File
>
"D:\product\bea\wlserver6.0sp1\config\mydomain\applications\Defau
> ltWebApp_myserver\xml\xml2pdf.xsl" not found.
> at
>
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1710)
> at
>
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl
> .java:770)
> at
>
org.apache.fop.tools.xslt.Xalan1Transform.getStylesheet(Xalan1Transfo
> rm.java:88)
> at
>
org.apache.fop.tools.xslt.Xalan1Transform.transform(Xalan1Transform.j
> ava:142)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:11
> 9)
> at
>
org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:94
> )
> at
>
org.apache.fop.apps.XSLTInputHandler.getInputSource(XSLTInputHandler.
> java:60)
> at
>
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:49
> )
> at org.apache.fop.apps.Fop.main(Fop.java:14)
> at
>
com.loggate.servlets.DocServlet.service(DocServlet.java:143)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:213)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:1265)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:1622)
> at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
> at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> ---------
> org.xml.sax.SAXParseException: File
> "D:\product\bea\wlserver6.0sp1\config\mydoma
>
in\applications\DefaultWebApp_myserver\xml\xml2pdf.xsl"
> not found.
> at
>
org.apache.xalan.xpath.xdom.XercesLiaison.parse(XercesLiaison.java:31
> 1)
> at
>
org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:289)
> at
>
org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl
> .java:763)
> at
>
org.apache.fop.tools.xslt.Xalan1Transform.getStylesheet(Xalan1Transfo
> rm.java:88)
> at
>
org.apache.fop.tools.xslt.Xalan1Transform.transform(Xalan1Transform.j
> ava:142)
> at java.lang.reflect.Method.invoke(Native Method)
> at
>
org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:11
> 9)
> at
>
org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransform.java:94
> )
> at
>
org.apache.fop.apps.XSLTInputHandler.getInputSource(XSLTInputHandler.
> java:60)
> at
>
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:49
> )
> at org.apache.fop.apps.Fop.main(Fop.java:14)
> at
>
com.loggate.servlets.DocServlet.service(DocServlet.java:143)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:213)
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:1265)
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:1622)
> at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
> at
>
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> ---------
> org.xml.sax.SAXParseException: File
> "D:\product\bea\wlserver6.0sp1\config\mydoma
>
in\applications\DefaultWebApp_myserver\xml\xml2pdf.xsl"
> not 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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

Reply via email to