DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25184>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25184 Struts missing commons-dbcp and commons-pooling jar files. ------- Additional Comments From [EMAIL PROTECTED] 2003-12-04 01:16 ------- Regarding Steve Raeburn comments: These jar files are required. When I remove the jar files, the datasource does *not* work based on the instructions on how to configure a datasource. http://jakarta.apache.org/struts/faqs/database.html Here is the exception I get when I remove the jar files: 503 Unavailable javax.servlet.UnavailableException: Initializing application data source userDB at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1091) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:82) at com.caucho.server.http.Application.createServlet(Application.java:3097) at com.caucho.server.http.Application.loadServlet(Application.java:3048) at com.caucho.server.http.Application.initServlets(Application.java:1909) at com.caucho.server.http.Application.init(Application.java:1822) at com.caucho.server.http.VirtualHost.initWars(VirtualHost.java:824) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:687) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:853) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:698) at com.caucho.server.http.ServletServer.init(ServletServer.java:509) at com.caucho.server.http.ResinServer.init(ResinServer.java:382) at com.caucho.server.http.ResinServer.main(ResinServer.java:1142) at com.caucho.server.http.HttpServer.main(HttpServer.java:103) When I add them back, the datasource works and the problem goes away. Either the docs need to be updated to state that you need to download these seperately or Struts needs to ship with them. Regarding David Grahams comments: """Those jars were removed for 1.1 because of unresolved bugs. There really isn't a "Struts DataSource" anymore because all that's left is the <datasource> element in struts-config.xml.""" I can see your point, then the docs should reflect this reality. Hmmm.... """IMO, even that should be removed because configuring DataSources is the container's responsibility. You can plug in any DataSource implementation (including DBCP) into the struts-config.xml file but you need to supply whatever jars are needed.""" Hmmm... wouldn't make sense to ship the dbcp as the default? Currently everything works fine with Tomcat, because it ships with commons-dbcp and commons-pooling, and I think this is why this has not been noticed before. It is when you try to use this with other applicatoin servers that it fails because other application servers (e.g., weblogic, resin) do not ship with commons-dbcp and commons-pooling. It looks like from another thread, that someone is adding it to the FAQ. I am fine with that. It fixes in the sense that it is documented. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]