I have the following in my weblogic.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application
2.2//EN"
"http://www.beasys.com/j2ee/dtds/weblogic-web-jar.dtd">
<weblogic-web-app>
<description>Weblogic Descriptor for the Security Web App</description>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/securityDB</res-ref-name>
<jndi-name>OraclePoolDataSource</jndi-name>
</resource-description>
</reference-descriptor>
</weblogic-web-app>
Hope this helps !!
Lee
_________________________________
Lee Turner
Systems Developer
Information Technology Leeds
_________________________________
Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_________________________________
> -----Original Message-----
> From: Hardeep Singh [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 6:47 AM
> To: [EMAIL PROTECTED]
> Subject: War directly accesses Database
>
> Hi,
>
> I have a few jsps that directly access the database by looking up a
> resource
> pool. I refer to the database as jdbc/crmDB. In web.xml, i have the
> following lines:
>
> <resource-ref>
> <description>No Description</description>
> <res-ref-name>jdbc/crmDB</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>
> Also, i have a weblogic.xml which reads:
>
> <reference-descriptor>
> <resource-description>
> <res-ref-name>jdbc/crmDB</res-ref-name>
> <jndi-name>crmDS</jndi-name>
> </resource-description>
> </reference-descriptor>
>
> This is all i have written in weblogic.xml file. i suspect this s in
> error.
>
> weblogic.xml.dom.DOMProcessingException: Could not etup environment for
> EJBReference or ResourceReference. WEB-NF/weblogic.xml does not contain
> reference-descriptor.
>
> PLEASE dont suggest using beans. We ARE using beans in the rest of our
> project, this is a special case.
>
> Thanx,
>
> Hardeep Singh
> http://SeeingWithC.cjb.net
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets