You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Bracchi Cabannes Christophe <ch...@ac-toulouse.fr> on 2001/04/10 10:26:47 UTC
A little pbl with running FOP in LUNIX
Hello,
I arrive to running fop in my localhost (Win95/PC/JBuilder/TOMCAT) and
I produce correctly the pdf. But when I put the code in my server LINUX
(APACHE/TOMCAT) when I execute the servlet, I have this message :
building formatting object tree <= that's ok
WARNING: Unknown formatting object ^ <= problem
java.lang.reflect.InvocationTargetException:
javax.servlet.ServletException
at
utilitaires.TranscodeurFop.productionPDFFromInputSource(TranscodeurFop.java:77)
at
utilitaires.TranscodeurFop.productionPDFFromFile(TranscodeurFop.java:43)
at
maia.section.Notation.impressionListeFichesNotation(Notation.java:444)
at java.lang.reflect.Method.invoke(Native Method)
etc...
The classpath is good... I try with an exemple of fop, same think.
My fo produce begin with :
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
etc...
Please, help me !! Thanks...
Re: A little pbl with running FOP in LUNIX (the end... ouf !)
Posted by Bracchi Cabannes Christophe <ch...@ac-toulouse.fr>.
Hi !
I FIND ANSWER ... EUREKA....
That's very simple,
In my server there is two applications, one with Xalan V1 / Xerces 1 0 3 and other with Xalan V2 /
Xerces 1 2 3. Tomcat init classpath with config of jetspeed (in fact there is 3 web-applications) and
this is not visible ! I just rename xalan v1 and xerces 1 0 3 and that's work...
Just an other little problem, now I can't execute all the application in same time.....
Zen...
Bracchi Cabannes Christophe a écrit :
> Hi !
>
> Thank's Alex,
>
> This is the url where you can find a description most detailled of my problem, with fo produce
> by servlet, exception, classpath, ....
> - http://www.geocities.com/cbcabannes/ - click on the onglet "DIVERS" and on the link "BUG FOP".
> The description is on a text file.
>
> Thank's for your help
>
> Sincerely,
>
> Ch. B. C.
>
> Alex McLintock a écrit :
>
> > Christophe,
> >
> > It is obvious! You are coding in French. All Linux implementations of the Java Virtual Machine
> > fall over when running French class names.
> >
> > Seriously though...
> >
> > The warning shouldn't throw an exception. You'll often get unknown formatting
> > object warnings as you swap between different versions of FOP or learn what
> > parts of the spec are implemented.
> >
> > It would seem to me that something else is throwing a servlet exception - I know
> > not what. To be honest I am not sure what is throwing
> > java.lang.reflect.InvocationTargetException:
> > It looks like you've given us a stack track of the Servlet Exception and not the
> > original exception.
> >
> > Can you use FOP from the command line on unix to generate the PDF?
> > That will eliminate some of the complexity.
> >
> > It may be that your fo file has some very weird characters in it which Windows copes
> > with better than unix (I'm guessing here). Can you verify that it doesn't?
> >
> > Can you post your FO file to a website (not this list) so that those of us
> > with spare time can look at it?
> >
> > Alex
> >
> > --- Bracchi Cabannes Christophe <ch...@ac-toulouse.fr> wrote:
> > > Hello,
> > >
> > > I arrive to running fop in my localhost (Win95/PC/JBuilder/TOMCAT) and
> > > I produce correctly the pdf. But when I put the code in my server LINUX
> > > (APACHE/TOMCAT) when I execute the servlet, I have this message :
> > >
> > > building formatting object tree <= that's ok
> > > WARNING: Unknown formatting object ^ <= problem
> > > java.lang.reflect.InvocationTargetException:
> > > javax.servlet.ServletException
> > > at
> > > utilitaires.TranscodeurFop.productionPDFFromInputSource(TranscodeurFop.java:77)
> > >
> > > at
> > > utilitaires.TranscodeurFop.productionPDFFromFile(TranscodeurFop.java:43)
> > >
> > > at
> > > maia.section.Notation.impressionListeFichesNotation(Notation.java:444)
> > > at java.lang.reflect.Method.invoke(Native Method)
> > > etc...
> > >
> > > The classpath is good... I try with an exemple of fop, same think.
> > >
> > > My fo produce begin with :
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > > <fo:layout-master-set>
> > > etc...
> > >
> > > Please, help me !! Thanks...
> > >
> >
> > =====
> > Alex McLintock alex@OWAL.co.uk
> > OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> > Software for Complex Websites.
> > Publisher of http://www.DiverseBooks.com
> > Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> > For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: A little pbl with running FOP in LUNIX
Posted by Bracchi Cabannes Christophe <ch...@ac-toulouse.fr>.
Hi !
Thank's Alex,
This is the url where you can find a description most detailled of my problem, with fo produce
by servlet, exception, classpath, ....
- http://www.geocities.com/cbcabannes/ - click on the onglet "DIVERS" and on the link "BUG FOP".
The description is on a text file.
Thank's for your help
Sincerely,
Ch. B. C.
Alex McLintock a écrit :
> Christophe,
>
> It is obvious! You are coding in French. All Linux implementations of the Java Virtual Machine
> fall over when running French class names.
>
> Seriously though...
>
> The warning shouldn't throw an exception. You'll often get unknown formatting
> object warnings as you swap between different versions of FOP or learn what
> parts of the spec are implemented.
>
> It would seem to me that something else is throwing a servlet exception - I know
> not what. To be honest I am not sure what is throwing
> java.lang.reflect.InvocationTargetException:
> It looks like you've given us a stack track of the Servlet Exception and not the
> original exception.
>
> Can you use FOP from the command line on unix to generate the PDF?
> That will eliminate some of the complexity.
>
> It may be that your fo file has some very weird characters in it which Windows copes
> with better than unix (I'm guessing here). Can you verify that it doesn't?
>
> Can you post your FO file to a website (not this list) so that those of us
> with spare time can look at it?
>
> Alex
>
> --- Bracchi Cabannes Christophe <ch...@ac-toulouse.fr> wrote:
> > Hello,
> >
> > I arrive to running fop in my localhost (Win95/PC/JBuilder/TOMCAT) and
> > I produce correctly the pdf. But when I put the code in my server LINUX
> > (APACHE/TOMCAT) when I execute the servlet, I have this message :
> >
> > building formatting object tree <= that's ok
> > WARNING: Unknown formatting object ^ <= problem
> > java.lang.reflect.InvocationTargetException:
> > javax.servlet.ServletException
> > at
> > utilitaires.TranscodeurFop.productionPDFFromInputSource(TranscodeurFop.java:77)
> >
> > at
> > utilitaires.TranscodeurFop.productionPDFFromFile(TranscodeurFop.java:43)
> >
> > at
> > maia.section.Notation.impressionListeFichesNotation(Notation.java:444)
> > at java.lang.reflect.Method.invoke(Native Method)
> > etc...
> >
> > The classpath is good... I try with an exemple of fop, same think.
> >
> > My fo produce begin with :
> > <?xml version="1.0" encoding="utf-8"?>
> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > <fo:layout-master-set>
> > etc...
> >
> > Please, help me !! Thanks...
> >
>
> =====
> Alex McLintock alex@OWAL.co.uk
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> Software for Complex Websites.
> Publisher of http://www.DiverseBooks.com
> Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: A little pbl with running FOP in LUNIX
Posted by Alex McLintock <al...@yahoo.com>.
Christophe,
It is obvious! You are coding in French. All Linux implementations of the Java Virtual Machine
fall over when running French class names.
Seriously though...
The warning shouldn't throw an exception. You'll often get unknown formatting
object warnings as you swap between different versions of FOP or learn what
parts of the spec are implemented.
It would seem to me that something else is throwing a servlet exception - I know
not what. To be honest I am not sure what is throwing
java.lang.reflect.InvocationTargetException:
It looks like you've given us a stack track of the Servlet Exception and not the
original exception.
Can you use FOP from the command line on unix to generate the PDF?
That will eliminate some of the complexity.
It may be that your fo file has some very weird characters in it which Windows copes
with better than unix (I'm guessing here). Can you verify that it doesn't?
Can you post your FO file to a website (not this list) so that those of us
with spare time can look at it?
Alex
--- Bracchi Cabannes Christophe <ch...@ac-toulouse.fr> wrote:
> Hello,
>
> I arrive to running fop in my localhost (Win95/PC/JBuilder/TOMCAT) and
> I produce correctly the pdf. But when I put the code in my server LINUX
> (APACHE/TOMCAT) when I execute the servlet, I have this message :
>
> building formatting object tree <= that's ok
> WARNING: Unknown formatting object ^ <= problem
> java.lang.reflect.InvocationTargetException:
> javax.servlet.ServletException
> at
> utilitaires.TranscodeurFop.productionPDFFromInputSource(TranscodeurFop.java:77)
>
> at
> utilitaires.TranscodeurFop.productionPDFFromFile(TranscodeurFop.java:43)
>
> at
> maia.section.Notation.impressionListeFichesNotation(Notation.java:444)
> at java.lang.reflect.Method.invoke(Native Method)
> etc...
>
> The classpath is good... I try with an exemple of fop, same think.
>
> My fo produce begin with :
> <?xml version="1.0" encoding="utf-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> etc...
>
> Please, help me !! Thanks...
>
=====
Alex McLintock alex@OWAL.co.uk
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
Software for Complex Websites.
Publisher of http://www.DiverseBooks.com
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org