Subject | Using firebirdsql as JNDI with tomcat (resent) |
---|---|
Author | Alessandro Fiorino |
Post date | 2002-12-19T14:55:51Z |
I'm resending this message because I had some problem with the first post.
I'm trying to configure a JNDI resource under tomcat, but I get an
- Unable to get connection, DataSource invalid: "null" exception
when a JSP try to use the connection.
The driver is correctly installed because it works if I call the DriverManager
directly with a scriptlet.
Thanks in advance!
Alessandro Fiorino
This is the definition I put int the <Context>
<Resource name="jdbc/officina" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/officina">
<parameter><name>user</name><value>SYSDBA</value></parameter>
<parameter><name>password</name><value>masterkey</value></parameter>
<parameter><name>driverClassName</name><value>org.firebirdsql.jdbc.FBDriver</value></parameter>
<parameter><name>charSet</name><value>ISO8859_1</value></parameter>
<parameter><name>driverName</name><value>jdbc:firebirdsql:127.0.0.1/3050:/rete/access/officina.gdb</value></parameter>
</ResourceParams>
I'm trying to configure a JNDI resource under tomcat, but I get an
- Unable to get connection, DataSource invalid: "null" exception
when a JSP try to use the connection.
The driver is correctly installed because it works if I call the DriverManager
directly with a scriptlet.
Thanks in advance!
Alessandro Fiorino
This is the definition I put int the <Context>
<Resource name="jdbc/officina" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/officina">
<parameter><name>user</name><value>SYSDBA</value></parameter>
<parameter><name>password</name><value>masterkey</value></parameter>
<parameter><name>driverClassName</name><value>org.firebirdsql.jdbc.FBDriver</value></parameter>
<parameter><name>charSet</name><value>ISO8859_1</value></parameter>
<parameter><name>driverName</name><value>jdbc:firebirdsql:127.0.0.1/3050:/rete/access/officina.gdb</value></parameter>
</ResourceParams>