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 Matthew Schuyler Peck <mp...@xapsolutions.com> on 2003/03/10 01:08:50 UTC
Trouble connecting to database
I have mysql running on localhost. I've created a 'mail' database with a
user who has 'ALL PRIVILEGES' to all tables in the database. I've set the
username and password in my config.xml, and changed all repository sections
in the config.xml to the db:// entries instead of the file:// entries. When
I run James, I get the following exception:
java.sql.SQLException: Giving up... no connections available.
at
org.apache.james.util.mordred.JdbcDataSource.getConnection(JdbcDataSource.ja
va:208)
at
org.apache.james.mailrepository.JDBCMailRepository.initialize(JDBCMailReposi
tory.java:307)
at org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:292)
at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:121)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:235)
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Lifecycl
eHelper.java:144)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:480)
INFO 2003-03-09 15:57:49.482 [Phoenix.] (): exception while
starting:Component named "mailstore" failed to pass through the
Initialization stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
I know that the mysql database is running and that connections to the
database using the username and password I created work. What might be
wrong? I am attaching the config.xml to this email.
Matthew Schuyler Peck
RE: Trouble connecting to database
Posted by Matthew Schuyler Peck <mp...@xapsolutions.com>.
I changed "127.0.0.1" to "localhost" in the data-source element and it works
fine. I learn more about the [deficiencies in the] Windows networking model
every day...
Matthew Schuyler Peck
-----Original Message-----
From: Matthew Schuyler Peck [mailto:mpeck@xapsolutions.com]
Sent: Sunday, March 09, 2003 4:09 PM
To: james-user@jakarta.apache.org
Subject: Trouble connecting to database
I have mysql running on localhost. I've created a 'mail' database with a
user who has 'ALL PRIVILEGES' to all tables in the database. I've set the
username and password in my config.xml, and changed all repository sections
in the config.xml to the db:// entries instead of the file:// entries. When
I run James, I get the following exception:
java.sql.SQLException: Giving up... no connections available.
at
org.apache.james.util.mordred.JdbcDataSource.getConnection(JdbcDataSource.ja
va:208)
at
org.apache.james.mailrepository.JDBCMailRepository.initialize(JDBCMailReposi
tory.java:307)
at org.apache.james.core.AvalonMailStore.select(AvalonMailStore.java:292)
at
org.apache.james.core.AvalonMailStore.initialize(AvalonMailStore.java:121)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:235)
at
org.apache.excalibur.containerkit.lifecycle.LifecycleHelper.startup(Lifecycl
eHelper.java:144)
at
org.apache.avalon.phoenix.components.application.DefaultApplication.startup(
DefaultApplication.java:480)
INFO 2003-03-09 15:57:49.482 [Phoenix.] (): exception while
starting:Component named "mailstore" failed to pass through the
Initialization stage. (Reason:
org.apache.avalon.framework.component.ComponentException: Cannot find or
init repository).
I know that the mysql database is running and that connections to the
database using the username and password I created work. What might be
wrong? I am attaching the config.xml to this email.
Matthew Schuyler Peck
---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org