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 emailguy <er...@fastmail.fm> on 2008/05/23 22:12:34 UTC

James & MySQL

1. I'm trying to use MySQL as the db for James 2.3.1. From the instructions
at 
http://james.apache.org/server/2.3.1/using_database.html

 I've changed config.xml at this point:

      <data-source name="maildb"
class="org.apache.james.util.dbcp.JdbcDataSource">
         <driver>org.gjt.mm.mysql.Driver</driver>
         <dburl>jdbc:mysql://localhost:3306/jamesemail</dburl>
         <user>myuser</user>
         <password>mypassword</password>
         <poolPreparedStatements>true</poolPreparedStatements>
         <max>20</max>
      </data-source>

I have also tried 
<dburl>com.mysql.jdbc.Driver</dburl>

After restarting James, I expected tables to be created in the jamesemail
database. Neither of these has caused the tables to be created in my
jamesemail database. What is wrong? 

2. My other questions is where should these be placed in config.xml?
Anywhere not contained by other tags?

<spoolRepository>
   <repository destinationURL="dbfile://maildb/spool/spool" type="SPOOL"/>
</spoolRepository>
<inboxRepository>
   <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
</inboxRepository>



-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17440114.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: BOUNTY

Posted by Stefano Bagnara <ap...@bago.org>.
emailguy ha scritto:
> This worked for <spoolrepository> however, there does not appear to be an
> <inboxrepository> section. The spool table now exists in the mysql db. Any
> further help editing the config.xml file so that I get all of the possible
> tables into the mysql db would be appreciated. 

Try to send a message to an inbox.
The creation is delayed to the first use.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: BOUNTY

Posted by Bernd Fondermann <be...@googlemail.com>.
On Sat, Jun 7, 2008 at 12:32 AM, Athar Shiraz Siddiqui
<at...@gmail.com> wrote:
> I totally agree. Great idea Fondermann (only a German could have
> thought of this innovative application)
>
> We should have some "net flix bounty" kind of fund where we give the
> highest prize to the team that comes up with a certain feature set.
>
> We should each contribute to a fund called the "Feature X Lottery"
> with a deadline on "fund collection closing date" (the higher the fund
> the greater the demand for the feature). We should store all paypaled
> money into an online savings account and then have teams go at the
> feature.
>
> Then we should appoint judges who evaluate the best team submissions.
> And award the prize to the winning team.
>
> What do you think?

Just to clarify: Apache's mission is to provide software for the
general public free of charge.
We won't have something like a fund for implementing features here.
And I doubt this would yield the best results. It would only push the
work yielding the most money.

Nevertheless, some Apache committers are paid for working on their
open source projects. At James, as far as I know, no committer is paid
for it.

  Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: BOUNTY

Posted by Athar Shiraz Siddiqui <at...@gmail.com>.
I totally agree. Great idea Fondermann (only a German could have
thought of this innovative application)

We should have some "net flix bounty" kind of fund where we give the
highest prize to the team that comes up with a certain feature set.

We should each contribute to a fund called the "Feature X Lottery"
with a deadline on "fund collection closing date" (the higher the fund
the greater the demand for the feature). We should store all paypaled
money into an online savings account and then have teams go at the
feature.

Then we should appoint judges who evaluate the best team submissions.
And award the prize to the winning team.

What do you think?




On Fri, Jun 6, 2008 at 1:00 PM, Bernd Fondermann
<be...@googlemail.com> wrote:
> On Fri, Jun 6, 2008 at 4:26 PM, emailguy <er...@fastmail.fm> wrote:
>> Steve Short gets the $30.00. Thank you, Steve.
>> The bounty is closed.
>
> ;-)
> Great, this is a really innovative way to get people going to
> contribute to open source projects!
>
>  Bernd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: BOUNTY

Posted by Bernd Fondermann <be...@googlemail.com>.
On Fri, Jun 6, 2008 at 4:26 PM, emailguy <er...@fastmail.fm> wrote:
> Steve Short gets the $30.00. Thank you, Steve.
> The bounty is closed.

;-)
Great, this is a really innovative way to get people going to
contribute to open source projects!

  Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: BOUNTY

Posted by Steve Short <ss...@ironport.com>.
Have another look, it's near line 66 in your config file.

      <inboxRepository>
         <repository destinationURL="file://var/mail/inboxes/" type="MAIL"/>
      </inboxRepository>

Steve


-----Original Message-----
From: emailguy [mailto:erikvsmith@fastmail.fm]
Sent: Fri 6/6/2008 3:26 PM
To: server-user@james.apache.org
Subject: RE: BOUNTY
 



You need to remove these entries from the <database-connections> section and
then edit/replace the existing <spoolRepository> and <inboxRepository>
sections.

Cheers
Steve

This worked for <spoolrepository> however, there does not appear to be an
<inboxrepository> section. The spool table now exists in the mysql db. Any
further help editing the config.xml file so that I get all of the possible
tables into the mysql db would be appreciated. 

Steve Short gets the $30.00. Thank you, Steve.
The bounty is closed. 


-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17693435.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org



RE: BOUNTY

Posted by emailguy <er...@fastmail.fm>.


You need to remove these entries from the <database-connections> section and
then edit/replace the existing <spoolRepository> and <inboxRepository>
sections.

Cheers
Steve

This worked for <spoolrepository> however, there does not appear to be an
<inboxrepository> section. The spool table now exists in the mysql db. Any
further help editing the config.xml file so that I get all of the possible
tables into the mysql db would be appreciated. 

Steve Short gets the $30.00. Thank you, Steve.
The bounty is closed. 


-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17693435.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: BOUNTY

Posted by Steve Short <ss...@ironport.com>.
Hey Emailguy,

your config.xml file is not right.  You've added these elements:

   <spoolRepository>
      <repository destinationURL="dbfile://maildb/spool/spool" type="SPOOL"/>
   </spoolRepository>
   <inboxRepository>
      <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
   </inboxRepository>      

into the <database-connections> section instead of editing / replacing the existing configuration sections for these.

So James is still configured to use the file://var/mail/ folders for both spool queues and mailboxes.

You need to remove these entries from the <database-connections> section and then edit/replace the existing <spoolRepository> and <inboxRepository> sections.

Cheers
Steve


-----Original Message-----
From: emailguy [mailto:erikvsmith@fastmail.fm]
Sent: Thu 6/5/2008 7:25 PM
To: server-user@james.apache.org
Subject: BOUNTY
 

If  you have a PAYPAL account and you can solve the problem in this thread, I
will pay you $30.00 USD via PAYPAL.

Your solution must work in order to be paid. Don't link me, or CC me,
instructions from the web, I've already read the available material. You
must be able to solve the problem in this thread.

contact me at
helpemailguy@gmail.com


-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17676580.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




BOUNTY

Posted by emailguy <er...@fastmail.fm>.
If  you have a PAYPAL account and you can solve the problem in this thread, I
will pay you $30.00 USD via PAYPAL.

Your solution must work in order to be paid. Don't link me, or CC me,
instructions from the web, I've already read the available material. You
must be able to solve the problem in this thread.

contact me at
helpemailguy@gmail.com


-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17676580.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by Stefano Bagnara <ap...@bago.org>.
emailguy ha scritto:
> 1. Check the config.xml path that you have changed. (it should be
> /my_james/apps/james/SAR-INF/config.xml)
> 
> That is the full path name of the config.xml file, yes.
> 
> 2. is there any exception message in log files?
> 
> There is a message in the log file about the config.xml file, however, I do
> not understand it.
> "because there is a file in the way"  is the error however, the "file in the
> way" is the config.xml file that I edited.
> 
> Is there a problem with James not reading the config.xml file if I start
> James with the run.sh script?
> 
> 
> $ cat phoenix.log
> INFO    2008-05-28 12:22:41.971 [Phoenix ] (): Logger started
> [..]

try to cat temp/phoenix.console, too.

"The file in the way" log is ok: after the first run JAMES will always 
log this. Ignore it.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by emailguy <er...@fastmail.fm>.


What user is James running as - what are the permissions for config.xml?

This is Apple OS X ( v. 10.5.3 )
I launch James using sudo, so I assume James is running as root.
$ sudo SystemStarter start James

$ ls -laF apps/james/SAR-INF/config.xml
-rw-r--r--  1 root  staff  63986 Jun  2 20:31 apps/james/SAR-INF/config.xml

-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17682219.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by Mark Nijland <ma...@cybersci.com>.
What user is James running as - what are the permissions for config.xml?


emailguy wrote:
> 
> 1. Check the config.xml path that you have changed. (it should be
> /my_james/apps/james/SAR-INF/config.xml)
> 
> That is the full path name of the config.xml file, yes.
> 
> 2. is there any exception message in log files?
> 
> There is a message in the log file about the config.xml file, however, I
> do not understand it.
> "because there is a file in the way"  is the error however, the "file in
> the way" is the config.xml file that I edited.
> 
> Is there a problem with James not reading the config.xml file if I start
> James with the run.sh script?
> 
> 
> $ cat phoenix.log
> INFO    2008-05-28 12:22:41.971 [Phoenix ] (): Logger started
> WARN    2008-05-28 12:22:42.035 [Phoenix ] (): Phoenix was not started by
> the daemon thus it will not be possible to restart the JVM via the
> Management interface.
> INFO    2008-05-28 12:22:42.284 [Phoenix.] (): Installing Sar located at
> file:/my_james/apps/james.sar.
> WARN    2008-05-28 12:22:42.646 [Phoenix.] (): The file SAR-INF/config.xml
> can not be extracted from the Sar "file:/my_james/apps/james.sar" into
> directory /my_james/apps/james/SAR-INF/config.xml because there is a file
> in the way.
> WARN    2008-05-28 12:22:42.647 [Phoenix.] (): The file
> SAR-INF/assembly.xml can not be extracted from the Sar
> "file:/my_james/apps/james.sar" into directory
> /my_james/apps/james/SAR-INF/assembly.xml because there is a file in the
> way.
> WARN    2008-05-28 12:22:42.648 [Phoenix.] (): The file
> SAR-INF/environment.xml can not be extracted from the Sar
> "file:/my_james/apps/james.sar" into directory
> /my_james/apps/james/SAR-INF/environment.xml because there is a file in
> the way.
> INFO    2008-05-28 12:22:43.449 [Phoenix.] (): Verifying that all
> key-stores have valid names.
> INFO    2008-05-28 12:22:43.464 [Phoenix.] (): Verify that any keystore
> names used by grant or permission reference actual keystores
> INFO    2008-05-28 12:22:43.464 [Phoenix.] (): Verify that if target is
> null then actions is null.
> INFO    2008-05-28 12:22:44.066 [Phoenix.] (): Verifying that the name
> specified for Blocks and BlockListeners are valid.
> INFO    2008-05-28 12:22:44.070 [Phoenix.] (): Verifying that the names
> specified for Component are valid.
> INFO    2008-05-28 12:22:44.072 [Phoenix.] (): Verifying that the names
> specified for the Components are unique.
> INFO    2008-05-28 12:22:44.073 [Phoenix.] (): Verifying that the
> dependency mapping is valid according to ComponentInfos.
> INFO    2008-05-28 12:22:44.073 [Phoenix.] (): Verifying that the
> dependency mapping for every Component is valid with respect to other
> components.
> INFO    2008-05-28 12:22:44.075 [Phoenix.] (): Verifying that there are no
> circular dependencies between Components.
> INFO    2008-05-28 12:22:44.080 [Phoenix.] (): Verifying that the name
> specified for Blocks and BlockListeners are unique.
> INFO    2008-05-28 12:22:44.080 [Phoenix.] (): Verifying that the
> specified Blocks have valid types.
> INFO    2008-05-28 12:22:44.203 [Phoenix.] (): Verifying that the
> specified BlockListeners have valid types.
> INFO    2008-05-28 12:22:44.504 [Phoenix.] (): 20 Blocks to process for
> phase "startup". Order of processing = [dnsserver, database-connections,
> mailstore, users-store, localusersrepository, spoolrepository, sockets,
> thread-manager, scheduler, James, mailetpackages, matcherpackages,
> spoolmanager, connections, remotemanager, pop3server, smtpserver,
> nntp-repository, nntpserver, fetchmail].
> $
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17681620.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by emailguy <er...@fastmail.fm>.
1. Check the config.xml path that you have changed. (it should be
/my_james/apps/james/SAR-INF/config.xml)

That is the full path name of the config.xml file, yes.

2. is there any exception message in log files?

There is a message in the log file about the config.xml file, however, I do
not understand it.
"because there is a file in the way"  is the error however, the "file in the
way" is the config.xml file that I edited.

Is there a problem with James not reading the config.xml file if I start
James with the run.sh script?


$ cat phoenix.log
INFO    2008-05-28 12:22:41.971 [Phoenix ] (): Logger started
WARN    2008-05-28 12:22:42.035 [Phoenix ] (): Phoenix was not started by
the daemon thus it will not be possible to restart the JVM via the
Management interface.
INFO    2008-05-28 12:22:42.284 [Phoenix.] (): Installing Sar located at
file:/my_james/apps/james.sar.
WARN    2008-05-28 12:22:42.646 [Phoenix.] (): The file SAR-INF/config.xml
can not be extracted from the Sar "file:/my_james/apps/james.sar" into
directory /my_james/apps/james/SAR-INF/config.xml because there is a file in
the way.
WARN    2008-05-28 12:22:42.647 [Phoenix.] (): The file SAR-INF/assembly.xml
can not be extracted from the Sar "file:/my_james/apps/james.sar" into
directory /my_james/apps/james/SAR-INF/assembly.xml because there is a file
in the way.
WARN    2008-05-28 12:22:42.648 [Phoenix.] (): The file
SAR-INF/environment.xml can not be extracted from the Sar
"file:/my_james/apps/james.sar" into directory
/my_james/apps/james/SAR-INF/environment.xml because there is a file in the
way.
INFO    2008-05-28 12:22:43.449 [Phoenix.] (): Verifying that all key-stores
have valid names.
INFO    2008-05-28 12:22:43.464 [Phoenix.] (): Verify that any keystore
names used by grant or permission reference actual keystores
INFO    2008-05-28 12:22:43.464 [Phoenix.] (): Verify that if target is null
then actions is null.
INFO    2008-05-28 12:22:44.066 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are valid.
INFO    2008-05-28 12:22:44.070 [Phoenix.] (): Verifying that the names
specified for Component are valid.
INFO    2008-05-28 12:22:44.072 [Phoenix.] (): Verifying that the names
specified for the Components are unique.
INFO    2008-05-28 12:22:44.073 [Phoenix.] (): Verifying that the dependency
mapping is valid according to ComponentInfos.
INFO    2008-05-28 12:22:44.073 [Phoenix.] (): Verifying that the dependency
mapping for every Component is valid with respect to other components.
INFO    2008-05-28 12:22:44.075 [Phoenix.] (): Verifying that there are no
circular dependencies between Components.
INFO    2008-05-28 12:22:44.080 [Phoenix.] (): Verifying that the name
specified for Blocks and BlockListeners are unique.
INFO    2008-05-28 12:22:44.080 [Phoenix.] (): Verifying that the specified
Blocks have valid types.
INFO    2008-05-28 12:22:44.203 [Phoenix.] (): Verifying that the specified
BlockListeners have valid types.
INFO    2008-05-28 12:22:44.504 [Phoenix.] (): 20 Blocks to process for
phase "startup". Order of processing = [dnsserver, database-connections,
mailstore, users-store, localusersrepository, spoolrepository, sockets,
thread-manager, scheduler, James, mailetpackages, matcherpackages,
spoolmanager, connections, remotemanager, pop3server, smtpserver,
nntp-repository, nntpserver, fetchmail].
$


-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17516815.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by Okan Cetin <ok...@gmail.com>.
Check the config.xml path that you have changed. (it should be
/my_james/apps/james/SAR-INF/config.xml)

and, is there any exception message in log files?

On 28/05/2008, emailguy <er...@fastmail.fm> wrote:
>
>
>
>
> Stefano Bagnara-2 wrote:
> >
> > emailguy ha scritto:
> >> 1. I'm trying to use MySQL as the db for James 2.3.1. From the
> >> instructions
> >> at
> >> http://james.apache.org/server/2.3.1/using_database.html
> >>
> >>  I've changed config.xml at this point:
> >>
> >>       <data-source name="maildb"
> >> class="org.apache.james.util.dbcp.JdbcDataSource">
> >>          <driver>org.gjt.mm.mysql.Driver</driver>
> >>          <dburl>jdbc:mysql://localhost:3306/jamesemail</dburl>
> >>          <user>myuser</user>
> >>          <password>mypassword</password>
> >>          <poolPreparedStatements>true</poolPreparedStatements>
> >>          <max>20</max>
> >>       </data-source>
> >>
> >> I have also tried
> >> <dburl>com.mysql.jdbc.Driver</dburl>
> >>
> >> After restarting James, I expected tables to be created in the
> jamesemail
> >> database. Neither of these has caused the tables to be created in my
> >> jamesemail database. What is wrong?
> >>
> >> 2. My other questions is where should these be placed in config.xml?
> >> Anywhere not contained by other tags?
> >>
> >> <spoolRepository>
> >>    <repository destinationURL="dbfile://maildb/spool/spool"
> >> type="SPOOL"/>
> >> </spoolRepository>
> >> <inboxRepository>
> >>    <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
> >> </inboxRepository>
> >
> > What does it happen when you restart the db?
> > Yes, it should automatically create the tables structure after the
> > restart.
> >
> > Have you placed the mysql jdbc connector/J in your
> > <james>/apps/james/SAR-INF/lib folder ?
> >
> > Stefano
> >
> >
>
>
> Yes I have placed the jdbc mysql driver into the lib folder.
> No tables are created when I restart the db, or James, or both.
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/James---MySQL-tp17440114p17512182.html
>
> Sent from the James - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>


-- 
~
otomatik oluşturuldu:
http://ocetin.net/log

Re: James & MySQL

Posted by emailguy <er...@fastmail.fm>.


Stefano Bagnara-2 wrote:
> 
> emailguy ha scritto:
>> 1. I'm trying to use MySQL as the db for James 2.3.1. From the
>> instructions
>> at 
>> http://james.apache.org/server/2.3.1/using_database.html
>> 
>>  I've changed config.xml at this point:
>> 
>>       <data-source name="maildb"
>> class="org.apache.james.util.dbcp.JdbcDataSource">
>>          <driver>org.gjt.mm.mysql.Driver</driver>
>>          <dburl>jdbc:mysql://localhost:3306/jamesemail</dburl>
>>          <user>myuser</user>
>>          <password>mypassword</password>
>>          <poolPreparedStatements>true</poolPreparedStatements>
>>          <max>20</max>
>>       </data-source>
>> 
>> I have also tried 
>> <dburl>com.mysql.jdbc.Driver</dburl>
>> 
>> After restarting James, I expected tables to be created in the jamesemail
>> database. Neither of these has caused the tables to be created in my
>> jamesemail database. What is wrong? 
>> 
>> 2. My other questions is where should these be placed in config.xml?
>> Anywhere not contained by other tags?
>> 
>> <spoolRepository>
>>    <repository destinationURL="dbfile://maildb/spool/spool"
>> type="SPOOL"/>
>> </spoolRepository>
>> <inboxRepository>
>>    <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
>> </inboxRepository>
> 
> What does it happen when you restart the db?
> Yes, it should automatically create the tables structure after the
> restart.
> 
> Have you placed the mysql jdbc connector/J in your 
> <james>/apps/james/SAR-INF/lib folder ?
> 
> Stefano
> 
> 

Yes I have placed the jdbc mysql driver into the lib folder.
No tables are created when I restart the db, or James, or both.



-- 
View this message in context: http://www.nabble.com/James---MySQL-tp17440114p17512182.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: James & MySQL

Posted by Stefano Bagnara <ap...@bago.org>.
emailguy ha scritto:
> 1. I'm trying to use MySQL as the db for James 2.3.1. From the instructions
> at 
> http://james.apache.org/server/2.3.1/using_database.html
> 
>  I've changed config.xml at this point:
> 
>       <data-source name="maildb"
> class="org.apache.james.util.dbcp.JdbcDataSource">
>          <driver>org.gjt.mm.mysql.Driver</driver>
>          <dburl>jdbc:mysql://localhost:3306/jamesemail</dburl>
>          <user>myuser</user>
>          <password>mypassword</password>
>          <poolPreparedStatements>true</poolPreparedStatements>
>          <max>20</max>
>       </data-source>
> 
> I have also tried 
> <dburl>com.mysql.jdbc.Driver</dburl>
> 
> After restarting James, I expected tables to be created in the jamesemail
> database. Neither of these has caused the tables to be created in my
> jamesemail database. What is wrong? 
> 
> 2. My other questions is where should these be placed in config.xml?
> Anywhere not contained by other tags?
> 
> <spoolRepository>
>    <repository destinationURL="dbfile://maildb/spool/spool" type="SPOOL"/>
> </spoolRepository>
> <inboxRepository>
>    <repository destinationURL="db://maildb/inbox/" type="MAIL"/>
> </inboxRepository>

What does it happen when you restart the db?
Yes, it should automatically create the tables structure after the restart.

Have you placed the mysql jdbc connector/J in your 
<james>/apps/james/SAR-INF/lib folder ?

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org