Re: fop in tomcat-4.1.18 and struts-1.1-b2

2002-12-28 Thread Darrel Riekhof
The conversion from .fo to .pdf seems to work using the tomcat xml libs. 
Don't think tomcat comes with xalan, so hopefully I can just throw 
fop's xalan.jar in my WEB-INF/lib, will find out soon.

Looks like struts-1.1-b2 depends on some xml parsing functionality that 
is specific to the version of xerces that comes with with tomcat, but 
thats just a guess on my part.

Darrel
Joerg Pietschmann wrote:
On Saturday 28 December 2002 13:04, you wrote:
 

When I deploy my webapp, I get the exception below if I put the fop xml
libs in my webapp's WEB-INF/lib dir.  Anyone know how to resolve this?
   

Ask on a Tomcat list. They are responsible for the classloader.
 

I'm putting these files from fop 2.0.5rc in my lib dir.  If I don't put
the fop xml libs there, my app deploys ok but I don't know if fop will
work with the default tomcat 4.1.18 xml jars.
xalan-2.4.1.jar
xercesImpl-2.2.1.jar
xml-apis.jar
   

It should work. Just try it. Make sure the Tomcat's XML parser is visible
to the webapps.
J.Pietschmann
-
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]


Re: page-sequence

2002-12-28 Thread Joerg Pietschmann
On Thursday 26 December 2002 21:57, you wrote:
>  1) Could somebody please share any sample xsl that would allow me to
> create multiple page-sequence?
>  I have multiple tables with combined over 1,000 rows and I understand that
> I need to use multiple page-sequence per page to free up memory

Work yourself through a good XSLT book, and look into the XSLT
FAQ, reachable from here:
  http://www.mulberrytech.com/xsl/xsl-list/
The problem you probably have is called "grouping by position".

J.Pietschmann

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



Re: fop in tomcat-4.1.18 and struts-1.1-b2

2002-12-28 Thread Joerg Pietschmann
On Saturday 28 December 2002 13:04, you wrote:
> When I deploy my webapp, I get the exception below if I put the fop xml
> libs in my webapp's WEB-INF/lib dir.  Anyone know how to resolve this?
Ask on a Tomcat list. They are responsible for the classloader.

> I'm putting these files from fop 2.0.5rc in my lib dir.  If I don't put
> the fop xml libs there, my app deploys ok but I don't know if fop will
> work with the default tomcat 4.1.18 xml jars.
>
> xalan-2.4.1.jar
> xercesImpl-2.2.1.jar
> xml-apis.jar

It should work. Just try it. Make sure the Tomcat's XML parser is visible
to the webapps.

J.Pietschmann

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



Re: Cross Post RE: DOCBOOK-APPS: screenshot and itemizedlist,top alignment in single row table

2002-12-28 Thread Joerg Pietschmann
On Friday 27 December 2002 09:32, you wrote:
> The FOP Web Site does list some limitations with Tables, but nothing about
> formatting lists in table cells. Perhaps, somebody on the FOP-USER list has
> experienced this problem and can give us a solution or pointer.

The problem is that FOP does not handle spaces conditionally,
as a poster in the snipped part already mentioned. It's not specific
to lists or tables.
The only solution is to avoid generating space-before/after properties
at places where they are not wanted. Of course this works only for table
cells, at page sequence boundaries and around forced breaks. There
is *no* solution for page breaks. And of course this complicates style
sheets.
This will not be fixed in the maintenance branch. It's not yet adressed
in the redesign either.

J.Pietschmann

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



fop in tomcat-4.1.18 and struts-1.1-b2

2002-12-28 Thread Darrel Riekhof
When I deploy my webapp, I get the exception below if I put the fop xml 
libs in my webapp's WEB-INF/lib dir.  Anyone know how to resolve this?

I'm putting these files from fop 2.0.5rc in my lib dir.  If I don't put 
the fop xml libs there, my app deploys ok but I don't know if fop will 
work with the default tomcat 4.1.18 xml jars.

xalan-2.4.1.jar
xercesImpl-2.2.1.jar
xml-apis.jar
Darrel
-- trace below --
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
Dec 28, 2002 3:42:51 AM org.apache.struts.action.ActionServlet initServlet
SEVERE: null
java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:249)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source)
at 
org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown 
Source)
at 
org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:367)
at 
org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:198)
at 
org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown 
Source)
at 
org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown 
Source)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


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


RE: FOP performance - frustrating.. help!!

2002-12-28 Thread Robert C. Leif
From: Bob Leif
To: Lee Insoo
A good deal of your problems comes from the selection of Java as the
programming language. Java is a tremendous marketing success. Unfortunately,
Java was obsolete the day it was created. Although Java is owned by SUN, it
has been the second finest gift to Microsoft. It has their competitors using
a flawed tool. The finest gift was when IBM told its customers that OS/2
would run best on Microchannel hardware. 
The best language for web tools is Ada, which is ISO/IEC standard
8652:1995(E). It is what Java claimed to be, portable. Ada includes generics
(templates) which work; enumerated types; and, whenever possible, dispatches
at compile time. Ada is like XML in that it has range checking and begin and
end structures. 
There is an excellent GNU Ada compiler (GNAT) available at
ftp://ftp.cs.nyu.edu/pub/gnat/
On a 1.4 gigaHz Pentium, the time for a GNAT compile and link is minimal.
The error-messages are excellent.
http://www.adaic.org/ is a source of useful information on Ada.

-Original Message-
From: Lee, Insoo [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 27, 2002 12:30 PM
To: '[EMAIL PROTECTED]'
Subject: FOP performance - frustrating.. help!!


  Hello, I'm getting a little frustrated with FOP performance.
  We are generating an XML on the fly that contains a few tables with about
1,000 rows in total.
  We passdown this XML along with XSL to the transformer to generate PDF
from our servlet.
  (transformer.transform( inXML, new SAXResult(
driver.getContentHandler()));  )
  It works well, but it works slow.
  It takes about 5 minutes for 1,000 rows and this is only for transformer
translation (excluing any data query time or jdom XML building time)
  I read through past emails/FAQs and I think I tried them all and it still
does not improve the performance...

  Please help!!
  
  Here is what I have done.

  1) run with more memory - yes I tried with 512MB (I don't get OutOfMemory
error)
  2) run in separate VM - only helps other requests coming to the site
  3) try with the latest FOP - I did - mine is fop-0.20.4
  4) try with the latest xalan.jar and xerces.jar - tried them, but no
improvement
  5) cache XSL style sheet - didn't really help...
  6) use multiple page-sequence - got it to work and I don't get
OutOfMemeory exception, but still performance didn't get better.
 (even if I break them into multiple page-sequences, I will still
have to read through one row at a time, right? - that's why performance is
not really improving..)

  7) no forward-reference - I don't have any page numbers
  8) try with new JDK - trying with JDK 1.3
  9) seralize servlet request - haven't done this, but I doubt this will
have any performance impact (I'm testing with one request for now)
  10) no images - I don't have any...
  11) Don't make the XML tree too deep - mine is very flat with 2 levels
deep.

  I have 1,000 rows and each row looks something like following in XML

  
  539
  Some Fund
  0.376
  NA
  NA
  NA
  NA
  1.4
  1.58000
  1.
  09 Dec 2002
  USD
  I
  
  

  Here is the question:
Is this normal to take this long - 5 minutes - to produce a few tables
with combined total 1,000 rows (about 30 pages)?

Any other better way?

  Thank you for your suggestions.

  Regards,
  IL

-
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]