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
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 :
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
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
[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
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
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
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
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