Hi, Please help I am learning to struts frame work. Can any body tell me why I am getting this error. Like where i have to define the database connection and which class i have to mention for data base related things.If possible pls send me the step wise code .
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE java.lang.NullPointerException at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:545) at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:381) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1087) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:259) at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523) at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)