You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robby Pelssers <ro...@ciber.com> on 2009/09/23 22:39:21 UTC

RE: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

True… the same here… but if I had no prior maven knowledge this might be a bit trickier to spot.  I guess it’s time to have that documentation published again… HINT HINT.

 

Robby

 

From: Dominic Mitchell [mailto:dom@happygiraffe.net] 
Sent: Wednesday, September 23, 2009 10:30 PM
To: users@cocoon.apache.org
Subject: Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

 

On Wed, Sep 23, 2009 at 9:18 PM, Steven D. Majewski <sd...@virginia.edu> wrote:

	Thank You!!
	
	Both "1.0.0" and "1.0-SNAPSHOT" are mismatched in the documentation.
	I was following the instructions a little too exactly!
	
	I wondered about this mismatch at the time, but I thought that
	perhaps "SNAPSHOT" was a keyword directive of some sort
	( like HEAD or PREV in subversion ) so I went ahead and blindly
	follower the directions.
	
	I was continuing to the myCocoonWebApp and was hitting the same
	complaint from maven. After setting all of the dependencies to
	use "1.0.0" , that also now works.

 

Doh.  This was something that I implicitly corrected when I did it, because I'm used to maven.  Sorry I didn't spot it for you!

 

-Dom 


Re: problems with "Getting Started" 2.2 [was: Starting out with Cocoon 2.2]

Posted by "Steven D. Majewski" <sd...@virginia.edu>.
On Sep 23, 2009, at 4:39 PM, Robby Pelssers wrote:

> True… the same here… but if I had no prior maven knowledge this  
> might be a bit trickier to spot.  I guess it’s time to have that  
> documentation published again… HINT HINT.
>
> Robby
>


This may also need updating:

http://cocoon.apache.org/2.2/1362_1_1.html:

Mounting your block at the root level
You can mount your block at the root level in the application URI  
space, so that instead of using (for example) the URIhttp://localhost:8888/myBlock1/foo/bar 
  to request a page, you would request it athttp://localhost:8888/foo/bar 
.
To do this, edit myBlock1/src/main/resources/META-INF/cocoon/spring/ 
blockServlet.xml , and change the element
<property name="mountPath" value="/myBlock1"/>
to
<property name="mountPath" value=""/>


Here's what worked for me:
in myBlock1/src/main/resources/META-INF/cocoon/spring/block-servlet- 
service.xml
change:
	<servlet:context mount-path="/myBlock1" context-path="blockcontext:/ 
myBlock1/" >

to:
	<servlet:context mount-path="/" context-path="blockcontext:/ 
myBlock1/" >




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org