Re: AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-20 Thread J.Pietschmann
Dipl.-Oec. Harald Meyer wrote:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Check your XML source files whether there is something before the
XML declaration (i.e. the line ). There must
not be anything before it, not even an empty line. I vaguely
remember that this could also be caused by a certain parser
release. If you are using JDK 1.4, put a recent Xerces jar into
the lib/endorsed directory, otherwise, make sure you have the Xerces
jar from the FOP distribution or a more recent jar in the classpath,
and no older jar before it.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Clay Leeds
BTW, I don't know who recommended removing the encoding tag altogether, 
but it probably won't work. According to the XML Bible (pg 205 of the 
Gold Edition):

  Unless told otherwise, an XML processor assumes that
  all text entities are encoded in UTF-8.
Since you're already getting an error, I suspect that specifying UTF-8 
and not specifying anything will have the same result.

Of course, the real answer will probably be to determine the character 
set you're using (Cyrillic, Hebrew, Thai, whatever) and set it so the 
XML processor can expect the characters you're throwing at it.

Good luck!
Dipl.-Oec. Harald Meyer wrote:
Did you modify the source code? If not, try to omit the encoding tag or
try "iso-8859-1".
No, I didn't modify the sorce code ( I am no Java programmer at all ).

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Clay Leeds
As I understand encoding, the XML file would only be "correct" if all 
characters are UTF-8. However, if you indicate 'encoding="UTF-8"', but 
it contains UTF-16 characters, then it's not really UTF-8, it's UTF-16. 
The encoding is not necessarily what it says. For example, I could tell 
you I am Marilyn Monroe, but until you check my DNA you'd never know. I 
could've had plastic surgery (and a couple of... uh... other operations) 
so that even if you saw me clean-shaven, you might not *know* ;-)

I don't know of a tool for checking the encoding of characters (perhaps 
XMLSpy at http://www.altova.com/ or BBEdit at http://www.barebones.com/) 
You could try opening your file in one of these and it'll tell you if 
the file is properly encoded.

HTH!
Dipl.-Oec. Harald Meyer wrote:
But in the XML file is this:

I guess it is correct 

--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
> Did you modify the source code? If not, try to omit the encoding tag or
> try "iso-8859-1".

No, I didn't modify the sorce code ( I am no Java programmer at all ).



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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
But in the XML file is this:



I guess it is correct 

> -Ursprüngliche Nachricht-
> Von: Müller, Markus [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 19. März 2003 15:42
> An: [EMAIL PROTECTED]
> Betreff: AW: Upgrade 0.20.3 to 0.20.5rc
>
>
> Hi,
>
> You get this message when you have the wrong encoding in your XML file
> ". The XML parser then
> gets a wrong
> input, not the required "
> Markus
>
> $> -Ursprüngliche Nachricht-
> $> Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED]
> $> Gesendet: Mittwoch, 19. März 2003 15:39
> $> An: [EMAIL PROTECTED]
> $> Betreff: AW: Upgrade 0.20.3 to 0.20.5rc
> $>
> $>
> $> > I think you have avalon-framework-4.0 in your classpath.
> $> This file has
> $> > changed.
> $> > It is now called avalon-framework-cvs... and was part of my source
> $> > distribution.
> $> > Serach for such a file and change the classpath. This
> $> should fix your
> $> > problem.
> $> >
> $>
> $> Thanks, but now I get another error and I need some help ... ;-)
> $>
> $> C:\fop>java -cp
> $> build\fop.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\x
> $> alan-2.4.1.jar;
> $> lib\batik.jar;lib\avalon-framework-cvs-20020806.jar;lib\jimi-
> $> 1.0.jar;lib\jai
> $> _core.jar;lib\jai_codec.jar org.apache.fop.apps.Fop -d -xml
> $> C:\Inetpub\honeywell\quotation\xml\200443.xml -xsl C:\Inetpub\honeywe
> $> ll\quotation\xml2pdf.xsl
> $> C:\Inetpub\honeywell\quotation\pdf\200443.pdf
> $> [DEBUG] Input mode:
> $> [DEBUG] xslt transformation
> $> [DEBUG] xml input file: C:\Inetpub\honeywell\quotation\xml\200443.xml
> $> [DEBUG] xslt stylesheet: C:\Inetpub\honeywell\quotation\xml2pdf.xsl
> $> [DEBUG] Output mode:
> $> [DEBUG] pdf
> $> [DEBUG] output file: C:\Inetpub\honeywell\quotation\pdf\200443.pdf
> $> [DEBUG] OPTIONS
> $> [DEBUG] no user configuration file is used [default]
> $> [DEBUG] debug mode on
> $> [DEBUG] dump configuration
> $> [DEBUG] quiet mode on
> $> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> $> [INFO] base directory: file:/C:/Inetpub/honeywell/quotation/xml/
> $> [INFO] FOP 0.20.5rc
> $> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> $> [ERROR] Content is not allowed in prolog.
> $> org.apache.fop.apps.FOPException: Content is not allowed in prolog.
> $> at org.apache.fop.apps.Driver.render(Driver.java:462)
> $> at
> $> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
> $> .java:69)
> $> at org.apache.fop.apps.Fop.main(Fop.java:19)
> $>
> $> -
> $>
> $> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> $> at
> $> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> $> at
> $> org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
> $> at org.apache.fop.apps.Driver.render(Driver.java:457)
> $> at
> $> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
> $> .java:69)
> $> at org.apache.fop.apps.Fop.main(Fop.java:19)
> $>
> $> -
> $>
> $> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> $> at
> $> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> $> at
> $> org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
> $> at org.apache.fop.apps.Driver.render(Driver.java:457)
> $> at
> $> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
> $> .java:69)
> $> at org.apache.fop.apps.Fop.main(Fop.java:19)
> $>
> $>
> $>
> $> -
> $> To unsubscribe, e-mail: [EMAIL PROTECTED]
> $> For additional commands, e-mail: [EMAIL PROTECTED]
> $>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread "Müller, Markus"
Hi,

You get this message when you have the wrong encoding in your XML file
". The XML parser then gets a wrong
input, not the required " -Ursprüngliche Nachricht-
$> Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED] 
$> Gesendet: Mittwoch, 19. März 2003 15:39
$> An: [EMAIL PROTECTED]
$> Betreff: AW: Upgrade 0.20.3 to 0.20.5rc
$> 
$> 
$> > I think you have avalon-framework-4.0 in your classpath. 
$> This file has
$> > changed.
$> > It is now called avalon-framework-cvs... and was part of my source
$> > distribution.
$> > Serach for such a file and change the classpath. This 
$> should fix your
$> > problem.
$> >
$> 
$> Thanks, but now I get another error and I need some help ... ;-)
$> 
$> C:\fop>java -cp
$> build\fop.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\x
$> alan-2.4.1.jar;
$> lib\batik.jar;lib\avalon-framework-cvs-20020806.jar;lib\jimi-
$> 1.0.jar;lib\jai
$> _core.jar;lib\jai_codec.jar org.apache.fop.apps.Fop -d -xml
$> C:\Inetpub\honeywell\quotation\xml\200443.xml -xsl C:\Inetpub\honeywe
$> ll\quotation\xml2pdf.xsl 
$> C:\Inetpub\honeywell\quotation\pdf\200443.pdf
$> [DEBUG] Input mode:
$> [DEBUG] xslt transformation
$> [DEBUG] xml input file: C:\Inetpub\honeywell\quotation\xml\200443.xml
$> [DEBUG] xslt stylesheet: C:\Inetpub\honeywell\quotation\xml2pdf.xsl
$> [DEBUG] Output mode:
$> [DEBUG] pdf
$> [DEBUG] output file: C:\Inetpub\honeywell\quotation\pdf\200443.pdf
$> [DEBUG] OPTIONS
$> [DEBUG] no user configuration file is used [default]
$> [DEBUG] debug mode on
$> [DEBUG] dump configuration
$> [DEBUG] quiet mode on
$> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
$> [INFO] base directory: file:/C:/Inetpub/honeywell/quotation/xml/
$> [INFO] FOP 0.20.5rc
$> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
$> [ERROR] Content is not allowed in prolog.
$> org.apache.fop.apps.FOPException: Content is not allowed in prolog.
$> at org.apache.fop.apps.Driver.render(Driver.java:462)
$> at
$> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$> .java:69)
$> at org.apache.fop.apps.Fop.main(Fop.java:19)
$> 
$> -
$> 
$> org.xml.sax.SAXParseException: Content is not allowed in prolog.
$> at 
$> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$> at 
$> org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$> at org.apache.fop.apps.Driver.render(Driver.java:457)
$> at
$> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$> .java:69)
$> at org.apache.fop.apps.Fop.main(Fop.java:19)
$> 
$> -
$> 
$> org.xml.sax.SAXParseException: Content is not allowed in prolog.
$> at 
$> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
$> at 
$> org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
$> at org.apache.fop.apps.Driver.render(Driver.java:457)
$> at
$> org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter
$> .java:69)
$> at org.apache.fop.apps.Fop.main(Fop.java:19)
$> 
$> 
$> 
$> -
$> To unsubscribe, e-mail: [EMAIL PROTECTED]
$> For additional commands, e-mail: [EMAIL PROTECTED]
$> 

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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Dipl.-Oec. Harald Meyer
> I think you have avalon-framework-4.0 in your classpath. This file has
> changed.
> It is now called avalon-framework-cvs... and was part of my source
> distribution.
> Serach for such a file and change the classpath. This should fix your
> problem.
>

Thanks, but now I get another error and I need some help ... ;-)

C:\fop>java -cp
build\fop.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar;
lib\batik.jar;lib\avalon-framework-cvs-20020806.jar;lib\jimi-1.0.jar;lib\jai
_core.jar;lib\jai_codec.jar org.apache.fop.apps.Fop -d -xml
C:\Inetpub\honeywell\quotation\xml\200443.xml -xsl C:\Inetpub\honeywe
ll\quotation\xml2pdf.xsl C:\Inetpub\honeywell\quotation\pdf\200443.pdf
[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: C:\Inetpub\honeywell\quotation\xml\200443.xml
[DEBUG] xslt stylesheet: C:\Inetpub\honeywell\quotation\xml2pdf.xsl
[DEBUG] Output mode:
[DEBUG] pdf
[DEBUG] output file: C:\Inetpub\honeywell\quotation\pdf\200443.pdf
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/C:/Inetpub/honeywell/quotation/xml/
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] Content is not allowed in prolog.
org.apache.fop.apps.FOPException: Content is not allowed in prolog.
at org.apache.fop.apps.Driver.render(Driver.java:462)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Driver.java:457)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
at org.apache.fop.apps.Fop.main(Fop.java:19)

-

org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xalan.transformer.TrAXFilter.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Driver.java:457)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69)
at org.apache.fop.apps.Fop.main(Fop.java:19)



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



AW: Upgrade 0.20.3 to 0.20.5rc

2003-03-19 Thread Mirko Sertic
I think you have avalon-framework-4.0 in your classpath. This file has
changed.
It is now called avalon-framework-cvs... and was part of my source
distribution.
Serach for such a file and change the classpath. This should fix your
problem.

Cheers

Mirko Sertic

-Ursprüngliche Nachricht-
Von: Dipl.-Oec. Harald Meyer [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 19. März 2003 13:20
An: [EMAIL PROTECTED]
Betreff: Upgrade 0.20.3 to 0.20.5rc


Hello everybody,

as I get a "/ by zero" error under FOP 0.20.3 I want to upgrade to 0.20.5rc.
Unfortunately now I get a different error:

C:\fop\fop-0.20.5rc>java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\ava
lon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -xml
C:\Inetpub\honeywell\quotation\xml\200443.xml -d -xsl
C:\Inetpub\honeywell\quotation\xml2pdf.xsl
C:\Inetpub\honeywell\quotation\pdf\200443.pdf
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/Logger
at org.apache.fop.apps.Fop.main(Fop.java:16)

Has someone experienced something similar?
By the way ... the "/ by zero" error was already posted in January, but I
didn't find any solution for it. Has anyone some hints for me? ;-)

Thanks
Harald



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


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