On 22/10/2010 11:24, Aparna1 V wrote: > It fails to parse the server.xml when i declare more than one resource > under the Context element.
You really, really need to read the v6 docs. http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Context definitions are no longer placed in server.xml, instead put the definition in the war file, like so: META-INF/context.xml WEB-INF/web.xml p > Please help me out... > > > > From: > Pid <p...@pidster.com> > To: > Tomcat Users List <users@tomcat.apache.org> > Date: > 10/22/2010 12:37 PM > Subject: > Re: javax.naming.NamingException: Cannot create resource instance > > > > On 22/10/2010 06:40, Aparna1 V wrote: >> oh! but i need to connect to both those datasources. Is this not > possible >> in tomcat6? > > Yes it is possible. > >> And on top of that, you've got two ResourceLink name attributes pointing > >> to the same class with different names. > > This is irrelevant. The type attribute specifies the class, which of > course can have multiple instances. > > > p > [attachment "0x62590808.asc" deleted by Aparna1 V/BLR/TCS] [attachment > "signature.asc" deleted by Aparna1 V/BLR/TCS] > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > >
0x62590808.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature