Hi .
I�ve been experiencing problems for running an application that mixes
Struts and Struts-Layout. I have a page with 3 tabs on it, where each has its on form to post...
Once I submit one of these forms, I get an "Servlet action is currently unavailable" , which means that my controller is off , isn�t it ?
So I checked the Tomcat�s logs and got the following :
"Servlet /testes/struts-layout threw load() exception javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE"
and... in stderr.log
"org.apache.struts.action.ActionServlet initModuleDataSources
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE
java.sql.SQLException: Cannot create
JDBC driver of class 'COM.ibm.db2.jdbc.app.DB2Driver' for connect URL 'jdbc
b2:base' "
My DataSource declaration in the struts-config.xml is :
<data-sources>
<data-source>
<set-property property="driverClass" value="COM.ibm.db2.jdbc.app.DB2Driver" />
<set-property property="url" value="jdbc
b2:base" />
<set-property property="maxCount" value="5"/>
<set-property property="minCount" value="1"/>
<set-property property="user" value="japiadm"/>
<set-property property="password" value="admin"/>
</data-source>
</data-sources>
I think the serlvet controller is not being instantiated because of some sort of problem with the Data Source ... but I don�t know what...
In general, what causes the controller not to start ?
I�ve also already checked the names for the Action class called by the posting... and it�s ok...
Any idea ?
Tks !
Fabio
[ June 05, 2003: Message edited by: fabio gama ]