initalContext problem

P

polilop

I'm usin WAS 6.0 in RAD. I have defined a JDBC source and configured
JAAS (J2C) Authentication data and linked it to the JDBC. when i test the
connection in WAS it works fine but when i run my app it says
00000031 SystemErr R java.sql.SQLException: The application server rejected
the connection. (Password is not set.)DSRA0010E: SQL State = 08004, Error
Code = -99.999DSRA0010E: SQL State = 08004, Error Code = -99.999

I allso tried the following, if i do not link the JDBC with JAAS (J2C), and
test the connection in WAS it says the same as the above. So if the
connection is OK in the WAS admin console, why is it not through my app.

This is what i call in my app .

Context initialContext = new InitialContext();
DataSource ds = (DataSource)initialContext.lookup("jdbc/WEBAP");
Pls have in mind, the connection works in was but not through my app (alias
name is fine)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top