You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Tobias Müller <tm...@a-i-c.de> on 2004/06/13 15:57:19 UTC
Error with DB config
Hi!
I received the following error while trying to establish a db
connection:
ERROR 2004-06-13 15:49:29.655 [Phoenix.] (): Component named
"database-connections" failed to pass through the Initialization stage.
(Reason: java.lang.ClassCastException).
ERROR 2004-06-13 15:49:29.665 [Phoenix.] (): There was an error
running phase "startup" for Block named "database-connections". (Reason:
Component named "database-connections" failed to pass through the
Initialization stage. (Reason: java.lang.ClassCastException).).
org.apache.excalibur.containerkit.lifecycle.LifecycleException:
Component named "database-connections" failed to pass through the
Initialization stage. (Reason: java.lang.ClassCastException).
<snip>
My configuration of the db connection is as follows:
<data-source name="maildb"
class="com.microsoft.jdbcx.sqlserver.SQLServerDataSource">
<driver>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver>
<dburl>jdbc:microsoft:sqlserver://localhost:1433;user=james;password=jam
es</dburl>
<user>james</user>
<password>james</password>
<max>20</max>
</data-source>
</data-sources>
</database-connections>
I'm using a SQLServer2000 with the original Microsoft drivers. I
manually set the classpath and also copied the jars in the james/lib
directory and also in the james/apps/james/SAR-INF/lib directory.
Has somebody already experienced this behaviour? Thanks a lot for any
hints,
Tobi
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Error with DB config
Posted by Serge Knystautas <se...@lokitech.com>.
Tobias Müller wrote:
> My configuration of the db connection is as follows:
>
> <data-source name="maildb"
> class="com.microsoft.jdbcx.sqlserver.SQLServerDataSource">
>
> <driver>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver>
>
> <dburl>jdbc:microsoft:sqlserver://localhost:1433;user=james;password=jam
> es</dburl>
> <user>james</user>
> <password>james</password>
> <max>20</max>
> </data-source>
> </data-sources>
> </database-connections>
>
> I'm using a SQLServer2000 with the original Microsoft drivers. I
> manually set the classpath and also copied the jars in the james/lib
> directory and also in the james/apps/james/SAR-INF/lib directory.
You need to leave the <data-source> element untouched
(org.apache.james.util.dbcp.JdbcDataSource). The only change you make
would be the <driver> element, which looks ok.
--
Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org