Hi All
Tomcat 5.0.28

I have configured and accesed databse connection though DBCP when I connected to a single instance. Now I have to connect to 2 instances in my oracle Database and so I added 2 entries in server.xml (with user/pass/url etc) and 2 entries in web.xml

I am getting this error when I start tomcat can someone please tell what the problem is (or point me to a document

SEVERE: Parse error in application web.xml
org.xml.sax.SAXParseException: XML document structures must start and end within
the same entity.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)


Here is my web.xml. (Please note: I could access jndi resource fine when I had just 1 resource-ref element. Now I want to access two database instance so I added an entry in server.xml and an entry in web.xml I am getting this error)

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
   version="2.4">

<web-app>

<resource-ref>
<description>RS Datasource</description>
<res-ref-name>jdbc/rsDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

<resource-ref>
<description>RS Datasource</description>
<res-ref-name>jdbc/orclDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

</web-app>

Thanks

_________________________________________________________________
Make money with Zero Investment. http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-31?ck=RegSell Start your business.



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



Reply via email to