Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 99341 invoked from network); 12 Nov 2007 04:21:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 04:21:02 -0000 Received: (qmail 82770 invoked by uid 500); 12 Nov 2007 04:20:50 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 82753 invoked by uid 500); 12 Nov 2007 04:20:50 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 82744 invoked by uid 99); 12 Nov 2007 04:20:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2007 20:20:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of murray07@altheim.com designates 69.90.72.72 as permitted sender) Received: from [69.90.72.72] (HELO athens.clusterspan.net) (69.90.72.72) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 04:20:51 +0000 Received: (qmail 5624 invoked from network); 11 Nov 2007 23:20:30 -0500 Received: from patrick183-w3.natlib.govt.nz (HELO ?10.44.43.192?) (192.122.171.18) by athens.clusterspan.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 11 Nov 2007 23:20:30 -0500 Message-ID: <4737D48B.6060601@altheim.com> Date: Mon, 12 Nov 2007 17:20:27 +1300 From: Murray Altheim User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: jspwiki-dev@incubator.apache.org Subject: Re: Standalone parser: how to? References: <13595056.post@talk.nabble.com> <1194553524.18299.7.camel@barca> <1194607310.19351.5.camel@barca> <87ode37ipy.fsf@iki.fi> <4734585B.2090703@altheim.com> <47346649.2010305@altheim.com> <41E8052C-54EC-4D30-888F-137B60E50092@ecyrd.com> In-Reply-To: <41E8052C-54EC-4D30-888F-137B60E50092@ecyrd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [moved over from jspwiki-users] Murray Altheim wrote on jspwiki-users: > I seem to remember there was a recent question on obtaining an instance > of a JSPWikiMarkupParser, and now that I'm trying to do exactly that it > seems there isn't any way to do so... > > There's only one constructor for the class and that requires a > WikiContext, which throws an IllegalArgumentException if either the > WikiEngine or HttpServletRequest are null, which seems like an > insurmountable barrier. It seems like there a number of places where > one would hit an NPE on reference to a null m_engine. What to do in > those cases where the WikiEngine seems necessary is of course unknown. > > Anyone been able to create a parser without a WikiEngine or HTTP > server? I am running this as an embedded application but I'd like > access to a parser when neither the WikiEngine nor Jetty are active. > Another alternative would be to create a dummy WikiEngine outside of > the context of Jetty. Janne Jalkanen replied: > > Yes, you must create a WikiEngine. However a dummy one is completely > fine. This is a dependency that we should probably get rid of in 3.0 > timeframe anyway. > > I would recommend using the RenderingManager interfaces instead of using > the MarkupParser directly, but that's more or less a matter of taste. [...] > You can have multiple WikiEngines, no worries. You probably want to be > careful a bit on the configuration you pass to the WikiEngine. Okay, I've gone through the exercise of creating a partial installation that only includes a few bits and pieces, where the properties file is written by the parent application. As might be expected in this process I keep hitting exceptions and then resolving them, with the WikiEngine asking for more and more... Now it wants web.xml. How unreasonable! (and where to put it? It isn't found in a 'WEB-INF' directory for some reason). I just want a standalone JSPWikiMarkupParser, not the whole servlet framework. Has anyone actually created a JSPWikiMarkupParser without the rest? or at least only a WikiEngine? I'm kinda wondering what the minimal setup is when one doesn't need any pages, any templates, any logs, anything except a parser... Murray ........................................................................... Murray Altheim === = = http://www.altheim.com/murray/ = = === SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk = = = = Boundless wind and moon - the eye within eyes, Inexhaustible heaven and earth - the light beyond light, The willow dark, the flower bright - ten thousand houses, Knock at any door - there's one who will respond. -- The Blue Cliff Record