I've been developing a blockless webapp that has the
sitemap context path set to root:

<bean id="mydomain.com.mything.service"
   class="org.apache.cocoon.sitemap.SitemapServlet">
   <servlet:context mount-path="" context-path="/">
</bean>

When I updated from cocoon-core-2.2.0 to 2.2.1, I got this
error after starting jetty:

java.lang.RuntimeException: Failed to obtain blockContexts Map.
The most probable cause is that BlockDeploymentServletContextListener
has not been executed. Check your web.xml or upgrade your Cocoon
Maven plug-in.

I updated my cocoon-maven-plugin to the most recent 1.0.0-RC1-SNAPSHOT.
Then I added this listener to web.xml:

<listener>
<description>Declare a context listener that installs all blocks.</description>
   <listener-class>
       org.apache.cocoon.blockdeployment.BlockDeploymentServletContextListener
   </listener-class>
</listener>

I didn't think I needed it because my webapp doesn't host any blocks.

Jetty starts "quietly" now, but when the browser visits the page:

   http://localhost:8888/

I get this error:

   Could not create configuration for TreeProcesoor;
   nested exception is java.net.MalformedURLException: no protocol: /

The SitemapServelt doesn't seem to like the context-path set to "/"
Is there some protocol I should use "xxx:/" to start the webapp with
the context at root?

Thanks to all,

-Hugh Sparks, [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to