-
Sep 20th, 2010, 09:42 PM
#1
tc Server configure Oracle datasource trouble
I am getting this error when tc Server 6.0.20 starts up with my app. deployed.
Caused by: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
I have used the following server.xml with datasource configured.
<GlobalNamingResources>
<Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver" maxActive="10" name="jdbc/MyDataSource" password="password" type="javax.sql.DataSource" url="....." username="yan"/>
</GlobalNamingResources>
This is my Spring config XML
<jee:jndi-lookup id="datasource" jndi-name="jdbc/MyDataSource" resource-ref="true"/>
I do not think I missed anything, but cannot seem to get database connection to work.
Thanks,
Yan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules