The web.xml file in fop.war is bad. Open the .war, and remove the <servlet-mapping> element with /servlet/fop in it. The extra servlet-mapping child element violates the DTD. The corrected web.xml file should be:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by () --> <!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> </servlet-mapping> </web-app> :) ----- Original Message ----- From: "Carlos Daniel Schafer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 3:08 PM Subject: RE: FopServlet error > Hi > > You have look the file web.xml into fop.war is configured for other Tomcat, > I think so Tomcat 3.0, may be and your Tomcat is diferent. > Today, I take this same problem. > > > I sorry, my English is very bad, may be Indian. I'm the Argentina, Buenos > Aires. > > > > -----Mensaje original----- > > De: Dunning, John [SMTP:[EMAIL PROTECTED]] > > Enviado el: martes, 05 de marzo de 2002 17:05 > > Para: '[EMAIL PROTECTED]' > > Asunto: FopServlet error > > > > Hello, > > I'm trying to get the FopServlet example working; I've placed the fop.war > > file in the /webapps/ directory, but now when I start Tomcat I get this > > message on the console window: > > > > Starting service Tomcat-Standalone > > Apache Tomcat/4.0.3 > > PARSE error at line 26 column 23 > > org.xml.sax.SAXParseException: The content of element type > > "servlet-mapping" > > must match "(servlet-name,url-pattern)". > > > > Looking at the configuration files that come with Tomcat, the > > <servlet-mapping> content is as expected. Anyone else experiened this, or > > any suggestions? > > > > TIA, > > John > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
