Cannt connect Struts + Tiles with mysql
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
Re: Cannt connect Struts + Tiles with mysql
2010/2/25 abhishek jain abhishek.netj...@gmail.com: 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? Because the application failed starting, probably. Check the log related to the start of your application. Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Cannt connect Struts + Tiles with mysql
On Thu, Feb 25, 2010 at 6:40 PM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2010/2/25 abhishek jain abhishek.netj...@gmail.com: 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? Because the application failed starting, probably. Check the log related to the start of your application. Antonio-- Hi , Thanks for the help, it narrowed the problem to the following error, Where should i look next, Feb 25, 2010 8:46:32 PM org.apache.struts.action.ActionServlet init SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPool Thanks for the help, really appreciated, -- Thanks and kind Regards, Abhishek jain
Re: Cannt connect Struts + Tiles with mysql
2010/2/25 abhishek jain abhishek.netj...@gmail.com: Feb 25, 2010 8:46:32 PM org.apache.struts.action.ActionServlet init SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPool The error says it all, you need commons-pool: http://commons.apache.org/pool/ Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org