Tomcat Struts Datasource problem




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.
.



Relevant Pages

  • Re: Tomcat-Struts Data Source problem
    ... > starting my Tomcat. ... > Here my declaration of Data Source in Sruts-config.xml: ... configure the data sources in your container rather than within Struts. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Tomcat and JDBC connection pooling
    ... OK first go to the Tomcat administration tool (See the reply from Alan ... Click on the mini magnifying glass type of icon to navigate the tree ... select the "create new data source" from the drop down that is ...
    (comp.lang.java.programmer)
  • Tomcat-Struts Data Source problem
    ... I develop a Struts application and I have a problem with ... starting my Tomcat. ... Here my declaration of Data Source in Sruts-config.xml: ... Unexpected end of input stream ...
    (comp.lang.java.programmer)
  • Tomcat Struts Datasource problem
    ... I develop a Struts application and I have a problem with ... starting my Tomcat. ... Here my declaration of Data Source in Sruts-config.xml: ... Unexpected end of input stream ...
    (comp.lang.java.programmer)
  • Tomcat Struts Datasource problem
    ... I develop a Struts application and I have a problem with ... starting my Tomcat. ... Here my declaration of Data Source in Sruts-config.xml: ... Unexpected end of input stream ...
    (comp.lang.java.beans)