Hi friends,
Just learned struts 1.2 and tiles, want to connect to mysql.
pl. find below the configuration i am using:
struts-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:3306/mysqldb"*
/>

<set-property property=*"username"* value=*"root"* />

<set-property property=*"maxActive"* value=*"10"* />

<set-property property=*"maxWait"* value=*"5000"* />

<set-property property=*"defaultAutoCommit"* value=*"false"* />

<set-property property=*"defaultReadOnly"* value=*"false"* />

</data-source>

</data-sources>


<controller processorClass=*"org.apache.struts.tiles.TilesRequestProcessor"
*/>

<plug-in className=*"org.apache.struts.tiles.TilesPlugin"*>

<set-property property=*"definitions-config"* value=*
"/WEB-INF/tiles-defs.xml"* />

<set-property property=*"moduleAware"* value=*"true"* />

</plug-in>


I get the error message: Can't get definitions factory from context.
I know due to the datasource it cannot find the tiles defs file, but why?
Can anyone help and give me some pointers,
thanks
-- 
Thanks and kind Regards,
Abhishek jain

Reply via email to