You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stefan Geelen <st...@hotmail.com> on 2004/02/17 23:27:05 UTC
The '-' character in pseudo protocols (*not* allowed) ???
After spending more than a day to find out why this was not working (in a pipeline):
<map:part element="content" ns="http://www.test.com/content" src="cocoon:/announcement/update-announcement-list"/>
note the dashes '-' in the src attribute, I found out that dashes '-' are *not* valid in a pseudo protocol ????
Is there a reason why dashes are not allowed ?
Note I could not find any error in any log file, moreover if calling this pipeline twice Tomcat just aborted !!!!
I'm using Tomcat 4.0.4 and Cocoon 2.1.3 !
Regards,
STefan
Re: The '-' character in pseudo protocols (*not* allowed) ???
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Stefan,
it was meant as "Why do you think that the dashes are the problem?" I
know that I used the same type of URLs for internal pipelines in an
older project (with Cocoon 2.0.4 I think). You are the first one
reporting errors with dashes. The only thing I can imagine is the XSP,
maybe you can send it to the list? I don't expect it's Tomcat.
Joerg
On 18.02.2004 00:08, Stefan Geelen wrote:
> Joerg,
>
> I'm not sure what you mean with 'Where do you take this from' , but I could
> consistently reproduce this problem . Removing the '-' solved the problem
> and putting them back again did the error come back. In the mean time I did
> not change anything else.
>
> The configuration I use is :
>
> Tomcat 4.0.4
> Cocoon 2.1.4.
> Windows XP Prof.
>
> The src calls an internal pipeline with following code:
>
> <map:pipeline internal-only="true">
> <map:match pattern="announcement/update-announcement-list">
> <map:generate type="serverpages"
> src="xsp/update-announcement-list.xsp"/>
> <map:transform type="log">
> <map:parameter name="logfile"
> value="logs/myaccount-details.xsp.log"/>
> <map:parameter name="append" value="false"/>
> </map:transform>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
>
> Note that the log file was never created (logs/myaccount-details.xsp.log).
>
> When I removed the dashes the log file is created.
>
> Maybe it has to do with the fact that an .xsp is used in the internal
> pipeline ?
>
> Stefan
>
>
> ----- Original Message -----
> From: "Joerg Heinicke" <jo...@gmx.de>
> To: <us...@cocoon.apache.org>
> Sent: Tuesday, February 17, 2004 11:56 PM
> Subject: Re: The '-' character in pseudo protocols (*not* allowed) ???
>
>
>
>>On 17.02.2004 23:27, Stefan Geelen wrote:
>>
>>
>>>After spending more than a day to find out why this was not working (in
>
> a pipeline):
>
>>><map:part element="content" ns="http://www.test.com/content"
>
> src="cocoon:/announcement/update-announcement-list"/>
>
>>>note the dashes '-' in the src attribute, I found out that dashes '-'
>
> are *not* valid in a pseudo protocol ????
>
>>Hmm, that's not true? Where do you take this from?
>>
>>
>>>Note I could not find any error in any log file, moreover if calling
>
> this pipeline twice Tomcat just aborted !!!!
>
>>I think there is a deeper problem somewhere else.
>>
>>Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The '-' character in pseudo protocols (*not* allowed) ???
Posted by Stefan Burkard <sb...@previon.ch>.
hi stefan
i use for example the following code in my sitemap without any problems:
<map:part src="cocoon:/{1}/about.contact-confirm.int"/>
that calls the following in an internal-only-pipeline:
<map:match pattern="*/about.*.int">
<map:generate type="serverpages" src="data/int/{2}.xsp"/>
i think this is the same you try to do. i'm running tomcat 4.1.12 and
cocoon 2.1.3.
so, if tomcat aborts abnormally, it could be a try to upgrade it.
you can also try to simplify the involved parts of the sitemap (remove
the log-transformer and look if it runs without it and things like this)
greetings
stefan
Stefan Geelen wrote:
> Joerg,
>
> I'm not sure what you mean with 'Where do you take this from' , but I could
> consistently reproduce this problem . Removing the '-' solved the problem
> and putting them back again did the error come back. In the mean time I did
> not change anything else.
>
> The configuration I use is :
>
> Tomcat 4.0.4
> Cocoon 2.1.4.
> Windows XP Prof.
>
> The src calls an internal pipeline with following code:
>
> <map:pipeline internal-only="true">
> <map:match pattern="announcement/update-announcement-list">
> <map:generate type="serverpages"
> src="xsp/update-announcement-list.xsp"/>
> <map:transform type="log">
> <map:parameter name="logfile"
> value="logs/myaccount-details.xsp.log"/>
> <map:parameter name="append" value="false"/>
> </map:transform>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
>
> Note that the log file was never created (logs/myaccount-details.xsp.log).
>
> When I removed the dashes the log file is created.
>
> Maybe it has to do with the fact that an .xsp is used in the internal
> pipeline ?
>
> Stefan
>
>
> ----- Original Message -----
> From: "Joerg Heinicke" <jo...@gmx.de>
> To: <us...@cocoon.apache.org>
> Sent: Tuesday, February 17, 2004 11:56 PM
> Subject: Re: The '-' character in pseudo protocols (*not* allowed) ???
>
>
>
>>On 17.02.2004 23:27, Stefan Geelen wrote:
>>
>>
>>>After spending more than a day to find out why this was not working (in
>
> a pipeline):
>
>>><map:part element="content" ns="http://www.test.com/content"
>
> src="cocoon:/announcement/update-announcement-list"/>
>
>>>note the dashes '-' in the src attribute, I found out that dashes '-'
>
> are *not* valid in a pseudo protocol ????
>
>>Hmm, that's not true? Where do you take this from?
>>
>>
>>>Note I could not find any error in any log file, moreover if calling
>
> this pipeline twice Tomcat just aborted !!!!
>
>>I think there is a deeper problem somewhere else.
>>
>>Joerg
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The '-' character in pseudo protocols (*not* allowed) ???
Posted by Stefan Geelen <st...@hotmail.com>.
Joerg,
I'm not sure what you mean with 'Where do you take this from' , but I could
consistently reproduce this problem . Removing the '-' solved the problem
and putting them back again did the error come back. In the mean time I did
not change anything else.
The configuration I use is :
Tomcat 4.0.4
Cocoon 2.1.4.
Windows XP Prof.
The src calls an internal pipeline with following code:
<map:pipeline internal-only="true">
<map:match pattern="announcement/update-announcement-list">
<map:generate type="serverpages"
src="xsp/update-announcement-list.xsp"/>
<map:transform type="log">
<map:parameter name="logfile"
value="logs/myaccount-details.xsp.log"/>
<map:parameter name="append" value="false"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
Note that the log file was never created (logs/myaccount-details.xsp.log).
When I removed the dashes the log file is created.
Maybe it has to do with the fact that an .xsp is used in the internal
pipeline ?
Stefan
----- Original Message -----
From: "Joerg Heinicke" <jo...@gmx.de>
To: <us...@cocoon.apache.org>
Sent: Tuesday, February 17, 2004 11:56 PM
Subject: Re: The '-' character in pseudo protocols (*not* allowed) ???
> On 17.02.2004 23:27, Stefan Geelen wrote:
>
> > After spending more than a day to find out why this was not working (in
a pipeline):
> >
> > <map:part element="content" ns="http://www.test.com/content"
src="cocoon:/announcement/update-announcement-list"/>
> >
> > note the dashes '-' in the src attribute, I found out that dashes '-'
are *not* valid in a pseudo protocol ????
>
> Hmm, that's not true? Where do you take this from?
>
> > Note I could not find any error in any log file, moreover if calling
this pipeline twice Tomcat just aborted !!!!
>
> I think there is a deeper problem somewhere else.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: The '-' character in pseudo protocols (*not* allowed) ???
Posted by Joerg Heinicke <jo...@gmx.de>.
On 17.02.2004 23:27, Stefan Geelen wrote:
> After spending more than a day to find out why this was not working (in a pipeline):
>
> <map:part element="content" ns="http://www.test.com/content" src="cocoon:/announcement/update-announcement-list"/>
>
> note the dashes '-' in the src attribute, I found out that dashes '-' are *not* valid in a pseudo protocol ????
Hmm, that's not true? Where do you take this from?
> Note I could not find any error in any log file, moreover if calling this pipeline twice Tomcat just aborted !!!!
I think there is a deeper problem somewhere else.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org