Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

No Valid JDBC Connection

This is a discussion on No Valid JDBC Connection within the JSP forums, part of the Web Development category; Hi Frnds, I'm just getting started with Cocoon and trying to get the database connectivity part working with MySQL. I set up the database for the personnel example, set up ...

Go Back   Geeks Talk > Web Development > JSP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

JSP JSP Related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 991
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
No Valid JDBC Connection

Hi Frnds,

I'm just getting started with Cocoon and trying to get the database connectivity part working with MySQL.

I set up the database for the personnel example, set up the configurations and installed the MySQL driver, but when I try to run it I get the following error:
org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available
I do have the driver in the WEB-INF/lib folder. I've tried two different versions (mm.mysql-2.0.12-bin.jar and mysql-connector-java-3.0.6-stable-bin.jar), both of which work with other Tomcat webapps on the same machine.


Here's the really weird thing:

if I enter the wrong password in the datasource description in cocoon.xconf, I get an "Invalid authorization specification" error instead.


It seems to me that in order to get this type of error, cocoon must be talking to the database, but that would be impossible if it had no valid JdbcConnection class, right?

Or am I misunderstanding how these things work?
I'm running this on Mac OS X, 10.2.6, JDK 1.4.1, MySQL 4.0.12, Cocoon 2.0.4, Tomcat 4.1.18, Apache 1.3.27.


Plz help me 2 correct this.......

Thanks...........
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Web Development > JSP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
jdbc connection error sepehri Java 4 10-13-2008 08:15 AM
IBMSNAP_LOGMARKER error Q3.$c5, Q3.$c2 are not valid anant123123 DB2 0 11-27-2007 06:21 AM
Testcase for valid equivalence class tamizh21 Test Cases 4 10-23-2007 06:01 AM
JDBC-Implementation of Connection,Resultset,Statement Raghunath.ek Java 2 09-20-2007 09:25 AM
How can I get connection object suddenly from connection pool Gopikrishnaduggi Java 0 05-05-2007 04:02 PM


All times are GMT -4. The time now is 04:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved