Using J2EE datasources

2002-09-23 Thread Ugo Cei
I am trying to use a J2EE datasource, but am having troubles. Environment: Cocoon 2.0.3 Jakarta Tomcat 4.1.9 Sun JDK 1.3.1 Solaris 8 I have defined a datasource in Tomcat via the Administrator interface. It has put the following in server.xml, under the

Re: Using J2EE datasources

2002-09-23 Thread Ugo Cei
Ugo Cei wrote: I am trying to use a J2EE datasource, but am having troubles. Update: I have deduced that the datasource name in Tomcat must be prefixed by jdbc/. Somehow I thought this was implicit. I have thus made progress, but now I get this: Original exception :

RE: Using J2EE datasources

2002-09-23 Thread JohnsBrn
By default org.apache.avalon.excalibur.datasource.J2eeDataSource looks for your J2EE datasource in the java:/comp/env/jdbc context. You can change this using the lookup-name parameter: j2ee logger=core.datasources.j2ee.firebird name=FirebirdDS lookup-namejava:/FirebirdDS/lookup-name /j2ee I'm

Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn
Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble creating a connection. I noticed valueoracl.jdbc.driver.OracleDriver/value contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl with no e? Ugo Cei [EMAIL PROTECTED] wrote: Ugo

Re: Using J2EE datasources

2002-09-23 Thread Ugo Cei
[EMAIL PROTECTED] wrote: Are you sure you have a valid datasource in Tomcat? Looks like it's having trouble creating a connection. I noticed valueoracl.jdbc.driver.OracleDriver/value contains a type-o. Shouldn't it be oracle.jdbc.driver.OracleDriver instead of oracl with no e? The error

Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn
This looks like a Tomcat issue to me at this point. After looking around at some Tomcat docs, the only two suggestions I have are that you do not have an AuthType specified in your Resource tag (auth=Container). I don't know if this is required. Also, did you check to make sure you updated the

Re: Using J2EE datasources

2002-09-23 Thread JohnsBrn
Also, I'd check out the commons source to see what exactly it's choking on. [EMAIL PROTECTED] wrote: This looks like a Tomcat issue to me at this point. After looking around at some Tomcat docs, the only two suggestions I have are that you do not have an AuthType specified in your Resource

J2EE Datasources

2002-06-27 Thread Joshua McCulloch
Hello, I'd like to know if anyone is using J2EE defined datasources in Cocoon? I'm trying unsucessfully to connect to a MySQL database using the Orion J2EE server. I've defined a datasource in Orion: data-source name=Mysql

Re: J2EE Datasources

2002-06-27 Thread Russell Castagnaro
Hello Joshua, You might try looking up: myhms-datasource or jdbc/myhms-datasource instead of jdbc/MysqlDS The documentation from Orion should help you on this. I know I did the same thing using weblogic, but it took a couple of tries to get it to work. Also keep in mind that datasources