File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Problem with ODBC data source with JRun4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Problem with ODBC data source with JRun4" Watch "Problem with ODBC data source with JRun4" New topic
Author

Problem with ODBC data source with JRun4

Walter Chen
Greenhorn

Joined: Jan 10, 2003
Posts: 25
I am running JRun4 server with an Oracle database. If I set up the ODBC data source with the host IP, SID, port and user ID and password, everything works fine.
Now, since I wanted to have a logon page to authenticate the user and don't want to store the user name/password on the server, I removed the userID/password. After I restarted the server, I got the following exceptions:
04/18 14:23:04 error SQLException occurred in JDBCPool while attempting to conne
ct, please check your username, password, URL, and other connectivity info.
java.sql.SQLException: [Macromedia][Oracle JDBC Driver][Oracle]ORA-01017: invali
d username/password; logon denied
at macromedia.jdbc.base.BaseExceptions.createException(Unknown Source)

And when I try to look the data source, I got the following exception:
javax.naming.NameNotFoundException: No such binding: myOdbc
java.lang.NullPointerException
What should I do?
Thanks,
Walter
Walter Chen
Greenhorn

Joined: Jan 10, 2003
Posts: 25
So in a nutshell, what I want to do is simply set up a ODBC data source without storing the user ID and password on the server (in this case JRun4). What is the best way to do this?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with ODBC data source with JRun4