svn commit: r938339 - /james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java

2010-04-27 Thread bago
Author: bago
Date: Tue Apr 27 07:30:52 2010
New Revision: 938339

URL: http://svn.apache.org/viewvc?rev=938339view=rev
Log:
Improve fail message for i= tag domain mismatch d= domain.

Modified:

james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java

Modified: 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
URL: 
http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java?rev=938339r1=938338r2=938339view=diff
==
--- 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
 (original)
+++ 
james/jdkim/trunk/main/src/main/java/org/apache/james/jdkim/tagvalue/SignatureRecordImpl.java
 Tue Apr 27 07:30:52 2010
@@ -68,7 +68,7 @@ public class SignatureRecordImpl extends
 (@ + getValue(d)).toLowerCase())
  !getIdentity().toString().toLowerCase().endsWith(
 (. + getValue(d)).toLowerCase()))
-throw new IllegalStateException(Domain mismatch);
+throw new IllegalStateException(Identity (i=) domain mismatch: 
expected [option...@[optional.]domain-from-d-attribute);
 
 // when x= exists and signature expired then return PERMFAIL
 // (signature expired)



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



JAMES Server Nightly Build Report

2010-04-27 Thread JAMES Nightly Build System
An automated nightly build of JAMES has been posted to 
http://people.apache.org/builds/james/nightly/

Any unit test errors from the build should be reported below:

BUILD SUCCESSFUL
Total time: 5 minutes 0 seconds

Done. Packages Will Be Uploaded To The Nightly Repository.

Please review http://people.apache.org/builds/james/nightly/BUILD.log.


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



[jira] Commented: (JSPF-86) Make sure dependencies are on central and remove the stage module

2010-04-27 Thread Stefano Bagnara (JIRA)

[ 
https://issues.apache.org/jira/browse/JSPF-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12861308#action_12861308
 ] 

Stefano Bagnara commented on JSPF-86:
-

Here we are:
http://repo1.maven.org/maven2/net/java/dev/jvyaml/0.2.1/
http://repo1.maven.org/maven2/uk/nominet/dnsjnio/1.0.3/
http://repo1.maven.org/maven2/dnsjava/dnsjava/2.0.8/

 Make sure dependencies are on central and remove the stage module
 -

 Key: JSPF-86
 URL: https://issues.apache.org/jira/browse/JSPF-86
 Project: JAMES jSPF
  Issue Type: Task
Affects Versions: 0.9.7
Reporter: Stefano Bagnara
Assignee: Stefano Bagnara
 Fix For: 0.9.8


 dnsjava 2.0.8, dnsjnio 1.0.3 and jvyaml 0.2.1 needs to be uploaded to 
 central, first.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



Re: GSOC Student Tim Erwin accepted

2010-04-27 Thread Tim-Christian Mundt
Thanks Norman for the welcome. I've been here on the mailing list for 
some weeks, so at least I'm not totally foreign to most of you. I'm 
excited about this opportunity and hope the next few month will be 
beneficial for all of us.
While Norman is my official mentor, of course all of you are always 
invited to give comments, critics and suggestions. The next few weeks 
are intended for community bonding, we will figure out how my little 
project should be integrated into the James project. I'm sure, this 
won't be a big thing - communication via mailing list seems to work great.


So... thanks for having me :)

Regards
Tim


Norman Maurer schrieb:

Hi all,

I'm very glad to announce that Tim Erwin was accepted as a Student of
GSOC to work on a Maildir Mailbox implementation for JAMES. Thats a
great news! So lets welcome Tim and start to warm up for getting the
work done.

Related JIRA Task:
https://issues.apache.org/jira/browse/IMAP-101

Accepted Proposals:

http://socghop.appspot.com/gsoc/program/list_projects/google/gsoc2010



Welcome Tim :)

Bye,
Norman

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

  



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



svn commit: r938377 - in /james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim: FileBasedTest.java PerlDKIMTest.java

2010-04-27 Thread bago
Author: bago
Date: Tue Apr 27 09:34:33 2010
New Revision: 938377

URL: http://svn.apache.org/viewvc?rev=938377view=rev
Log:
make sure file based test suites run correctly in every environment (m2 
reactor, m2 single module, netbeans, eclipse..)

Modified:

james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java

james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java

Modified: 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java
URL: 
http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java?rev=938377r1=938376r2=938377view=diff
==
--- 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java 
(original)
+++ 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java 
Tue Apr 27 09:34:33 2010
@@ -25,6 +25,8 @@ import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.net.URISyntaxException;
+import java.net.URL;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -38,7 +40,7 @@ public class FileBasedTest extends TestC
 
 private File file;
 
-public FileBasedTest(String testName) {
+public FileBasedTest(String testName) throws URISyntaxException {
 this(testName, FileBasedTestSuite.getFile(testName));
 }
 
@@ -250,33 +252,36 @@ public class FileBasedTest extends TestC
 }
 }
 
-public static Test suite() throws IOException {
+public static Test suite() throws IOException, URISyntaxException {
 return new FileBasedTestSuite();
 }
 
 static class FileBasedTestSuite extends TestSuite {
 
-private static final File TESTS_FOLDER = new File(
-
main\\src\\test\\resources\\org\\apache\\james\\jdkim\\corpus);
+private static final String TESTS_FOLDER = 
/org/apache/james/jdkim/corpus;
 
-public FileBasedTestSuite() throws IOException {
-super();
-File dir = TESTS_FOLDER;
-File[] files = dir.listFiles();
-
-if (files != null)
-for (int i = 0; i  files.length; i++) {
-File f = files[i];
-if (f.getName().toLowerCase().endsWith(.eml)) {
-addTest(new FileBasedTest(f.getName().substring(0,
-f.getName().length() - 4), f));
+public FileBasedTestSuite() throws IOException, URISyntaxException {
+URL resource = FileBasedTestSuite.class.getResource(TESTS_FOLDER);
+if (resource != null) {
+File dir = new File(resource.toURI());
+File[] files = dir.listFiles();
+
+if (files != null)
+for (int i = 0; i  files.length; i++) {
+File f = files[i];
+if (f.getName().toLowerCase().endsWith(.eml)) {
+addTest(new FileBasedTest(f.getName().substring(0,
+f.getName().length() - 4), f));
+}
 }
-}
+}
 }
 
-public static File getFile(String name) {
-return new File(TESTS_FOLDER.getAbsolutePath() + File.separator
-+ name + .eml);
+public static File getFile(String name) throws URISyntaxException {
+URL resource =  FileBasedTestSuite.class.getResource(TESTS_FOLDER 
+ File.separator + name + .eml);
+if (resource != null) {
+return new File(resource.toURI());
+} else return null;
 }
 
 }

Modified: 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java
URL: 
http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java?rev=938377r1=938376r2=938377view=diff
==
--- 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java 
(original)
+++ 
james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java 
Tue Apr 27 09:34:33 2010
@@ -25,6 +25,8 @@ import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.net.URISyntaxException;
+import java.net.URL;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -41,7 +43,7 @@ public class PerlDKIMTest extends TestCa
 private File file;
 private MockPublicKeyRecordRetriever pkr;
 
-public PerlDKIMTest(String testName) throws IOException {
+public PerlDKIMTest(String testName) throws IOException, 
URISyntaxException {
 this(testName, PerlDKIMTestSuite.getFile(testName),
 getPublicRecordRetriever());
 }
@@ -58,8 +60,7 @@ 

[IMAP] Over-designed /Some thoughts ?

2010-04-27 Thread Norman Maurer
Hi all,

after spending some time over the weekend to fix some issues with IMAP
I started to feel its a big over-designed ...

I think it would be a good think to simplify the api a bit to make
it a bit easier to understand. So some points which came to me mind:

1) UidChangeTracking:

Is this really necessary ? It does some kind of caching but I don't
see something else for which its useful. Why not just fire the events
directly with a shared MailboxEventDispatcher which is the same for
all Mailboxes?


2) Global Mailbox caching

At the moment the Mailbox is cached in a HashMap. The problem with
this is it will never get recycled by the GC. This can generate a OOM
over long time
The other problem with this is, the Mailbox should be tight to the
MailboxSession. Let me explain why. For example in JCR we could use
the User/Pass which is bound to the MailboxSession to access different
parts of the JCR Repository etc..


Thoughts ?

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



Re: GSOC Student Tim Erwin accepted

2010-04-27 Thread Manuel Carrasco Moñino
Welcome Tim

-Manolo

On Tue, Apr 27, 2010 at 11:17 AM, Tim-Christian Mundt d...@tim-erwin.de wrote:
 Thanks Norman for the welcome. I've been here on the mailing list for some
 weeks, so at least I'm not totally foreign to most of you. I'm excited about
 this opportunity and hope the next few month will be beneficial for all of
 us.
 While Norman is my official mentor, of course all of you are always invited
 to give comments, critics and suggestions. The next few weeks are intended
 for community bonding, we will figure out how my little project should be
 integrated into the James project. I'm sure, this won't be a big thing -
 communication via mailing list seems to work great.

 So... thanks for having me :)

 Regards
 Tim


 Norman Maurer schrieb:

 Hi all,

 I'm very glad to announce that Tim Erwin was accepted as a Student of
 GSOC to work on a Maildir Mailbox implementation for JAMES. Thats a
 great news! So lets welcome Tim and start to warm up for getting the
 work done.

 Related JIRA Task:
 https://issues.apache.org/jira/browse/IMAP-101

 Accepted Proposals:

 http://socghop.appspot.com/gsoc/program/list_projects/google/gsoc2010



 Welcome Tim :)

 Bye,
 Norman

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




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



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



[jira] Created: (JAMES-994) JDBCVirtualUserTable does not work when using Postgresql

2010-04-27 Thread Norman Maurer (JIRA)
JDBCVirtualUserTable does not work when using Postgresql


 Key: JAMES-994
 URL: https://issues.apache.org/jira/browse/JAMES-994
 Project: JAMES Server
  Issue Type: Bug
Affects Versions: 3.0, 3.0-M1, Trunk
Reporter: Norman Maurer
Assignee: Norman Maurer
 Fix For: 3.0-M1


When JAMES try to use the JDBCVirtualUserTable and use Postgreqsl it fails with 
the following exception:

ERROR 16:02:38,362 | james.virtualusertable-store | Error accessing database
org.postgresql.util.PSQLException: ERROR: function concat(character varying, 
unknown, character varying) does not exist
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1343)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.apache.james.vut.JDBCVirtualUserTable.mapAddressInternal(JDBCVirtualUserTable.java:250)
at 
org.apache.james.impl.vut.AbstractVirtualUserTable.mapAddress(AbstractVirtualUserTable.java:467)
at 
org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:122)
at 
org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:113)
at 
org.apache.james.transport.mailets.VirtualUserTable.processMail(VirtualUserTable.java:89)
at 
org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:76)
at 
org.apache.james.transport.camel.MailetProcessor.process(MailetProcessor.java:60)
at 
org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
at 
org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
at 
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
at 
org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
at 
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
at 
org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
at 
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:51)
at 
org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
at 
org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
at 
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
at 
org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
at 
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
at 
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
at 
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
at 
org.apache.camel.spring.spi.TransactionErrorHandler.processByRegularErrorHandler(TransactionErrorHandler.java:90)
at 
org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:81)
at 
org.apache.camel.processor.MulticastProcessor.doProcess(MulticastProcessor.java:266)
at 
org.apache.camel.processor.MulticastProcessor.access$000(MulticastProcessor.java:59)
at 
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:178)
at 
org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:172)

svn commit: r938499 - in /james/server/trunk: spring-deployment/src/main/config/james/sqlResources.xml user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java user-function/src/test

2010-04-27 Thread norman
Author: norman
Date: Tue Apr 27 15:13:39 2010
New Revision: 938499

URL: http://svn.apache.org/viewvc?rev=938499view=rev
Log:
postgresql does not support concat function so we need a custom sql query for 
it when select mappings. Fix for (JAMES-994)

Modified:
james/server/trunk/spring-deployment/src/main/config/james/sqlResources.xml

james/server/trunk/user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java
james/server/trunk/user-function/src/test/resources/sqlResources.xml

Modified: 
james/server/trunk/spring-deployment/src/main/config/james/sqlResources.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/sqlResources.xml?rev=938499r1=938498r2=938499view=diff
==
--- james/server/trunk/spring-deployment/src/main/config/james/sqlResources.xml 
(original)
+++ james/server/trunk/spring-deployment/src/main/config/james/sqlResources.xml 
Tue Apr 27 15:13:39 2010
@@ -817,8 +817,9 @@
 sqlDefs name=org.apache.james.vut.JDBCVirtualUserTable
 
 !-- Statements used to check whether a particular message exists in this 
repository. --
-sql name=selectMappings db=derbyselect 
VirtualUserTable.target_address,(VirtualUserTable.user || '@' 
||VirtualUserTable.domain) from VirtualUserTable, VirtualUserTable as 
VUTDomains where ((VirtualUserTable.user) like ? or (VirtualUserTable.user) 
like '\%' escape '\') and (VirtualUserTable.domain like ? or 
(VirtualUserTable.domain like '\%' escape '\' and VUTDomains.domain like ?)) 
order by 2 desc/sql
-sql name=selectMappingsselect VirtualUserTable.target_address from 
VirtualUserTable, VirtualUserTable as VUTDomains where (VirtualUserTable.user 
like ? or VirtualUserTable.user like '\%') and (VirtualUserTable.domain like ? 
or (VirtualUserTable.domain like '\%' and VUTDomains.domain like ?)) order by 
concat(VirtualUserTable.user,'@',VirtualUserTable.domain) desc limit 1/sql
+sql name=selectMappings db=derbyselect 
VirtualUserTable.target_address,(VirtualUserTable.user || '@' 
||VirtualUserTable.domain) from VirtualUserTable, VirtualUserTable as 
VUTDomains where ((VirtualUserTable.user) like ? or (VirtualUserTable.user) 
like '\%' escape '\') and (VirtualUserTable.domain like ? or 
(VirtualUserTable.domain like '\%' escape '\')) order by 2 desc/sql
+sql name=selectMappingsselect VirtualUserTable.target_address from 
VirtualUserTable, VirtualUserTable as VUTDomains where (VirtualUserTable.user 
like ? or VirtualUserTable.user like '\%') and (VirtualUserTable.domain like ? 
or (VirtualUserTable.domain like '\%')) order by 
concat(VirtualUserTable.user,'@',VirtualUserTable.domain) desc limit 1/sql
+sql name=selectMappings db=postgresqlselect 
VirtualUserTable.target_address from VirtualUserTable, VirtualUserTable as 
VUTDomains where (VirtualUserTable.user like ? or VirtualUserTable.user like 
E'%') and (VirtualUserTable.domain like ? or (VirtualUserTable.domain like 
E'%')) order by (VirtualUserTable.user || '@' || VirtualUserTable.domain) desc 
limit 1/sql
 
 sql name=selectUserDomainMapping db=derbyselect 
VirtualUserTable.target_address from VirtualUserTable where 
VirtualUserTable.user = ? and VirtualUserTable.domain = ? /sql
 sql name=selectUserDomainMappingselect VirtualUserTable.target_address 
from VirtualUserTable where VirtualUserTable.user = ? and 
VirtualUserTable.domain = ? /sql

Modified: 
james/server/trunk/user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java?rev=938499r1=938498r2=938499view=diff
==
--- 
james/server/trunk/user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java
 (original)
+++ 
james/server/trunk/user-function/src/main/java/org/apache/james/vut/JDBCVirtualUserTable.java
 Tue Apr 27 15:13:39 2010
@@ -246,7 +246,6 @@ public class JDBCVirtualUserTable extend
 try {
 mappingStmt.setString(1, user);
 mappingStmt.setString(2, domain);
-mappingStmt.setString(3, domain);
 mappingRS = mappingStmt.executeQuery();
 if (mappingRS.next()) {
 return mappingRS.getString(1);

Modified: james/server/trunk/user-function/src/test/resources/sqlResources.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/user-function/src/test/resources/sqlResources.xml?rev=938499r1=938498r2=938499view=diff
==
--- james/server/trunk/user-function/src/test/resources/sqlResources.xml 
(original)
+++ james/server/trunk/user-function/src/test/resources/sqlResources.xml Tue 
Apr 27 15:13:39 2010
@@ -1028,8 +1028,8 @@
 sqlDefs 

[jira] Resolved: (JAMES-994) JDBCVirtualUserTable does not work when using Postgresql

2010-04-27 Thread Norman Maurer (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved JAMES-994.
-

Resolution: Fixed

Fixed

 JDBCVirtualUserTable does not work when using Postgresql
 

 Key: JAMES-994
 URL: https://issues.apache.org/jira/browse/JAMES-994
 Project: JAMES Server
  Issue Type: Bug
Affects Versions: 3.0, 3.0-M1, Trunk
Reporter: Norman Maurer
Assignee: Norman Maurer
 Fix For: 3.0-M1


 When JAMES try to use the JDBCVirtualUserTable and use Postgreqsl it fails 
 with the following exception:
 ERROR 16:02:38,362 | james.virtualusertable-store | Error accessing database
 org.postgresql.util.PSQLException: ERROR: function concat(character varying, 
 unknown, character varying) does not exist
 at 
 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)
 at 
 org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1343)
 at 
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
 at 
 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)
 at 
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:350)
 at 
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:254)
 at 
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
 at 
 org.apache.james.vut.JDBCVirtualUserTable.mapAddressInternal(JDBCVirtualUserTable.java:250)
 at 
 org.apache.james.impl.vut.AbstractVirtualUserTable.mapAddress(AbstractVirtualUserTable.java:467)
 at 
 org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:122)
 at 
 org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:113)
 at 
 org.apache.james.transport.mailets.VirtualUserTable.processMail(VirtualUserTable.java:89)
 at 
 org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:76)
 at 
 org.apache.james.transport.camel.MailetProcessor.process(MailetProcessor.java:60)
 at 
 org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
 at 
 org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
 at 
 org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
 at 
 org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
 at 
 org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
 at 
 org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
 at 
 org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:51)
 at 
 org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
 at 
 org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
 at 
 org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
 at 
 org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
 at 
 org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)
 at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)
 at 
 org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)
 at 
 org.apache.camel.spring.spi.TransactionErrorHandler.processByRegularErrorHandler(TransactionErrorHandler.java:90)
 at 
 org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:81)
 at 
 

[jira] Created: (IMAP-136) Upgrade to OpenJPA 2.0.0

2010-04-27 Thread Norman Maurer (JIRA)
Upgrade to OpenJPA 2.0.0


 Key: IMAP-136
 URL: https://issues.apache.org/jira/browse/IMAP-136
 Project: JAMES Imap
  Issue Type: Task
  Components: JPA Mailbox
Reporter: Norman Maurer
Assignee: Norman Maurer




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



[jira] Commented: (IMAP-101) Add a file based Mailbox implementation using the maildir layout

2010-04-27 Thread Norman Maurer (JIRA)

[ 
https://issues.apache.org/jira/browse/IMAP-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12861429#action_12861429
 ] 

Norman Maurer commented on IMAP-101:


Filesystem transaction implementations:

http://commons.apache.org/transaction/
https://xadisk.dev.java.net/



 Add a file based Mailbox implementation using the maildir layout
 

 Key: IMAP-101
 URL: https://issues.apache.org/jira/browse/IMAP-101
 Project: JAMES Imap
  Issue Type: New Feature
  Components: File Mailbox
Reporter: Norman Maurer

 I would like to have support for file bases Mailbox using the maildir layout 
 in the IMAP project.
 More infos about the maildir layout:
 http://www.qmail.org/qmail-manual-html/man5/maildir.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



Re: [jira] Resolved: (JAMES-993) start/stop scripts creation during build

2010-04-27 Thread Eric Charles

I like ./james stop showing the log

INFO  19:04:42,071 | 
org.apache.james.container.spring.JamesServerApplicationContext | 
Closing 
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1: 
startup date [Tue Apr 27 18:30:50 CEST 2010]; root of context hierarchy
INFO  19:04:42,074 | org.apache.activemq.broker.BrokerService | ActiveMQ 
Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is 
shutting down

INFO  19:04:42,102 | james.imapserver | Dispose IMAP Service
INFO  19:04:42,105 | james.smtpserver | Dispose SMTP Service
INFO  19:04:42,105 | james.pop3server | Dispose POP3 Service
INFO  19:04:42,105 | james.remotemanager | Dispose RemoteManager Service
INFO  19:04:42,106 | 
org.apache.xbean.spring.context.ResourceXmlApplicationContext | Closing 
org.apache.xbean.spring.context.resourcexmlapplicationcont...@e59e40: 
startup date [Tue Apr 27 18:31:05 CEST 2010]; parent: 
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1
INFO  19:04:42,106 | org.apache.activemq.broker.BrokerService | ActiveMQ 
Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is 
shutting down
INFO  19:04:42,107 | org.apache.activemq.broker.TransportConnector | 
Connector openwire Stopped
INFO  19:04:42,113 | org.apache.activemq.broker.TransportConnector | 
Connector vm://localhost Stopped
INFO  19:04:42,545 | org.apache.activemq.broker.TransportConnector | 
Connector openwire Stopped
INFO  19:04:42,560 | org.apache.activemq.broker.BrokerService | ActiveMQ 
JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped
INFO  19:04:42,604 | org.apache.activemq.broker.BrokerService | ActiveMQ 
JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped



Really clean stop.

Tks Norman  Maven assembler plugin,

Eric


On 04/25/2010 09:31 PM, Norman Maurer (JIRA) wrote:

  [ 
https://issues.apache.org/jira/browse/JAMES-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Norman Maurer resolved JAMES-993.
-

 Fix Version/s: 3.0-M1
Resolution: Fixed

Done :)

   

start/stop scripts creation during build


 Key: JAMES-993
 URL: https://issues.apache.org/jira/browse/JAMES-993
 Project: JAMES Server
  Issue Type: New Feature
  Components: Build System
Affects Versions: Trunk
Reporter: Eric Charles
Assignee: Norman Maurer
Priority: Minor
 Fix For: 3.0-M1


Build should create start and stop scripts.
See http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
 
   



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



Re: [jira] Resolved: (JAMES-993) start/stop scripts creation during build

2010-04-27 Thread Eric Charles

Works fine on full 32 bits.

Building on 32-bits and deploying on 64-bits does not work:
- the generated wrapper-linux-x86-32 is obviously a 32-bits version
- running the wrapper-linux-x86-32 on 64-bits gives 
/bin/./wrapper-linux-x86-32: /lib/ld-linux.so.2: bad ELF interpreter: No 
such file or directory


Should I consider this as normal (I suppose so) ?
I will probably have to build on 64-bits.

Tks,

Eric


On 04/27/2010 07:28 PM, Eric Charles wrote:

I like ./james stop showing the log

INFO  19:04:42,071 | 
org.apache.james.container.spring.JamesServerApplicationContext | 
Closing 
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1: 
startup date [Tue Apr 27 18:30:50 CEST 2010]; root of context hierarchy
INFO  19:04:42,074 | org.apache.activemq.broker.BrokerService | 
ActiveMQ Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) 
is shutting down

INFO  19:04:42,102 | james.imapserver | Dispose IMAP Service
INFO  19:04:42,105 | james.smtpserver | Dispose SMTP Service
INFO  19:04:42,105 | james.pop3server | Dispose POP3 Service
INFO  19:04:42,105 | james.remotemanager | Dispose RemoteManager Service
INFO  19:04:42,106 | 
org.apache.xbean.spring.context.ResourceXmlApplicationContext | 
Closing 
org.apache.xbean.spring.context.resourcexmlapplicationcont...@e59e40: 
startup date [Tue Apr 27 18:31:05 CEST 2010]; parent: 
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1
INFO  19:04:42,106 | org.apache.activemq.broker.BrokerService | 
ActiveMQ Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) 
is shutting down
INFO  19:04:42,107 | org.apache.activemq.broker.TransportConnector | 
Connector openwire Stopped
INFO  19:04:42,113 | org.apache.activemq.broker.TransportConnector | 
Connector vm://localhost Stopped
INFO  19:04:42,545 | org.apache.activemq.broker.TransportConnector | 
Connector openwire Stopped
INFO  19:04:42,560 | org.apache.activemq.broker.BrokerService | 
ActiveMQ JMS Message Broker (localhost, 
ID:ppc005-48633-1272385866569-0:0) stopped
INFO  19:04:42,604 | org.apache.activemq.broker.BrokerService | 
ActiveMQ JMS Message Broker (localhost, 
ID:ppc005-48633-1272385866569-0:0) stopped



Really clean stop.

Tks Norman  Maven assembler plugin,

Eric


On 04/25/2010 09:31 PM, Norman Maurer (JIRA) wrote:
  [ 
https://issues.apache.org/jira/browse/JAMES-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
]


Norman Maurer resolved JAMES-993.
-

 Fix Version/s: 3.0-M1
Resolution: Fixed

Done :)


start/stop scripts creation during build


 Key: JAMES-993
 URL: https://issues.apache.org/jira/browse/JAMES-993
 Project: JAMES Server
  Issue Type: New Feature
  Components: Build System
Affects Versions: Trunk
Reporter: Eric Charles
Assignee: Norman Maurer
Priority: Minor
 Fix For: 3.0-M1


Build should create start and stop scripts.
See http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/



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




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



Re: [jira] Resolved: (JAMES-993) start/stop scripts creation during build

2010-04-27 Thread Norman Maurer
Hmm,

good question. I will have a look. BTW, you could install the libc32
bit libraries.

Bye,
Norman

2010/4/27 Eric Charles eric.char...@u-mangate.com:
 Works fine on full 32 bits.

 Building on 32-bits and deploying on 64-bits does not work:
 - the generated wrapper-linux-x86-32 is obviously a 32-bits version
 - running the wrapper-linux-x86-32 on 64-bits gives
 /bin/./wrapper-linux-x86-32: /lib/ld-linux.so.2: bad ELF interpreter: No
 such file or directory

 Should I consider this as normal (I suppose so) ?
 I will probably have to build on 64-bits.

 Tks,

 Eric


 On 04/27/2010 07:28 PM, Eric Charles wrote:

 I like ./james stop showing the log

 INFO  19:04:42,071 |
 org.apache.james.container.spring.JamesServerApplicationContext | Closing
 org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1:
 startup date [Tue Apr 27 18:30:50 CEST 2010]; root of context hierarchy
 INFO  19:04:42,074 | org.apache.activemq.broker.BrokerService | ActiveMQ
 Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is shutting
 down
 INFO  19:04:42,102 | james.imapserver | Dispose IMAP Service
 INFO  19:04:42,105 | james.smtpserver | Dispose SMTP Service
 INFO  19:04:42,105 | james.pop3server | Dispose POP3 Service
 INFO  19:04:42,105 | james.remotemanager | Dispose RemoteManager Service
 INFO  19:04:42,106 |
 org.apache.xbean.spring.context.ResourceXmlApplicationContext | Closing
 org.apache.xbean.spring.context.resourcexmlapplicationcont...@e59e40:
 startup date [Tue Apr 27 18:31:05 CEST 2010]; parent:
 org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1
 INFO  19:04:42,106 | org.apache.activemq.broker.BrokerService | ActiveMQ
 Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is shutting
 down
 INFO  19:04:42,107 | org.apache.activemq.broker.TransportConnector |
 Connector openwire Stopped
 INFO  19:04:42,113 | org.apache.activemq.broker.TransportConnector |
 Connector vm://localhost Stopped
 INFO  19:04:42,545 | org.apache.activemq.broker.TransportConnector |
 Connector openwire Stopped
 INFO  19:04:42,560 | org.apache.activemq.broker.BrokerService | ActiveMQ
 JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped
 INFO  19:04:42,604 | org.apache.activemq.broker.BrokerService | ActiveMQ
 JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped


 Really clean stop.

 Tks Norman  Maven assembler plugin,

 Eric


 On 04/25/2010 09:31 PM, Norman Maurer (JIRA) wrote:

      [
 https://issues.apache.org/jira/browse/JAMES-993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

 Norman Maurer resolved JAMES-993.
 -

     Fix Version/s: 3.0-M1
        Resolution: Fixed

 Done :)

 start/stop scripts creation during build
 

                 Key: JAMES-993
                 URL: https://issues.apache.org/jira/browse/JAMES-993
             Project: JAMES Server
          Issue Type: New Feature
          Components: Build System
    Affects Versions: Trunk
            Reporter: Eric Charles
            Assignee: Norman Maurer
            Priority: Minor
             Fix For: 3.0-M1


 Build should create start and stop scripts.
 See http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/


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



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



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



Re: [jira] Resolved: (JAMES-993) start/stop scripts creation during build

2010-04-27 Thread Eric Charles

Yes.

yum install glibc.i686 installed the needed lib on fedora and wrapper 
works fine.

The equivalents for ubuntu,... should be easy to find.
Maybe something to remind for our future 3.0.M1 documentation :)

Tks Norman,

Eric



On 04/27/2010 07:56 PM, Norman Maurer wrote:

Hmm,

good question. I will have a look. BTW, you could install the libc32
bit libraries.

Bye,
Norman

2010/4/27 Eric Charleseric.char...@u-mangate.com:
   

Works fine on full 32 bits.

Building on 32-bits and deploying on 64-bits does not work:
- the generated wrapper-linux-x86-32 is obviously a 32-bits version
- running the wrapper-linux-x86-32 on 64-bits gives
/bin/./wrapper-linux-x86-32: /lib/ld-linux.so.2: bad ELF interpreter: No
such file or directory

Should I consider this as normal (I suppose so) ?
I will probably have to build on 64-bits.

Tks,

Eric


On 04/27/2010 07:28 PM, Eric Charles wrote:
 

I like ./james stop showing the log

INFO  19:04:42,071 |
org.apache.james.container.spring.JamesServerApplicationContext | Closing
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1:
startup date [Tue Apr 27 18:30:50 CEST 2010]; root of context hierarchy
INFO  19:04:42,074 | org.apache.activemq.broker.BrokerService | ActiveMQ
Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is shutting
down
INFO  19:04:42,102 | james.imapserver | Dispose IMAP Service
INFO  19:04:42,105 | james.smtpserver | Dispose SMTP Service
INFO  19:04:42,105 | james.pop3server | Dispose POP3 Service
INFO  19:04:42,105 | james.remotemanager | Dispose RemoteManager Service
INFO  19:04:42,106 |
org.apache.xbean.spring.context.ResourceXmlApplicationContext | Closing
org.apache.xbean.spring.context.resourcexmlapplicationcont...@e59e40:
startup date [Tue Apr 27 18:31:05 CEST 2010]; parent:
org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1
INFO  19:04:42,106 | org.apache.activemq.broker.BrokerService | ActiveMQ
Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is shutting
down
INFO  19:04:42,107 | org.apache.activemq.broker.TransportConnector |
Connector openwire Stopped
INFO  19:04:42,113 | org.apache.activemq.broker.TransportConnector |
Connector vm://localhost Stopped
INFO  19:04:42,545 | org.apache.activemq.broker.TransportConnector |
Connector openwire Stopped
INFO  19:04:42,560 | org.apache.activemq.broker.BrokerService | ActiveMQ
JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped
INFO  19:04:42,604 | org.apache.activemq.broker.BrokerService | ActiveMQ
JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) stopped


Really clean stop.

Tks Norman  Maven assembler plugin,

Eric


On 04/25/2010 09:31 PM, Norman Maurer (JIRA) wrote:
   

  [
https://issues.apache.org/jira/browse/JAMES-993?page=m.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Norman Maurer resolved JAMES-993.
-

 Fix Version/s: 3.0-M1
Resolution: Fixed

Done :)

 

start/stop scripts creation during build


 Key: JAMES-993
 URL: https://issues.apache.org/jira/browse/JAMES-993
 Project: JAMES Server
  Issue Type: New Feature
  Components: Build System
Affects Versions: Trunk
Reporter: Eric Charles
Assignee: Norman Maurer
Priority: Minor
 Fix For: 3.0-M1


Build should create start and stop scripts.
See http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
   


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

   


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


 

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

   



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



Re: [jira] Resolved: (JAMES-993) start/stop scripts creation during build

2010-04-27 Thread Norman Maurer
Yep, in ubuntu it should be apt-get install lib32-dev

Thx,
Norman


2010/4/27 Eric Charles eric.char...@u-mangate.com:
 Yes.

 yum install glibc.i686 installed the needed lib on fedora and wrapper
 works fine.
 The equivalents for ubuntu,... should be easy to find.
 Maybe something to remind for our future 3.0.M1 documentation :)

 Tks Norman,

 Eric



 On 04/27/2010 07:56 PM, Norman Maurer wrote:

 Hmm,

 good question. I will have a look. BTW, you could install the libc32
 bit libraries.

 Bye,
 Norman

 2010/4/27 Eric Charleseric.char...@u-mangate.com:


 Works fine on full 32 bits.

 Building on 32-bits and deploying on 64-bits does not work:
 - the generated wrapper-linux-x86-32 is obviously a 32-bits version
 - running the wrapper-linux-x86-32 on 64-bits gives
 /bin/./wrapper-linux-x86-32: /lib/ld-linux.so.2: bad ELF interpreter: No
 such file or directory

 Should I consider this as normal (I suppose so) ?
 I will probably have to build on 64-bits.

 Tks,

 Eric


 On 04/27/2010 07:28 PM, Eric Charles wrote:


 I like ./james stop showing the log

 INFO  19:04:42,071 |
 org.apache.james.container.spring.JamesServerApplicationContext |
 Closing
 org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1:
 startup date [Tue Apr 27 18:30:50 CEST 2010]; root of context hierarchy
 INFO  19:04:42,074 | org.apache.activemq.broker.BrokerService | ActiveMQ
 Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is
 shutting
 down
 INFO  19:04:42,102 | james.imapserver | Dispose IMAP Service
 INFO  19:04:42,105 | james.smtpserver | Dispose SMTP Service
 INFO  19:04:42,105 | james.pop3server | Dispose POP3 Service
 INFO  19:04:42,105 | james.remotemanager | Dispose RemoteManager Service
 INFO  19:04:42,106 |
 org.apache.xbean.spring.context.ResourceXmlApplicationContext | Closing
 org.apache.xbean.spring.context.resourcexmlapplicationcont...@e59e40:
 startup date [Tue Apr 27 18:31:05 CEST 2010]; parent:
 org.apache.james.container.spring.jamesserverapplicationcont...@12dacd1
 INFO  19:04:42,106 | org.apache.activemq.broker.BrokerService | ActiveMQ
 Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0) is
 shutting
 down
 INFO  19:04:42,107 | org.apache.activemq.broker.TransportConnector |
 Connector openwire Stopped
 INFO  19:04:42,113 | org.apache.activemq.broker.TransportConnector |
 Connector vm://localhost Stopped
 INFO  19:04:42,545 | org.apache.activemq.broker.TransportConnector |
 Connector openwire Stopped
 INFO  19:04:42,560 | org.apache.activemq.broker.BrokerService | ActiveMQ
 JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0)
 stopped
 INFO  19:04:42,604 | org.apache.activemq.broker.BrokerService | ActiveMQ
 JMS Message Broker (localhost, ID:ppc005-48633-1272385866569-0:0)
 stopped


 Really clean stop.

 Tks Norman  Maven assembler plugin,

 Eric


 On 04/25/2010 09:31 PM, Norman Maurer (JIRA) wrote:


      [

 https://issues.apache.org/jira/browse/JAMES-993?page=m.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

 Norman Maurer resolved JAMES-993.
 -

     Fix Version/s: 3.0-M1
        Resolution: Fixed

 Done :)



 start/stop scripts creation during build
 

                 Key: JAMES-993
                 URL: https://issues.apache.org/jira/browse/JAMES-993
             Project: JAMES Server
          Issue Type: New Feature
          Components: Build System
    Affects Versions: Trunk
            Reporter: Eric Charles
            Assignee: Norman Maurer
            Priority: Minor
             Fix For: 3.0-M1


 Build should create start and stop scripts.
 See http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/


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



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




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




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



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



svn commit: r938618 - in /james/imap/trunk: deployment/src/test/java/org/apache/james/imap/functional/inmemory/ deployment/src/test/java/org/apache/james/imap/functional/jpa/ jcr/src/main/java/org/apa

2010-04-27 Thread norman
Author: norman
Date: Tue Apr 27 19:43:40 2010
New Revision: 938618

URL: http://svn.apache.org/viewvc?rev=938618view=rev
Log:
Don't cache Mailboxes so we don't get problems with GC (IMAP-131). Not all 
tests passing yet, so work in progress

Added:

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/MailboxSessionEntityManagerFactory.java

james/imap/trunk/store/src/main/java/org/apache/james/imap/store/DelegatingMailboxListener.java
Removed:
james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/JPAUtils.java
Modified:

james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/inmemory/InMemoryHostSystem.java

james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jpa/JPAHostSystem.java

james/imap/trunk/jcr/src/main/java/org/apache/james/imap/jcr/JCRGlobalUserMailboxManager.java
james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/JPAMailbox.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/JPAMailboxManager.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/JPASubscriptionManager.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/JPAMailboxMapper.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/mail/openjpa/OpenJPAMailboxMapper.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/openjpa/OpenJPAMailbox.java

james/imap/trunk/jpa/src/main/java/org/apache/james/imap/jpa/openjpa/OpenJPAMailboxManager.java

james/imap/trunk/memory/src/main/java/org/apache/james/imap/inmemory/InMemoryMailboxManager.java

james/imap/trunk/memory/src/main/java/org/apache/james/imap/inmemory/InMemoryStoreMailbox.java

james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailbox.java

james/imap/trunk/store/src/main/java/org/apache/james/imap/store/StoreMailboxManager.java

Modified: 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/inmemory/InMemoryHostSystem.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/inmemory/InMemoryHostSystem.java?rev=938618r1=938617r2=938618view=diff
==
--- 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/inmemory/InMemoryHostSystem.java
 (original)
+++ 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/inmemory/InMemoryHostSystem.java
 Tue Apr 27 19:43:40 2010
@@ -31,7 +31,7 @@ import org.apache.james.test.functional.
 
 public class InMemoryHostSystem extends ImapHostSystem {
 
-private final StoreMailboxManager mailboxManager;
+private final InMemoryMailboxManager mailboxManager;
 private final InMemoryUserManager userManager; 
 
 static HostSystem build() throws Exception {
@@ -57,7 +57,7 @@ public class InMemoryHostSystem extends 
 
 @Override
 protected void resetData() throws Exception {
-//mailboxManager.deleteEverything();
+mailboxManager.deleteEverything();
 }
 
 }

Modified: 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jpa/JPAHostSystem.java
URL: 
http://svn.apache.org/viewvc/james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jpa/JPAHostSystem.java?rev=938618r1=938617r2=938618view=diff
==
--- 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jpa/JPAHostSystem.java
 (original)
+++ 
james/imap/trunk/deployment/src/test/java/org/apache/james/imap/functional/jpa/JPAHostSystem.java
 Tue Apr 27 19:43:40 2010
@@ -30,6 +30,7 @@ import org.apache.james.imap.encode.main
 import org.apache.james.imap.functional.ImapHostSystem;
 import org.apache.james.imap.functional.InMemoryUserManager;
 import org.apache.james.imap.jpa.JPASubscriptionManager;
+import org.apache.james.imap.jpa.MailboxSessionEntityManagerFactory;
 import org.apache.james.imap.jpa.openjpa.OpenJPAMailboxManager;
 import org.apache.james.imap.mailbox.MailboxSession;
 import org.apache.james.imap.main.DefaultImapDecoderFactory;
@@ -68,7 +69,8 @@ public class JPAHostSystem extends ImapH
 
 userManager = new InMemoryUserManager();
 entityManagerFactory = 
OpenJPAPersistence.getEntityManagerFactory(properties);
-mailboxManager = new OpenJPAMailboxManager(userManager, new 
JPASubscriptionManager(entityManagerFactory), entityManagerFactory);
+MailboxSessionEntityManagerFactory factory = new 
MailboxSessionEntityManagerFactory(entityManagerFactory);
+mailboxManager = new OpenJPAMailboxManager(userManager, new 
JPASubscriptionManager(factory), factory);
 
 final DefaultImapProcessorFactory defaultImapProcessorFactory = new 
DefaultImapProcessorFactory();
 resetUserMetaData();

Modified: 

Re: [IMAP] Over-designed /Some thoughts ?

2010-04-27 Thread Robert Burrell Donkin
On Tue, Apr 27, 2010 at 10:42 AM, Norman Maurer nor...@apache.org wrote:
 Hi all,

 after spending some time over the weekend to fix some issues with IMAP
 I started to feel its a big over-designed ...

i started out with that impression. after digging around i came to the
conclusion that IMAP has some annoying requirements...

 I think it would be a good think to simplify the api a bit to make
 it a bit easier to understand. So some points which came to me mind:

 1) UidChangeTracking:

 Is this really necessary ? It does some kind of caching but I don't
 see something else for which its useful. Why not just fire the events
 directly with a shared MailboxEventDispatcher which is the same for
 all Mailboxes?

i'm not convinced it's needed but beware...

this is one of the few areas retained from the design before i started
reworking. i had hoped to replace it but never really worked out how
to do that without crippling performance or breaking IMAP.

 2) Global Mailbox caching

 At the moment the Mailbox is cached in a HashMap. The problem with
 this is it will never get recycled by the GC. This can generate a OOM
 over long time

i run IMAP with approx 1.5G spread over around a hundred mailboxes.
i've never had an OOM. so i never bothered changing this.

 The other problem with this is, the Mailbox should be tight to the
 MailboxSession. Let me explain why. For example in JCR we could use
 the User/Pass which is bound to the MailboxSession to access different
 parts of the JCR Repository etc..

i thought this too originally but i couldn't work out how to do so
without cripple performance or breaking IMAP.

IIRC these are related issues. the essential function is caching and
synchronization. in performances terms, i think much higher
performance could be achieved by replacement by something asynchronous
and event driven using a blocking queue. this would be a substantial
change.

- robert

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



Re: GSOC Student Tim Erwin accepted

2010-04-27 Thread Robert Burrell Donkin
On Tue, Apr 27, 2010 at 10:17 AM, Tim-Christian Mundt d...@tim-erwin.de wrote:
 Thanks Norman for the welcome. I've been here on the mailing list for some
 weeks, so at least I'm not totally foreign to most of you. I'm excited about
 this opportunity and hope the next few month will be beneficial for all of
 us.
 While Norman is my official mentor, of course all of you are always invited
 to give comments, critics and suggestions.
 The next few weeks are intended
 for community bonding, we will figure out how my little project should be
 integrated into the James project. I'm sure, this won't be a big thing -
 communication via mailing list seems to work great.

welcome :-)

- robert

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



Re: [IMAP] Over-designed /Some thoughts ?

2010-04-27 Thread Norman Maurer
Hi Robert,

nice to see you are back ;)... Comments inline..

2010/4/27 Robert Burrell Donkin robertburrelldon...@gmail.com:
 On Tue, Apr 27, 2010 at 10:42 AM, Norman Maurer nor...@apache.org wrote:
 Hi all,

 after spending some time over the weekend to fix some issues with IMAP
 I started to feel its a big over-designed ...

 i started out with that impression. after digging around i came to the
 conclusion that IMAP has some annoying requirements..

Oh well... its some kind of a pita.


 I think it would be a good think to simplify the api a bit to make
 it a bit easier to understand. So some points which came to me mind:

 1) UidChangeTracking:

 Is this really necessary ? It does some kind of caching but I don't
 see something else for which its useful. Why not just fire the events
 directly with a shared MailboxEventDispatcher which is the same for
 all Mailboxes?

 i'm not convinced it's needed but beware...

 this is one of the few areas retained from the design before i started
 reworking. i had hoped to replace it but never really worked out how
 to do that without crippling performance or breaking IMAP.

I'm currently testing imap without the UidChangeTracker and so far it
seems like its not really slower then before..



 2) Global Mailbox caching

 At the moment the Mailbox is cached in a HashMap. The problem with
 this is it will never get recycled by the GC. This can generate a OOM
 over long time

 i run IMAP with approx 1.5G spread over around a hundred mailboxes.
 i've never had an OOM. so i never bothered changing this.

I think you use Torque right ? Maybe it behave a bit different there.
I'm using JPA and its reproducable with feeding a mailbox with ca 1
million emails. You will see the memory usage just grow and grow..
When I took a heap dump it seems like the OpenJPA objects where never
released, because the where hold in the HashMap.



 The other problem with this is, the Mailbox should be tight to the
 MailboxSession. Let me explain why. For example in JCR we could use
 the User/Pass which is bound to the MailboxSession to access different
 parts of the JCR Repository etc..

 i thought this too originally but i couldn't work out how to do so
 without cripple performance or breaking IMAP.

Sure good performance is a must, but I would prefer to have a good
api first ;)


 IIRC these are related issues. the essential function is caching and
 synchronization. in performances terms, i think much higher
 performance could be achieved by replacement by something asynchronous
 and event driven using a blocking queue. this would be a substantial
 change.


I agree with you here. But as you outlined already, its not a easy
thing todo, without rewrite a lot of stuff.

I even tend to believe we should do something similar to what we have
in SMTP/POP3.  Just have some kind of LineHandler which push data in
the processor when a CRLF was detected and so not using blocking
streams as input at all.

 - robert

Thx,
Norman

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



svn commit: r938789 - /james/server/trunk/spring-deployment/pom.xml

2010-04-27 Thread norman
Author: norman
Date: Wed Apr 28 05:58:58 2010
New Revision: 938789

URL: http://svn.apache.org/viewvc?rev=938789view=rev
Log:
Add wrapper for all kind of operation versions by default. So it not depend on 
the os it was build on. 

Modified:
james/server/trunk/spring-deployment/pom.xml

Modified: james/server/trunk/spring-deployment/pom.xml
URL: 
http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/pom.xml?rev=938789r1=938788r2=938789view=diff
==
--- james/server/trunk/spring-deployment/pom.xml (original)
+++ james/server/trunk/spring-deployment/pom.xml Wed Apr 28 05:58:58 2010
@@ -91,6 +91,18 @@
   generatorConfigurations
 generatorConfiguration
   generatorjsw/generator
+  includes
+includelinux-x86-32/include
+includelinux-x86-64/include
+includelinux-ppc-64/include
+includemacosx-x86-universal-32/include
+includemacosx-ppc-32/include
+includesolaris-sparc-32/include
+includesolaris-sparc-64/include
+includesolaris-x86-32/include
+includewindows-x86-32/include  
+  /includes
+  
   configuration
 property
   nameconfiguration.directory.in.classpath.first/name



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