Hi,
a C3 webapp (WAR) is normally built from a multi-module Maven project
(as the one linked by Mansour below), with one or more blocks.
IMO it seems instead that you want to implement a single C3 Maven WAR
module, with no blocks: if so you can take a look at [1], which is part
of a more structured project.
Anyway, all you have to do is to configure the servlet service properly,
e.g. like as in [2].
HTH
Regards.
[1] https://github.com/Tirasa/HippoCocoonToolkit/tree/hct-baby-steps/hctsite
[2]
https://github.com/Tirasa/HippoCocoonToolkit/blob/hct-baby-steps/hctsite/src/main/resources/META-INF/cocoon/spring/hct-servlet-service.xml
On 10/05/2013 15:18, gelo1234 wrote:
Many thanks Mansour,
I will take a deep look at it tonight.
Greetings,
Greg
2013/5/10 Mansour Al Akeel <mansour.alak...@gmail.com
<mailto:mansour.alak...@gmail.com>>
This one contains 2 webapps. Did you have a look ??
https://github.com/ilgrosso/cocoon3EmptyProject/tree/COCOON3-105
I can not tell what is wrong, without an error message, but in
order for the the block to deploy properly, the configuration
should match the running mode. So if your spring configuration are
under src/main/resources/META-INF/cocoon/spring/dev/
then you need to let the webapp know that it's running in dev mode.
On Thu, May 9, 2013 at 6:11 PM, gelo1234 <gelo1...@gmail.com
<mailto:gelo1...@gmail.com>> wrote:
Trying to making things up with Cocoon 3-beta, I gave up.
Error points to not founding sitemap.xmap inside jar file in
lib/ directory.
Trunk sources from 20130507.
Can somebody send here a simple sitemap web app with Cocoon 3-beta
as a war archive
(with WEB-INF/lib/_all_required_libs_for_c3-beta inside war)
ready to be deployed to e.g. Tomcat 7 ?
A simple web app is just reading HTML file from sitemap:
<map:sitemap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:map="http://apache.org/cocoon/sitemap"
xmlns:servlet="http://apache.org/cocoon/servlet"
xmlns:controller="http://apache.org/cocoon/controller">
<map:pipelines>
<!-- ~~~~~~~~~~~~~~~~ map:read ~~~~~~~~~~~~~~~ -->
<map:pipeline>
<map:match pattern="">
<map:read src="overview.html" />
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Greetings,
Greg
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/