Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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?
 
Well THAT's new! Comfort me, reliable tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic