jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: [VOTE] Release Apache Jackrabbit 2.2.4
Date Mon, 14 Feb 2011 09:50:41 GMT
Hi,

The H2 database server thinks that the localhost connection is actually
coming from another machine, and therefore reject it (for security
reasons). To disable this check, apply the following patch:

### Eclipse Workspace Patch 1.0
#P jackrabbit-core
Index: src/test/java/org/apache/jackrabbit/core/cluster/DbClusterTest.java
===================================================================
--- 
src/test/java/org/apache/jackrabbit/core/cluster/DbClusterTest.java (revisi
on 1067983)
+++ 
src/test/java/org/apache/jackrabbit/core/cluster/DbClusterTest.java (workin
g copy)
@@ -37,9 +37,9 @@
     public void setUp() throws Exception {
         deleteAll();
         server1 = Server.createTcpServer("-tcpPort", "9001", "-baseDir",
-                "./target/dbClusterTest/db1").start();
+                "./target/dbClusterTest/db1", "-tcpAllowOthers").start();
         server2 = Server.createTcpServer("-tcpPort", "9002", "-baseDir",
-                "./target/dbClusterTest/db2").start();
+                "./target/dbClusterTest/db2", "-tcpAllowOthers").start();
         FileUtils.copyFile(
                 new
File("./src/test/resources/org/apache/jackrabbit/core/cluster/repository-h2
.xml"),
                 new File("./target/dbClusterTest/node1/repository.xml"));



I will apply it in the trunk if this solves the problem for you.

Regards,
Thomas


Mime
View raw message