Hi, Makes sense to test with an external Jackrabbit. I don't think anyone tried it before, so you will have to take the following into account (but if it works for IMAP, I wonder if the following is really needed):
- We register the CND file (see [1] and [2]), so you will have to find a way to do the same. - The spring jcr context adds more definition, see also [4] for additional repo info, so once again, the external repo is expected to have that structure/behavior. I activated back JCR here, and tried to upgrade to jackrabbit 2.4.2 to assess the behavior with the embedded Jackrabbit, but the spring context does not work anymore (apparently, some Jackrabbit classes have changes from 2.2 to 2.4). Hope this helps, Eric [1] https://svn.apache.org/repos/asf/james/mailbox/trunk/jcr/src/main/java/org/apache/james/mailbox/jcr/JCRUtils.java [2] https://svn.apache.org/repos/asf/james/mailbox/trunk/jcr/src/main/resources/mailbox-jcr.cnd [3] https://svn.apache.org/repos/asf/james/mailbox/trunk/spring/src/main/resources/META-INF/org/apache/james/spring-mailbox-jcr.xml [4] https://svn.apache.org/repos/asf/james/mailbox/trunk/jcr/src/main/resources/jcr-repository.xml On 07/20/2012 02:51 AM, 배세호 wrote: > Hi Eric! > > I am grateful for all your resond. > > I know that james support jcr mailbox in beta4. ( I saw that note in > spring-mailbox-jcr.xml file.) > > if James use embeded jackrabbit, james is not operating because of > lucene library conflict. > > but if james use standalone jackrabbit server, james is operating > well. so i modified spring-mailbox-jcr.xml file like below. > > I attached pop3server.log file for stack trace. > > > Best regards. > > Seho. > > > 2012/7/19 Eric Charles <[email protected]>: >> Hi Seho, >> >> We don't ship jcr mailbox with beta4 (nor beta3 I think) due to >> incompatibility between james mailbox-lucene and the lucene shipped by >> jackrabbit (the version available at that time was using lucene 2.x). >> >> James uses lucene 3.1. Which version does jackrabbit 2.4.2 (or 2.5.0)? >> >> We could align if jackrabbit uses a version > 3.1, and ship again jcr >> mailbox. >> >> Now, regarding your exception, it's strange it is working well with IMAP but >> not with POP3 (I would have bet on the contrary). >> >> The end of the stack trace seems to have been mangled, so I can't help much >> (please resend the stack trace). >> >> Thx, Eric >> >> On 07/19/2012 01:46 AM, 배세호 wrote: >>> >>> I tryed to use james 3.0-beta4. but I have a problem to use mailbox for >>> JCR. >>> >>> I modified spring-mailbox-jcr.xml like below ( >>> jackrabbit-standalone-2.4.2.jar in classpath) and James connected to >>> JackRabbit 2.4.2. >>> >>> <bean id="jcrRepository" >>> >>> class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> >>> <property >>> >>> name="targetClass"><value>org.apache.jackrabbit.commons.JcrUtils</value></property> >>> <property >>> name="targetMethod"><value>getRepository</value></property> >>> <property name="arguments"> >>> <value>http://192.128.0.1:8080/jackrabbit/server</value> >>> </property> >>> </bean> >>> >>> >>> IMAP is operating well, but POP3 is not, error message is below. >>> >>> >>> INFO | jvm 1 | 2012/07/16 15:44:39 | ERROR 15:44:39,642 | >>> james.pop3server | Id='27258747' User='[email protected]' Unable >>> to access property jcr:uuid >>> INFO | jvm 1 | 2012/07/16 15:44:39 | >>> javax.jcr.RepositoryException: This session has been closed. >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> >>> org.apache.jackrabbit.jcr2spi.SessionImpl.checkIsAlive(SessionImpl.java:924) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> org.apache.jackrabbit.jcr2spi.ItemImpl.checkStatus(ItemImpl.java:436) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> org.apache.jackrabbit.jcr2spi.NodeImpl.getIdentifier(NodeImpl.java:557) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> >>> org.apache.james.mailbox.jcr.mail.model.JCRMailbox.getMailboxId(JCRMailbox.java:208) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> >>> org.apache.james.mailbox.jcr.mail.model.JCRMailbox.getMailboxId(JCRMailbox.java:38) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> >>> org.apache.james.mailbox.jcr.mail.JCRMessageMapper.getMailboxPath(JCRMessageMapper.java:190) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >>> >>> org.apache.james.mailbox.jcr.mail.JCRMessageMapper.findMessagesInMailboxAfterUID(JCRMessageMapper.java:304) >>> INFO | jvm 1 | 2012/07/16 15:44:39 | at >> >> >> >> >> -- >> eric | http://about.echarles.net | @echarles >> -- eric | http://about.echarles.net | @echarles --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
