cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <>
Subject Re: Cocoon 2.2 - Webapp?
Date Tue, 26 Feb 2008 16:21:12 GMT
Edward S wrote:
> here are my questions:
>     * The demo page says, if I need to access myBlock1 i should go to:
>       http://localhost:8888/myBlock1/ . If my webapp is named,
>       'myWebApp' why isnt that a part of the Url?

Because it is, by default, the root application of that servlet container.

>     * If i do a mvn war:war, it creates a war file for the webapp with
>       the following name: myWebApp-1.0-SNAPSHOT.war in the target
>       directory. What should I do to deploy this war? If i drop it in
>       tomcat, and restart it,  how can i access the same block?
>       http://localhost:8080/myWebApp-1.0-SNAPSHOT/ i get a 'resource not
>       found' 

Because you didn't specify the block, only the webapp.

> if i go to http://localhost:8080/myBlock1 i get the same error.

Because the root webapp of Tomcat is not myWebApp-1.0-SNAPSHOT.

Try specifying both 
(http://localhost:8080/myWebApp-1.0-SNAPSHOT/myBlock1/) instead


    Luca Morandini

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message