| Author |
Inavlid Datasource Reference (Naming Exception)
|
shonvon ton
Greenhorn
Joined: Aug 07, 2008
Posts: 6
|
|
Hi..
I am trying to connect to a database on sql server 2005 via tomcat. My entries in the server.xml are as below:
Its throwing the following:
javax.naming.NamingException: Invalid DataSource reference.
at org.apache.naming.NamingContext.lookup(NamingContext.java:799)
at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:93)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at com.microsoft.pool.JNDITool.getDataSource(JNDITool.java:47)
at com.microsoft.pool.PoolDataSourceFactory.getObjectInstance(PoolDataSourceFactory.java:32)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:93)
at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
at org.apache.naming.NamingContext.lookup(NamingContext.java:789)
at com.microsoft.pool.JNDITool.getPoolDataSource(JNDITool.java:101)
at com.microsoft.pool.PoolHandler.createPool(PoolHandler.java:48)
at com.microsoft.pool.PoolHandler.init(PoolHandler.java:72)
I am using the sqljdbc.jar and it is in place. Its throwing exception while doing subcontext lookUp for jdbc/sl_2005.
Please help me out here. Is there any other jar that i have to use! or am i missing something in the config?
Thanks,
|
 |
shonvon ton
Greenhorn
Joined: Aug 07, 2008
Posts: 6
|
|
|
Its throwing exception while doing subcontext lookUp for jdbc/sql_2005. (Sorry for the typo error)
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
|
This is a Tomcat configuration question. I moved the topic to our Tomcat forum.
|
OCUP UML fundamental
ITIL foundation
|
 |
 |
|
|
subject: Inavlid Datasource Reference (Naming Exception)
|
|
|