Tomcat 3.2.3 web.xml error

Discussion in 'Java' started by Rogelio, Apr 9, 2004.

  1. Rogelio

    Rogelio Guest

    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
    Rogelio, Apr 9, 2004
    #1
    1. Advertising

  2. "Rogelio" <> wrote in message
    news:...
    > 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.
    Collin VanDyck, Apr 9, 2004
    #2
    1. Advertising

  3. Rogelio

    Rogelio Guest

    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
    "Collin VanDyck" <> wrote in message news:<Yizdc.1827724$>...
    > "Rogelio" <> wrote in message
    > news:...
    > > 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.
    Rogelio, Apr 12, 2004
    #3
  4. Rogelio

    Sudsy Guest

    Rogelio wrote:
    > 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.
    Sudsy, Apr 12, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe
    Replies:
    0
    Views:
    1,666
  2. adamR
    Replies:
    4
    Views:
    2,625
    Juha Laiho
    Jul 16, 2004
  3. sjoshi
    Replies:
    0
    Views:
    6,606
    sjoshi
    Sep 27, 2005
  4. Elhanan
    Replies:
    1
    Views:
    706
  5. Replies:
    5
    Views:
    516
Loading...

Share This Page