Anyway thanks for ur help ......I got it. .. On Sun, May 24, 2009 at 11:17 AM, David Smith <d...@cornell.edu> wrote:
> Can you post the error copy/pasted from your logs? It wasn't included in > you original message. > > -- David > > > On May 24, 2009, at 9:59 AM, john S <email2jo...@gmail.com> wrote: > > context.xml tomcat/webapps/john/META-INF/context.xml? yesojdbc14.jar in >> >> tomcat/lib (as opposed to tomcat/webapps/john/WEB-INF)?yes. >> >> On Sat, May 23, 2009 at 11:39 PM, David Smith <d...@cornell.edu> wrote: >> >> john.xml -- this has to be named context.xml. Tomcat won't see it >>> otherwise. And <Resource .../> has to be wrapped in a <Context ...> >>> element. >>> >>> Just to be clear ... is you're path to context.xml >>> tomcat/webapps/john/META-INF/context.xml? >>> >>> Also to be clear, is ojdbc14.jar in tomcat/lib (as opposed to >>> tomcat/webapps/john/WEB-INF)? >>> >>> -- David >>> >>> >>> >>> On May 23, 2009, at 11:15 PM, john S <email2jo...@gmail.com> wrote: >>> >>> Hi All >>> >>>> >>>> I am new to this forum. I tried to establish the database connection but >>>> i >>>> am getting the error. >>>> I just giving my environment details >>>> >>>> tomcat-- webapp ---john----my web applicaiton >>>> --- >>>> WEBINF >>>> META-INF >>>> john.xml (contxt.xml) >>>> >>>> john.xml (contxt.xml) >>>> <Resource name="jdbc/john" auth="Container" >>>> type="javax.sql.DataSource" >>>> driverClassName="oracle.jdbc.OracleDriver" >>>> url="my url......" >>>> username=" " password="" maxActive="20" maxIdle="10" >>>> maxWait="-1"/> >>>> web.xml: >>>> >>>> <resource-ref> >>>> <description>John Oracle DataBase </description> >>>> <res-ref-name>jdbc/john</res-ref-name> >>>> <res-type>javax.sql.DataSource</res-type> >>>> <res-auth>Container</res-auth> >>>> </resource-ref> >>>> >>>> ojdbc driver: ojdbc14. in lib folder. >>>> >>>> Tomcat version-->tomcat 6.0, >>>> JDK -->jdk1.6.0_13 >>>> os--> windows server 2003 >>>> oracle database >>>> >>>> >>>> Can anyone tell me what wrong in my configuration? >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >