I'm still waiting and hoping somebody can please explain why I can't build 3.3.0 on Eclipse.  (See my other thread).  But I'm on a deadline.  My windows server is going away soon and I HAVE to get a mail solution onto AWS.  (ANYBODY?? PLEASE HELP!)

So in meantime, plan-B is to copy my current ancient v3b5 installation off of my Windows server to my AWS Linux instance. Since James is 100% java (good ol' "write once -- run anywhere"..., right?) I figured I could just copy the entire James installation folder and fix a couple of backslashes in file paths in config files, and it should run perfectly.  Wrong-o.  I literally copied the folder precisely, and changed to run.sh instead of run.bat.  After a few expected startup messages, I get a bunch of OpenJPA warnings, followed by a bunch of errors telling me foreign keys are missing from my database, etc. (See log excerpt below).  I went back to the running Windows instance. There is no reference anywhere in the Windows James log to jpa. Since the conf and lib folders are identical (as far as I can tell) between these two instances, I'm baffled.  Why is OpenJPA getting upset with the Linux install and not the Windows install. My first thought was something with case-sensitive file names. But I can't find any of those situations.  I'm not familiar with OpenJPA configuration.  So these errors mean nothing to me.  What did I do wrong? (BTW... both instances point to the same db... so I know the database is not corrupt).

Can anybody help with this problem (or better... help me with the 3.3.0 Eclipse disaster... I don't want to remain on v3b5 forever).

Thx.

Log entries:

INFO  02:35:01,219 | james.dnsservice | Adding autodiscovered search path ec2.internal.
INFO  02:35:01,220 | james.dnsservice | DNS Server is: 172.31.0.2
INFO  02:35:01,226 | james.dnsservice | Registered cache, resolver and search paths as DNSJava defaults
185  James  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.2.1
215  James  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary". 630  James  WARN   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 631  James  WARN   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 723  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 723  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 735  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 735  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 740  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 740  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring. 746  James  INFO   [main] openjpa.MetaData - The class "org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage" listed in the openjpa.MetaDataFactory configuration property could not be loaded by sun.misc.Launcher$AppClassLoader@764c12b6; ignoring.
.....

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'domainlist': Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Unable to execute lifecycle method on beandomainlist; nested exception is <openjpa-2.2.1-r422266:1396819 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: Table "JAMES_MAIL_PROPERTY" has a foreign key to table "james_mail" that has not been generated.  You must run the schema generator on all inter-related tables at once


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

Reply via email to