xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Koss" <kk...@xperient.net>
Subject Problem with FOPServlet
Date Mon, 05 May 2003 21:17:12 GMT
I have been having problems getting the FOPServlet to work. I am using
fop 0.20.5rc2 on Resin 2.1, runnin on a Linux box. I am dynamically
creating XML files and passing them to the FOPServlet to return a PDF to
the browser but I keep getting an error. I looked at the FAQ, and
searched the archives, but found no help. 

I had a problem with it earlier where it wasn't using the right parser,
because Resin comes with its own parser. But by adding some system
properties to my web.xml, was able to get it to use xerces parser.

The document is about ten pages of forms with a lot of SVG. It seems to
start processing, but then throws this error:

java.lang.NoClassDefFoundError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:130)
	at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:62)
	at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
	at
org.apache.fop.svg.PDFGraphics2D.<init>(PDFGraphics2D.java:1363)
	at
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java
:561)
	at
org.apache.fop.render.pdf.PDFRenderer.drawImageScaled(PDFRenderer.java:3
03)
	at
org.apache.fop.render.AbstractRenderer.renderImageArea(AbstractRenderer.
java:283)
	at org.apache.fop.image.ImageArea.render(ImageArea.java:65)
	at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:481)
	at org.apache.fop.layout.LineArea.render(LineArea.java:320)
	at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
	at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:47)
	at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
	at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
	at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:442)
	at org.apache.fop.layout.BlockArea.render(BlockArea.java:78)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:408)
	at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:29)
	at
org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRenderer.j
ava:57)
	at org.apache.fop.layout.SpanArea.render(SpanArea.java:52)
	at
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(AbstractR
enderer.java:325)
	at
org.apache.fop.layout.BodyAreaContainer.render(BodyAreaContainer.java:98
)
	at
org.apache.fop.render.AbstractRenderer.renderRegions(AbstractRenderer.ja
va:494)
	at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:837)
	at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:813)
	at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:258)
	at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:68)
	at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:359
)
	at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
	at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
	at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
	at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand
ler.java:307)
	at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:684)
	at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApplyTemplates.java:423)
	at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:226)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2182)
	at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2008)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Transfor
merHandlerImpl.java:433)
	at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
Source)
	at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown
Source)
	at
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dis
patch(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
	at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
	at org.apache.fop.apps.Driver.render(Driver.java:457)
	at FopServlet.renderXML(FopServlet.java:130)
	at FopServlet.doGet(FopServlet.java:73)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.ja
va:96)
	at
beans.firstTime.web.FirstTimeOrderFilter.doFilter(FirstTimeOrderFilter.j
ava:111)
	at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
	at beans.signon.web.SignOnFilter.doFilter(SignOnFilter.java:182)
	at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java
:88)
	at
com.caucho.server.http.Invocation.service(Invocation.java:312)
	at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163
)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
	at java.lang.Thread.run(Thread.java:536)

Thanx, in advance

Kyle Koss
Internet Applications Developer
Xperient Corporation

Email: kkoss@xperient.net
Phone: 204-975-7446 ext.4
www.xperient.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message