ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link
ExampleXML2PDF.javahttp://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup.
This is the application which I had searched from a long time.

But when I build and run this application it gives me the following error.
=
FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectteam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectteam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pdf)

Transforming...
Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/util/Iterator;
at org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings
(ElementMappingRegistry.java:75)
at org.apache.fop.fo.ElementMappingRegistry.init
(ElementMappingRegistry.java:67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.
=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.
EmpVO
   EmpVORow
  EmployeeId100/EmployeeId
  FirstNameSteven/FirstName
  LastNameKing/LastName
  EmailSKING/Email
  PhoneNumber515.123.4567/PhoneNumber
  HireDate1987-06-17/HireDate
  Salary24000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId101/EmployeeId
  FirstNameNeena/FirstName
  LastNameKochhar/LastName
  EmailNKOCHHAR/Email
  PhoneNumber515.123.4568/PhoneNumber
  HireDate1989-09-21/HireDate
  Salary17000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId102/EmployeeId
  FirstNameLex/FirstName
  LastNameDe Haan/LastName
  EmailLDEHAAN/Email
  PhoneNumber515.123.4569/PhoneNumber
  HireDate1993-01-13/HireDate
  Salary17000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId103/EmployeeId
  FirstNameAlexander/FirstName
  LastNameHunold/LastName
  Emaildinukad/Email
  PhoneNumber590.423.4567/PhoneNumber
  HireDate1990-01-03/HireDate
  Salary9000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId104/EmployeeId
  FirstNameBruce123/FirstName
  LastNameErnst/LastName
  EmailBERNST/Email
  PhoneNumber590.423.4568/PhoneNumber
  HireDate1991-05-21/HireDate
  Salary6000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId105/EmployeeId
  FirstNameDavid/FirstName
  LastNameAustin/LastName
  EmailDAUSTIN/Email
  PhoneNumber590.423.4569/PhoneNumber
  HireDate1997-06-25/HireDate
  Salary4800/Salary
   /EmpVORow
   EmpVORow
  EmployeeId106/EmployeeId
  FirstNameValli/FirstName
  LastNamePataballa/LastName
  EmailVPATABAL/Email
  PhoneNumber590.423.4560/PhoneNumber
  HireDate1998-02-05/HireDate
  Salary4800/Salary
   /EmpVORow
   EmpVORow
  EmployeeId107/EmployeeId
  FirstNameDiana/FirstName
  LastNameLorentz/LastName
  EmailDLORENTZ/Email
  PhoneNumber590.423.5567/PhoneNumber
  HireDate1999-02-07/HireDate
  Salary4200/Salary
   /EmpVORow
   EmpVORow
  EmployeeId108/EmployeeId
  FirstNameNancy/FirstName
  LastNameGreenberg/LastName
  EmailNGREENBE/Email
  PhoneNumber515.124.4569/PhoneNumber
  HireDate1994-08-17/HireDate
  Salary12000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId109/EmployeeId
  FirstNameDaniel/FirstName
  LastNameFaviet/LastName
  EmailDFAVIET/Email
  PhoneNumber515.124.4169/PhoneNumber
  HireDate1994-08-16/HireDate
  Salary9000/Salary
   /EmpVORow
   EmpVORow
  EmployeeId110/EmployeeId
  FirstNameJohn/FirstName
  LastNameChen/LastName
  EmailJCHEN/Email
  PhoneNumber515.124.4269/PhoneNumber
  HireDate1997-09-28/HireDate
  Salary8200/Salary
   /EmpVORow
   EmpVORow
  EmployeeId111/EmployeeId
  FirstNameIsmael/FirstName
  LastNameSciarra/LastName
  EmailISCIARRA/Email
  PhoneNumber515.124.4369/PhoneNumber
  HireDate1997-09-30/HireDate
  Salary7700/Salary
   /EmpVORow
   EmpVORow
  EmployeeId112/EmployeeId
  FirstNameJose Manuel/FirstName
  LastNameUrman/LastName
  EmailJMURMAN/Email
  PhoneNumber515.124.4469/PhoneNumber
  HireDate1998-03-07/HireDate
  Salary7800/Salary
   

RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
Looks strange, I have had no problem with the latest from Trunk and the
stand alone program here  http://pastebin.com/zzQrHwwD

Except for the Font issue I am having that is. 

 

Maybe have a look at the code I have there and see where yours differs, mine
takes xml/xslt and turns it into PDF

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/
embedding/ExampleXML2PDF.java?view=markup . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



RE: ExampleXML2PDF.java ERROR

2011-05-11 Thread Theresa Jayne Forster
On another note I had lots of classdef not founds and discovered I needed

Avalon Framework

Xml-api-ext

Commons.configuration 

And

Xmlgraphics.commons-1.5svn.jar 

 

libraries

 

 

Kindest regards

 


Theresa Forster

Senior Software Developer




 

From: dinuka dayarathna [mailto:dinukaonl...@gmail.com] 
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

 

(I have sent this problem earlier. but not sure whether it is delivered or
not. that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link ExampleXML2PDF.java
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/
embedding/ExampleXML2PDF.java?view=markup . This is the application which I
had searched from a long time.

But when I build and run this application it gives me the following error.

=

FOP ExampleXML2PDF

Preparing...
Input: XML
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectt
eam.xml)
Stylesheet:
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectt
eam2fo.xsl
Output: PDF
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pd
f)

Transforming...
Exception in thread main java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/ut
il/Iterator;
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:75)
at
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:
67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.

=
Please tell me what is the issue and if it is a problem with the jar files
I'm using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this
email.

thank you a lot.
Dinuka.



AW: ExampleXML2PDF.java ERROR

2011-05-11 Thread Georg Datterl
Hi dinuka,

Which version of fop and which version of xmlgraphics do you use?

regards,

Georg Datterl

-- Kontakt --

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.dehttp://www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:
www.irs-nbg.dehttp://www.irs-nbg.de
Willmy PrintMedia GmbH:  www.willmy.dehttp://www.willmy.de
Willmy Consult  Content GmbH:   
www.willmycc.dehttp://www.willmycc.de

Von: Theresa Jayne Forster [mailto:ther...@inbrand.co.uk]
Gesendet: Mittwoch, 11. Mai 2011 14:01
An: fop-users@xmlgraphics.apache.org
Betreff: RE: ExampleXML2PDF.java ERROR

Looks strange, I have had no problem with the latest from Trunk and the stand 
alone program here  http://pastebin.com/zzQrHwwD
Except for the Font issue I am having that is.

Maybe have a look at the code I have there and see where yours differs, mine 
takes xml/xslt and turns it into PDF


Kindest regards


Theresa Forster
Senior Software Developer

From: dinuka dayarathna [mailto:dinukaonl...@gmail.com]
Sent: 11 May 2011 12:21
To: fop-users@xmlgraphics.apache.org
Subject: ExampleXML2PDF.java ERROR

(I have sent this problem earlier. but not sure whether it is delivered or not. 
that's why I re-send this)

I'm developing an application to convert ADF BC tables to PDF format.
I'm following the example given at this link 
ExampleXML2PDF.javahttp://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup.
 This is the application which I had searched from a long time.

But when I build and run this application it gives me the following error.
=
FOP ExampleXML2PDF

Preparing...
Input: XML 
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xml\projectteam.xml)
Stylesheet: 
C:\JDeveloper\mywork\testinig\ViewController\src\test\view\xml\xslt\projectteam2fo.xsl
Output: PDF 
(C:\JDeveloper\mywork\testinig\ViewController\src\test\view\ResultXML2PDF.pdf)

Transforming...
Exception in thread main java.lang.NoSuchMethodError: 
org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/util/Iterator;
at 
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMappingRegistry.java:75)
at 
org.apache.fop.fo.ElementMappingRegistry.init(ElementMappingRegistry.java:67)
at org.apache.fop.apps.FopFactory.init(FopFactory.java:162)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:186)
at test.client.ExampleXML2PDF.main(ExampleXML2PDF.java:45)
Process exited with exit code 1.
=
Please tell me what is the issue and if it is a problem with the jar files I'm 
using, please be kind enough to send me links for the newest jar files.
I had generated the xml files too. I have attached my xml file to this email.

thank you a lot.
Dinuka.


Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
Please can somebody send me a working application and the JAR files you are
using.
I'm stuck at this point. I had done everything which I can do. But it does
not work.
Please help me.

Thanks a lot for all your support.
Dinuka.


Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread Mike Ferrando
Dinuka,
Let me know if you don't get a response.

I can send you some files that will work.

Sincerely,
Mike Ferrando
Washington, DC





From: dinuka dayarathna dinukaonl...@gmail.com
To: fop-users@xmlgraphics.apache.org
Sent: Wed, May 11, 2011 2:06:44 PM
Subject: Re: ExampleXML2PDF.java ERROR

Please can somebody send me a working application and the JAR files you are 
using.
I'm stuck at this point. I had done everything which I can do. But it does not 
work.
Please help me.

Thanks a lot for all your support.
Dinuka.

Re: ExampleXML2PDF.java ERROR

2011-05-11 Thread dinuka dayarathna
Thanks a lot everybody for helping me.
As I assumed the problem was with the JAR files I had used. Got the correct
JAR files and now the problem was solved.
Everything works well.

Thanks a lot for helping me. Keep it up.
Dinuka.