|
From: Florian M. <pa...@wa...> - 2004-07-21 18:38:51
|
Hello,
I allows itself to send a small mail because I have a very great need for assistance and my search of answers was all unfruitful, therefore I put much hope in your HELP.
I use Tomcat 4.1.30 and I have just tried to configure a Web application with the final version of Struts 1.1, and I have a problem while I launch my server of the waiter after having configure my datasource in my file struts-config.xml.
My configuration is :
<data-sources>
<data-source key="org.apache.struts.action.DATA_SOURCE" type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="autoCommit" value="false" />
<set-property property="driverClass" value="com.microsoft.jdbc.sqlserver.SQLServerDriver" />
<set-property property="user" value="myuser" />
<set-property property="password" value="mypwd" />
<set-property property="url" value="jdbc:microsoft:sqlserver://myserver;DatabaseName=mydbname" />
<set-property property="readOnly" value="false" />
<set-property property="maxCount" value="40" />
<set-property property="minCount" value="20" />
<set-property property="password" value="" />
</data-source>
</data-sources>
But when Tomcat was launch, it couldn't initialize Servlet and catch this exception :
StandardContext[/WebTestStruts]: Servlet /WebTestStruts threw load() exception: javax.servlet.ServletException: Servlet.init() for servlet action threw exception
javax.servlet.ServletException: Servlet.init() for servlet action threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:946)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
.....
After i have analyse this process, i have found the root cause. It's seems to be the GenericDataSource ! It couldn't found this class... but I dont use this pool !
PLEASE HELP ME !
Thanks for your help,
Cordially,
FMU
|