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






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith & Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.

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

Reply via email to