• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Problem with ODBC data source with JRun4

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic