Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F399AEF5F for ; Sat, 19 Jan 2013 13:23:57 +0000 (UTC) Received: (qmail 51721 invoked by uid 500); 19 Jan 2013 13:23:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 51174 invoked by uid 500); 19 Jan 2013 13:23:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 50381 invoked by uid 99); 19 Jan 2013 13:23:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 13:23:51 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.149.128.104] (HELO smtpi4.ngi.it) (88.149.128.104) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 13:23:45 +0000 Received: from [192.168.1.2] (78-134-109-84.v4.ngi.it [78.134.109.84]) by smtpi4.ngi.it (Postfix) with ESMTP id 0FA9E42102 for ; Sat, 19 Jan 2013 14:23:22 +0100 (CET) Message-ID: <50FA9E4A.5090606@apache.org> Date: Sat, 19 Jan 2013 14:23:22 +0100 From: =?ISO-8859-1?Q?Francesco_Chicchiricc=F2?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [DISCUSS] Fix for COCOON3-105 References: <1375040647.53637.1354548718689.JavaMail.jiratomcat@arcas> <50BCC774.6060700@apache.org> <50C1D7DB.2060608@apache.org> <50C1E20C.7040003@apache.org> <50D3084C.8000404@codebusters.es> <50D30D25.3050705@apache.org> <50F42239.3030107@gmail.com> <50F7C30E.1020008@apache.org> In-Reply-To: <50F7C30E.1020008@apache.org> Content-Type: multipart/alternative; boundary="------------030205070600090806030809" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------030205070600090806030809 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Il 17/01/2013 10:23, Francesco Chicchiricc� ha scritto: > On 14/01/2013 16:20, Thorsten Scherler wrote: >> [...] >>>> Can you please tell me how can I address block_A's sitemap from >>>> from block_B's sitemap? >>>> I have used *blockcontext:/* for this before. >>> >>> This should work In the same way as in *servlet-service.xml, e.g. by >>> replacing >>> >>> blockcontext:/otherblock/BLA >>> >>> with >>> >>> jar:classpath:lib/otherblock.jar!/COB-INF/BLA >>> >> >> Hi, I just tried the above in another project but using it in the >> sitemap I get >> java.net.MalformedURLException: invalid url: >> classpath:lib/api-0.1-SNAPSHOT.jar!/COB-INF/resources/xsl/intern-to-solr.xsl >> (java.net.MalformedURLException: unknown protocol: classpath) >> >> I am trying to use a central module to store common xsl that I need >> both in cocoon and in my java code. > > Hi Thorsten, > sorry for the delay, I am quite busy in this period on other projects. > > Anyway, I'll try to check and get back asap to you. Hi Thorsten, I was finally able to make all needed checks and the good news is that everything is working as expected. From the error message you report above I guess that you are not using the very latest C3 SNAPSHOT artifacts. Anyway, I've updated the sample application [1] with some description about how to run and what you get [2]. HTH Regards. [1] https://github.com/ilgrosso/cocoon3EmptyProject/tree/COCOON3-105 [2] https://github.com/ilgrosso/cocoon3EmptyProject/blob/COCOON3-105/README.md -- Francesco Chicchiricc� ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member http://people.apache.org/~ilgrosso/ --------------030205070600090806030809 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Il 17/01/2013 10:23, Francesco Chicchiriccò ha scritto:
On 14/01/2013 16:20, Thorsten Scherler wrote:
[...]
Can you please tell me how can I address block_A's sitemap from from block_B's sitemap?
I have used blockcontext:/ for this before.

This should work In the same way as in *servlet-service.xml, e.g. by replacing

blockcontext:/otherblock/BLA

with

jar:classpath:lib/otherblock.jar!/COB-INF/BLA


Hi, I just tried the above in another project but using it in the sitemap I get
java.net.MalformedURLException: invalid url: classpath:lib/api-0.1-SNAPSHOT.jar!/COB-INF/resources/xsl/intern-to-solr.xsl (java.net.MalformedURLException: unknown protocol: classpath)

I am trying to use a central module to store common xsl that I need both in cocoon and in my java code.

Hi Thorsten,
sorry for the delay, I am quite busy in this period on other projects.

Anyway, I'll try to check and get back asap to you.

Hi Thorsten,
I was finally able to make all needed checks and the good news is that everything is working as expected.
From the error message you report above I guess that you are not using the very latest C3 SNAPSHOT artifacts.

Anyway, I've updated the sample application [1] with some description about how to run and what you get [2].

HTH
Regards.

[1] https://github.com/ilgrosso/cocoon3EmptyProject/tree/COCOON3-105
[2] https://github.com/ilgrosso/cocoon3EmptyProject/blob/COCOON3-105/README.md
-- 
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/ 
--------------030205070600090806030809--