David Crossley
2014-09-02 07:53:19 UTC
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
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