Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Tomcat Struts Datasource problem

 
   Database Forums (Home) -> Java RSS
Next:  PHP message queue with perl?  
Author Message
kris74 via JavaKB.com

External


Since: Jul 19, 2005
Posts: 1



(Msg. 1) Posted: Tue Jul 19, 2005 4:55 am
Post subject: Tomcat Struts Datasource problem
Archived from groups: comp>lang>java>databases (more info?)

hello! I develop a Struts application and I have a problem with
starting my Tomcat. I sought why and I know that the problem is of Data
Source. But I did not find a solution.

Here my declaration of Data Source in Sruts-config.xml :

<data-sources> <data-source
type="org.apache.commons.dbcp.BasicDataSource"> <set-property
property="driverClassName" value="com.mysql.jdbc.Driver" />
<set-property property="url" value="jdbc:mysql://localhost/bddStruts"
/> <set-property property="username" value="root" /> <set-property
property="password" value="struts" /> <set-property
property="maxActive" value="12" /> <set-property property="maxWait"
value="5000" /> <set-property property="defaultAutoCommit" value="true"
/> <set-property property="defaultReadOnly" value="false" />
<set-property property="validationQuery" value="SELECT COUNT(*) FROM
users" /> </data-source> </data-sources>

I use NetBeans, and I have this error in the console:

GRAVE: Initializing application data source
org.apache.struts.action.DATA_SOURCE

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Communication link failure:
java.io.IOException, underlying cause: Unexpected end of input stream

If somebody could help me it would be very nice.

I have been blocked for one week.

I cannot any more what make.

Thank you for your help.

Ps: Sorry for the expression, I am French.

 >> Stay informed about: Tomcat Struts Datasource problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Another Tomcat DataSource Question - I have been searching and searching for the answer to this, and despite seeing many similar questions, I have yet to find the answer. I have a struts 1.1 application using Tomcat 4.x that I will eventually move to Tomcat 5.0. I have the..

Using Struts tag libs - Hi, I am relatively new to Struts [using 1.3]. I need to create a form using Struts tag libs with 2 HTML select's [lists], connected to 2 DB tables, say allUsers and Admins, which would allow to select Administrators from the list of AllUsers. So I..

Struts/Hibernate and date troubles - Dear all, I'm getting squeezed between Struts and Hibernate when I use Date type for a record. My setup is the simplest possible. This is my mappings file <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-mapping PUBLIC ..

CA-San Jose area: FT Application Developers Needed - Java,.. - Hello! My Mountain View client is looking for multiple Java Developers to join their rapidly growing team. This team will be working on a very visible product for a profitable and solid company. From a technical perspective, we are seeking developers....

Derby and Tomcat - Hi, I am working on a web application using j2ee, tomcat, and the derby clientdriver. It runs fine on my PC, but on my team mate's PC, tomcat can't seem to connect to the derby database (although the ij tool could connect to the database on his PC). Th...
   Database Forums (Home) -> Java All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]