This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm trying to connect MySQL thru Struts config on Tomcat 4.1 but I get the error while trying to load the application into the server.
The error is..
org.apache.struts.action.ActionServlet initModuleDataSources SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE java.lang.NullPointerException at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355) ......
I've configured the database in struts config file as
Btw, unless this is a small project or you have no flexibility. I would strongly considering decoupling your persistence layer from Struts. Our webapp accesses our databases exactly like you are going to do, and we are finally realizing our mistake and now need to push the persistence layer behind the business logic.