You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mi...@dpslink.com on 2003/04/30 22:54:03 UTC

DB2

My tomcat 5 will not start up after I added these db2 entries
         to my server.xml between the </context> and </host>

        <Context path="" docBase="/Lisa" debug="0"/>
          <Resource name="jdbc/db2" auth="Container"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/db2">
            <parameter> 
              <name>driverClassName</name>
              <value>com.ibm.as400.access.AS400JDBCDriver</value>
            </parameter>
            <parameter>
              <name>driverName</name>
 
<value>jdbc:as400://dps.dpslink.com/dps60f;naming=sql;errors=full;prompt=false</value>
            </parameter>
          </ResourceParams>
        </Context>


Here is the error in stderr.log
SEVERE: Parse Fatal Error at line 431 column 4: The element type "Host" 
must be terminated by the matching end-tag "</Host>".
org.xml.sax.SAXParseException: 

        The element type "Host" must be terminated by the matching end-tag 
"</Host>".

                at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)



Any ideas would be greatly appreciated.

Re: DB2

Posted by Mark Eggers <it...@yahoo.com>.
You need to change /> to > in the first line.

In other words:

<Context path="" docBase="/Lisa" debug="0"/>

should read

<Context path="" docBase="/Lisa" debug="0">

Otherwise the </Context>  will attempt (and fail) to
match the <Host> tag.

HTH

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org