cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Hughes <Anton.Hug...@freedomair.co.nz>
Subject cant create pdfs
Date Wed, 20 Nov 2002 23:11:54 GMT
Greetings

I'm just starting out with Cocoon and am having trouble getting it to create
pdfs.  I have gone through the tutorial on how to make HTML/pdf docs and it
works fine with making HTML docs from and xml file but not with PDFs - can
someone please advise me as to what I should do?

The error msg I recieve is this:
Cocoon 2 - Internal server error

----------------------------------------------------------------------------
----

type internal-server-error

message Could not read resource file:/C:/apache/Apache Tomcat
4.0/webapps/cocoon/mount/html-pdf/pageOne.xml

description org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat 4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name'
for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

exception

org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat 4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name'
for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'

request-uri

/cocoon/mount/html-pdf/pageOne.pdf

stacktrace

org.apache.cocoon.ProcessingException: Could not read resource
file:/C:/apache/Apache Tomcat 4.0/webapps/cocoon/mount/html-pdf/pageOne.xml:
java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name'
for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:350)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem
ap_xmap.java:555)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
342)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
295)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34
13)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.RuntimeException: org.apache.fop.apps.FOPException:
'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
	at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100)
	at
org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
	... 45 more
java.lang.RuntimeException: org.apache.fop.apps.FOPException: 'master-name'
for 'fo:page-sequence'matches no 'simple-page-master' or
'page-sequence-master'
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
	at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100)
	at
org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:350)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem
ap_xmap.java:555)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
342)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
295)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34
13)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:536)


path-info

mount/html-pdf/pageOne.pdf

original exception

Original exception : java.lang.RuntimeException:
org.apache.fop.apps.FOPException: 'master-name' for
'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master'
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
	at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100)
	at
org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:350)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem
ap_xmap.java:555)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
342)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
295)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34
13)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:536)

Original exception : java.lang.RuntimeException:
org.apache.fop.apps.FOPException: 'master-name' for
'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master'
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
andlerImpl.java:433)
	at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:48)
	at
org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
	at
org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato
r.java:1146)
	at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch
(XMLDocumentScanner.java:1499)
	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
	at
org.apache.cocoon.components.parser.JaxpParser.parse(JaxpParser.java:100)
	at
org.apache.cocoon.components.source.URLSource.toSAX(URLSource.java:327)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:109)
	at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
	at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:350)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.wildcardMatchN40002E(sitem
ap_xmap.java:555)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
342)
	at
org.apache.cocoon.www.mount.html_pdf.sitemap_xmap.process(sitemap_xmap.java:
295)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400251(sitemap_xmap.java:34
13)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2646)
	at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2448)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:536)




----------------------------------------------------------------------------
----



Anton Hughes
Web Developer
Email		Anton.Hughes@freedomair.co.nz 
Phone		09 912 6933 ext. 68933
Web		www.freedomair.com


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message