aspose file tools
The moose likes Tomcat and the fly likes Inavlid Datasource Reference (Naming Exception) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Inavlid Datasource Reference (Naming Exception)" Watch "Inavlid Datasource Reference (Naming Exception)" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Inavlid Datasource Reference (Naming Exception)
 
Similar Threads
naming.NameNotFoundException
Connection Pooling Problem In Tomcat
Tomcat can't find a JDBC JNDI resource
help in my first DBCP
Strange oracle datasource problem in tomcat4.06 under solaris