You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cedric Picard <C....@kainos.com> on 2002/11/27 18:39:49 UTC

Cocoon integration problem

Hi all,

I am now able to deploy a sitemap as part of a web application. This web
application contains jsp pages which are to run outside cocoon (ie,
cocoon does not control the execution of the pages), but instead some
pages invoke cocoon to obtain generated reports.

In order to "free" the jsp from cocoon's control, simply remove:
  <servlet-mapping>
    <servlet-name>Cocoon2</servlet-name>
    <url-pattern>*.jsp</url-pattern>
  </servlet-mapping>
>From web.xml
(could this cause any problems with the execution of xsp files by the
way?)

Accessing the jsp pages is not a problem (although the stylesheets &
images seem to be ignored), but I am no longer able to access my
pipeline.
http://localhost:8080/workflowclient/CMReports/CMUsers.html

org.apache.avalon.framework.component.ComponentException: Could not
access the Component

The error seems to indicate that the sitemap is indeed being used, but
no pipeline matches the requested url.

I assumed the extra level added by including the sitemap inside a web
application might require extra settings, so I changed to match pattern
in the root sitemap from "CMReports/**" to
"workflowclient/CMReports/**".

Basically, the application is deployed as workflowclient.war, which
contains:
- *.jsp
- *.tld
- sitemap.xmap
- CMReports/sitemap.xmap -> sub-sitemap mounted as follows:
  <map:pipeline>
    <map:match pattern="workflowclient/CMReports/**">
      <map:mount uri-prefix="CMReports" src="CMReports/sitemap.xmap"
check-reload="yes"/>
    </map:match>
    <map:handle-errors>
      <map:transform src="stylesheets/system/error2html.xsl"/>
      <map:serialize status-code="500"/>
    </map:handle-errors>
  </map:pipeline>

- stylesheets/
- images/
- javascript/
- WEB-INF/

I would guess the problem resides in the correct matching of the
requested url, but cannot figure out what matching to apply. If anyone
has an idea, that would be greatly appreciated.

Regards,
Cedric Picard,
Software Engineer
Kainos Software Ltd.



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.