tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From teletype <telet...@freemail.hu>
Subject Custom DataSource Factory
Date Thu, 15 Aug 2002 10:12:32 GMT

Hi,

I'd like replace javax.sql.DataSource factory with an 
implementation that fit my needs. Actually it is based on 
BasicDataSourceFactory from DBCP with some improvements. It 
allows overriding of server.xml resource parameters using 
the Hashtable passed to the InitialContext. So I've copied 
all the jars required to commons/lib edited the server.xml 
and web.xml of my webapp and I've started tomcat with 
-Djavax.sql.DataSource.Factory=my.PoolingDataSourceFactory 
option.

When the program tries to access the resource tomcat throws 
exception:

javax.naming.NamingException
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:844)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:181)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:822)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:181)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:822)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:181)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:822)
        at org.apache.naming.NamingContext.lookup
(NamingContext.java:194)
        at org.apache.naming.SelectorContext.lookup
(SelectorContext.java:183)
        at javax.naming.InitialContext.lookup
(InitialContext.java:347)

Can you help me out, please?

Thanks.
Have a nice day.




--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message