Tomcat 3.2.3 web.xml error

R

Rogelio

I have Tomcat 3.2.3 with IIS5.0 on a w2k box. Fresh install.

When I start up the Tomcat startup script I get the following error
immediately. I am a newbie to Tomcat and I haven't made any changes to
web.xml so I do not know why this is erroring out. It's not liking the
web.xml for some reason. There is no output in tomcat.log

Any ideas?

Thank you for your help.

Roger

*********************

Starting tomcat. Check logs/tomcat.log for error messages
2004-04-09 09:39:11 - ContextManager: Adding context Ctx( /examples )
2004-04-09 09:39:11 - ContextManager: Adding context Ctx( /admin )
2004-04-09 09:39:11 - ContextManager: Adding context Ctx( )
2004-04-09 09:39:11 - ContextManager: Adding context Ctx( /test )
ERROR reading D:\Tomcat\webapps\ROOT\WEB-INF\web.xml
At The content of elements must consist of well-formed character data
or markup.


ERROR reading D:\Tomcat\webapps\ROOT\WEB-INF\web.xml
org.xml.sax.SAXParseException: The content of elements must consist of
well-form
ed character data or markup.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1067
)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:626)
at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumen
tScanner.java:680)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1250)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:350)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:293)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader
..java:202)
at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:
109)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)
2004-04-09 09:39:17 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2004-04-09 09:39:18 - PoolTcpConnector: Starting
Ajp12ConnectionHandler on 8007
 
C

Collin VanDyck

Rogelio said:
I have Tomcat 3.2.3 with IIS5.0 on a w2k box. Fresh install.

When I start up the Tomcat startup script I get the following error
immediately. I am a newbie to Tomcat and I haven't made any changes to
web.xml so I do not know why this is erroring out. It's not liking the
web.xml for some reason. There is no output in tomcat.log

Try posting the contents of your web.xml.
 
R

Rogelio

Ok here goes. THis is from my %TOMCAT_HOME\webapps\ROOT\WEB-INF folder:

<?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>
inbasket
</servlet-name>
<servlet-class>
inbasket
</servlet-class>
<init-param>
<param-name>localDB<\param-name>
</param-value>0<\param-value>
</init-param>
<init-param>
<param-name>dbRmiHostName<\param-name>
</param-value><myIP Address><\param-value>
</init-param>
<init-param>
<param-name>dbRmiPortNum<\param-name>
</param-value>2099<\param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>
Profile
</servlet-name>
<servlet-class>
Profile
</servlet-class>
<init-param>
<param-name>localDB<\param-name>
</param-value>0<\param-value>
</init-param>
<init-param>
<param-name>dbRmiHostName<\param-name>
</param-value><myIP Address><\param-value>
</init-param>
<init-param>
<param-name>dbRmiPortNum<\param-name>
</param-value>2099<\param-value>
</init-param>
</servlet>
</web-app>


Thanks,
Roger
 
S

Sudsy

Rogelio said:
Ok here goes. THis is from my %TOMCAT_HOME\webapps\ROOT\WEB-INF folder:

<?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>
inbasket
</servlet-name>
<servlet-class>
inbasket
</servlet-class>
<init-param>
<param-name>localDB<\param-name>
</param-value>0<\param-value>
<snip>

Um, I think I see a problem here...
You can't be using \ to end the tags: use /.
That would make this:
<param-name>localDB</param-name>
<param-value>0</param-value>

Correct the rest of them too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top