Discussion:
sitemap trouble when deploy cocoon-2.1 war in tomcat
David Crossley
2014-09-02 07:53:19 UTC
Permalink
I am having difficulty deploying a cocoon.war to a local Tomcat (using recent v7.0.55).

To start with, see the Cocoon jail demo:

http://cocoon.zones.apache.org/cocoon21/samples/
and notice how the trailing slash just works okay
as it should according to the sitemap.xmap

Now when i build Cocoon 2.1.13-dev (head of svn branch) locally,
and then do:
]$ ./cocoon.sh
http://localhost:8888/samples/
all is okay using the built-in Jetty.

Now do:
]$ ./build.sh war
then copy to the Tomcat webapps directory.
http://localhost:8080/cocoon/samples/
and get error:
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: samples/index.html

Looking at the docs for the cocoon.zones.apache.org at
http://wiki.apache.org/cocoon/JailManagement
https://svn.apache.org/repos/private/pmc/cocoon/cocoon.zones.apache.org/
i do not see any special configuration for Tomcat.

So can anyone explain the difference.

Also does anyone know how that redirect to "index.html" is happening.

I do vaguely recall these problems in the past.

-David
Francesco Chicchiriccò
2014-09-02 07:56:07 UTC
Permalink
Post by David Crossley
I am having difficulty deploying a cocoon.war to a local Tomcat (using recent v7.0.55).
http://cocoon.zones.apache.org/cocoon21/samples/
and notice how the trailing slash just works okay
as it should according to the sitemap.xmap
Now when i build Cocoon 2.1.13-dev (head of svn branch) locally,
]$ ./cocoon.sh
http://localhost:8888/samples/
all is okay using the built-in Jetty.
]$ ./build.sh war
then copy to the Tomcat webapps directory.
http://localhost:8080/cocoon/samples/
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: samples/index.html
Looking at the docs for the cocoon.zones.apache.org at
http://wiki.apache.org/cocoon/JailManagement
https://svn.apache.org/repos/private/pmc/cocoon/cocoon.zones.apache.org/
i do not see any special configuration for Tomcat.
So can anyone explain the difference.
Also does anyone know how that redirect to "index.html" is happening.
I do vaguely recall these problems in the past.
Hi David,
can [1] be of any help?

[1] http://blog.tirasa.net/apache-fun-cocoon-2-1.html
--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/
David Crossley
2014-09-02 08:02:31 UTC
Permalink
Post by Francesco Chicchiriccò
Post by David Crossley
I am having difficulty deploying a cocoon.war to a local Tomcat (using recent v7.0.55).
http://cocoon.zones.apache.org/cocoon21/samples/
and notice how the trailing slash just works okay
as it should according to the sitemap.xmap
Now when i build Cocoon 2.1.13-dev (head of svn branch) locally,
]$ ./cocoon.sh
http://localhost:8888/samples/
all is okay using the built-in Jetty.
]$ ./build.sh war
then copy to the Tomcat webapps directory.
http://localhost:8080/cocoon/samples/
samples/index.html
Looking at the docs for the cocoon.zones.apache.org at
http://wiki.apache.org/cocoon/JailManagement
https://svn.apache.org/repos/private/pmc/cocoon/cocoon.zones.apache.org/
i do not see any special configuration for Tomcat.
So can anyone explain the difference.
Also does anyone know how that redirect to "index.html" is happening.
I do vaguely recall these problems in the past.
Hi David,
can [1] be of any help?
[1] http://blog.tirasa.net/apache-fun-cocoon-2-1.html
You are a champ. Yes it does.

Remove the "welcome-file-list" from $CATALINA_HOME/conf/web.xml

What a team. I have been struggling all afternoon,
then an answer in minutes. Thanks.

-David
Post by Francesco Chicchiriccò
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/
Francesco Chicchiriccò
2014-09-02 08:04:34 UTC
Permalink
Post by David Crossley
Post by Francesco Chicchiriccò
Post by David Crossley
I am having difficulty deploying a cocoon.war to a local Tomcat (using recent v7.0.55).
http://cocoon.zones.apache.org/cocoon21/samples/
and notice how the trailing slash just works okay
as it should according to the sitemap.xmap
Now when i build Cocoon 2.1.13-dev (head of svn branch) locally,
]$ ./cocoon.sh
http://localhost:8888/samples/
all is okay using the built-in Jetty.
]$ ./build.sh war
then copy to the Tomcat webapps directory.
http://localhost:8080/cocoon/samples/
samples/index.html
Looking at the docs for the cocoon.zones.apache.org at
http://wiki.apache.org/cocoon/JailManagement
https://svn.apache.org/repos/private/pmc/cocoon/cocoon.zones.apache.org/
i do not see any special configuration for Tomcat.
So can anyone explain the difference.
Also does anyone know how that redirect to "index.html" is happening.
I do vaguely recall these problems in the past.
Hi David,
can [1] be of any help?
[1] http://blog.tirasa.net/apache-fun-cocoon-2-1.html
You are a champ. Yes it does.
Remove the "welcome-file-list" from $CATALINA_HOME/conf/web.xml
What a team. I have been struggling all afternoon,
then an answer in minutes. Thanks.
You're welcome :-)

Regards.
--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/
Loading...