RE: Help with the sample FopServlet

2004-01-07 Thread Andreas L. Delmelle
 -Original Message-
 From: John Austin [mailto:[EMAIL PROTECTED]
 
snip /
 I forget some of the servlet details too. I was a bit surprised by the
 assertion that placing readme.fo in $TOMCAT_ROOT/bin worked.

Yeah, puzzled me a bit as well in the OP. So there was my calculated guess.

snip /
 
 I meant to post that to fop-dev but the 'reply-to' address pointed to
 you.

I see... Well, no harm done in any case. Better now?


Cheers,

Andreas


Re: FopServlet example!

2003-02-12 Thread Ken Masters


Thank you both. I have now implemented a class that takes two strings 
(xml-source and xsl-source and the servlet-response) and the class deals 
with converting this.

If anyone would like a copy of this please let me know.

Thanks again.

Ghulam



From: J.Pietschmann [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: FopServlet example!
Date: Tue, 11 Feb 2003 23:44:50 +0100

Ken Masters wrote:

I am new to Apache FOP, and am finding a little problem with what I'm 
doing. The XSLTInputHandler class has two parameters, the XML and XSL 
File's. Basically what I would like to do is pass an XML as a Java String 
(since it is dynamically created) and the XSL can be passed as a File.

FAQ:
  http://xml.apache.org/fop/faq.html#faq-N102B3

J.Pietschmann


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



_
Express yourself with cool emoticons http://messenger.msn.co.uk


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




Re: FopServlet example!

2003-02-12 Thread Ken Masters

Hi,

Ive attached the Java class, (and included it at the bottom incase 
attachment fails to send).

There are two methods, and they both require the HttpServletResponse. It 
provides options for either sending it the XML and XSL as files or strings.

Ensure that you have copied the following jar files into your 
TOMCAT_HOME\lib directory:

* avalon-framework-cvs-20020315.jar
* batik.jar
* fop.jar

which are all found in the Apache FOP distribution.

Hope it help.

Ken



-
import javax.servlet.*;
import javax.servlet.http.*;

import java.io.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.sax.SAXResult;

import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.messaging.MessageHandler;


public class ConvertToPDF
{

 private TransformerFactory xsltFact = TransformerFactory.newInstance();


   public ConvertToPDF()
   {
   //Default Constructor
   }//Constructor()



	public void convertXmlToPDF( String xmlsource, String xslsource, 
HttpServletResponse response )
	{
	  response.setContentType(application/pdf);

 try {

   Reader xmlReader = new StringReader(xmlsource);
   Reader xslReader = new StringReader(xslsource);

   Source xml = new StreamSource(xmlReader);
   Source xsl = new StreamSource(xslReader);


	Driver driver =new Driver();
	driver.setOutputStream(response.getOutputStream());
	driver.setRenderer(Driver.RENDER_PDF);

	Transformer transformer = 
TransformerFactory.newInstance().newTransformer(xsl);
	transformer.transform(xml, new SAXResult(driver.getContentHandler()));
   }//try
 catch (Exception ex) {
   ex.printStackTrace();
   }//catch

   }//convertXmlToPDF()




	public void convertXmlToPDF( String xmlsource, File xslPath, 
HttpServletResponse response )
	{
	response.setContentType(application/pdf);

 try {
   Reader xmlReader = new StringReader(xmlsource);

   Source xml = new StreamSource(xmlReader);
   Source xsl = new StreamSource(xslPath);


	Driver driver =new Driver();
	driver.setOutputStream(response.getOutputStream());
	driver.setRenderer(Driver.RENDER_PDF);

	Transformer transformer = 
TransformerFactory.newInstance().newTransformer(xsl);
	transformer.transform(xml, new SAXResult(driver.getContentHandler()));

   }//try
 catch (Exception ex) {
   ex.printStackTrace();
   }//catch

   }//convertXmlToPDF()

}//End all
-





_
Use MSN Messenger to send music and pics to your friends 
http://messenger.msn.co.uk


ConvertToPDF.java
Description: java/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: FopServlet example!

2003-02-11 Thread Mark C. Allman
Write your own InputHandler to do what you need.  Then do the usual
driver.render() call:

Driver driver = new Driver();

InputHandler inputHandler =
new MyCustomInputHandler(..whatever your InputHandler needs..);

driver.setOutputStream(..wherever you want the output to go..);
driver.render(inputHandler.getParser(),
inputHandler.getInputSource());

-- Mark C. Allman
-- Allman Professional Consulting, Inc.
-- www.allmanpc.com, 617-947-4263


-Original Message-
From: Ken Masters [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 11, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: FopServlet example!

Hi everyone,

I am new to Apache FOP, and am finding a little problem with what I'm
doing. 
The XSLTInputHandler class has two parameters, the XML and XSL File's. 
Basically what I would like to do is pass an XML as a Java String (since
it 
is dynamically created) and the XSL can be passed as a File.

How would I go about doing something like this, where the XML is created

dynamically by a Servlet (from an XML database,Apache-Xindice), and
passing 
this onto the XSLTInputHandler class (or any other class).

Thanking you in advance!

Ken



_
Overloaded with spam? With MSN 8, you can filter it out 
http://join.msn.com/?page=features/junkmailpgmarket=en-gbXAPID=32DI=1
059


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


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




Re: FopServlet example!

2003-02-11 Thread J.Pietschmann
Ken Masters wrote:

I am new to Apache FOP, and am finding a little problem with what I'm 
doing. The XSLTInputHandler class has two parameters, the XML and XSL 
File's. Basically what I would like to do is pass an XML as a Java 
String (since it is dynamically created) and the XSL can be passed as a 
File.

FAQ:
  http://xml.apache.org/fop/faq.html#faq-N102B3

J.Pietschmann


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




Image Source with FOPServlet

2002-07-24 Thread Steiner, Priska


Hello 

I would like to make a report with an image in it. When I render the xml and
the xsl with the image source,  with FOP 0.20.4 out a commandline, it works
fine. But I have to render it, with exactly the same files in a FOPServlet.
There it gives me a NullPointerException.


In the xml it is as follows:

bild src=c:\xsl\bild_1200011229.jpg width=50 height=50/bild

In the xsl I do it with an external graphics element:

xsl:template match=bild
 fo:block text-align=center
fo:external-graphic src=file:{@src}/
/fo:block
/xsl:template

Is there any idea, what the problem is ?

Regards
P. Steiner



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




Re: Image Source with FOPServlet

2002-07-24 Thread Michael Gratton



Steiner, Priska wrote:
 
 I would like to make a report with an image in it. When I render the xml and
 the xsl with the image source,  with FOP 0.20.4 out a commandline, it works
 fine. But I have to render it, with exactly the same files in a FOPServlet.
 There it gives me a NullPointerException.

Taking a wild stab in the dark (you'd probably want to provide a stack 
trace for a more accurate guess.. :), the generated file URL isn't valid.

Your file URL will end up looking like:

   file:c:\xsl\bild_1200011229.jpg

There are a few problems with this. First, the URL doesn't have a 
leading '/', or an authority part. Eg:

   file:///c:\xsl\bild_1200011229.jpg

or at least:

   file:/c:\xsl\bild_1200011229.jpg

Next, the ':' character the 'c' is (IIRC) invalid for a URL at that 
point, and either needs to be escaped or replaced with something valid 
(a '|' is usally used)

   file:/c|\xsl\bild_1200011229.jpg

or

   file:///c%3A\xsl\bild_1200011229.jpg

Lastly, you've used '\' as the path separator, not '/', which is also 
invalid in a URL. So, in the end, the URL shoulddl look like:

   file:///c|/xsl/bild_1200011229.jpg

Either you'll want to modify your XML to use a valid URL path component 
and your XSLT to use prepend file:/// instead of just file:, or 
modify your XSLT to fixup the Windows file path, turning it into a valid 
URL path component as part of the transformation.

I don't know how lax the JRE on Windows is WRT strict parsing of file 
URLs, but if you fix up all of the above, at least you'll know you're 
referencing your image correctly. :)

HTH,
/mike

-- 
Michael Gratton [EMAIL PROTECTED]
Recall Design http://www.recalldesign.com/
s: 53 Gilbert Street Adelaide SA 5000 Australia
t: +61 8 8217 0500 f: +61 8 8217 0555



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem Executing FopServlet on bea weblogic6.1

2002-07-15 Thread Oleg Tkachenko

Amit Rangari wrote:

 I am not able to execute the FOServlet on weblogic6.1.
 I get a blank PDF in the IE when I try to execute the FOServlet. The
 message on Weblogic console is:
 [DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
 
 Please help me to resolve this issue.

You didn't give us enough information to help you. That could be and fop 
problem and IE one.
The debug message you have posted is usual fop's debug message, which only 
says which xml parser is in use, show us the rest of messages.
And look at the list archive for IE and blank pdf, that's actually faq, try 
to put dummy parameter at the end of url: http://./FopServlet?dummy=.pdf
This way probably IE able to understand that response is going to be pdf.

-- 
Oleg Tkachenko
Multiconn International, Israel


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




RE: Problem Executing FopServlet on bea weblogic6.1

2002-07-15 Thread Amit Rangari

Sorry about cross posting to both the list,
This isn't an IE problem because I am able to view other PDF properly in
IE, and I am not getting anything else in the weblogic log other than
[DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser

I checked the size of the ByteArrayOutputStream it is showing 0 this
means nothing is being rendered.

Thanks
Amit

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 15, 2002 1:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem Executing FopServlet on bea weblogic6.1

Amit Rangari wrote:

 I am not able to execute the FOServlet on weblogic6.1.
 I get a blank PDF in the IE when I try to execute the FOServlet. The
 message on Weblogic console is:
 [DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
 
 Please help me to resolve this issue.

You didn't give us enough information to help you. That could be and fop

problem and IE one.
The debug message you have posted is usual fop's debug message, which
only 
says which xml parser is in use, show us the rest of messages.
And look at the list archive for IE and blank pdf, that's actually
faq, try 
to put dummy parameter at the end of url:
http://./FopServlet?dummy=.pdf
This way probably IE able to understand that response is going to be
pdf.

-- 
Oleg Tkachenko
Multiconn International, Israel


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



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




RE: Problem Executing FopServlet on bea weblogic6.1

2002-07-15 Thread Amit Rangari

Hi,

Please find attached the FopServlet.java that I am using and the output
on the weblogic console that I am getting is as below:

DRIVER OBJECT CREATED
SET LOGGER EXECUTED
SET RENDERER EXECUTED
OUT PUT STREAM IS SET
[DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
RENDERING DONE
CONTENT LENGTH: 0
DONE

And the CLASSPATH I am using is as follows:

.;
E:\bea\wlserver6.1\lib\fop\avalon-framework-4.1.2b.jar;
E:\bea\wlserver6.1\lib\fop\batik.jar;
E:\bea\wlserver6.1\lib\fop\fop.jar;
E:\bea\wlserver6.1\lib\fop\logkit-1.0.1.jar;
E:\bea\wlserver6.1\lib\fop\xalan-2.3.1.jar;
E:\bea\wlserver6.1\lib\fop\xercesImpl-2.0.1.jar;
E:\bea\wlserver6.1\lib\fop\xml-apis.jar;
E:\bea;
E:\bea\jdk131;
E:\bea\wlserver6.1;
E:\bea\wlserver6.1\config\alphadomain2_2;
E:\bea\wlserver6.1\config\alphadomain2_2\serverclasses;
E:\bea\wlserver6.1\config\alphadomain2_2\servletclasses;
E:\bea\jdk131\lib\tools.jar;
E:\bea\wlserver6.1\config\alphadomain2_2\applications\TestBean.jar;
E:\bea\wlserver6.1\lib\weblogic_sp.jar;
E:\bea\wlserver6.1\lib\weblogic.jar


Thanks
Amit


-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 15, 2002 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem Executing FopServlet on bea weblogic6.1

Amit Rangari wrote:
 Sorry about cross posting to both the list,
 This isn't an IE problem because I am able to view other PDF properly
in
 IE, and I am not getting anything else in the weblogic log other than
 [DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser
 
 I checked the size of the ByteArrayOutputStream it is showing 0 this
 means nothing is being rendered.
Well, probably some exception has occured and you have to find its stack
trace 
in logs somewhere, actually FopServlet throws new ServletException
object and 
it's servlet engine responsibility to log it. Or alternatively try to
redirect 
the logger fop uses to a file in order to see fop debug mesages.
How you can do it depends on fop version you are using.

-- 
Oleg Tkachenko
Multiconn International, Israel


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




FopServlet.java
Description: Binary data

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


Problem Executing FopServlet on bea weblogic6.1

2002-07-14 Thread Amit Rangari



Hi All,

I am not able to execute the FOServlet on weblogic6.1.
I get a blank PDF in the IE when I try to execute the FOServlet. The
message on Weblogic console is:
[DEBUG] Using weblogic.xml.jaxp.RegistryXMLReader as SAX2 Parser

Please help me to resolve this issue.

Thanks,
Amit


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




Re: FopServlet

2002-06-16 Thread J.Pietschmann

Nirupama Yalavarti wrote:
 I could do that..THE file is being saved in
 jtomcat/bin
 Is there any way to change that location? may be to
 jtomcat/webapps/deployment directory ?

Thousands of possibilities.
Hardcode
  FileOutputStream fos=new FileOutputStream(../webapps/whatever/test12.pdf);
or investigate what you can do with
HttpServletRequest.getPathTranslated()

Now this is gettin way off of topic...

J.Pietschmann


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




Re: FopServlet

2002-06-15 Thread J.Pietschmann

Nirupama Yalavarti wrote:
 But I have programmed that the pdf is saved to
 specific file(that is the way I want it) ie teh pdf
 generated be saved as a specific file in the server.
 But that doesnt seem to happen.I was expecting it to
 be saved in tomcat/bin.
 Any idea of setting something else for that?
 Thanks
 Nirupama
 
 This what I have written:
 
 ByteArrayOutputStream xslOut = new
 ByteArrayOutputStream();
 byte[] pdfOutData = doRenderPDF(xslOut);
  

 response.setContentType(application/pdf);
 
 response.setContentType(application/pdf;
 name=\test12.pdf\);
 response.setHeader(Content-Disposition,
 inline;filename=\test12.pdf\);

You should only set *one* of the above.

 response.setContentLength(pdfOutData.length);
 
 OutputStream resOut = response.getOutputStream();
 resOut.write(pdfOutData);
 resOut.close();

Apart from this, you are writing your PDF to the servlet's
output stream and therefore to the browser. The
content-disposition setting is a hint for the *browser* on
how to save the content if it chooses to.
If you want to write to a file on the server, use something
like
  FileOutputStream fos=new FileOutputStream(test12.pdf);
  fos.write(pdfOutData);
  fos.close();

J.Pietschmann


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




Re: FopServlet

2002-06-15 Thread Nirupama Yalavarti


--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Nirupama Yalavarti wrote:
  But I have programmed that the pdf is saved to
  specific file(that is the way I want it) ie teh
 pdf
  generated be saved as a specific file in the
 server.
  But that doesnt seem to happen.I was expecting it
 to
  be saved in tomcat/bin.
  Any idea of setting something else for that?
  Thanks
  Nirupama
  
  This what I have written:
  
  ByteArrayOutputStream xslOut = new
  ByteArrayOutputStream();
  byte[] pdfOutData = doRenderPDF(xslOut);
   
 
  response.setContentType(application/pdf);
  
  response.setContentType(application/pdf;
  name=\test12.pdf\);
  response.setHeader(Content-Disposition,
  inline;filename=\test12.pdf\);
 
 You should only set *one* of the above.
 
  response.setContentLength(pdfOutData.length);
  
  OutputStream resOut = response.getOutputStream();
  resOut.write(pdfOutData);
  resOut.close();
 
 Apart from this, you are writing your PDF to the
 servlet's
 output stream and therefore to the browser. The
 content-disposition setting is a hint for the
 *browser* on
 how to save the content if it chooses to.
 If you want to write to a file on the server, use
 something
 like
   FileOutputStream fos=new
 FileOutputStream(test12.pdf);
   fos.write(pdfOutData);
   fos.close();
 
 J.Pietschmann
 
 

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

Thanks , I figured that out...
I could do that..THE file is being saved in
jtomcat/bin
Is there any way to change that location? may be to
jtomcat/webapps/deployment directory ?


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: FopServlet

2002-06-14 Thread Holger Prause


- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 1:47 AM
Subject: Re: FopServlet


 Nirupama Yalavarti wrote:
  Thats a great anwere...THE servlet seems to ahve run
  correctly( In fact it didnt show me any error..)
  But where can I find the produced pdf? any idea?

 In your browser? Look into the browser cache first.
 IEx is a bit fragile when it comes to showing PDF.
 Configure your webapp so that you can use an URL
 ending in .pdf for retrieving the PDF:
   http://my.host/some/path/to/servlet.pdf
 or

http://my.host/some/path/to/servlet.pdf?xml=foo.xmlxsl=foo.xsldummy=.pdf



Hello,

maybe you have Avtive X disabled and thats the reason why u dont see the
produced pdf.

I took my an half an hout to find this out .-)



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




Re: FopServlet

2002-06-14 Thread Nirupama Yalavarti


--- Holger Prause [EMAIL PROTECTED] wrote:
 
 - Original Message -
 From: J.Pietschmann [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 14, 2002 1:47 AM
 Subject: Re: FopServlet
 
 
  Nirupama Yalavarti wrote:
   Thats a great anwere...THE servlet seems to ahve
 run
   correctly( In fact it didnt show me any error..)
   But where can I find the produced pdf? any idea?
 
  In your browser? Look into the browser cache
 first.
  IEx is a bit fragile when it comes to showing PDF.
  Configure your webapp so that you can use an URL
  ending in .pdf for retrieving the PDF:
http://my.host/some/path/to/servlet.pdf
  or
 

http://my.host/some/path/to/servlet.pdf?xml=foo.xmlxsl=foo.xsldummy=.pdf
 
 
 
 Hello,
 
 maybe you have Avtive X disabled and thats the
 reason why u dont see the
 produced pdf.
 
 I took my an half an hout to find this out .-)

Thanks a lot, but I could get it by placing the dummy
parameter.
Nirupama


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




FopServlet

2002-06-13 Thread Nirupama Yalavarti

Hi all...
I am damn new to Tomcat  and Fop.Ive been trying to
sue Fop thru a servlet and was using the example
FopServlet of the examples/embedding. That minimal
thing itself doesnt seemt ot work and it geives me
errors..
Can anyone help me out...
It gives me the following errors...
I badly need this to be worked out..
Any help is greatly appreciated.
Thanks
Nirupama


javax.servlet.ServletException:
javax.xml.transform.Transformer
at FopServlet.renderXML(FopServlet.java:96)
at FopServlet.doGet(FopServlet.java:62)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)


root cause 

org.apache.fop.apps.FOPException:
javax.xml.transform.Transformer
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:107)
at FopServlet.renderXML(FopServlet.java:89)
at FopServlet.doGet(FopServlet.java:62)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566

Re: FopServlet

2002-06-13 Thread J.Pietschmann

Nirupama Yalavarti wrote:
 Hi all...
 I am damn new to Tomcat  and Fop.Ive been trying to
 sue Fop thru a servlet and was using the example
 FopServlet of the examples/embedding. That minimal
 thing itself doesnt seemt ot work and it geives me
 errors..
 Can anyone help me out...
 It gives me the following errors...
...
 java.lang.ClassNotFoundException:
 javax.xml.transform.Transformer

The servlet's class loader can't find Xalan.

Are you using Tomcat 4.0.3? In this case, either copy
the Xalan jar, fop.jar and batik.jar from the webapp's
lib directory into Tomcat's lib directory, or upgrade
to Tomcat 4.0.4b3.
I think i've seen more detailed instructions in some
Tomcat documentation.

Otherwise, check yout webapp's lib directory whether it
contains all the jars from the FOP duirstribution's lib
directory.

J.Pietschmann


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




Re: FopServlet

2002-06-13 Thread Nirupama Yalavarti

Thats a great anwere...THE servlet seems to ahve run
correctly( In fact it didnt show me any error..)
But where can I find the produced pdf? any idea?

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Nirupama Yalavarti wrote:
  Hi all...
  I am damn new to Tomcat  and Fop.Ive been trying
 to
  sue Fop thru a servlet and was using the example
  FopServlet of the examples/embedding. That minimal
  thing itself doesnt seemt ot work and it geives me
  errors..
  Can anyone help me out...
  It gives me the following errors...
 ...
  java.lang.ClassNotFoundException:
  javax.xml.transform.Transformer
 
 The servlet's class loader can't find Xalan.
 
 Are you using Tomcat 4.0.3? In this case, either
 copy
 the Xalan jar, fop.jar and batik.jar from the
 webapp's
 lib directory into Tomcat's lib directory, or
 upgrade
 to Tomcat 4.0.4b3.
 I think i've seen more detailed instructions in some
 Tomcat documentation.
 
 Otherwise, check yout webapp's lib directory whether
 it
 contains all the jars from the FOP duirstribution's
 lib
 directory.
 
 J.Pietschmann
 
 

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


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: FopServlet

2002-06-13 Thread J.Pietschmann

Nirupama Yalavarti wrote:
 Thats a great anwere...THE servlet seems to ahve run
 correctly( In fact it didnt show me any error..)
 But where can I find the produced pdf? any idea?

In your browser? Look into the browser cache first.
IEx is a bit fragile when it comes to showing PDF.
Configure your webapp so that you can use an URL
ending in .pdf for retrieving the PDF:
  http://my.host/some/path/to/servlet.pdf
or
   http://my.host/some/path/to/servlet.pdf?xml=foo.xmlxsl=foo.xsldummy=.pdf

More importantly, set the content type correctly
to application/pdf, and buffer the PDF output in
a ByteArrayOutputStream so that you can send the
exact length to the browser (IEx will show a
blank window if you fail to do this).

J.Pietschmann


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




Re: FopServlet

2002-06-13 Thread Nirupama Yalavarti

Yes! I noticed that..because that was working fine
with netscape. and should work now with IEx too.
But I have programmed that the pdf is saved to
specific file(that is the way I want it) ie teh pdf
generated be saved as a specific file in the server.
But that doesnt seem to happen.I was expecting it to
be saved in tomcat/bin.
Any idea of setting something else for that?
Thanks
Nirupama

This what I have written:

ByteArrayOutputStream xslOut = new
ByteArrayOutputStream();
byte[] pdfOutData = doRenderPDF(xslOut);
 
   
response.setContentType(application/pdf);

response.setContentType(application/pdf;
name=\test12.pdf\);
response.setHeader(Content-Disposition,
inline;filename=\test12.pdf\);
response.setContentLength(pdfOutData.length);

OutputStream resOut = response.getOutputStream();
resOut.write(pdfOutData);
resOut.close();



 In your browser? Look into the browser cache first.
 IEx is a bit fragile when it comes to showing PDF.
 Configure your webapp so that you can use an URL
 ending in .pdf for retrieving the PDF:
   http://my.host/some/path/to/servlet.pdf
 or
   

http://my.host/some/path/to/servlet.pdf?xml=foo.xmlxsl=foo.xsldummy=.pdf
 
 More importantly, set the content type correctly
 to application/pdf, and buffer the PDF output in
 a ByteArrayOutputStream so that you can send the
 exact length to the browser (IEx will show a
 blank window if you fail to do this).
 
 J.Pietschmann


=


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: SAX, fopservlet and 0.20.2

2002-06-07 Thread Louis . Masters


J:
Thanks - that clarifies it.  The newer xalan did and, with the upgrade to
the newer fop and the namespace fix,  it is now working (although I had to
rename my servlet from fop to fop.pdf to get the pdf output in IE).
I now have to work on performance - my users don't like waiting 30min to
and hour for their pdf reports.

Thanks!
-Lou





J.Pietschmann [EMAIL PROTECTED] on 06/06/2002 16:00:59

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2

[EMAIL PROTECTED] wrote:
 I am now testing using the glossary xml/xsl files in the example
directory,
 but with the same results.  It works fine from the command line, but NPE
 whenever I introduce the SAXResult or SAXSource.  I'm starting to think
it
 might be something with me environment.  Also, if I stream it to a file
 using StreamResult, I can then take the resultant fo and use the Fop
 command line utility on that and it is fine.

It is possible that it is a problem involving undeclared namespaces.
GGet a recent Xalan or get Saxon (http://saxon.sourceforge.net) at run
your stylesheet:
   xalan -in foo.xml -xsl foo.xsl -out foo.fo
The Xalan included in the FOP distribution sometimes throws NPEs by
itself and sometimes passes null namespaces to FOP which cause
NPEs, but the latter might be masked by serialisation and reparsing.
A more recent Xalan will provide a proper error message.

 Sorry, the xml.apache.org stated you needed the sax api, not sax.jar -
 xalan should cover this?

Not Xalan, Xerces (included in the FOP distribution.

J.Pietschmann


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









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




Re: SAX, fopservlet and 0.20.2

2002-06-06 Thread Louis . Masters


OK, I take back some of what I previously said.  I upgraded my xalan to
2.3.1 and that fixed the NPE when transforming the glossary example.  I
still consistently get the NPE on my own files from the servlet, but now I
also get it from the command line.  Being at a loss, per the xalan 2.3.1
instructions, I switched my xerces jar to xercesImpl.jar, but now I get the
following:

org.xml.sax.SAXParseException: The prefix fo for element
fo:external-graphic is not bound.

I am still using 0.20.2 fop so I am pretty confused on which jars I should
be using.  Anyone have any ideas?  What jars should be in my path?

-Lou





[EMAIL PROTECTED] on 06/06/2002 07:51:09

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2


J:
Thanks for the response.

I am now testing using the glossary xml/xsl files in the example directory,
but with the same results.  It works fine from the command line, but NPE
whenever I introduce the SAXResult or SAXSource.  I'm starting to think it
might be something with me environment.  Also, if I stream it to a file
using StreamResult, I can then take the resultant fo and use the Fop
command line utility on that and it is fine.

Sorry, the xml.apache.org stated you needed the sax api, not sax.jar -
xalan should cover this?

If 0.20.3 is stable, I would consider upgrading - it's just that I have all
the jar files frozen for at least another month.

Thanks,
Lou





J.Pietschmann [EMAIL PROTECTED] on 06/05/2002 20:04:01

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2

[EMAIL PROTECTED] wrote:
 I recently switched from a standalone FOP app to the servlet.  The code
 compiles fine, but any lines that use SAX throw a transformer exception.

Do your files work with the command line FOP?
   fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
If you get a NPE
   [ERROR]: null
add the -d switch to get a stack trace.

 Also, I don't explicitly include the sax jar file - do I need to?  I'm
 using xalan 2.0.0 and xerces 1.2.3.

What sax jar file?

You might also consider upgrading to 0.20.3.

J.Pietschmann


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









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









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




Re: SAX, fopservlet and 0.20.2

2002-06-06 Thread Louis . Masters


OK, I thawed the jar files and upgraded to 20.3 (and rolled back my xalan
and xerces changes) and that seems to do the trick.  The fo issue was a
bug in an included stylesheet that I fixed.

-Lou





[EMAIL PROTECTED] on 06/06/2002 11:50:26

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2


OK, I take back some of what I previously said.  I upgraded my xalan to
2.3.1 and that fixed the NPE when transforming the glossary example.  I
still consistently get the NPE on my own files from the servlet, but now I
also get it from the command line.  Being at a loss, per the xalan 2.3.1
instructions, I switched my xerces jar to xercesImpl.jar, but now I get the
following:

org.xml.sax.SAXParseException: The prefix fo for element
fo:external-graphic is not bound.

I am still using 0.20.2 fop so I am pretty confused on which jars I should
be using.  Anyone have any ideas?  What jars should be in my path?

-Lou





[EMAIL PROTECTED] on 06/06/2002 07:51:09

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2


J:
Thanks for the response.

I am now testing using the glossary xml/xsl files in the example directory,
but with the same results.  It works fine from the command line, but NPE
whenever I introduce the SAXResult or SAXSource.  I'm starting to think it
might be something with me environment.  Also, if I stream it to a file
using StreamResult, I can then take the resultant fo and use the Fop
command line utility on that and it is fine.

Sorry, the xml.apache.org stated you needed the sax api, not sax.jar -
xalan should cover this?

If 0.20.3 is stable, I would consider upgrading - it's just that I have all
the jar files frozen for at least another month.

Thanks,
Lou





J.Pietschmann [EMAIL PROTECTED] on 06/05/2002 20:04:01

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: SAX, fopservlet and 0.20.2

[EMAIL PROTECTED] wrote:
 I recently switched from a standalone FOP app to the servlet.  The code
 compiles fine, but any lines that use SAX throw a transformer exception.

Do your files work with the command line FOP?
   fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
If you get a NPE
   [ERROR]: null
add the -d switch to get a stack trace.

 Also, I don't explicitly include the sax jar file - do I need to?  I'm
 using xalan 2.0.0 and xerces 1.2.3.

What sax jar file?

You might also consider upgrading to 0.20.3.

J.Pietschmann


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









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









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









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




Re: SAX, fopservlet and 0.20.2

2002-06-06 Thread J.Pietschmann

[EMAIL PROTECTED] wrote:
 I am now testing using the glossary xml/xsl files in the example directory,
 but with the same results.  It works fine from the command line, but NPE
 whenever I introduce the SAXResult or SAXSource.  I'm starting to think it
 might be something with me environment.  Also, if I stream it to a file
 using StreamResult, I can then take the resultant fo and use the Fop
 command line utility on that and it is fine.

It is possible that it is a problem involving undeclared namespaces.
GGet a recent Xalan or get Saxon (http://saxon.sourceforge.net) at run
your stylesheet:
   xalan -in foo.xml -xsl foo.xsl -out foo.fo
The Xalan included in the FOP distribution sometimes throws NPEs by
itself and sometimes passes null namespaces to FOP which cause
NPEs, but the latter might be masked by serialisation and reparsing.
A more recent Xalan will provide a proper error message.

 Sorry, the xml.apache.org stated you needed the sax api, not sax.jar -
 xalan should cover this?
 
Not Xalan, Xerces (included in the FOP distribution.

J.Pietschmann


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




SAX, fopservlet and 0.20.2

2002-06-05 Thread Louis . Masters

I recently switched from a standalone FOP app to the servlet.  The code
compiles fine, but any lines that use SAX throw a transformer exception.
For example. the following line

driver.render(input.getParser(), input.getInputSource());

throws a NPE (input is XSLTInputHandler input = new XSLTInputHandler(new
File(xmlParam), new File(xslParam));).

I changed the code using some examples from this list, but again, any time
I use SAX, it does not work.  I have tried the following with no luck:

transformer.transform(fileSource, new SAXResult(driver.getContentHandler()
));
throws a NPE

transformer.transform( new DOMSource( inputDoc ), new
SAXResult(driver.getContentHandler() ));
throws a transform exception with The markup in the document preceding the
root element must be well-formed

transformer.transform( new SAXSource( new InputSource ( new StringReader (
xml ) ) ), new SAXResult(driver.getContentHandler() ));
throws a transform exception with The markup in the document preceding the
root element must be well-formed.; Line#: 1; Column#: 1

transformer.transform(fileSource,streamResult);
**this works**

I tried changing the transformer factory from the following seemingly
working line:

Transformer transformer = transformerFactory.newTransformer(new
javax.xml.transform.stream.StreamSource(xsl));

to

Transformer transformer = transformerFactory.newTransformer(new
javax.xml.transform.sax.SAXSource( new InputSource ( new StringReader ( xsl
) ) ));
but this now throws a transform exception with The markup in the document
preceding the root element must be well-formed

The code is currently working with:

XSLTransform.transform(xml, xsl, writer);

but I really need the speed and efficiency increase of SAX.

This led me to believe that me XSL was bad, but it looks OK to me:

?xml version=1.0 encoding=utf-8?
!DOCTYPE xsl:stylesheet [
!ENTITY nl #xd;#xa;
!ENTITY nbsp #160;
]
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xsl:output method=xml indent=yes encoding=utf-8/
...

The XSL file also looks OK.  I read some posts that their was a fix for
nulls outside of the root causing a NPE, but I think it was fixed in
0.20.2.  Is this not the case?

Also, I don't explicitly include the sax jar file - do I need to?  I'm
using xalan 2.0.0 and xerces 1.2.3.

Thanks for any help - this is driving me nuts.

-Lou



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




Re: SAX, fopservlet and 0.20.2

2002-06-05 Thread J.Pietschmann

[EMAIL PROTECTED] wrote:
 I recently switched from a standalone FOP app to the servlet.  The code
 compiles fine, but any lines that use SAX throw a transformer exception.

Do your files work with the command line FOP?
   fop -xml foo.xml -xsl foo.xsl -pdf foo.pdf
If you get a NPE
   [ERROR]: null
add the -d switch to get a stack trace.

 Also, I don't explicitly include the sax jar file - do I need to?  I'm
 using xalan 2.0.0 and xerces 1.2.3.

What sax jar file?

You might also consider upgrading to 0.20.3.

J.Pietschmann


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




DO NOT REPLY [Bug 4998] - FopServlet problem - NoSuchMethodError

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4998.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4998

FopServlet problem - NoSuchMethodError

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 08:53 ---
There appears to be a problem with the deployment, maybe a
duplicate version of FOP, or a problem with the servlet container.
The information given is much too sparse to do anything.

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




DO NOT REPLY [Bug 6813] - FopServlet does not work!

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813

FopServlet does not work!

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 09:09 ---
This appears to be a problem with the XSLT file, check the transformation
separately with a command line XSLT processor.

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




DO NOT REPLY [Bug 6813] - FopServlet does not work!

2002-04-22 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813

FopServlet does not work!

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Resolution|WONTFIX |INVALID



--- Additional Comments From [EMAIL PROTECTED]  2002-04-22 09:09 ---
This appears to be a problem with the XSLT file, check the transformation
separately with a command line XSLT processor.

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




Problem in running FopServlet in Weblogic 6.1sp1

2002-04-08 Thread Rikhil Jain

Hi,

I'm finding difficulty in running FopServlet in weblogic 6.1.
The servlet is running fine when the FO is passed but whenever
I pass the XML and XSL files as arguments it's not forming the
ByteArrayOutPutStream(The content length is always zero).
The same piece of code I tried in pure java component with a main
and run in separate jvm it worked fine.
I think there are some classes which also exist with weblogic.jar create the
problem.We can't change our app server.
Kindly look into this.

Thanks and Regards
Rikh

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




Re: [PATCH] FopServlet WAR

2002-03-27 Thread Keiron Liddle

Hi Jeremias,

Thanks, I have committed this and also on the maintanence branch.

btw. directories don't have branches only files do. Once a directory is 
created it then always exists for all branches.

On 2002.03.24 22:04 Jeremias Maerki wrote:
 Hi Foppers
 
 As promised I've put together a zip file that contains the FopServlet
 (and FopPrintServlet) in a way that the WAR file can be built using ant.
 I've put it under the contrib directory (does not yet exist in
 maintenance branch). This replaces the docs/examples/embedding directory
 for now (if you accept the patch).
 
 I've left out servlet.jar for download size but included several notices
 on how to build the WAR file (README file and message in build.xml).
 servlet.jar simply has to be copied to contrib/servlet/lib prior to
 building the WAR file using contrib/servlet/build.bat (or build.sh).
 
 I've also noticed an unused createParser() method in the servlets which
 I have removed.
 
 Cheers,
 Jeremias Märki

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




Re: [PATCH] FopServlet WAR

2002-03-27 Thread Jeremias Maerki

Hi Keiron

 Thanks, I have committed this and also on the maintanence branch.

Thank you. I'm also thinking about putting together a set of example
java classes that show how FOP can be (and should be) used. This is to
mirror (and complete) the stuff in the Embedding page on the website.
Don't know when I will have time, though.

 btw. directories don't have branches only files do. Once a directory is 
 created it then always exists for all branches.

Right, of course. 

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




[OT] Virus warnings, was: Re: [PATCH] FopServlet WAR

2002-03-24 Thread Jeremias Maerki

I apologize in advance for being off-topic!

I received four virus warnings upon sending my patch last night. They
all had the following style:

Subject: Norton AntiVirus detected a virus in a message you sent.  The inf ected 
attachment was deleted.

Recipient of the infected attachment: anonymize was=recipient's name/
Subject of the message:  [PATCH] FopServlet WAR
One or more attachments were deleted
  Attachment fopservlet.zip was Deleted for the following reasons:
Virus UNAUTHORIZED FILE was found.
Virus UNAUTHORIZED FILE was found.

That's pretty strange. I haven't sent a virus, have I?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




RE: FopServlet error

2002-03-05 Thread Carlos Daniel Schafer

Hi

You have look the file web.xml into fop.war is configured for other Tomcat,
I think so Tomcat 3.0, may be and your Tomcat is diferent.
Today, I take this same problem.


I sorry, my English is very bad, may be Indian. I'm the Argentina, Buenos
Aires.


 -Mensaje original-
 De:   Dunning, John [SMTP:[EMAIL PROTECTED]]
 Enviado el:   martes, 05 de marzo de 2002 17:05
 Para: '[EMAIL PROTECTED]'
 Asunto:   FopServlet error
 
 Hello,
 I'm trying to get the FopServlet example working; I've placed the fop.war
 file in the /webapps/ directory, but now when I start Tomcat I get this
 message on the console window:
 
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.3
 PARSE error at line 26 column 23
 org.xml.sax.SAXParseException: The content of element type
 servlet-mapping
 must match (servlet-name,url-pattern).
 
 Looking at the configuration files that come with Tomcat, the
 servlet-mapping content is as expected.  Anyone else experiened this, or
 any suggestions?
 
 TIA,
 John
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Re: FopServlet error

2002-03-05 Thread david

The web.xml file in fop.war is bad.  Open the .war, and remove the
servlet-mapping element with /servlet/fop in it.  The extra
servlet-mapping child element violates the DTD.  The corrected web.xml file
should be:

?xml version=1.0 encoding=ISO-8859-1?
!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by () --
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-nameFop/servlet-name
servlet-classFopServlet/servlet-class
/servlet
servlet-mapping
servlet-nameFop/servlet-name
url-pattern/fop/url-pattern
/servlet-mapping
/web-app

:)

- Original Message -
From: Carlos Daniel Schafer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:08 PM
Subject: RE: FopServlet error


 Hi

 You have look the file web.xml into fop.war is configured for other
Tomcat,
 I think so Tomcat 3.0, may be and your Tomcat is diferent.
 Today, I take this same problem.


 I sorry, my English is very bad, may be Indian. I'm the Argentina, Buenos
 Aires.


  -Mensaje original-
  De: Dunning, John [SMTP:[EMAIL PROTECTED]]
  Enviado el: martes, 05 de marzo de 2002 17:05
  Para: '[EMAIL PROTECTED]'
  Asunto: FopServlet error
 
  Hello,
  I'm trying to get the FopServlet example working; I've placed the
fop.war
  file in the /webapps/ directory, but now when I start Tomcat I get this
  message on the console window:
 
  Starting service Tomcat-Standalone
  Apache Tomcat/4.0.3
  PARSE error at line 26 column 23
  org.xml.sax.SAXParseException: The content of element type
  servlet-mapping
  must match (servlet-name,url-pattern).
 
  Looking at the configuration files that come with Tomcat, the
  servlet-mapping content is as expected.  Anyone else experiened this,
or
  any suggestions?
 
  TIA,
  John
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

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



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




RE: FopServlet

2002-03-04 Thread Volker [EMAIL PROTECTED]

It looks as if your tomcat installation does not pick up Xalan.jar.
You have to put all FOP jars (fop.jar, batik.jar etc.) into
yourwebapp/WEB-INF/lib/
directory.

Hope this helps

Volker

-Original Message-
From: Deb Schmutz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:17 AM
To: [EMAIL PROTECTED]
Subject: FopServlet


I am new to Fop and having problems with the
FopServlet that came with Fop-0.20.2.  Please can
anyone give me any pointers.  TIA.

Error: 500
Location: /fop/fop
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:135)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause:
org.apache.fop.apps.FOPException
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException:
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
21)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
21)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405

Re: FopServlet

2002-03-04 Thread Karen Lease

Deb,

Which version of tomcat are you using? Especially with Tomcat 3.x I've
seen lots of classloader problems. Can you find out which jars are being
used by tomcat (in its lib or maybe lib/ext directory)? Look out for
jaxp.jar or perhaps a version of xerces at that level which would be
pulling in xalan. What can happen is that the javax.xml.transform is
found in tomcat's jaxp.jar and if it's set up to use Xalan, it will only
look for it in tomcat's classpath, not in your own webapp classpath,
which seems to have the right stuff in it.

Also do have any XML type jars in your java or jre lib/ext directory?

HTH,
Karen


Deb Schmutz wrote:
 
 I believe I have all the jar files that I need.  Here
 is what my war file looks like:
 
 META-INF/
 META-INF/MANIFEST.MF
 WEB-INF/
 WEB-INF/lib/
 WEB-INF/lib/ant.jar
 WEB-INF/lib/avalon-framework-4.0.jar
 WEB-INF/lib/batik.jar
 WEB-INF/lib/bsf.jar
 WEB-INF/lib/buildtools.jar
 WEB-INF/lib/jimi-1.0.jar
 WEB-INF/lib/logkit-1.0b4.jar
 WEB-INF/lib/stylebook.jar
 WEB-INF/lib/xalan-1.2.2.jar
 WEB-INF/lib/xalan-2.0.0.jar
 WEB-INF/lib/xalanj1compat.jar
 WEB-INF/lib/xerces-1.2.3.jar
 WEB-INF/lib/fop.jar
 WEB-INF/lib/servlet.jar
 WEB-INF/classes/
 WEB-INF/classes/FopServlet.class
 images/
 images/CompHealth-Logo.gif
 WEB-INF/web.xml
 
 --- Volker [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  It looks as if your tomcat installation does not
  pick up Xalan.jar.
  You have to put all FOP jars (fop.jar, batik.jar
  etc.) into
  yourwebapp/WEB-INF/lib/
  directory.
 
  Hope this helps
 
  Volker
 
  -Original Message-
  From: Deb Schmutz [mailto:[EMAIL PROTECTED]]
  Sent: Monday, March 04, 2002 2:17 AM
  To: [EMAIL PROTECTED]
  Subject: FopServlet
 
 
  I am new to Fop and having problems with the
  FopServlet that came with Fop-0.20.2.  Please can
  anyone give me any pointers.  TIA.
 
  Error: 500
  Location: /fop/fop
  Internal Servlet Error:
 
  javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:135)
at FopServlet.doGet(FopServlet.java:77)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
 
 org.apache.tomcat.core.Handler.service(Handler.java:287)
at
 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
at
 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
at
 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
 
  Root cause:
  org.apache.fop.apps.FOPException
at
 
 org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
 
 org.apache.tomcat.core.Handler.service(Handler.java:287)
at
 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
at
 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
at
 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
 
  -
 
  java.lang.reflect.InvocationTargetException:
 
 javax.xml.transform.TransformerFactoryConfigurationError:
  java.lang.ClassNotFoundException:
  org.apache.xalan.processor.TransformerFactoryImpl
at
 
 javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
  21)
at
 
 org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
 
 org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 
 org.apache.tomcat.core.ServletWrapper.doService

FopServlet

2002-03-03 Thread Deb Schmutz

I am new to Fop and having problems with the
FopServlet that came with Fop-0.20.2.  Please can
anyone give me any pointers.  TIA. 

Error: 500
Location: /fop/fop
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:135)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

Root cause: 
org.apache.fop.apps.FOPException
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException:
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
javax.xml.transform.TransformerFactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.xalan.processor.TransformerFactoryImpl
at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
at
org.apache.fop.apps.TraxInputHandler.getXMLFilter(TraxInputHandler.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.fop.apps.XSLTInputHandler.getParser(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:128)
at FopServlet.doGet(FopServlet.java:77)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at
org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758

DO NOT REPLY [Bug 6813] New: - FopServlet does not work!

2002-03-01 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6813

FopServlet does not work!

   Summary: FopServlet does not work!
   Product: Fop
   Version: 0.20.3
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


FopServlet and FopPrintServlet, as provided in the 20.3 distribution, do not 
work with params 'xsl' and 'xml'.  They DO work with param 'fo'

The following error traceback is generated when FopServlet is invoked as:
 
http://blah.blah.blah/fop/servlet/FopServlet?xml=c:/testing/f77PDF-
pg1.xmlxsl=c:\testing/toPDF.xsl

Note the above xsl file contains the line:

xsl:stylesheet version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;   
xmlns:fo=http://www.w3.org/1999/XSL/Format;


error traceback-
Error: 500
Location: /fop/servlet/FopServlet
Internal Servlet Error:

javax.servlet.ServletException
at FopServlet.renderXML(FopServlet.java:131)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Root cause:
org.apache.fop.apps.FOPException
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:109)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

java.lang.reflect.InvocationTargetException: org.apache.fop.apps.FOPException: 
stylesheet requires attribute: version
at org.apache.fop.apps.TraxInputHandler.getXMLFilter
(TraxInputHandler.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.fop.apps.XSLTInputHandler.getParser
(XSLTInputHandler.java:102)
at FopServlet.renderXML(FopServlet.java:124)
at FopServlet.doGet(FopServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

-

javax.xml.transform.TransformerConfigurationException: stylesheet requires 
attribute: version
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates
(TransformerFactoryImpl.java:815

fopservlet: file not found

2002-02-07 Thread Xiao Yang

Hello,

I am trying to use the fopservlet to dynamically
generate the pdf file I have.  I get this saxexception
in tomcat 4.0 that says the fo file I specified in the
url where fo=simple.fo is not found under the path
c:\program files\apache tomcat
4.0\webapps\fop\fo\simple.fo.

The file is there, I don't understand why it says it's
not finding it?

any help is appreciated.

pauli

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




fopservlet: file not found

2002-02-07 Thread Xiao Yang

Hello,

was not sure if the first message send. please excuse
if dup

I am trying to get the fopservlet to work.  I get this
saxexception in tomcat:  c:\program files\apache
tomcat 4.0\webapps\fop\simple.fo  not found.  

the file is there, I don't understand why it saying it
not.

any help is appreciated

pauli

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Problems with the FopServlet w XML/XSL

2001-12-18 Thread Anders Gunnare

Hello World,

I've installed FopServlet in a TomCat Server. 
When I run the servlet with fo parameter (example, FopServlet?fo=my.fo),
I get the pdf.
BUT
when I run it with xsl and xml parms (FopServlet?xsl=my.xslxml=my.xml),

I get a blank screen.

I have downloaded the example code from the CVS, I think there is some
problem in the renderXML-method.

Any advise?

Best regards
Anders Gunnare
Frontec
Sweden


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




Re: Problems with the FopServlet w XML/XSL

2001-12-18 Thread Keiron Liddle

Hi,

I have checked the servlet example and it works fine for me.
Once I got the right classpath and the right value for the files it 
correctly worked for the fo option and for the xml+xsl option.
/fop/servlet/FopServlet?fo=extensive.fodummy=.pdf
and
/fop/servlet/FopServlet?xml=glossary.xmlxsl=glossary.xsldummy=.pdf

I did notice that after a few failings it sent error meesages to the 
browser, if the correct pdf was then sent the pdf was loaded as text, the 
next time I loaded the pdf it was a blank browser window. Then after 
addiing a dummy .pdf to the end it worked. So if you have troubles blame 
the browser (I'm sure you can all guess which one I was using).

So the example servlet does work properly when setup correctly. It is 
mainly meant for demo purposes you may want to change it for your own use.

On 2001.12.18 11:34 Anders Gunnare wrote:
 Hello World,
 
 I've installed FopServlet in a TomCat Server.
 When I run the servlet with fo parameter (example, FopServlet?fo=my.fo),
 I get the pdf.
 BUT
 when I run it with xsl and xml parms (FopServlet?xsl=my.xslxml=my.xml),
 
 I get a blank screen.
 
 I have downloaded the example code from the CVS, I think there is some
 problem in the renderXML-method.
 
 Any advise?
 
 Best regards
 Anders Gunnare
 Frontec
 Sweden

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




SV: Problems with the FopServlet w XML/XSL

2001-12-18 Thread Anders Gunnare

Hello,

It works when I add 
dummy=.pdf
in the end of the URL.

A small but important thing, by some reason in the example-code
(=FopServlet.java) made by Keiron it is two example call to the servelt,
one to a .fo file and one to a .xml/.xsl file, it doesn't say anything
about dummy=.pdf

I don't know if this is the problem.

I run MSIE5.5.

Best regards
Anders Gunnare
Frontec 
Sweden


 
 Hi,
 
 I have checked the servlet example and it works fine for me. 
 Once I got the right classpath and the right value for the files it 
 correctly worked for the fo option and for the xml+xsl 
 option. /fop/servlet/FopServlet?fo=extensive.fodummy=.pdf
 and 
 /fop/servlet/FopServlet?xml=glossary.xmlxsl=glossary.xsldummy=.pdf
 
 I did notice that after a few failings it sent error meesages to the 
 browser, if the correct pdf was then sent the pdf was loaded 
 as text, the 
 next time I loaded the pdf it was a blank browser window. Then after 
 addiing a dummy .pdf to the end it worked. So if you have 
 troubles blame 
 the browser (I'm sure you can all guess which one I was using).
 
 So the example servlet does work properly when setup correctly. It is 
 mainly meant for demo purposes you may want to change it for 
 your own use.
 
 On 2001.12.18 11:34 Anders Gunnare wrote:
  Hello World,
  
  I've installed FopServlet in a TomCat Server.
  When I run the servlet with fo parameter (example, 
  FopServlet?fo=my.fo), I get the pdf. BUT
  when I run it with xsl and xml parms 
 (FopServlet?xsl=my.xslxml=my.xml),
  
  I get a blank screen.
  
  I have downloaded the example code from the CVS, I think 
 there is some 
  problem in the renderXML-method.
  
  Any advise?
  
  Best regards
  Anders Gunnare
  Frontec
  Sweden
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 


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




DO NOT REPLY [Bug 5495] New: - Problem with FopServlet - missing package from Fop-0.20.1-src.tar.gz

2001-12-18 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5495.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5495

Problem with FopServlet - missing package from Fop-0.20.1-src.tar.gz

   Summary: Problem with FopServlet - missing package from Fop-
0.20.1-src.tar.gz
   Product: Fop
   Version: 0.15
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: general
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I have down loaded Fop-0.20.1-src.tar.gz and tried to run the sample 
FopServlet and the stack trace below was generated after passing in the 
following parameters http://localhost:9090/servlet/FopServlet?fo=simple.fo;.

I dived into the Fop.jar file and found that within the 
org.apache.fop.extensions.ExtensionElementMapping class the import statement is 
to org.apache.fop.fo.properties.ExtensionPropertyMapping class. This whole 
package ie.org.apache.fop.fo.properties is not include in the Fop.jar file.

Can the missing code be forwarded/avail. for download/inc in the jar in the 
future, etc.

I have successfully created the simple.pdf from simple.fo from the commandline, 
classpath appear to be correct otherwise I wouldnt get this far.
===
Exception in invoker: null

java.lang.NullPointerException
at org.apache.fop.svg.SVGElementMapping.addToBuilder
(SVGElementMapping.java, Compiled Code)
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:373)
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:384)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java, 
Compiled Code)
at org.apache.fop.apps.Driver.(Driver.java:189)
at org.apache.fop.apps.Driver.(Driver.java:193)
at FopServlet.renderFO(FopServlet.java:71)
at FopServlet.doGet(FopServlet.java:45)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:868)
at com.gefionsoftware.server.ServletContextImpl$ServletHandler.call
(ServletContextImpl.java)
at com.gefionsoftware.server.ServletContextImpl.executeServlet
(ServletContextImpl.java)
at com.gefionsoftware.server.NamedDispatcherImpl.forward
(NamedDispatcherImpl.java)
at com.gefionsoftware.server.servlets.InvokerServlet.service
(InvokerServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:868)
at com.gefionsoftware.server.ServletContextImpl$ServletHandler.call
(ServletContextImpl.java)
at com.gefionsoftware.server.ServletContextImpl.executeServlet
(ServletContextImpl.java)
at com.gefionsoftware.server.ServletContextImpl.execute
(ServletContextImpl.java)
at com.gefionsoftware.server.GenericServer.execute(GenericServer.java)
at com.gefionsoftware.server.lws.LiteWebServer$RequestHandler.run
(LiteWebServer.java)
at se.pureit.util.ThreadPool$WorkThread.startRunnable(ThreadPool.java)
at se.pureit.util.ThreadPool$WorkThread.run(ThreadPool.java, Compiled 
Code)
===

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




DO NOT REPLY [Bug 5495] - Problem with FopServlet - missing package from Fop-0.20.1-src.tar.gz

2001-12-18 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5495.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5495

Problem with FopServlet - missing package from Fop-0.20.1-src.tar.gz

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

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




FopServlet error help!

2001-08-29 Thread Kilmer, Erich

I am trying to run a FopServlet and I get this exception in my browser when
I try to render the .FO file:
org.xml.sax.SAXParseException: The root element is required in a well-formed
document
I know you think its the .FO file but I even get it when I run the readme.fo
that comes with FOP through it.
Here is what the code looks like:
FileInputStream foFile = new
FileInputStream(request.getParameter(FO_REQUEST_PARAM));
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.setContentType(application/pdf);
Driver driver = new Driver(foFile, out);
driver.run();
byte[] content = out.toByteArray();
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();

Is there some Driver setting I should be doing?
TIA,

Erich Kilmer
Bell+Howell

PS: My .fo file starts out like this:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master margin-right=.5in
margin-left=.5in margin-bottom=0in margin-top=.25in
master-name=right
fo:region-body margin-bottom=0in/
fo:region-after extent=0in/
I can send the entire file if someone wants to look at it.



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




Re: bug in FopServlet

2001-08-17 Thread Alex McLintock

 --- Alex Greif [EMAIL PROTECTED] wrote:  Hi,
 
 the FopServlet example still uses the Driver.addPropertyList() method.
 please update the Servlet.
 
 I'm running fop 0.20.1
 
 Alex.

To pretend I'm Jon Stevens for a few seconds.

 a patch would be more than welcome.

Thanks for spotting that mistake.

Alex


=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt t-shirt/ at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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




bug in FopServlet

2001-08-16 Thread Alex Greif

Hi,

the FopServlet example still uses the Driver.addPropertyList() method.
please update the Servlet.

I'm running fop 0.20.1

Alex.
___
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED], 8MB Speicher, Verschluesselung - http://freemail.web.de



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




Re: bug in FopServlet

2001-08-16 Thread Keiron Liddle

On Thu, 16 Aug 2001 09:17:10 Alex Greif wrote:
 Hi,
 
 the FopServlet example still uses the Driver.addPropertyList() method.
 please update the Servlet.
 
 I'm running fop 0.20.1

Both the current cvs version (2001/08/10) and the previous version do not
have this method.
You must somehow have an old version??

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