RE: C22 - Maven artifact missing

2008-08-08 Thread yosauron

Now I get the following test error:


[INFO]

[INFO] Building Cocoon Core
[INFO]task-segment: [install]
[INFO]

[INFO] [enforcer:enforce-once {execution: enforce-maven}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/caribdis/tmp/cocoon-2.2.0-683619/core/cocoon-core/target/surefire-reports

---
 T E S T S
---
Running org.apache.cocoon.selection.ResourceExistsSelectorTestCase
log4j:WARN No appenders could be found for logger
(org.springframework.beans.factory.support.DefaultListableBeanFactory).
log4j:WARN Please initialize the log4j system properly.
true
false
true
false
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.836 sec
Running org.apache.cocoon.matching.HeaderMatcherTestCase
{1=headerMatchTestCaseValue}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.286 sec
Running org.apache.cocoon.matching.SessionAttributeMatcherTestCase
{1=sessionAttributeMatchTestCaseValue}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.305 sec
Running org.apache.cocoon.core.container.util.PropertyHelperTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.apache.cocoon.selection.SessionAttributeSelectorTestCase
true
false
true
false
false
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.405 sec
Running org.apache.cocoon.acting.LocaleActionTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.334 sec
Running org.apache.cocoon.selection.HeaderSelectorTestCase
true
false
true
false
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec
Running org.apache.cocoon.matching.RequestParameterMatcherTestCase
{1=requestParameterMatchTestCaseValue}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running org.apache.cocoon.transformation.EncodeURLTransformerTestCase
resultDocument
?xml version=1.0 encoding=UTF-8?!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--rootxX/x A  d  x x /root
inputDocument
?xml version=1.0 encoding=UTF-8?!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
--rootxX/x A  d  x x /root
transformDocument
?xml version=1.0 encoding=UTF-8?rootxX/x A  d  x x /root
resultDocument
?xml version=1.0 encoding=UTF-8?!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the License); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language 

Re: Passing request parameter from the sitemap

2008-08-08 Thread Andy Stevens
2008/8/7 Peter Sparkes [EMAIL PROTECTED]:
 I am trying to pass various request parameter from the sitemap to a eXist
 xquery using:

 map:match pattern=register-with-eXist
  map:generate src=register.xq type=xquery
 !--map:parameter name=user value={flow-attribute:user}/--
 map:parameter name=user value=test/
   /map:generate


 I know the xquery is correct as I have tested it with the the URL
 register.xql?pass=test

register.xq (as you have in the map:generate) or .xql?  Also, you have
pass=test in the URL but name=user value=test in the
map:parameter.  Are those what you're actually using or just typos in
your email?


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Passing request parameter from the sitemap

2008-08-08 Thread Peter Sparkes

Hi Andy,

Sorry typos in email.

sitemap extract:
map:match pattern=register-with-eXist
  map:generate src=register.xq type=xquery
 map:parameter name=user value=test/
 /map:generate

and register.xq extract:

declare namespace xdb=http://exist-db.org/xquery/xmldb;;
declare namespace request=http://exist-db.org/xquery/request;;
declare namespace session=http://exist-db.org/xquery/session;;

let $user := request:get-parameter(user, 'error'),
   return
 p user  : {$user} /p

Returns   p user  : error /p

while http://localhost:8080/exist/register.xq?user=test

Returns  p user  :  test/p

Peter

2008/8/7 Peter Sparkes [EMAIL PROTECTED]:
  

I am trying to pass various request parameter from the sitemap to a eXist
xquery using:

map:match pattern=register-with-eXist
 map:generate src=register.xq type=xquery
!--map:parameter name=user value={flow-attribute:user}/--
map:parameter name=user value=test/
  /map:generate


I know the xquery is correct as I have tested it with the the URL
register.xql?pass=test



register.xq (as you have in the map:generate) or .xql?  Also, you have
pass=test in the URL but name=user value=test in the
map:parameter.  Are those what you're actually using or just typos in
your email?


Andy.
  




No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 270.5.12/1599 - Release Date: 07/08/2008 20:49
  




RE: Redirecting with 303

2008-08-08 Thread Jasha Joachimsthal
 

 -Original Message-
 From: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED] 
 Sent: donderdag 7 augustus 2008 16:11
 To: users@cocoon.apache.org
 Subject: Redirecting with 303
 
 Hi all!
 
 I want to do a 303 redirect, to satisfy the httpRange-14 TAG 
 finding, with its popular form 
 http://www.w3.org/TR/cooluris/#r303gendocument
 
 I was hoping something like this might work:
 
   map:match pattern=topic/*
   map:redirect-to 
 uri={request:contextPath}/sparql?query=DESCRIBE lt; 
 {request:requestUri}gt;/
   map:serialize status-code=303/
   /map:match
 
 where the URI needs to be the whole thing, including the 
 hostname and all. I guess that the latter can be fixed some 
 way by concatenating some parameters. 
 
 And I hope the 303 would be fixed by the map:serialize 
 status-code=303/ but it doesn't, it does a 302. 
 
 Is there a simple way to achieve this? 
 
 If no simple way, what would the difficult way be?

After a map:redirect-to the pipeline ends its execution. The
map:serialized will not be called. Setting status-code=303 on the
map:redirect-to is not (yet) supported. Doesn't a 302 do what you want
to achieve?

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]