|
我想在配置Apach james时将用户信息存放到Oracle数据库中,我按照有关的说明进行了如下的配置:<br><users-store><br><repository name="LocalUsers" class="org.apache.james.userrepository.JamesUsersJdbcRepository" destinationURL="db://maildb/users"><br><sqlFile>file://conf/sqlResources.xml</sqlFile><br></repository> <br></users-store><br>
<br>
<data-sources name="maildb" class="org.apache.james.util.mordred.JdbcDataSource"><br><driver>oracle.jdbc.driver.OracleDriver</driver><br><dburl>jdbc:oracle:thin:@192.168.100.63:1521:dzzwbk</dburl><br><user>mail-admin</user><br><password>admin</password><br><max>20</max><br></data-sources><br>
然后将Oracle的JDBC驱动也放到\lib目录下了,但是在运行中,仍然报这样的错误:<br>
Component named "users-store" failed to pass through the Initialization stage. (Reason: org.apache.avalon.framework.component.ComponentException: Unable to provide DataSourceComponent for maildb).<br>
<br>
请问有谁知道这是什么原因吗? |
|