13, 2009 7:02 PM
To: users@tomcat.apache.org
Subject: Tomcat common/lib
Hi,
When i deploy an application on Tomcat, i have to place the jdbc driver in
the $CATALINA_HOME/common/lib folder to be able to use the JNDI facilities.
This is fine but when i build the war file using ANT, it refuses to build
the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ziggy,
On 11/14/2009 12:52 PM, Ziggy wrote:
> Because of this i couldnt really use the connection object provided via
> JNDI.
Sure you can: just use the getInnermostDelegate method to get the "real"
Connection object. You ought to be able to cast tha
The problem i had with the Oracle specific functions is that they only work
if the connection object is of a oracle.jdbc.driver.OracleConnection type.
I am using Oracle Specific Types which i found are just a pain to use with
Java because they cause lots of issues one of them being interfacing wit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ziggy,
On 11/13/2009 8:15 AM, Ziggy wrote:
> yes i think you are right. The compiler errors are not on the Connection,
> PreparedStatement objects references but rather on some specific references.
> Here are a couple of examples
Yes, you are using i
gt;>> Connection conn = ds.getConnection();
>>>
>>> PreparedStatement lv_pstmt = null;
>>> ResultSet lv_rs = null;
>>>
>>> To be able to compile the above, the jdbc driver in Tomcat/common/lib has
>>> to
&g
kup("jdbc/EmployeeDB");
>>
>> Connection conn = ds.getConnection();
>>
>> PreparedStatement lv_pstmt = null;
>> ResultSet lv_rs = null;
>>
>> To be able to compile the above, the jdbc driver in Tomcat/common/lib has
>> to
>> be in the classpath i guess.
&g
p/env");
DataSource ds = (DataSource)
envCtx.lookup("jdbc/EmployeeDB");
Connection conn = ds.getConnection();
PreparedStatement lv_pstmt = null;
ResultSet lv_rs = null;
To be able to compile the above, the jdbc driver in Tomcat/common/lib has to
be in the classpath i guess.
The
aSource ds = (DataSource)
envCtx.lookup("jdbc/EmployeeDB");
Connection conn = ds.getConnection();
PreparedStatement lv_pstmt = null;
ResultSet lv_rs = null;
To be able to compile the above, the jdbc driver in Tomcat/common/lib has to
be in the classpath i guess.
Thanks
On Fri, Nov
Ziggy wrote:
when i build the war file using ANT, it refuses to build
the war file unless i have the jdbc driver in the application's WEB-INF/lib
folder
Do you use any driver specific calls in your code? Since you use JNDI,
you should rely only on DataSource provided by container. Hence, no
pie
Excellent thanks.
Im only beginning to use ANT so im learning it.
Thanks
On Fri, Nov 13, 2009 at 8:08 AM, Mikolaj Rydzewski wrote:
> Ziggy wrote:
>
>> When i deploy an application on Tomcat, i have to place the jdbc driver in
>> the $CATALINA_HOME/common/lib folder to be able to use the JNDI
>>
Ziggy wrote:
When i deploy an application on Tomcat, i have to place the jdbc driver in
the $CATALINA_HOME/common/lib folder to be able to use the JNDI facilities.
This is fine but when i build the war file using ANT, it refuses to build
the war file unless i have the jdbc driver in the applicati
Hi,
When i deploy an application on Tomcat, i have to place the jdbc driver in
the $CATALINA_HOME/common/lib folder to be able to use the JNDI facilities.
This is fine but when i build the war file using ANT, it refuses to build
the war file unless i have the jdbc driver in the application's WEB-I
es in my
> web.xml:
>
>
>
> org.ditchnet.jsp.taglib.tabs.listener.TabServletContextListe
> ner
>
>
> If the jar file is under /install_dir/tomcat/common/lib/ the
> TabServletContextListener is called and I don't need the lines above in
> web.xml.
You are not alone. Thi
:
org.ditchnet.jsp.taglib.tabs.listener.TabServletContextListe
ner
If the jar file is under /install_dir/tomcat/common/lib/ the
TabServletContextListener is called and I don't need the lines above in
web.xml.
I use jdk1.5.0_08, Windows-XP.
Zsolt
> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED]
> Sent: Wedne
;
To: "Tomcat Users List"
Sent: Tuesday, October 24, 2006 10:13 AM
Subject: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?
Hi,
After some debuging I have the impressions that tomcat-5.5.20 searches for
tld listeners only in jars files under /tomcat/common/lib.
A
age -
From: "Zsolt" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Tuesday, October 24, 2006 10:13 AM
Subject: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?
> Hi,
>
> After some debuging I have the impressions that tomcat-5.5.20 sea
Hi,
After some debuging I have the impressions that tomcat-5.5.20 searches for
tld listeners only in jars files under /tomcat/common/lib.
Am I right? Is that a bug or a (new) feature?
Zsolt
-
To start a new topic, e-mail
17 matches
Mail list logo