Hi,
the directory tree for my application is:

tomcat
- webapps
- prog
- WEB-INF
- classes - lib - src - web.xml
- fopack
-formserv.class
(fopack is the package present in classes folder and under fopack, formserv.class is located)

a portion of the contents of the tomcat log:

Jun 10, 2004 11:10:31 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8085
Jun 10, 2004 11:10:32 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2372 ms
Jun 10, 2004 11:10:32 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 10, 2004 11:10:32 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.16
Jun 10, 2004 11:10:32 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 10, 2004 11:10:32 AM org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DemoProject]
Jun 10, 2004 11:10:33 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Jun 10, 2004 11:10:33 AM org.apache.catalina.startup.ContextConfig applicationConfig
SEVERE: Parse error in application web.xml
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Jun 10, 2004 11:10:33 AM org.apache.catalina.startup.ContextConfig applicationConfig
SEVERE: Occurred at line 1 column 1
Jun 10, 2004 11:10:33 AM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Jun 10, 2004 11:10:33 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 10, 2004 11:10:33 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jun 10, 2004 11:10:33 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.

what might be the error?

also i have another doubt:
a small portion of my server.xml file is given below: in this, the xmlValidation="false" is given. can i change it to xmlValidation="true"??

<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

i have got this idea because of the following code taken from:
http://www.coreservlets.com/Apache-...iles/server.xml

in the URL given above, the corresponding code is:
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">

<!-- Add the following attributes if you want to turn XML validation
on. Remember to comment the Host element above.

Note: XML Schema validationn will works with Xerces 2.0.1 or
Xerces 2.1. Xerces 2.0.2 and Xerces 2.2 have bugs that prevent
their use with Tomcat-->
<!--
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="true" xmlNamespaceAware="true">
-->

what might be the problem as i am unable to figure out what is wrong?
thanks in advance and waiting to hear from you.