Hello. If somebody has a minute, I am trying to fiddle with a CMP entity bean on resin 3.0.8. This is my web.xml with the database connectivity info...but everytime I try to deploy the war contining the bean and the
servlet, I get this error message on the console...
'url is an unknown property of com.caucho.sql.DBPool
Here is my web.xml...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app><resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="oracle.jdbc.driver.OracleDriver"/>
<init-param url="jdbc:0racle:thin:@mycompany:1521:myoracle"/>
<init-param user="userid"/>
<init-param password="password"/>
</resource-ref>
<resource-ref>
<res-ref-name>
java:comp/env/cmp</res-ref-name>
<class-name>com.caucho.ejb.EJBServer</class-name>
<init-param data-source="java:comp/env/jdbc/test"/>
</resource-ref></web-app>
What I can find on the resin site indicates that url is indeed a property. It just doesn't seem to be clear as to what version a particular reference is talking about. In general terms, I can't seem to find anything definitive on how CMP beans know how and where to connect with a database. This always seems to be glanced over in books and stuff. I assume it's always indicated in the web.xml...but with unique tags dependent on the server and it's internal db pooling classes?...Anyway, thank you very much for reading this and for your time. Any advice and junk is really appreciated.
[ February 18, 2005: Message edited by: Tom Griffith ]