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.

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


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

Reply via email to