You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mathias Reem <m....@gmx.net> on 2010/04/13 12:35:48 UTC
cocoon-block-deployment
Hi
I want to use version 1.2.0 of cocoon-servlet-service-impl, because of
the NPE fix that was added to that version. As c-s-s-i depends on
cocoon-jnet (1.1.0) I've also added that jar to my libs. But now I've
got the problem, that my Application won't start anymore, I get a MUE:
Invocation of init method failed; nested exception is
java.net.MalformedURLException: The contextPath must be empty or start
with '/' blockcontext:/websys
Therefore I've removed 'blockcontext:' form the the context-path as you can see:
<bean name="websys.service" class="org.apache.cocoon.sitemap.SitemapServlet">
<servlet:context mount-path="/" context-path="/websys/"/>
</bean>
But now I get IOException: Couldn't find the sitemap /sitemap.xmap
How do I get the context-path to work again? Any clues or even documentation?
thx
Mathias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: cocoon-block-deployment
Posted by "Mark H. Wood" <mw...@IUPUI.Edu>.
On Tue, Apr 13, 2010 at 12:35:48PM +0200, Mathias Reem wrote:
> I want to use version 1.2.0 of cocoon-servlet-service-impl, because of
> the NPE fix that was added to that version. As c-s-s-i depends on
> cocoon-jnet (1.1.0) I've also added that jar to my libs. But now I've
> got the problem, that my Application won't start anymore, I get a MUE:
>
> Invocation of init method failed; nested exception is
> java.net.MalformedURLException: The contextPath must be empty or start
> with '/' blockcontext:/websys
Oh, does that sound familiar.
See discussion of related issues in thread Message-ID:
<OF...@workflow.at>
on Tue, 2 Feb 2010 19:44:01 +0100, including the DSpace JIRA issue
noted there, which has extensive discussion. I think perhaps forcing
the cocoon-linkrewriter-impl version addressed the supposedly
malformed contextPath, but that's just a guess -- as yet I'm far from
having my head wrapped around Cocoon's internals.
DSpace 1.6.0 has been out for a while now, uses
cocoon-servlet-service-impl:1.2.0 and cocoon-linkrewriter-impl:1.0.0,
and doesn't seem to be triggering any reports of these problems.
--
Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu
Balance your desire for bells and whistles with the reality that only a
little more than 2 percent of world population has broadband.
-- Ledford and Tyler, _Google Analytics 2.0_