• Post Reply Bookmark Topic Watch Topic
  • New Topic

Oracle DB via Java and Tomcat  RSS feed

 
Alex Dzhus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am trying to use Oracle DB 12c via Java and Tomcat.
The problem is that I can not configurate correct connection via connection pool and declaration in "server.xml" file.
So, when I use this code in a Java class:

Everything works fine.
But when I use this code in a Java class:

This code in <context.xml>

and this code in <server.xml>

I get an exception "java.sql.SQLException: ORA-01017: invalid username/password; logon denied"  in line
The username and the password are the same in first and second codes. please advise what is going wrong ?
 
Alex Dzhus
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in line
symboll "2" is a mistake here, it is not set in real perogram.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!