RE: Installing to FOP / Tomcat
I installed the 0.20.5rc2 and the web.xml for fop.war was what it should be. it was 0.20.4 that was the problem. -Adam -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: March 19, 2003 6:13 PM To: [EMAIL PROTECTED] Subject: Re: Installing to FOP / Tomcat Jeremias Maerki wrote: > - got an error message about an invalid "servlet" element. > - looked at the web.xml and realized that all servlet-mapping elements > must come after the servlet elements. > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html > - fixed web.xml and rebuilt fop.war This and other problems in web.xml were claimed to be fixed multiple times. Is this a CVS hickup or what? 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: Installing to FOP / Tomcat
I don't know. Maybe my bad when I reorganized the directory structure. On 20.03.2003 03:12:47 J.Pietschmann wrote: > Jeremias Maerki wrote: > > - got an error message about an invalid "servlet" element. > > - looked at the web.xml and realized that all servlet-mapping elements > > must come after the servlet elements. > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html > > - fixed web.xml and rebuilt fop.war > > This and other problems in web.xml were claimed to be fixed multiple times. > Is this a CVS hickup or what? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing to FOP / Tomcat
Jeremias Maerki wrote: - got an error message about an invalid "servlet" element. - looked at the web.xml and realized that all servlet-mapping elements must come after the servlet elements. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html - fixed web.xml and rebuilt fop.war This and other problems in web.xml were claimed to be fixed multiple times. Is this a CVS hickup or what? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing to FOP / Tomcat
Thank you for this, Yeah, I finally got it running. Anyone trying to bother with setting up 0.20.4 with tomcat 4.1.18 just upgrade to 0.20.5rc2 and things will go alot smoother. I wasn't able to run build.bat but if you have ant in your path and just run ant within the directory where the war is to be built, this works as well (on windows ne ways). Again, thanks -Adam -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: March 18, 2003 12:54 AM To: [EMAIL PROTECTED] Subject: Re: Installing to FOP / Tomcat Hi Adam I've just done the following: - installed a clean binary tomcat 4.1.18 - took binary 0.20.5rc2 distribution - went to the examples/servlet directory - ran build.bat - realized that ant-1.5.1.jar is not packaged with the binary distribution. Doh! - copied ant-1.5.1.jar into fop/lib - ran build.bat again - copied fop.war to Tomcat's webapps directory - started Tomcat - got an error message about an invalid "servlet" element. - looked at the web.xml and realized that all servlet-mapping elements must come after the servlet elements. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html - fixed web.xml and rebuilt fop.war - now everything works fine. Example: http://localhost:8080/fop?fo=D:/FOP/Temp/helloworld.fo&ext=.pdf I'm going to fix the web.xml in CVS in a minute. What's interesting is that Tomcat 4.1.12 doesn't complain about the web.xml. I hope this helps. Jeremias Maerki - 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: Installing to FOP / Tomcat
works fine thanks a lot ! - Original Message - From: "Jeremias Maerki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 18, 2003 9:54 AM Subject: Re: Installing to FOP / Tomcat > Hi Adam > > I've just done the following: > - installed a clean binary tomcat 4.1.18 > - took binary 0.20.5rc2 distribution > - went to the examples/servlet directory > - ran build.bat > - realized that ant-1.5.1.jar is not packaged with the binary > distribution. Doh! > - copied ant-1.5.1.jar into fop/lib > - ran build.bat again > - copied fop.war to Tomcat's webapps directory > - started Tomcat > - got an error message about an invalid "servlet" element. > - looked at the web.xml and realized that all servlet-mapping elements > must come after the servlet elements. > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html > - fixed web.xml and rebuilt fop.war > - now everything works fine. Example: > http://localhost:8080/fop?fo=D:/FOP/Temp/helloworld.fo&ext=.pdf > > I'm going to fix the web.xml in CVS in a minute. What's interesting is > that Tomcat 4.1.12 doesn't complain about the web.xml. > > I hope this helps. > > Jeremias Maerki > > > - > 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: Installing to FOP / Tomcat
Hi Adam I've just done the following: - installed a clean binary tomcat 4.1.18 - took binary 0.20.5rc2 distribution - went to the examples/servlet directory - ran build.bat - realized that ant-1.5.1.jar is not packaged with the binary distribution. Doh! - copied ant-1.5.1.jar into fop/lib - ran build.bat again - copied fop.war to Tomcat's webapps directory - started Tomcat - got an error message about an invalid "servlet" element. - looked at the web.xml and realized that all servlet-mapping elements must come after the servlet elements. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html - fixed web.xml and rebuilt fop.war - now everything works fine. Example: http://localhost:8080/fop?fo=D:/FOP/Temp/helloworld.fo&ext=.pdf I'm going to fix the web.xml in CVS in a minute. What's interesting is that Tomcat 4.1.12 doesn't complain about the web.xml. I hope this helps. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing to FOP / Tomcat
Okay, I think i figured out that the url should not be http://localhost:8080/fop/fop?blah if should be http://localhost:8080/fop/servlet/fop?blah I did this and it smacked me with a bunch of exceptions and now it gives me a 503 error but you can void my previous questions. -Adam -Original Message- From: Adam Shelley [mailto:[EMAIL PROTECTED] Sent: March 17, 2003 10:05 AM To: [EMAIL PROTECTED] Subject: RE: Installing to FOP / Tomcat Hello, I'm still trying to configure fop 0.20.4 to work with tomcat 4.1.18 but i am unable to connect to http://localhost:8080/fop/fop?fo=/home/path/to/fofile.fo on a win2k server. I get an error 404 msg. Surfing the net trying to figure out what i'm doing wrong i came accross a post that identified that the web.xml file format in the $CATALINA_HOME$/conf/ has been modified with the release of tomcat 4.1.18. http://www.jguru.com/forums/view.jsp?EID=1064694 The file itself seems to validate against the dtd: java.sun.com/dtd/web-app_2_3.dtd but I'm not sure what is wrong. Does one of the servlet-mapping elements in web.xml have to be modified to load fop correctly using this configuration? I tried uncommenting the servlet-mapping element with servlet-name = invoker but this didn't seem to help. default / jsp *.jsp Here is the web.xml file found in fop.war packaged with 0.20.4. Notice that this validates to another dtd. I'm not sure that this holds any bearing on my eror. Could there be a configuration issue with these two configuration files that are generating my error? http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Fop FopServlet Fop /fop /servlet/fop Any insight would be appreciated. I've been struggling for a while trying to get this up and running. -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing to FOP / Tomcat
Hello, I'm still trying to configure fop 0.20.4 to work with tomcat 4.1.18 but i am unable to connect to http://localhost:8080/fop/fop?fo=/home/path/to/fofile.fo on a win2k server. I get an error 404 msg. Surfing the net trying to figure out what i'm doing wrong i came accross a post that identified that the web.xml file format in the $CATALINA_HOME$/conf/ has been modified with the release of tomcat 4.1.18. http://www.jguru.com/forums/view.jsp?EID=1064694 The file itself seems to validate against the dtd: java.sun.com/dtd/web-app_2_3.dtd but I'm not sure what is wrong. Does one of the servlet-mapping elements in web.xml have to be modified to load fop correctly using this configuration? I tried uncommenting the servlet-mapping element with servlet-name = invoker but this didn't seem to help. default / jsp *.jsp Here is the web.xml file found in fop.war packaged with 0.20.4. Notice that this validates to another dtd. I'm not sure that this holds any bearing on my eror. Could there be a configuration issue with these two configuration files that are generating my error? http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Fop FopServlet Fop /fop /servlet/fop Any insight would be appreciated. I've been struggling for a while trying to get this up and running. -Adam -Original Message- From: Adam Shelley [mailto:[EMAIL PROTECTED] Sent: March 12, 2003 12:34 PM To: [EMAIL PROTECTED] Subject: RE: Installing to FOP / Tomcat Hello, thanks for the reply Phillip I just reinstalled tomcat (to start from scratch) and placed the war file in the webapps dir. This seemed to get processed right away then I copied the supporting .jar files into the web-inf/lib directory. This is from the log file. 2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at context path /fop from URL file:C:/Program Files/Apache Group/Tomcat 4.1/webapps/fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes 2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator class java.security.SecureRandom 2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number generator has been completed 2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet default 2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet invoker 2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host 'localhost' This is from stderr.txt INFO: Jk running ID=0 time=0/120 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 23: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". org.xml.sax.SAXParseException: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30 5) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 51) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(Con
RE: Installing to FOP / Tomcat
The web.xml in the web app does not adhere to the DTD. Look at the servlet-mapping element in the web.xml. Is it and its children in the correct place according to the DTD? -Original Message- From: Adam Shelley [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: RE: Installing to FOP / Tomcat Hello, thanks for the reply Phillip I just reinstalled tomcat (to start from scratch) and placed the war file in the webapps dir. This seemed to get processed right away then I copied the supporting .jar files into the web-inf/lib directory. This is from the log file. 2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at context path /fop from URL file:C:/Program Files/Apache Group/Tomcat 4.1/webapps/fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes 2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator class java.security.SecureRandom 2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number generator has been completed 2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet default 2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet invoker 2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host 'localhost' This is from stderr.txt INFO: Jk running ID=0 time=0/120 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 23: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". org.xml.sax.SAXParseException: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30 5) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 51) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1012) at java.lang.Thread.run(Thread.java:536) I couldn't find any reference to this in my mail list archives, bugzilla, or the faq. I know that its something that this is probably something to do with an incomplete setup. I have read that tomcat comes with detailed instructions on howto install fop but i'm unable to locate this. Any help would be appreciated. oh yeah, right now i'm using fop-0.20.4 -Adam ---
RE: Installing to FOP / Tomcat
Hello, thanks for the reply Phillip I just reinstalled tomcat (to start from scratch) and placed the war file in the webapps dir. This seemed to get processed right away then I copied the supporting .jar files into the web-inf/lib directory. This is from the log file. 2003-03-12 12:21:05 StandardHost[localhost]: Installing web application at context path /fop from URL file:C:/Program Files/Apache Group/Tomcat 4.1/webapps/fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploying class repositories to work directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\fop 2003-03-12 12:21:05 WebappLoader[/fop]: Deploy class files /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat 4.1\webapps\fop\WEB-INF\classes 2003-03-12 12:21:05 StandardManager[/fop]: Seeding random number generator class java.security.SecureRandom 2003-03-12 12:21:05 StandardManager[/fop]: Seeding of random number generator has been completed 2003-03-12 12:21:05 StandardWrapper[/fop:default]: Loading container servlet default 2003-03-12 12:21:05 StandardWrapper[/fop:invoker]: Loading container servlet invoker 2003-03-12 12:21:54 HTMLManager: list: Listing contexts for virtual host 'localhost' This is from stderr.txt INFO: Jk running ID=0 time=0/120 config=C:\Program Files\Apache Group\Tomcat 4.1\conf\jk2.properties Mar 12, 2003 12:21:05 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 23: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". org.xml.sax.SAXParseException: The content of element type "servlet-mapping" must match "(servlet-name,url-pattern)". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 3) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37 1) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30 5) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8 51) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume ntFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117 5) at org.apache.commons.digester.Digester.parse(Digester.java:1495) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:1012) at java.lang.Thread.run(Thread.java:536) I couldn't find any reference to this in my mail list archives, bugzilla, or the faq. I know that its something that this is probably something to do with an incomplete setup. I have read that tomcat comes with detailed instructions on howto install fop but i'm unable to locate this. Any help would be appreciated. oh yeah, right now i'm using fop-0.20.4 -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]