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.

    <!-- The mapping for the default servlet -->
    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <!-- The mapping for the invoker servlet -->

<!--
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
-->

    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
        <servlet-name>jsp</servlet-name>
        <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>

    <!-- The mapping for the SSI servlet -->
<!--
    <servlet-mapping>
        <servlet-name>ssi</servlet-name>
        <url-pattern>*.shtml</url-pattern>
    </servlet-mapping>
-->

    <!-- The mapping for the CGI Gateway servlet -->
<!--
    <servlet-mapping>
        <servlet-name>cgi</servlet-name>
        <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>
-->

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?

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

<web-app>
    <servlet>
        <servlet-name>
            Fop
        </servlet-name>
        <servlet-class>
            FopServlet
        </servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            Fop
        </servlet-name>
        <url-pattern>
            /fop
        </url-pattern>
        <url-pattern>
            /servlet/fop
        </url-pattern>
    </servlet-mapping>
</web-app>

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




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

Reply via email to