Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

initalContext problem

Thread view: 
polilop - 01 Dec 2006 10:29 GMT
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)
polilop - 01 Dec 2006 23:24 GMT
Solved the problem, deleted all, and then defined again, now works fine
> 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
[quoted text clipped - 14 lines]
> Pls have in mind, the connection works in was but not through my app
> (alias name is fine)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.