j2ee RI does not authenticate user, just ignore that message.

-----Original Message-----
From: Nishchal Ahuja [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 8:33 AM
To: [EMAIL PROTECTED]
Subject: SessionBean can't access the cloudscape DB


I am trying to run example codes from j2sdkee using cloudscape DB and J2EE
server.And my main concern was on examples that access DB(might be to create
it or to just access it).But when ever a query is generated by the bean to
access DB,i get the following error on server side:
"Cannot find principal mapping information for data source with JNDI name
jdbc/Cloudscape"

But i am already specifying the following code in the bean to get connection
to the DB:

   InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup("java:comp/env/jdbc/AccountDB");
  con = ds.getConnection();

and also while deploying the application i specify the JNDI as
jdbc/Cloudscape and Coded name: jdbc/AccountDB.

This is happening with all the examples.

Also is there a particular place where the DB should be kept.If not then how
does the server find the DB .I think all the examples in the J2sdkee place
their DB in \j2sdkee1.2.1\cloudscape\CloudscapeDB because they have a small
batch script that needs to be run to create DB and map it to
CloudscapeDB.Why is it that for all the examples even if we specify the DB
name as AccountDB, it stores the data in CloudscapeDB.

Correct me if i an wrong and if someone has encountered this problem before
,then any help would be great.

Thanks

Nishchal



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to