Solved

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

Posted on 2006-06-15
9
563 Views
Last Modified: 2010-08-05
heelo,

 

when I connect to sql server db I get 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
9 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16917306
is that name defined in your context?
0
 

Author Comment

by:royalcyber
ID: 16917320
can u pls explin

what do u mean by "... is that name defined in ur context..."
0
 
LVL 92

Expert Comment

by:objects
ID: 16917327
your application context needs to define what that name is referring to.
What is the application that is trying to lookup that name?
0
 

Author Comment

by:royalcyber
ID: 16917342
it is a  shopping cart application

i just have the jar file not the source code

I was told :

 You need to setup the jndi name in the workspace for jdbc/cmssd pointing to the cms database similar to jdbc/cms. This is in the ear you are attempting to load.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 92

Expert Comment

by:objects
ID: 16917361
so what have you done to setup the name?
How are you running the jar?
0
 

Author Comment

by:royalcyber
ID: 16917370
I am suing Websphere application developer


i have set up the name in the datasource section of the server

but it is still giving the error
0
 
LVL 92

Expert Comment

by:objects
ID: 16917377
can you post the name definition
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 16920849
Pls post your XML configuration file.
0
 
LVL 4

Accepted Solution

by:
orhanbaba earned 500 total points
ID: 16926616
this is a sample config. put this lines before </host> tag. on TOMCAT_HOME/conf/server.xml


<Context path="/contextname" docBase="document_root_directory"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/db_dbname" auth="Container" type="javax.sql.DataSource"
maxActive="9" maxIdle="2" maxWait="10000" username="db_kullanici_adim"
password="password" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/db_adi?autoReconnect=true"
removeAbandoned="true"
removeAbandonedTimeout="60"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"/>
</Context>
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strDist challenge 35 84
groupSum6 challenge 6 48
JAVA part two 5 42
Checkbox and ListView in Android Layout 4 40
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 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

8 Experts available now in Live!

Get 1:1 Help Now