james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <norman.mau...@googlemail.com>
Subject Re: Database backup and restore not working with jcr-mailboxmanager
Date Sat, 06 Aug 2011 14:40:45 GMT
did you add the JPAEncryptedMessage to persistence.xml ?

bye
norman

Am Samstag, 6. August 2011 schrieb Saibabu Vallurupalli <
saibabu.vallurupalli@gmail.com>:
> Hi Eric and Team,
>
> I am feeling bad to come back to you so many times on this issue. I tried
> the options below and I still get the same error:
>
> Step 1 - Modified POM.xml in container-spring [1] project by adding the
> dependency as shown below:
> <dependency>
>     <groupId>org.apache.james</groupId>
>     <artifactId>apache-james-mailbox-jcr</artifactId>
>   </dependency>
>
> Step 2 - Did a maven build mvn package.
> Step 3 - Unzipped the distribution and copied all the libraries from
> apache-james-3.0-beta2/lib to my Original installation path.
> Step 4 - Also visually compared if I missed any other libraires (JAR
files)
> from the latest distribution and my Original 3.0-Beta2 version. Everything
> looks same.
> Step 5 - Ran the application jConsole -> copy operation using
> jpa-mailboxmanager and jcr-mailboxmanager
> Step6 - I still get the same error as shown below:
> *********
> Problem invoking copy : java.rmi.UnmarshalException: Error unmarshaling
> return; nested exception is:
> java.lang.ClassNotFoundException:
> org.apache.openjpa.persistence.InvalidStateException (no security manager:
> RMI class loader disabled)
> *********
>
> I am not seeing any errors in james-server.log file below is the content:
> **********
>  INFO  15:50:36,179 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Found 12 mailboxes in source mailbox manager.
> INFO  15:50:36,179 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#0 path=#private:admin@Florida-HIE.net:INBOX
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#1 path=#private:admin@Florida-HIE.net:INBOX.Sent
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#2 path=#private:admin@Florida-HIE.net:INBOX.Trash
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#3 path=#private:admin@Florida-HIE.net:INBOX.Drafts
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#4 path=#private:sbrewste@Florida-HIE.net:INBOX
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#5 path=#private:sbrewste@Florida-HIE.net:INBOX.Sent
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#6 path=#private:sbrewste@Florida-HIE.net:INBOX.Trash
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#7 path=#private:sbrewste@Florida-HIE.net:INBOX.Drafts
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#8 path=#private:pvalluri@florida-hie.net:INBOX
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#9 path=#private:pvalluri@Florida-HIE.net:INBOX.Sent
> INFO  15:50:36,180 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#10 path=#private:pvalluri@Florida-HIE.net:INBOX.Trash
> INFO  15:50:36,181 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Mailbox#11 path=#private:pvalluri@Florida-HIE.net:INBOX.Drafts
> INFO  15:50:36,181 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Ready to copy source mailbox path=#private:admin@Florida-HIE.net:INBOX
> INFO  15:50:36,964 | org.apache.james.mailbox.copier.MailboxCopierImpl |
> Destination mailbox 0/12 created with path=#private:admin@Florida-HIE.net
:INBOX
> after 1059 ms.
> ***********
>
> Any help on this will be greatly appreciated. I can't consider the manual
> schema export and import approach because of Encryption. Our production
> system already has got some data and this upgrade has got a fix to encrypt
> email message and header. If I manually export data from MySQL and during
> restore these emails are NOT encrypted and we might run into issues. So, I
> have to use one of the techniques recommended by you either using
> jcr-mailboxmanager or modify jpa-mailboxmanager for backup. We can't move
to
> Linux environment because we already have our production box running on
> Windows.
>
> Thank you,
> Sai
>
> [1]
>
https://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta2/container-spring/pom.xml
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message