WebServiceProxyGenerator problem

2003-06-16 Thread Azam .
Hi all

I want to use sth like this in my sitemap

map:match pattern="test/t" map:generate type="wsproxy" src=""http://www.example.com/rss091.xml">http://www.example.com/rss091.xml" label="xml"/ map:transform src="" / map:serialize type="html"/ /map:match

and I define this insitemap generators

 map:generator label="content,data" name="wsproxy" src="" logger="webapp.wsproxy"/ 
but the problem is it couldn't find org.apache.cocoon.generation.WebServiceProxyGenerator
should I add any extra jar to my cocoon lib? or anything else?

thanks in advance
azam


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

could not pass some parameters Sitemap

2003-06-16 Thread Maxime.Gheysen
I use a request-param method in my sitemap. On a page I have three
text boxes (name, password, serverurl). In the sitemap I have following
:

map:transform type=ldap 
  map:parameter name=serverurl
value=ldap://{request-param:serverurl}.NET/   
  map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
  map:parameter name=password  value={request-param:password}/ 
  map:parameter name=filter
value=(amp;(objectclass=User)(cn={request-param:name}))/
/map:transform 

Here I can see in the log that the password parameter is correctly get,
but neighter the name neighter the serverurl are get. Does somebody know
why?

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



Link Hosting: MediaHost

2003-06-16 Thread MediaHost \(TM\)



Hi Apache People again

I did senda mail some time ago and allow to 
myself to send another mail, in case the previous mail did not 
arrived...

Content from our website at http://www.mediahost.org/template.php?tmpl=newspage=news:

MediaHost™ is a longstanding provider of the Cocoon Framework since it's very beginning. 
The latest addition to our wide range of programming languages and frameworks is 
the newest version 2.1m2 of Cocoon XML publishing framework.We make the new 
version available to all our existing and new users, from the DevPlus PacKage 
and up (Not including Windows Platform). The existing version 1.8.2 will be 
installed as the default version, the new version by request.Don't know what 
Cocoon is? Check out the documentation and learn more about Cocoon 
capabilities by visiting the samples.

Packages supporting Cocoon 
are:

 http://www.mediahost.org/hosting.php?plan=DevPlus

 http://www.mediahost.org/hosting.php?plan=BizStarter

 http://www.mediahost.org/hosting.php?plan=SemiServer



Could you please update your site at http://cocoon.apache.org/2.0/link/hosting.htmland 
maybe other locations to reflect the existence of Cocoon 2.1 and Cocoon 1.8.2 at 
MediaHost.

Thanks a lot and continue the very good 
work!
Signer: Eddy NiggCompany: StartCom 
Group at http://www.startcom.org 
MediaHost (TM) at http://www.mediahost.org



---StartCom Ltd.http://www.startcom.org

Outgoing mail is certified Virus Free.Checked by AVG anti-virus system 
(http://www.grisoft.com).Version: 
6.0.489 / Virus Database: 288 - Release Date: 
6/12/2003


Re: use an http attribute in an action

2003-06-16 Thread Olivier GUCKERT


Lionel Crine a écrit :
 
 you can try :
 
 public Map act (Redirector redirector, SourceResolver resolver, Map
 objectModel, String src, Parameters parameters)
 throws Exception {
 Request request = ObjectModelHelper.getRequest(objectModel);
 String num = request.getParameter(numero);
 String protection = request.getParameter(protection);
 ...
 
 Ok Thanks, it works fine but i could'nt get it to works because my pipe
was requested by a post method and i read somewhere in the list it was
impossible to get it to work so...

So i resolve my problem by using a redirect.

Olivier

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



cocoon redirect

2003-06-16 Thread Cocoon User

Hi all,
I want to log when the user follows an external link of an HTML page. 
I put an internal link instead (with the external link as a parameter),that uses the session context (xsl:session) to get the user ID and writes a log record to a SQL database using the sql transformer.
Afterwards, I would then link to redirect to the external link. But when I use the map:redirect-to command, my pipeline is not executed. If I serialize before, it is executed but the redirect is not performed.
How do I log an external link using session and sql transformer with an redirect at the end of the pipiline?
Thank you very much for your help!
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: use an http attribute in an action

2003-06-16 Thread Lionel Crine
Here is what I did from a post (input type=file). I don't know if this 
that you need!!



this is the upload of an illustration :

Request request = ObjectModelHelper.getRequest(objectModel);
Enumeration e = request.getParameterNames();
while (e.hasMoreElements()) {
String param = (String) e.nextElement();
Object value = request.get(param);
//get the name of the document
String fileName = null;
if (value instanceof FilePart) {
fileName = ((FilePart) value).getFileName();
}
//get the content from the post
if (value instanceof FilePartArray) {
FilePartArray fpa = (FilePartArray) value;
InputStream is = fpa.getInputStream();
int size = is.available();
byte[] b = new byte[size];
try {
is.read(b);
}
finally {
is.close();
}


Lionel



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


Re: OOo and ZipArchive serializer

2003-06-16 Thread Upayavira
Matthias,

 unfortunately your patch doesn't work. The STORED method expects the
 file size and the crc code, which is not set. 

Is it possible to set the file size and CRC after the content has been written to the 
outputstream? If so, we can calculate/set them easily.

 Attached is a patch with
 a small sample for the ZipArchiveSerializer. The sample takes three
 files from the hello-world sample and returns a hello.zip file. AFAIK
 there's no example atm. The hello_zip.xml file should be put in
 src/webapp/samples/hello-world/content/. 

I've just committed your patch. Thanks.

Upayavira


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



cocoon.xconf problem: ExcaliburComponentSelector

2003-06-16 Thread manfred . weigel

Hi *!

I'm using websphere 4.1.1 and cocoon 2.1 M2

Does anybody know what's wrong with my configuration - Im getting this
errormessage in the stdout each time a url is called:

[16.06.03 12:53:37:253 GMT+02:00] 5928cda1 WebGroup  I SRVE0091I:
[Servlet-Protokoll]: WARN(2003-06-16) 12:53.37:253   [cocoon.m]
(/rzbcan/canchange) Servlet.Engine.Transports:9/ExcaliburComponentSelector:
Attempted to release a null component.


and this error in the cocoon.log

WARN(2003-06-16) 11:36.36:142   [cocoon.m] (Unknown-URI)
Unknown-thread/ExcaliburComponentManager: Attempted to release a
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
could not be located.

Thanks in advance!

manfred



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



Writing to filesystem

2003-06-16 Thread Ali Mesbah
Hi,

What is the best way to write the output of a Transformer (in a pipeline) into
a file (e.g. /resources/bla.xml) on the filesystem?

Thanks,
Ali
-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



AW: OOo and ZipArchive serializer

2003-06-16 Thread Stoeckel, Matthias
Hi Upayavira,

 -Ursprungliche Nachricht-
 Von: Upayavira [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 16. Juni 2003 12:43
 An: [EMAIL PROTECTED]
 Betreff: Re: OOo and ZipArchive serializer
 
 Is it possible to set the file size and CRC after the content 
 has been written to the 
 outputstream? If so, we can calculate/set them easily.

No. The ZipEntry needs this information before the content is written afaik.
I tried it, but got some nice exceptions :)
Cheers
  Matthias

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



Re: Writing to filesystem

2003-06-16 Thread Upayavira
 Hi,
 
 What is the best way to write the output of a Transformer (in a
 pipeline) into a file (e.g. /resources/bla.xml) on the filesystem?

Check out the SourceWritingTransformer.

Regards, Upayavira


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



[ANN] Orixo launched

2003-06-16 Thread Matthew Langham
To the Cocoon Community

The involvement of commercial entities in an open source project can help
tremendously with its success. If we look at the Linux OS, the Apache web
server or other important open source projects, we often can see a mixed
model where business and open source go side by side.

In the past, the commercial side of Cocoon has been slightly in the dark.
Some community members were known to be commercial entities, but in general,
their commercial side has been intentionally kept low profile. We believe
that this can be especially a disadvantage when it comes to enticing new
companies into the world of Cocoon - they might fear that there is no
support nor additional tools which will help them to build sustainable
operations based on our beloved Cocoon project.

In addition, we are perceiving an increasing need for additional Cocoon
services such as training or consulting.

At the previous GetTogether, the undersigned started a loose discussion on
forming some sort of business alliance with the aim of being an umbrella
under which commercial entities could discuss business perspectives, share
resources or work together on new Cocoon related topics.

The undersigned were able to join in open discussion (although being
competitors) because we felt that the business model laid out in the
Cluetrain manifesto was a Good Thing when it comes to defining business in
the Internet age. Also, as much as we care about our own businesses, we have
been working inside this wonderful Cocoon community for a long time and care
a great deal about its sustained development, both community- and
technology-wise.

These discussions resulted in a consortium of 6 European companies, whose
names are well familiar to the Cocoon community, joining forces to
accelerate the corporate adoption of Cocoon by offering a shared vision of
support and services. The name of the consortium is Orixo and the website is
at http://www.orixo.com

We feel very strong about the fact that an open source-related business
initiative should have a particular emphasis on giving back to the
community. The undersigned are all active members of the Cocoon project, and
we hope that our joined efforts will continue to be beneficial for the
entire Cocoon community. With regards to our involvement in the Cocoon
project, business remains as usual.

Signed

Anyware Technologies
Luminas
Otego
Outerthought
Pro-netics
SN AG



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



Re: WebServiceProxyGenerator problem

2003-06-16 Thread Geoff Howard
2.1 or 2.0?

At 02:13 AM 6/16/2003, you wrote:
Hi all

I want to use sth like this in my sitemap

 map:match pattern=test/t
map:generate type=wsproxy
src=http://www.example.com/rss091.xmlhttp://www.example.com/rss091.xml;
 label=xml/
map:transform src=test/rss.xsl /
map:serialize type=html/
  /map:match
and I define this in sitemap generators

  map:generator label=content,data name=wsproxy 
src=org.apache.cocoon.generation.WebServiceProxyGenerator
 logger=webapp.wsproxy/

but the problem is it couldn't find 
org.apache.cocoon.generation.WebServiceProxyGenerator
should I add any extra jar to my cocoon lib? or anything else?

thanks in advance
azam


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


Re: cocoon redirect

2003-06-16 Thread Geoff Howard
Use an action to do the logging.

At 05:38 AM 6/16/2003, you wrote:

Hi all,

I want to log when the user follows an external link of an HTML page.

I put an internal link instead (with the external link as a parameter), 
that uses the session context (xsl:session) to get the user ID and writes 
a log record to a SQL database using the sql transformer.

Afterwards, I would then link to redirect to the external link.  But when 
I use the map:redirect-to command, my pipeline is not executed.  If I 
serialize before, it is executed but the redirect is not performed.

How do I log an external link using session and sql transformer with an 
redirect at the end of the pipiline?

Thank you very much for your help!

Do you Yahoo!?
http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/SBC 
Yahoo! DSL - Now only $29.95 per month!


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


RE: where 's my prefix ?

2003-06-16 Thread Arje Cahn
Did you try serializing to XHTML or XML?
Only the HTMLSerializer removes the prefices.

Arje

 -Original Message-
 From: f_Parlant [mailto:[EMAIL PROTECTED]
 Posted At: 14 June 2003 18:43
 Posted To: Cocoon User List
 Conversation: where 's my prefix ?
 Subject: where 's my prefix ?
 
 
 HTML PREFIX STRIPED
 
 Hi,
 hope someone can help me.
 
 0) PROBLEM
 The html prefix for my xhtml tags disappear from the serialisation.
 
 1) CONTEXT
 I want to output an xml document based on xhtml transitional doctype.
 The output contains 3 namespaces:
 - default declared xhtml but not used, because often 
 overriden by xmldb
 processing
 - html : xhtml (to be sure the links and forms for are 
 explicitly html)
 - my namespace
 
 2) RESULT
 All prefix for my own namespace are there, but all the html 
 ones are gone.
 
 2.1) FAKE SOLUTION
 My only way to trick cocoon was to declare a fake namespace in my
 stylesheet, for the html not be understood.
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xmlns=http://www.w3.org/1999/xhtml; xmlns:html=sdfgsdf
 xmlns:fx=http://fx.wanadoo.fr/xmlns/fx; version=1.0
 But the first tags, html:style, are still deprefixed...
 
 3) TESTS
 
 - browser : It does not come apparently from the brower (same 
 result in
 Mozilla and IE) Same view source: html prefix striped.
 
 - serializers : I declared them in my sitmap directly from 
 the cocoon pages
 on serializer. I tried xml, xhtml, but could not see the 
 difference (html
 and text showed the effect of changing serializer)
 
 - xalan : a xalan-j and a xalan-c gives the correct output : 
 the prefix are
 there. (But I've got many xalan.jar on my machine, and can't 
 find out which
 one is used when I type java org.apache.xalan.xslt.processor 
  I've got
 eXist and Xindice in addition of cocoon.)
 
 MACHINE
 win98
 ie6
 cocoon-2.0.3jar
 xalan 2.0.1 or 2.3.1 or  2.4.0
 
 Please, help me, I've seen a lot of people in the archive 
 wanting to get rid
 of prefixes, but nobody wanting them back. I don't know 
 what's happening.
 Any idea ?
 
 François
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Re: auth session context and session-attr

2003-06-16 Thread Markus Schulze

Thanks Edison,

I didn't know there was something like SessionPropagatorAction.  I feel
sort of uneasy to
put information (authentication/ID and userid) twice into the session
context, but at least it works

Markus Schulze




   

  Edison Too   

  [EMAIL PROTECTED]An:   [EMAIL PROTECTED]  
   
  com.sg  Kopie:  

   Thema:Re: auth session context and 
session-attr 
  14.06.2003 18:15 

  Bitte antworten  

  an cocoon-users  

   

   





Hi,

I was also 'agonizing' how to get the user Id in a typical site map without
using {../../../ID} !

After digging around the source, I have 2 ideas
1) Modify DefaultContextManager in Session framework to store each Session
Context into the Session using their context name as the Session Attribute.
In this way we might be able to use
 {session:[EMAIL PROTECTED]'authentication']/authentication/ID}
 However this may not be possible as this gives up the ability
to protect the reserved Session Context such as Request, Response etc.
2) Write a SessionContext Input Module to read out the attributes. We might
then be able to do this
 {session-context:authentication:/authentication/ID}

Until that is available, here is my solution to your problem.

Add this to your sitemap's set of actions

map:action logger=sitemap.action.session-propagator name
=session-prop src=org.apache.cocoon.acting.SessionPropagatorAction/

Add this right inside your existing auth-login action

 map:act type=session-prop
 map:parameter name=userid value={ID}/
 map:parameter name=password value={password}/
 /map:act

When you need the user ID just use

 map:parameter name=userid value={session-attr:userid}/

The session propagation action writes the ID and password emitted by the
auth-login action into session attributes. You can then access the value
using session-attr input module.

Cheers,
Edison

On Fri, 13 Jun 2003 13:50:38 +0200, Markus Schulze wrote:
Hello,

is it possible to retrieve session values created by the LoginAction
(context=authentication) with the Session-Attr Input Module?

eg.:

map:transform type=xslt src=style/main.xsl label=raw
map:parameter
name=myauth value= {session-attr:authentication/authentication/ID}/
map:parameter name=date value={date:date}/ /map:transform

As I already successfully tried, I can use the session-transformer to
retrieve
the values in my main.xsl with session:getxml context=authentication
path=/authentication/ID but I want to use this value in  an
xsl:variable in
the style sheet. This does not seem to be possible, since the session
transformer has to be applied after the xsl-transformation.

Any ideas somebody?

Markus Schulze





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



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







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



Re: FYI: Date Input Module and date formatting

2003-06-16 Thread Markus Schulze
Hello,

I am a little bit confused:

with DateInputModule from cocoon-2.1m3-dev 2003/03/09 (@version CVS $Id:
DateInputModule.java,v 1.1 2003/03/09 00:09:02 pier Exp $),
which seems be the newest version, only one date-format can be passed to
the XSL.
It has to be specified in the format/format tags in cocoon.xconf.
Additional tags, as described by
Perry Molendijk below, are not passed to the XSL.

Hence:
cocoon.xconf:
component-instance class
=org.apache.cocoon.components.modules.input.DateInputModule
  logger=core.modules.input
  name=date
  formatEEE, d MMM  HH:mm:ss/format
/component-instance

sitemap:
map:transform type=xslt src=style/main.xsl
map:parameter name=thecurrentdate value={date:format}/
...

delivers the expected result. But

cocoon.xconf:
component-instance class
=org.apache.cocoon.components.modules.input.DateInputModule
  logger=core.modules.input
  name=date
  format-somethingEEE, d MMM  HH:mm:ss/format-something
/component-instance

sitemap:
map:transform type=xslt src=style/main.xsl
map:parameter name=thecurrentdate value={date:format-something}/

delivers the default date formatting and not the format-something.

Did I mix up cocoon-versions or misunderstood something?

Markus


 Perry Molendijk xions () iinet ! net ! au

  For anyone trying to come to grips with input modules. Below is what you
 need to do if you want to make the current date in a particular format
 available in the sitemap:

 in cocoon.xconf look for:

 component-instance
 class=org.apache.cocoon.components.modules.input.DateInputModule
 logger=core.modules.input name=date/

 and replace it with:

 component-instance
 class=org.apache.cocoon.components.modules.input.DateInputModule
 logger=core.modules.input name=date
   au-formatdd-EEE-/au-format
   us-formatMM-dd-/us-format
   formatEEE, MMM d, /format
   long-formatEEE, d MMM  HH:mm:ss Z/long-format
 /component-instance

 in the sitemap snippet below is an example of passing the current date as
a
 parameter to an XSL:

 map:match pattern=**.pdf
   map:generate src=xdocs/{1}.xml/
   map:transform src=stylesheets/xmlToFo.xsl
   map:parameter name=currentDate value={date:format}/
   /map:transform
   map:serialize type=fo2pdf/
 /map:match

 You can replace {date:format} with {date:x} where x represents
the
 name of one of the tags added in cocoon.xconf.
 e.g. {date:long-format} will give you a date in EEE, d MMM  HH:mm:ss
Z
 format.

 From an error message I worked that the date input module must somehow
use
 the SimpleDateFormat, so for more information about the date formats
 supported see the Java JDK docs on
docs/api/java/text/SimpleDateFormat.html.




Markus Schulze





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



Re: Writing to filesystem

2003-06-16 Thread Ali Mesbah
As quoted from Upayavira [EMAIL PROTECTED]:
  Hi,
  
  What is the best way to write the output of a Transformer (in a
  pipeline) into a file (e.g. /resources/bla.xml) on the filesystem?
 
 Check out the SourceWritingTransformer.

I am checking it out. thanks. I'm getting an error though:

failedThere was a problem manipulating your document: org.w3c.dom.DOMException: 
HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. 
writenonefile:/resources/result.xml


My xml source (called test.xml): 
?xml version=1.0 encoding=UTF-8?
page
source:write xmlns:source=http://apache.org/cocoon/source/1.0;
  source:sourcecontext://resources/result.xml/source:source 
  source:fragment
titleSourceWritingTransformer Test Result 1/title
  /source:fragment  
/source:write
/page

My pileline:
map:match pattern=test
  map:generate src=resources/test.xml/
  map:transform type=sourcewriter/
  map:serialize type=xml/
/map:match


sourcewriter:
map:transformers default=xalan
  map:transformer name=sourcewriter logger=sitemap.transformer.filewriter
src=org.apache.cocoon.transformation.SourceWritingTransformer
 map:parameter name=serializer value=xml/
   /map:transformer   
/map:transformers

what am I doing wrong?

Thanks,
Ali

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

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



Re: Writing to filesystem

2003-06-16 Thread Geoff Howard
It is complaining about the whitespace nodes between source:frament and 
title.
You'll get this anytime you overwrite a whole document.  To fix, just do 
something
like:

...
  source:fragmenttitleSourceWritingTransformer Test Result 
1/title/source:fragment
...

At 08:39 AM 6/16/2003, you wrote:
As quoted from Upayavira [EMAIL PROTECTED]:
  Hi,
 
  What is the best way to write the output of a Transformer (in a
  pipeline) into a file (e.g. /resources/bla.xml) on the filesystem?

 Check out the SourceWritingTransformer.
I am checking it out. thanks. I'm getting an error though:

failedThere was a problem manipulating your document: 
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to 
insert a node where it is not permitted. writenonefile:/resources/result.xml

My xml source (called test.xml):
?xml version=1.0 encoding=UTF-8?
page
source:write xmlns:source=http://apache.org/cocoon/source/1.0;
  source:sourcecontext://resources/result.xml/source:source
  source:fragment
titleSourceWritingTransformer Test Result 1/title
  /source:fragment
/source:write
/page


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


Re: Writing to filesystem

2003-06-16 Thread Ali Mesbah
As quoted from Geoff Howard [EMAIL PROTECTED]:
 It is complaining about the whitespace nodes between source:frament and 
 title.
 You'll get this anytime you overwrite a whole document.  To fix, just do 
 something
 like:
 
 ...
   source:fragmenttitleSourceWritingTransformer Test Result 
 1/title/source:fragment
 ...

Wonderful. Thanks it works :) 


 At 08:39 AM 6/16/2003, you wrote:
 As quoted from Upayavira [EMAIL PROTECTED]:
   Hi,
  
   What is the best way to write the output of a Transformer (in a
   pipeline) into a file (e.g. /resources/bla.xml) on the filesystem?
 
  Check out the SourceWritingTransformer.
 
 I am checking it out. thanks. I'm getting an error though:
 
 failedThere was a problem manipulating your document: 
 org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to 
 insert a node where it is not permitted. 
 writenonefile:/resources/result.xml
 
 
 My xml source (called test.xml):
 ?xml version=1.0 encoding=UTF-8?
 page
 source:write xmlns:source=http://apache.org/cocoon/source/1.0;
   source:sourcecontext://resources/result.xml/source:source
   source:fragment
 titleSourceWritingTransformer Test Result 1/title
   /source:fragment
 /source:write
 /page
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
-- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600

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



AW: OOo and ZipArchive serializer

2003-06-16 Thread Stoeckel, Matthias
Hi Upayavira,

attached is a patch which should offer the STORED functionality. It's not
very nice, but I don't see an easier way than buffering the whole stream.
Cheers
  Matthias

Index: ZipArchiveSerializer.java
===
RCS file: 
/home/cvspublic/cocoon-2.1/src/java/org/apache/cocoon/serialization/ZipArchiveSerializer.java,v
retrieving revision 1.4
diff -u -r1.4 ZipArchiveSerializer.java
--- ZipArchiveSerializer.java   23 May 2003 09:53:46 -  1.4
+++ ZipArchiveSerializer.java   16 Jun 2003 12:55:56 -
@@ -57,6 +57,7 @@
 import java.util.Enumeration;
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipOutputStream;
+import java.util.zip.CRC32;
 
 import org.apache.avalon.framework.activity.Disposable;
 import org.apache.avalon.framework.component.ComponentException;
@@ -288,21 +289,56 @@
 new SAXException(Cannot specify both 'src' and 'serializer' on a Zip 
entry ' + name + ');
 }
 
+String method = atts.getValue(method);
+if (method!=null) {
+if (!method.equalsIgnoreCase(STORED)  
!method.equalsIgnoreCase(DEFLATED)) {
+throw this.exception =
+   new SAXException(Method attribute must be either STORED or 
DEFLATED);
+}
+}
+
 Source source = null;
 try {
-// Create a new Zip entry
-ZipEntry entry = new ZipEntry(name);
-this.zipOutput.putNextEntry(entry);
-
 if (src != null) {
 // Get the source and its data
 source = resolver.resolveURI(src);
 InputStream sourceInput = source.getInputStream();
 
+// Create a new Zip entry
+ZipEntry entry = new ZipEntry(name);
+
+// read the inputstream an pipe it through the crc32
+byte[] resultbuffer = null;
+if (STORED.equalsIgnoreCase(method)) {
+entry.setMethod(ZipEntry.STORED);
+CRC32 crc=new CRC32();
+int lenmax = 0;
+int len = 0;
+byte[] tempresultbuffer = null;
+
+while ((len = sourceInput.read(buffer))  0)
+{
+crc.update(buffer,0,len);
+tempresultbuffer = new byte[len + lenmax];
+if (lenmax != 0)
+System.arraycopy(resultbuffer, 0, tempresultbuffer, 0, 
lenmax);
+System.arraycopy(buffer, 0, tempresultbuffer, lenmax, len);
+lenmax += len;
+resultbuffer = tempresultbuffer;
+}
+entry.setSize(lenmax);
+entry.setCrc(crc.getValue());
+}
+this.zipOutput.putNextEntry(entry);
+
 // Copy the source to the zip
-int len;
-while ((len = sourceInput.read(this.buffer))  0) {
-this.zipOutput.write(this.buffer, 0, len);
+if (STORED.equalsIgnoreCase(method))
+this.zipOutput.write(resultbuffer);
+else {
+int len;
+while ((len = sourceInput.read(this.buffer))  0) {
+this.zipOutput.write(this.buffer, 0, len);
+}
 }
 
 // and close the entry

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

Cocoon 2.1 M3-dev War file

2003-06-16 Thread Brian Delahunty



On a windows system is it possible 
to get a war built using Cocoon 2.1 m3 ???

I've tried "build war", "build 
webapp", "build installwar" but I always end up with a webapps directory... I 
can just copy that into my server and it works but for redistribution between my 
work mates a plain war file would be nice.

Any ideas?

Brian


parameter value syntax in sitemap

2003-06-16 Thread Maxime.Gheysen
Hello. 
How is it possible in the sitemap to combine values with text and
requests? eg:

map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/

This example returns an error.
I also tried with {request-param:serverurl}\\{request-param:name} but
without result...

thanks

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



Re: parameter value syntax in sitemap

2003-06-16 Thread Joerg Heinicke
Slash instead of back slash??

Joerg

[EMAIL PROTECTED] wrote:
Hello. 
How is it possible in the sitemap to combine values with text and
requests? eg:

map:parameter name=rootdn
value={request-param:serverurl}\{request-param:name}/
This example returns an error.
I also tried with {request-param:serverurl}\\{request-param:name} but
without result...
thanks
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon 2.1 M3-dev War file

2003-06-16 Thread Joerg Heinicke
build war

gives you a WAR file too.

Joerg

Brian Delahunty wrote:
On a windows system is it possible to get a war built using Cocoon 2.1 
m3 ???
 
I've tried build war, build webapp, build installwar but I always 
end up with a webapps directory... I can just copy that into my server 
and it works but for redistribution between my work mates a plain war 
file would be nice.
 
Any ideas?
 
Brian
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon 2.1 M3-dev War file

2003-06-16 Thread Geoff Howard
The webapps directory is always built, and the war is build from it.  Are
you certain it is not creating a .war file?  It should be in build/cocoon.war
Geoff

At 09:03 AM 6/16/2003, you wrote:
On a windows system is it possible to get a war built using Cocoon 2.1 m3 ???

I've tried build war, build webapp, build installwar but I always 
end up with a webapps directory... I can just copy that into my server and 
it works but for redistribution between my work mates a plain war file 
would be nice.

Any ideas?

Brian


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


Writing nodes with xsp

2003-06-16 Thread morten svanæs



Hi,
Is there a solution for making nodes with 
xsp.
Without using xslt transforamtions on the 
xsp.

I want to do something like:
for(int x=0; x lt 10; x++)
{
 
xsp:nodenodenamexsp:exprx/xsp:expr/xsp:node
}

Result would then be:
doc
 /nodename0
 /nodename1
 etc...

/doc

Morten Svanaes




Custom Generators - SAX

2003-06-16 Thread Brian Delahunty



Hi,

I'm not sure if this is where I 
should be asking this.

I'm writing a custom generator that 
needs to just return an XML document that's contained within a String. Now in the past I have used 
code like this [Simple Hello-World]:
public 
class SMSGenerator 
extends 
AbstractGenerator { AttributesImpl emptyAttr = 
new 
AttributesImpl(); 
public void generate() throws SAXException 
{  
contentHandler.startDocument();  
contentHandler.startElement("", "abc", 
"def", 
emptyAttr);  
contentHandler.characters("Hello 
World".toCharArray(), 0, "Hello World".length()); 
 contentHandler.endElement("","abc", "def");  
contentHandler.endDocument(); }}

I now have the XML file in a 
String and I need this to be "returned" by the generator. I was just wondering 
if anybody knew how to do that without going through the String, breaking it 
into "Elements" and "characters"

Thanks in advance

Brian



Re: Custom Generators - SAX

2003-06-16 Thread Holger Dewes
Brian Delahunty wrote:
Hi,
 
I'm not sure if this is where I should be asking this.
 
I'm writing a custom generator that needs to just return an XML document 
that's contained within a String. Now in the past I have used code like 
this [Simple Hello-World]:
*
public* *class* SMSGenerator *extends* AbstractGenerator {
AttributesImpl emptyAttr = *new* AttributesImpl();
*public* *void* generate() *throws* SAXException
{
contentHandler.startDocument();
contentHandler.startElement(, abc, def, emptyAttr);
contentHandler.characters(Hello World.toCharArray(), 0, Hello 
World.length());
contentHandler.endElement(,abc, def);
contentHandler.endDocument();
}
}
 
I now have the XML file in a String and I need this to be returned by 
the generator. I was just wondering if anybody knew how to do that 
without going through the String, breaking it into Elements and 
characters
 
You use a SAX parser, like this:

public void generate() throws SAXException
{
// ...
org.xml.sax.XMLReader xr =
org.xml.sax.helpers.XMLReaderFactory.createXMLReader();
xr.setContentHandler(this.contentHandler);
String result = ...;
xr.parse(new org.xml.sax.InputSource(result.getBytes());
}
This should do the trick. You might have to specify the character 
encoding when converting the String to a byte array with getBytes().

--
Holger Dewes
insiders GmbH   Tel. +49 6131 98210-0
Wissensbasierte Systeme Fax  +49 6131 98210-11
Wilh.-Th.-Römheld-Str. 18   [EMAIL PROTECTED]
55130 Mainz http://www.insiders.de/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Writing nodes with xsp

2003-06-16 Thread morten svanæs
Hi,
I tried to use:
for(int x=0; x lt 10; x++)
{
  xsp:element
  xsp:param name=namefooxsp:exprbarxsp:expr/xsp:param
  /xsp:element
}

But this results in :
Language Exception:

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
ordre_markise_model_xsp:
ERROR 1
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
ava):
...
this.characters(\n\t\t);
// start error (lines 202-202) The method startElement(String, String,
String, Attributes) in the type ContentHandler is not applicable for the
arguments (String, int, int, AttributesImpl)
this.contentHandler.startElement(
// end error
,
(x)
...
ERROR 2
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
ava):
...
this.characters(\n\t\t);
// start error (lines 863-863) The method endElement(String, String,
String) in the type ContentHandler is not applicable for the arguments
(String, int, int)
this.contentHandler.endElement(
// end error
,
(x)
...
Line 202, column 0: The method startElement(String, String, String,
Attributes) in the type ContentHandler is not applicable for the arguments
(String, int, int, AttributesImpl)
Line 863, column 0: The method endElement(String, String, String) in the
type ContentHandler is not applicable for the arguments (String, int, int)

Seems like I can't have expr inside param, is this fact ?
If so how can I write a dynamic element name ?

Morten Svanaes


- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 3:24 PM
Subject: Re: Writing nodes with xsp


 xsp:element see http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax

 Geoff

 At 11:13 AM 6/16/2003, you wrote:
 Hi,
 Is there a solution for making nodes with xsp.
 Without using xslt transforamtions on the xsp.
 
 I want to do something like:
 for(int x=0; x lt 10; x++)
 {
  xsp:nodenodenamexsp:exprx/xsp:expr/xsp:node
 }
 
 Result would then be:
 doc
  /nodename0
  /nodename1
  etc...
 
 /doc
 
 Morten Svanaes
 
 



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


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



Re: escape SUM function from within sql:query in scheme.xml??

2003-06-16 Thread Paul Tomsic
SUM() most CERTAINLY is a function in XSL.
From page 554 of WROX, XSLT 2nd Edition, Programmer's
Reference by Michael Kay, 

The sum() function calculates the total set of
numeric values contained in a node-set.
For example, if the context node is the element rect
x=20 y=30/ then the expression sum(@*) 
returns 50.

Now HOW are you going to tell me that SUM() isn't an
XSLT function?

When I remove the sum() from my SQL query, however,
and simply use it from within the XSL page, I'm fine. 

I was just wondering what the best way to escape sql
functions like SUM() would be using cocoon?





SUM() is not an XSLT/XPath function. Furthermore you
wrote it as text, 
not as expression, so this can't be the reason for
your problem.

Joerg

Paul Tomsic wrote:
 Is there a way to escape the SQL function SUM()
 from within the sql:query element in the
scheme.xml
 file?
 
 I'm trying to do:
 
 sql:query
   SELECT SUM(column) FROM WHATEVER WHERE etc...
 /sql:query
 
 but during the transform, I'm getting an error,
 obviously, b/c the SUM() is a function from within
 XSL.
 
 Thoughts?
 
 thanks


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Getting Resource not found error on webLogic 8.1

2003-06-16 Thread Ralph Goers


Are you using the pre-built cocoon? weblogic 8.1 ships with JDK
1.4. Cocoon probably needs to be rebuilt from the source using the JDK
provided with weblogic (in \bea\jdk141_02). You will also need to
place the xalan, xerces and xml-apis jar files that come with cocoon in
\bea\jdk141_02\jre\lib\endorsed (you will have to create the endorsed
directory).
Have you tried Cocoon 2.1? I have that working.
Ralph
At 6/16/2003 06:54 AM, you wrote:
Dear all,
I am getting Resource not found error when trying cocoon
2.0.4 on weblogic 8.1. What I did was to place the cocoon.war under
the application directory and modify the config.xml. Could someone
please tell me what I did wrong and how I could fix this
problem?

Thanks alot in advance for all your help.

Thanks,
Anne


Cocoon 2 - Resource not found
type resource-not-found
message Resource not found

description The requested URI /cocoon/index.html
was not found.

sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/index.html
path-info
index.html

Do you Yahoo!?
SBC
Yahoo! DSL - Now only $29.95 per month! 



RE: parameter value syntax in sitemap

2003-06-16 Thread Maxime.Gheysen
I don't think, because the login name has to be : Domain\User
It works with CORPROOT\TFRGHM00
But not with {request-param:serverurl}\{request-param:name} where
serverurl=CORPROOT and name=TFRGHM00

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: parameter value syntax in sitemap


Slash instead of back slash??

Joerg


[EMAIL PROTECTED] wrote:
 Hello. 
 How is it possible in the sitemap to combine values with text and
 requests? eg:
 
 map:parameter name=rootdn
 value={request-param:serverurl}\{request-param:name}/
 
 This example returns an error.
 I also tried with {request-param:serverurl}\\{request-param:name}
but
 without result...
 
 thanks

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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


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



Re: Writing nodes with xsp

2003-06-16 Thread Geoff Howard
No, it looks like you just have a problem with the java type.

Try String.valueOf(bar) instead of just bar

Geoff



At 11:55 AM 6/16/2003, you wrote:
Hi,
I tried to use:
for(int x=0; x lt 10; x++)
{
  xsp:element
  xsp:param name=namefooxsp:exprbarxsp:expr/xsp:param
  /xsp:element
}
But this results in :
Language Exception:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
ordre_markise_model_xsp:
ERROR 1
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
ava):
...
this.characters(\n\t\t);
// start error (lines 202-202) The method startElement(String, String,
String, Attributes) in the type ContentHandler is not applicable for the
arguments (String, int, int, AttributesImpl)
this.contentHandler.startElement(
// end error
,
(x)
...
ERROR 2
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
ava):
...
this.characters(\n\t\t);
// start error (lines 863-863) The method endElement(String, String,
String) in the type ContentHandler is not applicable for the arguments
(String, int, int)
this.contentHandler.endElement(
// end error
,
(x)
...
Line 202, column 0: The method startElement(String, String, String,
Attributes) in the type ContentHandler is not applicable for the arguments
(String, int, int, AttributesImpl)
Line 863, column 0: The method endElement(String, String, String) in the
type ContentHandler is not applicable for the arguments (String, int, int)
Seems like I can't have expr inside param, is this fact ?
If so how can I write a dynamic element name ?
Morten Svanaes

- Original Message -
From: Geoff Howard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 3:24 PM
Subject: Re: Writing nodes with xsp
 xsp:element see http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax

 Geoff

 At 11:13 AM 6/16/2003, you wrote:
 Hi,
 Is there a solution for making nodes with xsp.
 Without using xslt transforamtions on the xsp.
 
 I want to do something like:
 for(int x=0; x lt 10; x++)
 {
  xsp:nodenodenamexsp:exprx/xsp:expr/xsp:node
 }
 
 Result would then be:
 doc
  /nodename0
  /nodename1
  etc...
 
 /doc
 
 Morten Svanaes
 
 



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


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


Usage of Cocoon Material in Presentation

2003-06-16 Thread Alexander Schatten
I will hold a tutorial at the international conference of information 
integration and web-based services (iiWAS) about advanced XSL publishing.

Consequently I want to give a brief introduction to Cocoon and make a 
litte promotion too. So the question is, may I use material from the 
Cocoon documentation like illustrations/images? I would assume so, as 
the project is open source, but I just want to be sure, before I insult 
anyones rights...

thank you for comments.

alex

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


Re: Writing nodes with xsp

2003-06-16 Thread morten svanæs
Hi,
thanks ! Works fine !

Regards
Morten Svanaes

- Original Message -
From: Holger Dewes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 4:07 PM
Subject: Re: Writing nodes with xsp


 Try this:

 xsp:element
 xsp:param name=name
 fooxsp:exprString.valueOf(bar)/xsp:expr
 /xsp:param
 /xsp:element

 morten svanæs wrote:

  Hi,
  I tried to use:
  for(int x=0; x lt 10; x++)
  {
xsp:element
xsp:param name=namefooxsp:exprbarxsp:expr/xsp:param
/xsp:element
  }
 
  But this results in :
  Language Exception:
 
  org.apache.cocoon.ProcessingException: Language Exception:
  org.apache.cocoon.components.language.LanguageException: Error compiling
  ordre_markise_model_xsp:
  ERROR 1
 
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
  ava):
  ...
  this.characters(\n\t\t);
  // start error (lines 202-202) The method startElement(String, String,
  String, Attributes) in the type ContentHandler is not applicable for the
  arguments (String, int, int, AttributesImpl)
  this.contentHandler.startElement(
  // end error
  ,
  (x)
  ...
  ERROR 2
 
(org\apache\cocoon\www\xmldbform\bestilling\skjema\ordre_markise_model_xsp.j
  ava):
  ...
  this.characters(\n\t\t);
  // start error (lines 863-863) The method endElement(String, String,
  String) in the type ContentHandler is not applicable for the arguments
  (String, int, int)
  this.contentHandler.endElement(
  // end error
  ,
  (x)
  ...
  Line 202, column 0: The method startElement(String, String, String,
  Attributes) in the type ContentHandler is not applicable for the
arguments
  (String, int, int, AttributesImpl)
  Line 863, column 0: The method endElement(String, String, String) in the
  type ContentHandler is not applicable for the arguments (String, int,
int)
 
  Seems like I can't have expr inside param, is this fact ?
  If so how can I write a dynamic element name ?
 
  Morten Svanaes
 
 
  - Original Message -
  From: Geoff Howard [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 16, 2003 3:24 PM
  Subject: Re: Writing nodes with xsp
 
 
 
 xsp:element see http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax
 
 Geoff
 
 At 11:13 AM 6/16/2003, you wrote:
 
 Hi,
 Is there a solution for making nodes with xsp.
 Without using xslt transforamtions on the xsp.
 
 I want to do something like:
 for(int x=0; x lt 10; x++)
 {
 xsp:nodenodenamexsp:exprx/xsp:expr/xsp:node
 }
 
 Result would then be:
 doc
 /nodename0
 /nodename1
 etc...
 
 /doc
 
 Morten Svanaes
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 --
 Holger Dewes

 insiders GmbH   Tel. +49 6131 98210-0
 Wissensbasierte Systeme Fax  +49 6131 98210-11
 Wilh.-Th.-Römheld-Str. 18   [EMAIL PROTECTED]
 55130 Mainz http://www.insiders.de/


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


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



Re: WebServiceProxyGenerator problem

2003-06-16 Thread Azam .
2.0.4 on tomcat-4.1.24Geoff Howard [EMAIL PROTECTED] wrote:
2.1 or 2.0?At 02:13 AM 6/16/2003, you wrote:Hi allI want to use sth like this in my sitemap   src="" label="xml"/   and I define this in sitemap generators  src="" logger="webapp.wsproxy"/but the problem is it couldn't find org.apache.cocoon.generation.WebServiceProxyGeneratorshould I add any extra jar to my cocoon lib? or anything
 else?thanks in advanceazam-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Building lucene index without crawling?

2003-06-16 Thread Peter Klotz
Hi,

I have Cocoon 2.0.4.
Is it possible to generate a Lucene index from XML content without using 
a crawler? The question might sound strange but the reason is that I 
could produce all content and all links to index from a pipeline. Just 
indexing and searching that would be fine. Furthermore I'm having 
problems building the link-views because I would need to transfrom the 
XML produced by my pipelines in order to get href= link attributes.
And it would be quite impossible to duplicate each pipeline only to 
generate the same XML but putting a link-transformation on it.

Therefore I would like to not crawl but still index. The question how 
can that be done?
I have XML like this

  tag name=myname
labeltext to index/label
descriptiontext to index on as well /description
  /tag
I could apply a XSL on this so that I get links

tag href=/cocoon/app/get_blah_myname/

But of course not in the same pipeline that produces HTML from this XML.
Therefore I want to explicitely by myself product the XML content and 
links to index instead of crawling.

Thanks for any help, Peter

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


RE: Building lucene index without crawling?

2003-06-16 Thread Reinhard Pötz

 From: Peter Klotz [mailto:[EMAIL PROTECTED] 
 
 
 Hi,
 
 I have Cocoon 2.0.4.
 Is it possible to generate a Lucene index from XML content 
 without using 
 a crawler? The question might sound strange but the reason is that I 
 could produce all content and all links to index from a 
 pipeline.

I think you have to make your own implementation of
org.apache.cocoon.components.search.LuceneCocoonIndexer which does the
job you want using the SourceResolver. Look at
SimpleLuceneCocoonIndexerImpl to get the idea!

Hope that helps.

Reinhard


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



WebServiceProxyGenerator fails to handle URL

2003-06-16 Thread Philippe Remels
Trying to use WebServiceProxyGenerator I keep getting the error :
org.apache.cocoon.ProcessingException: Error invoking remote service: 
java.lang.IllegalArgumentException: host parameter is null: 
java.lang.IllegalArgumentException: host parameter is null

With the following Stack

Original Exception: java.lang.IllegalArgumentException: host parameter is null 
at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:227) 
at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:148) 
at 
org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:123)
 
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:548) 
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:476) 
at 
org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:251)
 
...

I have Cocoon 2.1-m2 installed on Tomcat. The following map:generate instruction 
causes the error :
map:pipeline
  map:match pattern=brol1
map:generate type=proxy src=http://192.168.32.75:8080/testservlet/Brol1/
!-- map:transform type=xslt src=something.xsl/--
map:serialize type=html/
  /map:match
/map:pipeline

I saw in dev mailing list that there was some discussion on method selection (get or 
post) . The source I have doesn't seem to take that discussion into account. Is there 
a recent fix ? How could I get it ?



Philippe Remels
Technical Designer
* [EMAIL PROTECTED]
* : +32 (02) 545.17.11 * : +32 (02) 545.17.19
Isabel SA
Bd. de l'Impératrice 13-15
B - 1000 Bruxelles
Web : www.isabel.be

DISCLAIMER : Confidential information may be contained in this message and it may be 
legally privileged.  If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you may not copy or deliver 
this message to anyone. In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately if you or your employer 
does not consent to Internet email for messages of this kind.  Opinions, conclusions 
and other information in this message that do not relate to the official business of 
Isabel shall be understood as neither given nor endorsed by it. Messages and 
attachments are swept by a virusscanner. If this message contains password-protected 
attachments, the files have not been scanned for viruses by the Isabel mail domain. 
Always scan attachments before opening them.



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



Continuations and JXForms

2003-06-16 Thread JD Daniels
Is there some little snip of code for the form that I haven't found in the
docs to make this work? Here is my trouble:

Display the form.
Click next --Errors
Repair Errors--click next all is good. (Or success and display results.
Errors on the form make no difference)

Display the form
Click next --Errors (Or success and display results. Errors on the form
make no difference)
click The back Button on the browser to go back too the form.. fill it out
again
Invalid continuation error.

I was thinking the continuation id was generated when the form is submitted.
Should it not generate a new one if the user goes back to the form and
resubmits it?

Cocoon2.1m3 dev june 15 7:00pm
Linux redhat 7.3
Sun Java sdk  1.4.01

JD


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



[HELP]XSL to PDF graphics

2003-06-16 Thread Michael Plumb
I am attempting to convert An XSL:FO and XML file to a PDF output.  I can
currently get the text to work just fine.  But I am unable to get the
graphics I have within my XSL file to convert over as well.  I am left with
a PDF page of Text with holes where the graphics should be.  Could you
please send me the SITEMAP line of code to fix this problem, or tell me
another way to remedy it.  Thank you.

CUBE


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



apache httpd error

2003-06-16 Thread Eddie Fang








Hi All:



My setup is as follows: Cocoon2.0.4 +
JBoss3.0/Tomcat4.0.4 + Apache Httpd2.0.45 + Mod_jk(2.0.45). 



When I dont have Apache httpd running and I access
the web application through Tomcat, everything runs fine. 



When I run Apache httpd in front of Tomcat, and access the
web application through Apache, sometimes the returned generated html contains
the following: 2/3 of the original html code + http header info + original html
code. This error often occurs when I refresh the page using the _javascript_:
location.href="" Ive tried different
connectors (Mod_jk2 with ajp13, Coyote2.0, Coyote beta9) with no avail. 



Any information is greatly appreciated.



Eddie
















RE: Continuations and JXForms

2003-06-16 Thread Jonathan Spaeth
Title: RE: Continuations and JXForms





JD


I am not an official cocoon developer, but I believe the continuation id is generated the first time a user visits any page in the flowscript, not just the final submission.

Jon


-Original Message-
From: JD Daniels [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 16, 2003 2:21 PM
To: [EMAIL PROTECTED]
Subject: Continuations and JXForms



Is there some little snip of code for the form that I haven't found in the
docs to make this work? Here is my trouble:


Display the form.
Click next --Errors
Repair Errors--click next all is good. (Or success and display results.
Errors on the form make no difference)


Display the form
Click next --Errors (Or success and display results. Errors on the form
make no difference)
click The back Button on the browser to go back too the form.. fill it out
again
Invalid continuation error.


I was thinking the continuation id was generated when the form is submitted.
Should it not generate a new one if the user goes back to the form and
resubmits it?


Cocoon2.1m3 dev june 15 7:00pm
Linux redhat 7.3
Sun Java sdk 1.4.01


JD



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





Re: [HELP]XSL to PDF graphics

2003-06-16 Thread J.Pietschmann
Michael Plumb wrote:

I am attempting to convert An XSL:FO and XML file to a PDF output.  I can
currently get the text to work just fine.  But I am unable to get the
graphics I have within my XSL file to convert over as well.  I am left with
a PDF page of Text with holes where the graphics should be.  Could you
please send me the SITEMAP line of code to fix this problem, or tell me
another way to remedy it.  Thank you.
The PDF serializer probably can't find the image files.
You can try absolute file URLs, like
  src=file:///foo/bar/some-image.jpg
or define a base URL in the config file.
You can find more on the latter in the COcoon docs and the
Wiki.
J.Pietschmann

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


Basic authentication

2003-06-16 Thread Peter Flynn
I have failed to find anything in the docs about implementing
crude Apache-style authentication (eg equivalent to .htaccess).
We don't have any global auth framework yet, so the more
sophisticated methods won't be applicable. The user requirement
is simply to restrict some directories to user/psw pairs like
we did before :-) Can someone point me at what I must have 
missed? I guess I could fake it up (although I don't know how
to call crypt() from within an XSLT script) but I felt there is
probably a better way...

///Peter


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



Re: escape SUM function from within sql:query in scheme.xml??

2003-06-16 Thread Joerg Heinicke
Paul Tomsic wrote:
SUM() most CERTAINLY is a function in XSL.
From page 554 of WROX, XSLT 2nd Edition, Programmer's
Reference by Michael Kay, 

The sum() function calculates the total set of
numeric values contained in a node-set.
For example, if the context node is the element rect
x=20 y=30/ then the expression sum(@*) 
returns 50.
Now HOW are you going to tell me that SUM() isn't an
XSLT function?
Calm down! XML and so XSLT is case-sensitive, so SUM() is not a XSLT 
function, but sum(). This difference is important! And there is still 
the fact, that you wrote it as text and not as expression in the XSLT 
meaning.

Joerg

When I remove the sum() from my SQL query, however,
and simply use it from within the XSL page, I'm fine. 

I was just wondering what the best way to escape sql
functions like SUM() would be using cocoon?


Paul Tomsic wrote:
Is there a way to escape the SQL function SUM()
from within the sql:query element in the
scheme.xml

file?

I'm trying to do:

sql:query
 SELECT SUM(column) FROM WHATEVER WHERE etc...
/sql:query
but during the transform, I'm getting an error,
obviously, b/c the SUM() is a function from within
XSL.
Thoughts?

thanks


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


SQL Transformer, part of xml doc in a database field.

2003-06-16 Thread Chris

SQL Transformer, part of xml doc in a database field.

What if one of the fields from a select statement
in an sql:query has a text field that contains
a valid xml document.

All the '' and '' characters get escaped, I would like
the xml in this field to be part of the rowset
as valid xml,

any ideas, is there a way to say don't escape for
a specific field?

-chris

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



XML to Fomatted HTML, how?

2003-06-16 Thread Jeff Sexton

I've put various URLs in my sitemap to return data at various stages of
processing for debugging.  This works fine, but it would be nice if I
could serialize XML to HTML that's nicely indented, has blank lines
removed, etc.  Is there a stylesheet for this?

I tried adding  xsl:output indent=yes/ to the top of a stylesheet, but
this doesn't seem to do anything.

How do others do this?

Thanks


Jeff Sexton
The ODS Companies
[EMAIL PROTECTED]



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



embed jpg/png/svg image in excel

2003-06-16 Thread Joydeep Bose
Hi, 

I am using gnumeric xml format to specify excel data and serialising it to 
excel format using cocoon HSSFSerialiser. 
Can somebody direct me how I can embed jpg/png or svg images in that excel 
file using the xml format. 

I am using cocoon 2.0.4. Does the HSSFSerialiser that comes with 2.0.4 support 
images ? 
Thanks 
Joydeep 


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



Re: XML to Fomatted HTML, how?

2003-06-16 Thread Chris


http://www.dpawson.co.uk/xsl/sect2/pretty.html

try number 2

 I've put various URLs in my sitemap to return data at various stages of
 processing for debugging.  This works fine, but it would be nice if I
 could serialize XML to HTML that's nicely indented, has blank lines
 removed, etc.  Is there a stylesheet for this?
 
 I tried adding  xsl:output indent=yes/ to the top of a stylesheet, but
 this doesn't seem to do anything.
 
 How do others do this?
 
 Thanks
 
 
 Jeff Sexton
 The ODS Companies
 [EMAIL PROTECTED]

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



Re: [ANN] Orixo launched

2003-06-16 Thread Stefano Mazzocchi
on 6/16/03 5:27 AM Matthew Langham wrote:

 To the Cocoon Community
 
 The involvement of commercial entities in an open source project can help
 tremendously with its success. If we look at the Linux OS, the Apache web
 server or other important open source projects, we often can see a mixed
 model where business and open source go side by side.
 
 In the past, the commercial side of Cocoon has been slightly in the dark.
 Some community members were known to be commercial entities, but in general,
 their commercial side has been intentionally kept low profile. We believe
 that this can be especially a disadvantage when it comes to enticing new
 companies into the world of Cocoon - they might fear that there is no
 support nor additional tools which will help them to build sustainable
 operations based on our beloved Cocoon project.
 
 In addition, we are perceiving an increasing need for additional Cocoon
 services such as training or consulting.
 
 At the previous GetTogether, the undersigned started a loose discussion on
 forming some sort of business alliance with the aim of being an umbrella
 under which commercial entities could discuss business perspectives, share
 resources or work together on new Cocoon related topics.
 
 The undersigned were able to join in open discussion (although being
 competitors) because we felt that the business model laid out in the
 Cluetrain manifesto was a Good Thing when it comes to defining business in
 the Internet age. Also, as much as we care about our own businesses, we have
 been working inside this wonderful Cocoon community for a long time and care
 a great deal about its sustained development, both community- and
 technology-wise.
 
 These discussions resulted in a consortium of 6 European companies, whose
 names are well familiar to the Cocoon community, joining forces to
 accelerate the corporate adoption of Cocoon by offering a shared vision of
 support and services. The name of the consortium is Orixo and the website is
 at http://www.orixo.com
 
 We feel very strong about the fact that an open source-related business
 initiative should have a particular emphasis on giving back to the
 community. The undersigned are all active members of the Cocoon project, and
 we hope that our joined efforts will continue to be beneficial for the
 entire Cocoon community. With regards to our involvement in the Cocoon
 project, business remains as usual.
 
 Signed
 
 Anyware Technologies
 Luminas
 Otego
 Outerthought
 Pro-netics
 SN AG

I would like to express some comments about this.

First and most important, I am *VERY* *HAPPY* to see something like this
finally happening. The greatest strenght of a healthy community is its
diversity and ability to keep balance with decentralization.

I've been knowing that Orixo was in the making and they asked me for
suggestion and criticism. Even if some of that criticism was strong and
potentially harmful for them, they were ready to discuss it and to do
what was best for both their interest and the cocoon community's.

This left me with a very nice warm feeling about this, a feeling that it
might well be possible to do commercial collaboration with the same
attitude used to do open source software.

Please note that what Orixo is trying to achieve is highly innovative: a
consortium of companies is not a new thing, but a consortium of
companies backed up with community feelings is, IMO, innovative.

Will it work? nobody knows, but I wish to all the people involved the
best luck. And I really mean it.

All those companies contributed *significatively* to the evolution of
Cocoon, in many different ways and I'm sure they will continue to do so
in the future, because it's also in their interests.

Who believes that altruism is the engine of open source really doesn't
get it: sellfishness is, but sellfishness gets a different taste when
it's in a world with more aboundance.

In this sense, the difference between Orixo and JBoss Corp. (for
example) is striking: Orixo is a community of companies, sharing
material, partial costs and pooling resources at need, while keep
different and balancing identities, covering national boundaries.

But the best thing of this is, IMO, the fact that since the different
entities remain isolated, there won't be a community perception of
polarization or Orixo secret agenda or orixo abusing the community
as it is becoming the case with JBoss Corp.

This is incredibly important: providing services on top of a community
that hates you is going to be very bad for a commercial entity. Orixo,
with its decentralized nature, will probably never have to face this
problem.

Please not that I am not, by no means, associated with Orixo (I happened
to do consulting for Otego, Pro-Netics and Luminas, but this was not
related to Orixo), but I consider all the people involved as friends
and, as a friend, I wish them the best of luck from their new commercial
venture.

I really hope they can have the same fun they are 

Re: XML to Fomatted HTML, how?

2003-06-16 Thread Jeff Sexton

On Mon, 16 Jun 2003, Chris wrote:
 http://www.dpawson.co.uk/xsl/sect2/pretty.html

 try number 2

Well, there we go!  Thanks!



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



RE: Basic authentication

2003-06-16 Thread Nathaniel Alfred
This sort of thing is usually done by an upstream Apache or in the
servlet engine (Tomcat) configuration.

If you really want to do it in Cocoon, you can write an action checking
the BA header and use it in the sitemap to either deliver the resource
or the auth-required (403) response.

HTH, Alfred.

-Original Message-
From: Peter Flynn [mailto:[EMAIL PROTECTED]
Sent: Montag, 16. Juni 2003 22:40
To: [EMAIL PROTECTED]
Subject: Basic authentication


I have failed to find anything in the docs about implementing
crude Apache-style authentication (eg equivalent to .htaccess).
We don't have any global auth framework yet, so the more
sophisticated methods won't be applicable. The user requirement
is simply to restrict some directories to user/psw pairs like
we did before :-) Can someone point me at what I must have 
missed? I guess I could fake it up (although I don't know how
to call crypt() from within an XSLT script) but I felt there is
probably a better way...

///Peter


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

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



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



RE: Building lucene index without crawling?

2003-06-16 Thread Conal Tuohy
Yes it is possible. See the LuceneIndexTransformer:
http://wiki.cocoondev.org/Wiki.jsp?page=LuceneIndexTransformer

This component is quite new and there's no other documentation for it, but
it sounds exactly like what you want.

Con

 -Original Message-
 From: Peter Klotz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 17 June 2003 02:34
 To: [EMAIL PROTECTED]
 Subject: Building lucene index without crawling?


 Hi,

 I have Cocoon 2.0.4.
 Is it possible to generate a Lucene index from XML content
 without using
 a crawler? The question might sound strange but the reason is that I
 could produce all content and all links to index from a
 pipeline. Just
 indexing and searching that would be fine. Furthermore I'm having
 problems building the link-views because I would need to
 transfrom the
 XML produced by my pipelines in order to get href= link attributes.
 And it would be quite impossible to duplicate each pipeline only to
 generate the same XML but putting a link-transformation on it.

 Therefore I would like to not crawl but still index. The question how
 can that be done?
 I have XML like this

tag name=myname
  labeltext to index/label
  descriptiontext to index on as well /description
/tag

 I could apply a XSL on this so that I get links

 tag href=/cocoon/app/get_blah_myname/

 But of course not in the same pipeline that produces HTML
 from this XML.
 Therefore I want to explicitely by myself product the XML content and
 links to index instead of crawling.


 Thanks for any help, Peter


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




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



Re: Cocoon for CD-Rom based applications?

2003-06-16 Thread Alexander Schatten
Ramsey, Alan wrote:

Can we run Cocoon without Tomcat (or similar servlet engine?) - I know 
there is a CLI, but does this eliminate the need for a servlet 
engine?  - OR - Do we need to find some way to deploy the servlet 
engine on the client's computer?



the main issue is, if you need the dynamic features of Cocoon.The CLI 
can obviously only generate the statical aspects. if you make database 
queries, or XSP queries with post form actions and the like it is hardly 
possible to make a statical website out of it.

If you use Cocoon to access various sources like XML and databases, but 
the result is mainly statical you can use any webspider to generate an 
offline version out of it and serve this from CD Rom.

But as you wrote of Delphi and the like, I assume you need dynamic 
actions and then a running Cocoon instance would be required. To repeat 
from the beginning: I think you definitly would need some installation 
procedure that installs a JVM and tomcat/cocoon locally... and I doubt 
that this is very practical for a CD Rom presentation.

Alex

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


Re: Link Hosting: MediaHost

2003-06-16 Thread Joerg Heinicke
Updated in CVS.

Joerg

MediaHost (TM) wrote:
Could you please update your site at 
http://cocoon.apache.org/2.0/link/hosting.html and maybe other locations 
to reflect the existence of Cocoon 2.1 and Cocoon 1.8.2 at MediaHost.
 
Thanks a lot and continue the very good work!

Signer:  Eddy Nigg
Company: StartCom Group at http://www.startcom.org
MediaHost (TM) at http://www.mediahost.org


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


Re: Re: Modular database select - session attributes won't fly

2003-06-16 Thread Arthur Allen
Thanks Chris for the clarifications.
You wrote--
In map:componentsmap:actions//map:components you need to configure
the output for the actions, for each one of the database actions
seperately. Add

outputsession-attr/output
( please see javadocs for exact parameter name) to map:action/


This would be the place to disable prepending table name or appending
row number to the parameter name. Again, see javadocs for DatabaseAction
for details.
Your syntax is correct according to the javadocs. I tried it (indeed already 
had
among many other things) and noted no change. I did use other directives
in that area to drop indices, which worked fine.

I noted the output to the logger if that helps:

DEBUG   (2003-06-16) 14:19.01:648   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/SessionPropagatorAction: All 
params propagated to session
DEBUG   (2003-06-16) 14:19.01:648   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/InvokeContext:
Current Sitemap Parameters:
LEVEL 3
PARAM: 'taxonomy.label' VALUE: 'usfr-gaap-ci'
LEVEL 2
PARAM: '../0' VALUE: 'taxonomy/usfr-gaap-ci'
PARAM: '../1' VALUE: 'usfr-gaap-ci'
LEVEL 1
PARAM: '../../0' VALUE: 'taxonomy/usfr-gaap-ci'
PARAM: '../../1' VALUE: 'usfr-gaap-ci'

DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DefaultComponentFactory: 
ComponentFactory creating new instance of 
org.apache.cocoon.acting.modular.DatabaseSelectAction.
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DefaultComponentFactory: no 
logger attribute available, using standard logger
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) 
Thread-9/AbstractComplementaryConfigurableAction: Using cached configuration 
for content/xdocs/xbrl/dbDescriptor.xml
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: modeTypes : 
{1=others, 2=session-attr, 0=autoincr}
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: i=0
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: requested mode 
was others returning all
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: i=1
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: requested mode 
was others returning all
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: i=2
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: requested mode 
was others returning all
DEBUG   (2003-06-16) 14:19.01:658   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: query: SELECT 
namespace, taxonomyid FROM loadedtaxonomies WHERE label= ?
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: Trying to set 
column loadedtaxonomies.label from session-attr using getAttribute method
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: Setting column 
loadedtaxonomies.label [0] usfr-gaap-ci
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction:  row no. 0
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: Setting column 
loadedtaxonomies.label to usfr-gaap-ci
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: Setting column 
loadedtaxonomies.namespace to 
http://www.xbrl.org/taxonomy/us/fr/gaap/ci/2002-10-15
DEBUG   (2003-06-16) 14:19.01:668   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DatabaseAction: Setting column 
loadedtaxonomies.taxonomyid to 31
DEBUG   (2003-06-16) 14:19.01:688   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/DefaultComponentFactory: 
ComponentFactory decommissioning instance of 
org.apache.cocoon.acting.modular.DatabaseSelectAction.
DEBUG   (2003-06-16) 14:19.01:688   [sitemap] 
(/xbrl/xbrl/taxonomy/usfr-gaap-ci) Thread-9/InvokeContext:
Current Sitemap Parameters:
LEVEL 3
PARAM: 'loadedtaxonomies.label' VALUE: 'usfr-gaap-ci'
PARAM: 'row-count' VALUE: '1'
PARAM: 'loadedtaxonomies.namespace' VALUE: 
'http://www.xbrl.org/taxonomy/us/fr/gaap/ci/2002-10-15'
PARAM: 'loadedtaxonomies.taxonomyid' VALUE: '31'
LEVEL 2
PARAM: '../0' VALUE: 'taxonomy/usfr-gaap-ci'
PARAM: '../1' VALUE: 'usfr-gaap-ci'
LEVEL 1
PARAM: '../../0' VALUE: 'taxonomy/usfr-gaap-ci'
PARAM: '../../1' VALUE: 'usfr-gaap-ci'

Arthur

_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL 

RE: Basic authentication

2003-06-16 Thread Peter Flynn
On Mon, 2003-06-16 at 22:11, Nathaniel Alfred wrote:
 This sort of thing is usually done by an upstream Apache or in the
 servlet engine (Tomcat) configuration.

Ah, OK. Thanks.

I thought Cocoon had something built in. Dunno where I got that
idea...

There isn't an upstream Apache (well, we have it on port 80, with
Cocoon on 8080, but the two run independently: Cocoon is serviced
by its own Tomcat).

Now to find out where to do this in Tomcat...

///Peter


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



Re: Cocoon for CD-Rom based applications?

2003-06-16 Thread Bertrand Delacretaz
Le Lundi, 16 juin 2003, à 19:47 Europe/Zurich, Ramsey, Alan a écrit :
...What we would like to do is leverage our Cocoon software for our 
CD-Rom based products - as opposed to building our own CD based 
reporting framework.  Possibly using a tool like JBuilder or Delphi 
for a front-end to the application.

Is this possible? 
It is certainly possible to run Cocoon from a CD without any 
installation, but you didn't indicate what kind of apps you're thinking 
about, is that browsing and searching documents or more than that?

Running from CD might require including the JDK on the CD for the 
various platforms that you're using (fairly easy if the licenses allow 
it), or setting up Cocoon to run from Java WebStart, started from a 
browser page (slightly harder and AFAIK you'd need to sign all jars 
used).

Has anybody done this?
I didn't do it with Cocoon (yet) but I've done java-based CDs in the 
past, using pre-generated browsable HTML combined with a search engine 
that could run as an applet (QuestAgent, http://www.jobjects.com/). 
This is also something that you could use depending on your app's 
requirements.

Can we run Cocoon without Tomcat (or similar servlet engine?) - I know 
there is a CLI, but does this eliminate the need for a servlet 
engine?  - OR - Do we need to find some way to deploy the servlet 
engine on the client's computer?
Cocoon can run with most servlet engines, and some of them are very 
lightweight.
The Cocoon 2.1 build system generates a setup based on a limited 
version of the Jetty servlet engine.

If you follow the instructions in the INSTALL.txt file to run 
cocoon.sh servlet (or .bat), Jetty is used to start Cocoon without 
requiring any installation. This is not meant for production use but 
you could certainly adapt Jetty or another lightweight servlet engine 
to run from a CD, requiring only a temporary directory to store work 
files during execution.

You can also use build standalone-demo to build a standalone version 
of Cocoon which uses the same limited version of Jetty contained in two 
subdirectories of the build directory. This might be able to run 
straight from CD as Jetty uses the standard temporary directory of the 
system (/tmp for example), but I haven't tested it.

Hope this helps,
--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]