RE: Tomcat common/lib

2009-11-15 Thread Gerwood Stewart
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

Re: Tomcat common/lib

2009-11-15 Thread Christopher Schultz
-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

Re: Tomcat common/lib

2009-11-14 Thread Ziggy
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

Re: Tomcat common/lib

2009-11-13 Thread Christopher Schultz
-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

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
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

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
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

Re: Tomcat common/lib

2009-11-13 Thread Mikolaj Rydzewski
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

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
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

Re: Tomcat common/lib

2009-11-13 Thread Mikolaj Rydzewski
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

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
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 >>

Re: Tomcat common/lib

2009-11-13 Thread Mikolaj Rydzewski
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

Tomcat common/lib

2009-11-13 Thread Ziggy
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

Re: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-02 Thread Mark Thomas
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

RE: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-02 Thread Zsolt Koppany
: 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

Re: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-01 Thread David Smith
; 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

Re: tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-11-01 Thread Martin Gainty
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

tomcat-5.5.20 tld listeners from jars only from .../tomcat/common/lib?

2006-10-24 Thread Zsolt
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