Solved

"jdbc/cmssd" not found in context "java:comp/env".

Posted on 2006-06-15
2
1,280 Views
Last Modified: 2013-12-10
We are installing an ear on WSAD

It is compiling fine and the test server starts also fine

 but when we try to login to cms sql server database we r getting an error

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R javax.naming.NameNotFoundException: Name "jdbc/cmssd" not found in context "java:comp/env".

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1021)

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:932)

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1261)

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1307)

[6/15/06 14:50:00:105 CST] 70f8e552 SystemErr R at com.dc.enterprise.Query.buildConnection(Query.java:68)

0
Comment
Question by:royalcyber
2 Comments
 
LVL 5

Expert Comment

by:Waswiz
ID: 16917992
Are you trying to do JDBC from the application. If so , you need to create resource references.
0
 
LVL 3

Accepted Solution

by:
yuseungkim earned 500 total points
ID: 16938822
From WebSphere Console ( V6 ),

Under Resources, Check JDBC Provider, If you're WAS ND, you may need to point to proper scope first.

If no JDBC provider is configured for SQL Server, you need to create one for SQL Server.

Once you choose JDBC Provider for your SQL Server, then check Data Sources under JDBC provider for your SQL Server.

If there is no Data Source is defined under JDBC provider for your SQL Server, then you need create one.

In the Data Source, please make sure that JNDI name is matched with your application (jdbc/cmssd).

Once you validated your Data source, check connection by Test Connection available in Data Source.

Good Luck

Andy K.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where is my Java compiler located 3 1,592
FileMaker 13 Port 80 Problem on server 2012 12 193
Java Exception example issues 11 84
JKS to store upstart data 2 85
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now