The problem is that mailbox-0.2 is not compatible with 0.3. So you need to replace all mailbox* jars. you will also need to adjust the spring files. I guess the easiest is to just assemble the app vith james server 3.0-beta2 artifacts as these use mailbox 0.3 already
bye norman Am Montag, 11. Juli 2011 schrieb Saibabu Vallurupalli <[email protected]>: > Ok, Thanks Norman. > > After modifying the source I deployed the new JAR file and started my James > server. It came up without issues and then I tried to send an email during > run time I am getting the error below: > > *************** > DEBUG 13:57:43,019 | james.imapserver | ID=171407124 Error while processing > imap request > java.lang.NoSuchMethodError: > org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage.<init>(Ljava/io/InputStream;JILjava/util/List;Lorg/apache/james/mailbox/store/mail/model/PropertyBuilder;)V > at > org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMailboxMembership.<init>(JPAMailboxMembership.java:59) > *************** > > Please guide me with this. > > Thanks, > Sai > > > > On Mon, Jul 11, 2011 at 3:51 PM, Norman Maurer <[email protected] >> wrote: > >> Hi therem >> >> maven openjpa plugin does enhance the class. So it will not look 100% >> identical to the source.. >> >> Bye, >> Norman >> >> >> 2011/7/11 Saibabu Vallurupalli <[email protected]>: >> > I tried several options and unable to locate the actual source file I am >> > using in Run time. One big difference is JPAMessage.java class in the >> > deployment is defined as below: (This is from JAD of the .class file in >> the >> > library file) >> > >> > public class JPAMessage extends AbstractJPAMessage implements >> > PersistenceCapable >> > { >> > ---- >> > } >> > >> > and this is in apache-james-mailbox-jpa-0.2-M2-20110401.040755-51.jar >> > >> > Unable to locate the same in SVN. >> > >> > Any help on this is greatly appreciated. >> > >> > Thanks, >> > Sai >> > >> > On Mon, Jul 11, 2011 at 3:31 PM, Saibabu Vallurupalli < >> > [email protected]> wrote: >> > >> >> Okay I will try these links now. Thank you. >> >> >> >> >> >> On Mon, Jul 11, 2011 at 3:21 PM, Eric Charles < >> [email protected]>wrote: >> >> >> >>> Hi, >> >>> If you're looking for M3, it does not really exist. >> >>> The easiest is to use trunk, or if you want something tagged: >> >>> >> >>> https://svn.apache.org/repos/**asf/james/mailbox/tags/apache-** >> >>> james-mailbox-0.3/< >> https://svn.apache.org/repos/asf/james/mailbox/tags/apache-james-mailbox-0.3/ >> > >> >>> >> >>> https://svn.apache.org/repos/**asf/james/server/tags/james-** >> >>> server-3.0-beta2/< >> https://svn.apache.org/repos/asf/james/server/tags/james-server-3.0-beta2/ >> > >> >>> >> >>> Thx. >> >>> >> >>> >> >>> On 11/07/11 21:08, Saibabu Vallurupalli wrote: >> >>> >> >>>> Hi Eric, >> >>>> >> >>>> I got the same link and applied the fix. Ran into issues. I compared >> the >> >>>> source and it is not same. I will review one more time. >> >>>> Yes, I got some alternate suggestions from OpenJPA asking me to use >> >>>> @Externalizer and @Factory. I am done with modifications and doing >> build. >> >>>> During build time there are some unit tests which you run all the >> tests >> >>>> passed. >> >>>> >> >>>> I went a head modified and deployed this one JAR >> >>>> "apache-james-mailbox-jpa-0.2-**M2-20110401.040755-51.jar". It is >> giving >> >>>> me >> >>>> errors. >> >>>> >> >>>> Now, I am trying to get the svn path. Once this works, I will send you >> >>>> the >> >>>> source files for patch. >> >>>> >> >>>> Thank you, >> >>>> Sai >> >>>> >> >>>> >> >>>> On Mon, Jul 11, 2011 at 2:45 PM, Eric Charles<[email protected]> >> wrote: >> >>>> >> >>>> Hi, >> >>>>> This should be the one >> >>>>> https://svn.apache.org/repos/****asf/james/server/> >> >>>>> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
