Jump to content
We've recently updated our Privacy Statement, available here ×

after adding jdbc data source the test connection failed


durdisoft

Recommended Posts

Hello,

I have installed JasperReports Server CP 4.0 on Solaris with separate MySQL and Tomcat Server. For an report I add an JDBC Data Source for Oracle DB, but the function "Test Connection" returns "Connection failed".

Data Source definition:

Driver: oracle.jdbc.pool.OracleDataSource
URL: jdbc:oracle:thin:@[servername]:1521:[DB]

The same definition works on JasperServer 3.7. The driver is located .../tomcat6/webapps/jasperserver/WEB-INF/lib/ojdbc.jar. I can't se any error message in .../tomcat6/webapps/jasperserver/WEB-INF/logs/jasperserver.log or
.../tomcat6/webapps/logs/catalina.out

Have anybody an idea how to debug or fix the problem?

Regards
durdi

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

I think you should place the driver in a different folder, dont have time to check it now but you might try to place it a bit 'higher' (@tomcat level, not webapp level)

 

also, there are 2 'accepted' oracle url connection strings syntax's:

jdbc:oracle:thin:[user/password]@[host][:port]:SID

jdbc:oracle:thin:[user/password]@//[host][:port]/SID

 

you might try those :)

 

(source: http://www.herongyang.com/JDBC/Oracle-JDBC-Driver-Connection-URL.html)

Link to comment
Share on other sites

I there maybe an difference between JS 3.7 and JS 4.0? Because the same definition works on JS 3.7.

I have put the jar into .../tomcat6/lib directory too, but it still doesn't work.

Have you an idea how I can debug the issue?

Regards
durdi

Link to comment
Share on other sites

Logfiles are available under .../tomcat6/webapps/jasperserver/WEB-INF/logs/jasperserver.log and
.../tomcat6/webapps/logs/catalina.ou, but I can't see any entry for this issue.

Has anybody an idee with settings I can made in "Manage -> Log Settings"?
Maybe I can define the right object/library to print messages during I test the jdbc connection.

Regards
durdi

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...