Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 33438 invoked from network); 3 Oct 2005 00:32:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2005 00:32:56 -0000 Received: (qmail 54515 invoked by uid 500); 3 Oct 2005 00:32:56 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 54458 invoked by uid 500); 3 Oct 2005 00:32:55 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 54447 invoked by uid 99); 3 Oct 2005 00:32:55 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 02 Oct 2005 17:32:55 -0700 Received: (qmail 33414 invoked by uid 65534); 3 Oct 2005 00:32:35 -0000 Message-ID: <20051003003235.33413.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r293187 - /cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java Date: Mon, 03 Oct 2005 00:32:34 -0000 To: cvs@cocoon.apache.org From: antonio@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: antonio Date: Sun Oct 2 17:32:31 2005 New Revision: 293187 URL: http://svn.apache.org/viewcvs?rev=293187&view=rev Log: Show a better message: The block does not run in java 1.3. Modified: cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java Modified: cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java URL: http://svn.apache.org/viewcvs/cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java?rev=293187&r1=293186&r2=293187&view=diff ============================================================================== --- cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java (original) +++ cocoon/blocks/jcr/trunk/java/org/apache/cocoon/jcr/JackrabbitRepository.java Sun Oct 2 17:32:31 2005 @@ -18,6 +18,7 @@ import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.cocoon.components.source.SourceUtil; +import org.apache.commons.lang.SystemUtils; import org.apache.excalibur.source.Source; import org.apache.excalibur.source.SourceResolver; import org.apache.excalibur.source.impl.FileSource; @@ -51,6 +52,12 @@ public void configure(Configuration config) throws ConfigurationException { super.configure(config); + // Java VM must be at least 1.4 + if (SystemUtils.isJavaVersionAtLeast(140) == false) { + String message = "The jcr block needs at least a java VM version 1.4 to run properly. Plase update to a newer java or exclude the jcr block from your Cocoon block configuration."; + getLogger().error(message); + throw new ConfigurationException(message); + } String homeURI = config.getChild("home").getAttribute("src"); String homePath;