Return-Path: X-Original-To: apmail-jspwiki-user-archive@www.apache.org Delivered-To: apmail-jspwiki-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D09BD1173F for ; Tue, 8 Jul 2014 10:25:15 +0000 (UTC) Received: (qmail 46260 invoked by uid 500); 8 Jul 2014 10:25:15 -0000 Delivered-To: apmail-jspwiki-user-archive@jspwiki.apache.org Received: (qmail 46237 invoked by uid 500); 8 Jul 2014 10:25:15 -0000 Mailing-List: contact user-help@jspwiki.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jspwiki.apache.org Delivered-To: mailing list user@jspwiki.apache.org Received: (qmail 46224 invoked by uid 99); 8 Jul 2014 10:25:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 10:25:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of juanpablo.santos@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2014 10:25:11 +0000 Received: by mail-we0-f180.google.com with SMTP id x48so5706659wes.25 for ; Tue, 08 Jul 2014 03:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8QscaLhIww/qMgNQ3ozQ+XMlY/HUwk1T0vDUmS/UBi8=; b=JWumWuOq0bBB8y/mcY0HzI2vlJR5dvwxFRCyvmQj0HlrQ0DOj6LdRlGeNtOOIIQTHb v88G6RLVjDcjIRcxuz8lOxSixpKOiCVaYTs7rrcGnGcvvXFlyWpnyLEmwfInX22f0H/a vm6AKSpVvfM2jjBDPBNRCDA5AhOlQGE6/DRMG8WeseEMsRZU0XpkQJnv6rr572J+IzPX mSGdlSR2dDEvkagD1E4UjyltTFgXI/kkh4xMeAHk6pZCgIulx4BAWADiFMa6M7ArlNWY wGFk9UQjqTtj9kA/J8NLK37byB9QYJxo9qzVimA00xrA2LjJ9eGiGw/6Ea1QsYZaZCLm SCZQ== MIME-Version: 1.0 X-Received: by 10.194.200.3 with SMTP id jo3mr2938543wjc.110.1404815087581; Tue, 08 Jul 2014 03:24:47 -0700 (PDT) Received: by 10.217.162.199 with HTTP; Tue, 8 Jul 2014 03:24:47 -0700 (PDT) In-Reply-To: <53BBC19C.4090006@davekoelmeyer.co.nz> References: <53BB6480.1020700@davekoelmeyer.co.nz> <53BBB119.5090804@pingtoo.com> <53BBC19C.4090006@davekoelmeyer.co.nz> Date: Tue, 8 Jul 2014 12:24:47 +0200 Message-ID: Subject: Re: Error when building JSPWiki From: =?UTF-8?Q?Juan_Pablo_Santos_Rodr=C3=ADguez?= To: user@jspwiki.apache.org Content-Type: multipart/alternative; boundary=047d7bae4690453e5b04fdac00ee X-Virus-Checked: Checked by ClamAV on apache.org --047d7bae4690453e5b04fdac00ee Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Dave, yes, tests should run ok on a fresh install. Looking at the source, the test is trying to create the directory ${java.io.tmpdir.}/non-existent-directory and check that it has been able to create it. Would you mind checking if you have rw on that folder? Looking at AbstractFileProvider:110, seems that the test is failing due to being unable to create that folder. Maybe we should change that test to look into "./target/non-existent-directory" + System.currentTimeMillis() instead, WDYT? br, juan pablo On Tue, Jul 8, 2014 at 12:02 PM, Dave Koelmeyer < dave.koelmeyer@davekoelmeyer.co.nz> wrote: > > On 08/07/14 20:51, Brian Burch wrote: > >> On 08/07/14 08:35, Juan Pablo Santos Rodr=C3=ADguez wrote: >> >>> >>> within that directory you'll see a bunch of txt and xml files, one of >>> each >>> type for every junit file; the xml ones have the same information as th= e >>> txt ones, but they're in different format, so they can be consumed by >>> other >>> tools. >>> >>> As for the txt files, you'll see most of them weight about 1k, those ar= e >>> files corresponding to tests which have ended successfully. You'll sure= ly >>> have on txt file weighting a little more (say 5 or 6k, it depends on th= e >>> test file), which will contain the failing test. It should also appear = on >>> your console, somewhat above the "build failure" message >>> >>> >> grep -lir failed /home/dave/jspwiki/jspwiki- >> war/target/surefire-reports/*.txt >> >> ought to identify the txt files containing the test that failed. You onl= y >> need to look at that one. >> >> > Awesome, thanks all. The offending test appears to be: > > /home/dave/jspwiki/jspwiki-war/target/surefire-reports/org.apache.wiki. > WikiEngineTest.txt > > > And the contents: > > ------------------------------------------------------------ > ------------------- > Test set: org.apache.wiki.WikiEngineTest > ------------------------------------------------------------ > ------------------- > Tests run: 40, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.894 se= c > <<< FAILURE! - in org.apache.wiki.WikiEngineTest > testNonExistentDirectory(org.apache.wiki.WikiEngineTest) Time elapsed: > 0.025 sec <<< ERROR! > org.apache.wiki.api.exceptions.WikiException: JSPWiki: Unable to load and > setup properties from jspwiki.properties. Failed to start; please check l= og > files for bett > er information. > at org.apache.wiki.providers.AbstractFileProvider.initialize( > AbstractFileProvider.java:110) > at org.apache.wiki.providers.CachingProvider.initialize( > CachingProvider.java:146) > at org.apache.wiki.PageManager.(PageManager.java:190) > at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown > Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( > DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at org.apache.wiki.util.ClassUtil.getMappedObject(ClassUtil.java:359) > at org.apache.wiki.WikiEngine.initialize(WikiEngine.java:563) > at org.apache.wiki.WikiEngine.(WikiEngine.java:430) > at org.apache.wiki.TestEngine.(TestEngine.java:127) > at org.apache.wiki.WikiEngineTest.testNonExistentDirectory( > WikiEngineTest.java:98) > > > Is there some manual configuration I need to perform somewhere, or is > running 'mvn package' supposed to "just work"? > > Cheers, > Dave > > > > > > > > > --047d7bae4690453e5b04fdac00ee--