Book of XSP

2002-10-11 Thread Antonio Gallardo Rivera

Can someone tell me when I can find a book about XSP?

Thanks in advance,

Antonio Gallardo

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [COCOON2] My application deploy and developing taglibs/logicsheets

2002-10-11 Thread Ola Berg

>I have a "zillion" settings. Suppose I
>will have a trillion of applications here. Then I would have to made a
>trillion of changes to the above mentioned files [cocoon.xconf, web.xml]?

For me, this hasn't been so much of a problem.

1) Regard the cocoon instance as a platform that should be suitable for all your 
cocoon-apps (very much like the configuration for tomcat should be suitable for all 
your web-apps).

2) Most application specific things are done in the sitemap (much more so now in 
version 2 than in version 1). Use sub-sitemaps on a per application basis.

3) If you really really have deep application specific settings that needs to go in 
cocoon.xconf and web.xml, consider using many cocoon instances on your servlet engine. 
It is as easy as deploying the cocoon.war many times under different names 
(cocoon-myapp1.war, cocoon-myotherapp.war).

The benefit of centralized management? Well, some things should be central and others 
should be per application. 

The "problem" (if any) is that cocoon doesn't directly support the notion of different 
"applications". There is no clear definition on what an "application" is in cocoon. 
The discussion about Cocoon Blocks somewhat deals with this, one idea is to create a 
cocoon block as a reusable block of functionality containing its own configuration 
(very much like a war). See the discussion on the dev list.

Hope this helps

/O



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Book of XSP

2002-10-11 Thread Alex McLintock

At 08:41 11/10/02, Antonio Gallardo wrote:
>Can someone tell me when I can find a book about XSP?


XSP is (so far) a Cocoon specific technology (though I think it has been 
mimicked in AxKit).
You essentially need a Cocoon book and the recent New Riders book is fine 
if you haven't been using Cocoon for very long.
(If you have been using cocoon for six months or so then you probably don't 
need it)

http://news.diversebooks.com/metadata/listTwoKey.do?action=List&searchkey=XML

Alex McLintock





Openweb Analysts Ltd, London.
Software For Complex Websites http://www.OWAL.co.uk/
Open Source Software Companies please register here 
http://www.OWAL.co.uk/oss_support/


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XIndice inside XSP (using eXist logicsheet), how?

2002-10-11 Thread Chuck Amadi

Sorry to be cheek but Plz could you send a snippet of your sitemap.xmap 
relating to your xmldb entry I have also followed the set path but I'm 
experiencing problems
cos Cocoon won't talk to Xindice - Resource not found error.Tried 
iteration and more of the same .

Cheers in advance if possible just to double check .

Vadim Gritsenko wrote:

> Josema Alonso wrote:
>
>> Hello.
>>
>> I have XIndice working with Cocoon. I followed the directions at
>> Cocooncenter and everything is going fine when requesting XMLDB URIs. 
>> Now
>> I'd want to have a XSP querying the database so I could encapsulate 
>> the DB
>> calls and pass parameters easily.
>>
>
> Why don't you use cinclude?
>
> Vadim
>
>
>
>> I searched trough the archives and found
>> posts about the use of eXist logicsheet with XIndice inside Cocoon, 
>> but none
>> of them say anything about how to configure it.
>>
>> I'm trying it but can't make it work. Has anybody tried and suceeded?
>>
>> Oh, if you have any other solution or idea on how to make XIndice work
>> inside XSP, please let me know. I hope I could finally make it and 
>> write a
>> How-To. I really miss it.
>>
>> Thanks.
>>  
>>
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>

-- 
Regards 
Chuck Robert Amadi
ICT Dept Systems Programmer.
Rhaglenydd Systemau Adran ICT.
Roll on Linux Power too deliver.
Rholiwch ar Linux Y gallu i y Dosbarthu.

Before you criticize someone,
you should walk a mile in their shoes.
That way, when you criticize them,
you're a mile away, and you have their shoes.






-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




[newbie] wml serializer

2002-10-11 Thread Zein Dowe

Hi!

I wrote some files in xml and some xsl files to transform them
into html or wml, whichever device did the request.
So everything works fine with jakarta-tomcat 4.0.1 & cocoon 2.0.1.

Now I took the files in an environment that uses
jakarta-tomcat 4.1.10 & cocoon 2.0.3.
I made the same sitemap entries.
Html output works fine, but when I use a Wap device the requested
document is empty. If I change the serializer from wml to html in the
sitemap I receive the correct wml code in my document.
So did anybody has a suggestion what I could have done wrong, that
cause the wml serialization to fail?

Regards,
Zein

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: example in the Cocoon book

2002-10-11 Thread Sylvain.Thevoz

Not so important but in page 155, figure 6.5, are these two notations correct:

1. 

2. 

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: vendredi, 11. octobre 2002 13:20
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Thanks,

there is now an errata page online at:

http://radio.weblogs.com/0103021/categories/bookErrata/

If you have anything to add -let us know.

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew for your explanation, it works fine.
And your book is really the best reference for Cocoon I have seen.

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:33
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


>>
Thank you Matthew, but could you explain why!?
<<
Sure :-)

1. 
2. 
3. 
4. 
6. 
7. 

8. 
9. 
10.
11.
12.
13.
14.
15.

This has to do with the nesting of components. Each time a component is
nested inside another one we need to go "up the tree". Notice how the
"resource-exists" action is nested inside the "request" action. Also notice
that the Reader is inside the resource-exists action.

Ok, now - the map:parameter attribute of the resource-exists action
"belongs" to it - so it is at the same level and we can use "{file}" to
access the parameter that the request action provides to the sitemap.

The Reader is however "underneath" or "inside" the resource-exists action,
so it needs to go up one step to access the same file parameter.

This was the non-programmer explanation. Carsten or others can provide a
perhaps more exact explanation.

Matthew















-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew, but could you explain why!?

Is the line 7.   is
correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).

>>
8. 
<<

That line should read:

   

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. 
2. 
3. 
4. 
6. 
7. 
8. 
9. 
10.
11.
12.
13.
14.
15.

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

RE: [newbie] wml serializer

2002-10-11 Thread Sylvain.Thevoz

Are you sure you run Cocoon with the sitemap you have changed (and not the old one).

For the development phase, change the sitemap reloading method to "synchron" in the 
cocoon.xconf file.

Sylvain

-Message d'origine-
De: Zein Dowe [mailto:[EMAIL PROTECTED]]
Date: vendredi, 11. octobre 2002 11:58
À: [EMAIL PROTECTED]
Objet: [newbie] wml serializer


Hi!

I wrote some files in xml and some xsl files to transform them
into html or wml, whichever device did the request.
So everything works fine with jakarta-tomcat 4.0.1 & cocoon 2.0.1.

Now I took the files in an environment that uses
jakarta-tomcat 4.1.10 & cocoon 2.0.3.
I made the same sitemap entries.
Html output works fine, but when I use a Wap device the requested
document is empty. If I change the serializer from wml to html in the
sitemap I receive the correct wml code in my document.
So did anybody has a suggestion what I could have done wrong, that
cause the wml serialization to fail?

Regards,
Zein

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: [newbie] wml serializer

2002-10-11 Thread Zein Dowe

> Zein, 
> hope you have a statement like that in the serializer section of your 
> sitemap.
> then the wml type serialization should work ...
> 
> -
>  mime-type="text/vnd.wap.wml" name="wml" 
> src="org.apache.cocoon.serialization.XMLSerializer">
> -

I got this one in my Sitemap:


-//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml
ASCII
yes


But it does'nt work... :(

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Doubt which cocoon-user mailing list couldn't solve

2002-10-11 Thread Barbara Post

To get a PDF, you must have an XML file. See if you can use a pipeline which
outputs xml and another one which matches the link to the pdf for example,
so that the second pipeline can call the first one.

Or, after the xsp transformation, use an xsl fo stylesheet (transform
src="myxslfo.xsl") then serialize as pdf (serialize type="fo2pdf"). This
should work fine.

Just my 2 cents,

Babs
- Original Message -
From: "Sreenivasan N." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 1:47 PM
Subject: Doubt which cocoon-user mailing list couldn't solve


> Hi Stefano
>
> This is sreenivasan from India. Infact i am contacting you for the second
> time personally.  I am working for a company as a consultant to develop an
> xml based intranet and also as a add-on to a product.
>
> The requirement is something like this. We have got two set of category
> like admin and user. The admin will be able to create templates for the
> users where the user enter data and xml file is generated (We are using
> Chiba for this ). Is there any good mean to achieve this. Now there is a
> performance issue is there.
>
> We will be generating html, xml, rtf and pdf from a query to database
based
> on a form. That is XSP page is loaded with listbox where value to be send
> as parameter is taken from the database. Once the query is executed the
> user should have a flexible to take the output as pdf, rtf. Now the
problem
> is our sitemap is like this
>
> 
> 
> 
> 
> 
> 
>
> When we click on the link the xsp with parameter data is loaded. After
> query i couldn't capture the output if i want to generate pdf since the
> pipeline to over.
>
> And also is there any way to generate charts where data comming from
> database? we could generate pie chart from a static xml but legends are
not
> dynamic.
>
> I will be grateful if you suggest someway because we have to finalize our
> requirement.
>
> Regards
> Sreenivasan.
>
>
>
>
>
>
>
> "Attitudes are much more important than aptitudes."
> "Nothing is impossible for a willing heart"
>
> Sreenivasan N.
> Sony SARD
> Ext 5816
>
> Email. [EMAIL PROTECTED]
> Per: [EMAIL PROTECTED]
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Pipeline...

2002-10-11 Thread Vadim Gritsenko

Mauro Daniel Ardolino wrote:

>Of course.  But in this case this logic will not be reutilizated anywhere
>else.  So I don't want to put this logic in a place that after can be
>considered this way.  I think that I will have a lot of logic that I do
>not want to reference in the .xconf configuration file.
>Am I wrong?
>

You can reference logicsheet directly from the xsp file - see 
logicsheet.xsp for details.


>Do I always have to make a logic style sheet as "taglib"?
>

It is desirable. If XML which you generate for serverpages generator is 
dynamic (changes on every request), then serverpages generator will 
recompile XSP every request, resulting in *very* poor performance.

You are ok though if pipeline generating XSP source is static.


Vadim


>When I worked in jsp, some of the logic wasn't in taglibs.
>
>Thanks.
>
>Mauro
>
>
>On Wed, 9 Oct 2002, Vadim Gritsenko wrote:
>
>  
>
>>Mauro Daniel Ardolino wrote:
>>
>>
>>
>>>Thanks a lot!!  It works fine.
>>>
>>>  
>>>
>>Although it works fine that's not what you really need.
>>
>>To get best out of Cocoon, you need to make logicsheet (read more on 
>>logicsheets in the cocoon docs) out of your
>>
>>logic/prueba.xsl and use this logicsheet. See XSP sample which uses custom 
>logicsheet in logicsheet.xsp file - it's good place to start.
>>
>>
>>Vadim
>>
>>
>>
>>
>>
>>>-- Mauro
>>>
>>>On Mon, 7 Oct 2002, Joerg Heinicke wrote:
>>>
>>> 
>>>
>>>  
>>>
Hello Mauro,

you need two matches:


  
  
  



  
  
  


Hope that's what you you want. At least it's that what I understand from 
your two mails ;-)

Regards,

Joerg

Mauro Daniel Ardolino wrote:
   



>Hello!
>I cannot understand how to configure a pipeline for this:
>I have a xml-file and a xsl-file(logic).  Applying them I want to obtain a
>xsp page and then apply another xsl-file(style) to obtain a html-file.
>
>Well, I've made this pipeline in my sitemap.xmap:
>
>  
>   
>   
>   
>   
>  
>
>If I comment this line:
>   
>...I obtain the xsp page.
>But it doesn't transform to a xml-file to after apply the other 
>xsl-style-file.
>
>How can I do that?
>
>Thanks in advance.
>
>Mauro
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




XML to PDF

2002-10-11 Thread Marquardt, David

> Hello!
> 
> I'm not really a very experienced programmer yet. So I hope you can
> help me.
> 
> Problem:
> I have an article number (14.211.11.8846). The user shall now have the
> possibility to get a PDF-File (shown in the browser),
> in which he can see the article number AND the appropriate BARCODE. Is
> there any possibility to create a dynamic barcode
> in XML and to show it in PDF format via Cocoon?
> 
> I'd really appreciate if you sent me a short example!
> 
> Best regards,
> David Marquardt
> 
> 
> 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [newbie] wml serializer

2002-10-11 Thread Zein Dowe

> If you put a static wml file in tomcat, can you see it in your WAP-phone 
> (not going via cocoon)? Maybe Tomcat needs to be configured for wml?
> 
> If you access the wml file via a browser or telnet, can you see the wml?
> 

If I put a static wml file (test.wml) for example into the
~/webapps/tomcat-docs/
directory everything works fine.
If I put the same file into ~/webapps/cocoon/test/
and write the follwing lines into the sitemap, I receive an empty document 


  
  


If I write


  
  


I receive a file with my wml code. But of course of the html serialization I
haven't access to the file with a wap device only with a html browser.

Why doesn't it work? I don't really understand where I am wrong.
Any more suggestions?

Regards,
Zein

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Why is my cocoon app an IE6 killer?

2002-10-11 Thread jakob . dalsgaard

More IE troubles.

We currently have a problem running:

- cocoon 2.0.2 (just the libs in the WEB-INF/lib of our own webapp)
- jboss 3.0.1 (with what ever version of jetty is inside it)
- jdk 1.4.0 (b92) on windows

When run on our W2K professional production server and accessed from IE5.5/6 we get broken images, but only when we hit reload! This also leads to tons of "incorrect content-length" messages in the cocoon log; we assume that IE closes the connections in some abrupt way.

The "fun" thing is that when run on our dual-athlon linux developer server (with jdk 1.4.0_01-b03) we experience no such thing in our IE's...

In the next release we plan on utilizing a non-blocking IO (java.nio.*) socket listener that jetty 3.1+ (I think...) supports when compiled (and run ...) under jdk 1.4 - just to see if this has an effect.

We've been fiddling with the http/1.1 switch in IE, with no noticable difference :-( furthermore we've tried to set the "Expires" header on _all_ images to check if that would force IE to store and not refetch the images, with no luck.

On our laptops (P3 / 1 GHz running Win XP Professional / Redhat 7.x / Redhat 8.0) we run the product and do not experience the missing image stuff.

We tend to believe that our problem is related to some ressources (?) being exhausted on our production server - but we haven't been successful in solving it.

.. and sometimes we get strange "No more DTM ids available" exception - but that's a whole different issue :-)

If someone could show me a  http header that would resolve this problem I would be really really happy!


Jakob Dalsgaard
Udvikler
e-mail:   [EMAIL PROTECTED]
Vesterbrogade 149
1620 København V
Tlf.:   70 25 80 30
Fax.: 70 25 80 31








Antonio Gallardo Rivera <[EMAIL PROTECTED]>
10/08/02 06:38 AM
Please respond to cocoon-users

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: Why is my cocoon app an IE6 killer?


IE6 SP1 have the same problem. I still have the same problem with it.

As you noted before this problem is a combination of IE and Tomcat. Of course 
if you upgrade or downgrade to a version without the problem, this is gone.

Thanks,

Antonio Gallardo

El Lunes, 07 de Octubre de 2002 15:36, Ryan Agler escribió:
> I have not upgraded to SP1 yet, but Microsoft probably did fix the
> problem if yours works.  However, my main concern is that most users out
> there will not have SP1.  For me, the solution was using the test
> HTTP/1.1 connector instead of Coyote.  The test connector seems to do
> something differently, and at this point I really don't have a
> compelling reason for using Coyote instead.
>
>
> -Original Message-
> From: Els Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 5:04 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Why is my cocoon app an IE6 killer?
>
> I'm using IE6SP1 and loaded the site WITH images without any problem.
> I'm using a fully updated Win2K server version.
>
> Did you solve the problem in the mean time?
>
> Bert
>
> At 11:20 5/10/2002 +0200, you wrote:
> >Ryan,
> >
> >I can confirm your findings, with IE 5.5 and IE 6.0 I've experienced
>
> this
>
> >anomaly even when not using coyote. Actually, I used the
> >ISAPI filter, since my front-end is IIS.
> >
> >BTW, back then (a year ago) I've contacted the Microsoft tech support:
> >they recognized the existence of a problem and were very
> >collaborative, but, in the end, nothing came out of it.
> >
> >Best regards,
> >
> >-
> >                Luca Morandini
> >                GIS Consultant
> >               [EMAIL PROTECTED]
> >http://utenti.tripod.it/lmorandini/index.html
> >-
> >
> > > -Original Message-
> > > From: Ryan Agler [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, October 05, 2002 9:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: Why is my cocoon app an IE6 killer?
> > >
> > >
> > > That could be a clue.  However, from testing, I don't think it's
>
> limited
>
> > > to the use of HTTP/1.0. I experience the same thing even though I am
> > > positive  IE6 is using HTTP/1.1 -- both when I visit
> > > http://www.helnwein.com/werke/theater/tafel_1.html , and when I
>
> enable
>
> > > Coyote and visit my own webapp's pages (and I can even see in the
>
> logs
>
> > > that IE6 is using HTTP/1.1)
> > >
> > > -Original Message-
> > > From: Antonio Gallardo Rivera
>
> [mailto:[EMAIL PROTECTED]]
>
> > > Sent: Saturday, October 05, 2002 2:00 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Why is my cocoon app an IE6 killer?
> > >
> > > I posted this today:
> > >
> > > I think I found where the problem is:
> > >
> > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12783
> > >
> > > It looks like is a Tomcat.
> > >
> > > Antonio Gallardo.
>
> -
>
> > > Please check that your question  has not already 

RE: [newbie] wml serializer

2002-10-11 Thread Thomas Haselberger

Zein, 
hope you have a statement like that in the serializer section of your sitemap.
then the wml type serialization should work ...

-

-


> If I put the same file into ~/webapps/cocoon/test/
> and write the follwing lines into the sitemap, I receive an 
> empty document 
>  
> 
>   
>   
> 
> 
> If I write
> 
> 
>   
>   
> 
> 
> I receive a file with my wml code. But of course of the html 
> serialization I
> haven't access to the file with a wap device only with a html browser.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Xindice logicsheet - initial success

2002-10-11 Thread Vadim Gritsenko

Josema Alonso wrote:

>>I've sent email. Why do you need xsp logicsheet and why don't you use
>>xmldb protocol with cinclude? This works out of the box, with no effort.
>>
>>
>
>I'm sorry Vadim, I've just browsed through the archives and I saw your
>reply. I do not know why I haven't got it. It seems I have some problem with
>my email box, cause now I'm getting today's messages from the list twice...
>
>Anyway, I have read some of your previous replies regarding this subject.
>Have tried the util logicsheet and it's working out of the box, even for
>XPath queries. Great feature, thanks!
>But what I would like to do is to edit, remove, update...documents in
>Xindice.
>

Try also XMLDBTransformer. It is located in the scratchpad, and can 
create / delete resources in the xindice. xupdate is also supported but 
I had no time to hunt all the bugs out of it.


> Since I'm still not so good at Java, I see very difficult to me to
>write the proper action or generator needed to do it. So, I found the eXist
>logicsheet documentation:
>http://exist.sourceforge.net/xmldb.xsl.html
>
>and I thought it was the best for me. Everything in a logicsheet. And it
>lets me remove and add documents and collections, great. I couldn't test it
>more but at least the get-collection and get-document are working for me
>nicely.
>
>Btw, where should I start looking if I want to create a new action or
>generator for XUpdate as you suggested? Maybe at 'XMLDBGenerator.java' or
>'XMLDBTransformer.java' better?
>
>Oh, and currently I refer to my Xindice collections in the XSP like this:
>
>
>But I'm not completely satisfied, cause it depends on my setup. What
>if someone doesn't have Xindice running on port 4080, for example? So, is
>there any way of referring to them through the pipeline matcher? Something
>like: cocoon://xmldb/addressbook/
>

You will need pipeline to process such request.  Then it should work.

Vadim


>I've tried the later and it doesn't work for me.
>
>Thank you very much.
>  
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




i18n:when

2002-10-11 Thread Alex Romayev

Hello,

Just wanted to follow through on the discussion from a
couple of month back.  There was a proposal that
Konstantin was going to work on to implement i18:when
tag as an alternative to using message files, so that
you could have in the same file something like:


  
hello
bonjour
  


Now here is my question (I'm making some assumptions
here, so please correct me if I'm wrong):

I18nTransformer is not cacheable, which generally is
not a problem, since it is used as one of the last
transformers in a pipeline, when most of the
"heavy-duty" processing is already done.  Now, this
might not be true for i18n:when tag, which is most
likely to be the first step in a pipeline and hence
the rest of the pipleline is not going to get cached. 
Also note, that there is no reason why the result of
i18n:when could not be cached.

Is this concern valid or am I missing something?

Cheers,
-Alex

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Writing a custom transformer

2002-10-11 Thread Vadim Gritsenko

simo kauranen wrote:

>Now I've written and compiled a transformer. I put the
>.class file where I found the other transformer .class
>files (not under tomcat) and defined the transformer
>in the sitemap (and restarted tomcat). I got
>ClassNotFoundException. 
>
>Could someone tell where I should put the .class file
>that cocoon would find it?
>

tomcat/webapps/cocoon/WEB-INF/classes/my/package/MyTransformer.class

Vadim


>Simo K.
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: example in the Cocoon book

2002-10-11 Thread Matthew Langham

Thanks. We had that one on our list and I forgot to add it.

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Not so important but in page 155, figure 6.5, are these two notations
correct:

1. 

2. 

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: vendredi, 11. octobre 2002 13:20
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Thanks,

there is now an errata page online at:

http://radio.weblogs.com/0103021/categories/bookErrata/

If you have anything to add -let us know.

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew for your explanation, it works fine.
And your book is really the best reference for Cocoon I have seen.

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:33
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


>>
Thank you Matthew, but could you explain why!?
<<
Sure :-)

1. 
2. 
3. 
4. 
6. 
7. 

8. 
9. 
10.
11.
12.
13.
14.
15.

This has to do with the nesting of components. Each time a component is
nested inside another one we need to go "up the tree". Notice how the
"resource-exists" action is nested inside the "request" action. Also notice
that the Reader is inside the resource-exists action.

Ok, now - the map:parameter attribute of the resource-exists action
"belongs" to it - so it is at the same level and we can use "{file}" to
access the parameter that the request action provides to the sitemap.

The Reader is however "underneath" or "inside" the resource-exists action,
so it needs to go up one step to access the same file parameter.

This was the non-programmer explanation. Carsten or others can provide a
perhaps more exact explanation.

Matthew















-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew, but could you explain why!?

Is the line 7.   is
correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).

>>
8. 
<<

That line should read:

   

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. 
2. 
3. 
4. 
6. 
7. 
8. 
9. 
10.
11.
12.
13.
14.
15.

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail

ampersand in sitemap element parameters

2002-10-11 Thread Sternath Elmar

Hello,

I already read some posts concerning ampersand encoding here in the mailing list. But 
I have not yet found a solution for the following problem: I want to pass a request 
parameter (Title) containing an ampersand (or any other reserved XML char) to a 
self-implemented generator. Inside the generator, the parameter value is cut from 
where the first reserved XML char occurs. Is there something like an 
EncodeReservedXMLCharsAction or any other solution of this problem?



http://myURL";>   
 



Regards,
Elmar

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Can't perform logout using sunRise

2002-10-11 Thread Brian Schwark

Hey everyone,

I've got sunRise authentication and session management up and running 
smoothly, the only snag I've hit is logging out.. I still get a Java 
Null error when trying to perform a logout.

Here's my logout pipeline:


   
   
   
   


I have the following .jars in my tomcat endorsed directory: xalan.jar, 
xalan-2.3.1.jar, xalan2doc.jar, xercesImpl-2.0.0.jar, xml-apis.jar.

And here's the actual error:

description java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

java.lang.NullPointerException
at org.apache.cocoon.sunshine.sunrise.SunRise.logout(SunRise.java:1083)
at 
org.apache.cocoon.sunshine.sunrise.acting.LogoutAction.act(LogoutAction.java:108)
at 
org.apache.cocoon.www.file_.C_.Program_Files.Apache_Group.Tomcat_4_1.webapps.cocoon.sitemap_xmap.matchN10977(C:\Program
 
Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/Program_Files/Apache_Group/Tomcat_4_1/webapps/cocoon\sitemap_xmap.java:11204)
at 
org.apache.cocoon.www.file_.C_.Program_Files.Apache_Group.Tomcat_4_1.webapps.cocoon.sitemap_xmap.process(C:\Program
 
Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/Program_Files/Apache_Group/Tomcat_4_1/webapps/cocoon\sitemap_xmap.java:4510)
at 
org.apache.cocoon.www.file_.C_.Program_Files.Apache_Group.Tomcat_4_1.webapps.cocoon.sitemap_xmap.process(C:\Program
 
Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/file_/C_/Program_Files/Apache_Group/Tomcat_4_1/webapps/cocoon\sitemap_xmap.java:3873)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


request-uri

/cocoon/logout

Thanks for any insight!
-Brian Schwark
[EMAIL PROTECTED]



-
Please check that your qu

RE: [newbie] wml serializer

2002-10-11 Thread Zein Dowe

> Are you sure you run Cocoon with the sitemap you have changed (and not 
> the old one).
> 


Yes, no doubt at this point. I see the effects when I change the
serialization method from html to wml. So the Sitemap entries take
effect. 

Regards,
Zein


> -Message d'origine-
> De: Zein Dowe [mailto:[EMAIL PROTECTED]]
> Date: vendredi, 11. octobre 2002 11:58
> À: [EMAIL PROTECTED]
> Objet: [newbie] wml serializer
> 
> 
> Hi!
> 
> I wrote some files in xml and some xsl files to transform them
> into html or wml, whichever device did the request.
> So everything works fine with jakarta-tomcat 4.0.1 & cocoon 2.0.1.
> 
> Now I took the files in an environment that uses
> jakarta-tomcat 4.1.10 & cocoon 2.0.3.
> I made the same sitemap entries.
> Html output works fine, but when I use a Wap device the requested
> document is empty. If I change the serializer from wml to html in the
> sitemap I receive the correct wml code in my document.
> So did anybody has a suggestion what I could have done wrong, that
> cause the wml serialization to fail?
> 
> Regards,
> Zein
> 
> -- 
> +++ GMX - Mail, Messaging & more  http://www.gmx.net +++
> NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [OT] [solution] Why is my cocoon app an IE6 killer?

2002-10-11 Thread leo leonid

I finally solved the problem.
It is not Cocoon nor is it the sevlet container or apache.
The problem is caused by corrupt IPTC profiles in some JPG Images. e.g.:
   Profile-iptc: 4496 bytes
 unknown:
   0x:     ff03  ---
   0x0014:   03ff00  --

Whereas most browsers don't care, some IE6 and 5.5 on Windows crash.
I got this corrupt profiles by generating thumbnails with 
JMagick/ImageMagick.
I used v.5.4.2. The latest v.5.4.9 seems to handle profiles correctly, 
but
I now remove all profiles generally with JMagick
   image.profileImage("*", null);
This also reduces the file size of may thumbnails dramatically.

So this problem is completely OT.
But maybe this clue can help others out of this hell.

/Leo


On Freitag, Oktober 4, 2002, at 04:10  Uhr, leo leonid wrote:

> Hi,
> most generally I would describe my problem with my cocoon-app as 
> follows:
>
> When accessing a
> - servlet generated site
This was a wrong assumption.
I was put on this wrong track because I tested a static page from the 
local filesystem
and the page rendered perfectly. In Another test with a static page 
from the
server the page also rendered perfectly, as I know now, by accident it 
did not
contain such harmful images.

> - with (lots of) images
> - using a recent versions of Internet Explorer (i.e.6) on windows
> then IE stops loading images. And even better: from this moment on it 
> generally
> doesn’t display images anymore, even from other sites until you 
> restart IE.
>
> The problem only (but not necessarily) occurs with IE on windows,
> but only on servlet generated sites.
>
> I found reports on this problem in the tomcat-user list,
> http://marc.theaimsgroup.com/?l=tomcat-user&m=103340719301191&w=2
> but its not just tomcat related. It’s the same with jetty.
>
> If someone likes to see the problem live, start a recent windows IE 
> and go to
> http://www.helnwein.com/werke/theater/tafel_1.html
> It's nothing wrong with the HTML and there is no JS at all.
> The current server configuration is
> c2.0.4-dev jetty 4.1 mod_jk 1.2 apache 2.0.42 – images directly from 
> apache
> on a RH linux 7.2., Java 1.4.1.
>
> Itested the following configurations with no effect to the problem:
> c2.0.3 tomcat 4.0.5/4.1.12 standalone – images served by cocoon
> c2.0.3 tomcat 4.0.5/4.1.12 standalone – images from an extra context
> c2.0.3 tomcat 4.0.5/4.1.12 mod_webapp apache 1.3 – images served by 
> cocoon
> c2.0.3 tomcat 4.0.5/4.1.12 mod_webapp apache 1.3 – images from an 
> extra context
> c2.03 tomcat 4.0.5/4.1.12 mod_webapp apache 2.0.42 – images served by 
> cocoon
> c2.0.3 tomcat 4.0.5/4.1.12 mod_webapp apache 2.0.42 – images served 
> from an extra context
> c2.0.3 tomcat 4.0.5/4.1.12 mod_webapp apache 2.0.42 – images directly 
> from apache
> c2.0.4-dev tomcat 4.0.5/4.1.12 mod_jk 1.2 apache 2.0.42 – images 
> served by cocoon
> c2.0.4-dev tomcat 4.0.5/4.1.12 mod_jk 1.2 apache 2.0.42 – images from 
> an extra context
> c2.0.4-dev tomcat 4.0.5/4.1.12 mod_jk 1.2 apache 2.0.42 – images 
> directly from apache
> c2.0.4-dev jetty 4.1 mod_jk 1.2 apache 2.0.42 – images directly from 
> apache
>
> This is really frustrating.
> Does anyone have similar experiences or hints to solve the problem?
> Please tell me!
>
> Thanks
> /Leo
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Doubt which cocoon-user mailing list couldn't solve

2002-10-11 Thread Sreenivasan N.

Hi Stefano

This is sreenivasan from India. Infact i am contacting you for the second 
time personally.  I am working for a company as a consultant to develop an 
xml based intranet and also as a add-on to a product.

The requirement is something like this. We have got two set of category 
like admin and user. The admin will be able to create templates for the 
users where the user enter data and xml file is generated (We are using 
Chiba for this ). Is there any good mean to achieve this. Now there is a 
performance issue is there.

We will be generating html, xml, rtf and pdf from a query to database based 
on a form. That is XSP page is loaded with listbox where value to be send 
as parameter is taken from the database. Once the query is executed the 
user should have a flexible to take the output as pdf, rtf. Now the problem 
is our sitemap is like this








When we click on the link the xsp with parameter data is loaded. After 
query i couldn't capture the output if i want to generate pdf since the 
pipeline to over.

And also is there any way to generate charts where data comming from 
database? we could generate pie chart from a static xml but legends are not 
dynamic.

I will be grateful if you suggest someway because we have to finalize our 
requirement.

Regards
Sreenivasan.







"Attitudes are much more important than aptitudes."
"Nothing is impossible for a willing heart"

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [newbie] wml serializer

2002-10-11 Thread Ola Berg

If you put a static wml file in tomcat, can you see it in your WAP-phone (not going 
via cocoon)? Maybe Tomcat needs to be configured for wml?

If you access the wml file via a browser or telnet, can you see the wml?

/O


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: example in the Cocoon book

2002-10-11 Thread Matthew Langham

Thanks,

there is now an errata page online at:

http://radio.weblogs.com/0103021/categories/bookErrata/

If you have anything to add -let us know.

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 1:15 PM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew for your explanation, it works fine.
And your book is really the best reference for Cocoon I have seen.

Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:33
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


>>
Thank you Matthew, but could you explain why!?
<<
Sure :-)

1. 
2. 
3. 
4. 
6. 
7. 

8. 
9. 
10.
11.
12.
13.
14.
15.

This has to do with the nesting of components. Each time a component is
nested inside another one we need to go "up the tree". Notice how the
"resource-exists" action is nested inside the "request" action. Also notice
that the Reader is inside the resource-exists action.

Ok, now - the map:parameter attribute of the resource-exists action
"belongs" to it - so it is at the same level and we can use "{file}" to
access the parameter that the request action provides to the sitemap.

The Reader is however "underneath" or "inside" the resource-exists action,
so it needs to go up one step to access the same file parameter.

This was the non-programmer explanation. Carsten or others can provide a
perhaps more exact explanation.

Matthew















-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: RE: example in the Cocoon book


Thank you Matthew, but could you explain why!?

Is the line 7.   is
correct?

Thank you
Sylvain

-Message d'origine-
De: Matthew Langham [mailto:[EMAIL PROTECTED]]
Date: jeudi, 10. octobre 2002 11:17
À: [EMAIL PROTECTED]
Objet: RE: example in the Cocoon book


Hi,

guess what - this is a bug in the book :).

>>
8. 
<<

That line should read:

   

Matthew



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 10:05 AM
To: [EMAIL PROTECTED]
Subject: example in the Cocoon book


Hello,

I'm reading the Cocoon book written by Matthew and Carsten and one example
in it doesn't work.

The pipeline fragment is:

1. 
2. 
3. 
4. 
6. 
7. 
8. 
9. 
10.
11.
12.
13.
14.
15.

All seem to work except the line 8.
Cocoon detect that the {file} exists (line 7) but it can't read it (line 8).
It returns a HTTP error 404 (file not found).

Anyone has an idea?
How to check (debug) the value {file}?

Thank you
Sylvain

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




So close .. I think?

2002-10-11 Thread Marc G. Fournier


Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
http://domain now, it comes up with an error to the effect of:

Cocoon 2 - Resource not found

In my httpd.conf file, I have:

# Configure mod_jk
#
JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
JkLogFile /var/www/mod_jk.log
JkLogLevel info

where workers.properties just contains:

===
workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
workers.java_home=/usr/local/jdk1.3.1
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


Now, in my VirtualHost directive for the domain, I have:

JkMount /   ajp13

which is obviously wrong ... but what should it be?

Basically, what I want, is for:

http://domain to "connect" to http://domain:8009/cocoon/domain

and use the sub-sitemap.xmap file properly ... but this is all new to me
:(

Again, if there is a good how to on this that I should be reading, please
point me to it ...

Thanks ...



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: sunRise User Administration for Dummies

2002-10-11 Thread Richard Reyes

Hi Guys,

Can anybody give me anything...
I really don't have any clear idea on how to start on this...
Any working samples...

Thanks Again.
Richard 

-

- Original Message - 
From: Richard Reyes 
To: C2 Users 
Sent: Friday, October 11, 2002 3:14 PM
Subject: sunRise User Administration for Dummies


Hi Guys,

How does the SunRise User Administration function?

Are the Roles and Users saved in a Database?

Do we have any tutorials?

Thanks in Advance...

Richard

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: So close .. I think?

2002-10-11 Thread Lajos Moczar

What about if you try http://domain/?

You might need a pipeline in the main sitemap to catch a URL that ends 
in "domain" without the trailing slash:


 



 


Cheers,

Lajos

Marc G. Fournier wrote:

> Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
> http://domain now, it comes up with an error to the effect of:
> 
> Cocoon 2 - Resource not found
> 
> In my httpd.conf file, I have:
> 
> # Configure mod_jk
> #
> JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
> 
> where workers.properties just contains:
> 
> ===
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> 
> Now, in my VirtualHost directive for the domain, I have:
> 
> JkMount /   ajp13
> 
> which is obviously wrong ... but what should it be?
> 
> Basically, what I want, is for:
> 
> http://domain to "connect" to http://domain:8009/cocoon/domain
> 
> and use the sub-sitemap.xmap file properly ... but this is all new to me
> :(
> 
> Again, if there is a good how to on this that I should be reading, please
> point me to it ...
> 
> Thanks ...
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: So close .. I think?

2002-10-11 Thread Yury Mikhienko

On Fri, 11 Oct 2002 11:30:30 -0300 (ADT)
"Marc G. Fournier" <[EMAIL PROTECTED]> wrote:

> 
> Okay, as suggested, I replaced mod_webapp with mod_jk2, and if I go to
> http://domain now, it comes up with an error to the effect of:
> 
> Cocoon 2 - Resource not found
> 
> In my httpd.conf file, I have:
> 
> # Configure mod_jk
> #
> JkWorkersFile /usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
> 
> where workers.properties just contains:
> 
> ===
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> 
> Now, in my VirtualHost directive for the domain, I have:
> 
> JkMount /   ajp13
if your cocoon context in webapps/cocoon you just to insert into VirtualHost directive 
following lines:
JkMount /cocoon ajp13
JkMount /cocoon/* ajp13
and go to http://domain/cocoon/...
> 
> which is obviously wrong ... but what should it be?
> 
> Basically, what I want, is for:
> 
> http://domain to "connect" to http://domain:8009/cocoon/domain
> 
> and use the sub-sitemap.xmap file properly ... but this is all new to me
> :(
> 
> Again, if there is a good how to on this that I should be reading, please
> point me to it ...
> 
> Thanks ...
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Building a DOM Model with XMLForms

2002-10-11 Thread Robert Ellis Parrott


Hi folks,


I'm working on a project prototype where I'm trying to implement a kind of
"wizard" using XMLForms. The difference is that I'd like the XML docs
written by the content people to define the resulting XML doc, without
specifying it ahead of time. In other words, I'd like the elements &
attributes to be built by the XPath commands that originate from the XForm
ref attributes. I'm using 2.1-dev, a fairly fresh snapshot.

The design of the Form class in Cocoon at this point is that all the
elements must be present ahead of time, or one get silent failures
("Invalid data format" could be a little more descriptive when the failure
is because there is no matching path). This design makes sense when
working with Beans as your Model, but could (should?) be more flexible
with DOM; for example, if there is an either/or construct in your DTD
(  ), and each sub element complex, you
can't ahead of time know how to generate a DOM object that will have a
given element available to XPath.

Would it make sense within the scope of XMLForms in Cocoon to add the
ability within the the Form class to add new elements to the DOM object
when they are missing? It seems that this should be fairly simple: just
define an AbstractFactory for the DOM, and use it within the Form class
whenenver an access to an element fails for a DOM. Where the
AbstractFactory would come from etc is a good question, though.


The reason I ask is that alternatively I could use something like Castor
to rebuild a Bean for the expected XML document, biting the bullet that I
can't hand over full control of the XML creation to the content creators.

If people think that it's a good idea and doable to allow XMLForms to
build a DOM based on the XForms elements, then I
would strongly consider working on these modifications; otherwise I would
probably take the path of least resistance & go with a basic Bean
approach.


thanx for your input,


rob




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: XML to PDF

2002-10-11 Thread Jeff Turner

On Fri, Oct 11, 2002 at 01:42:33PM +0200, Marquardt, David wrote:
...
> > Is there any possibility to create a dynamic barcode in XML and to
> > show it in PDF format via Cocoon?

http://www.google.com/search?q=barcode+fop looks interesting.

--Jeff

> > I'd really appreciate if you sent me a short example!
> > 
> > Best regards,
> > David Marquardt

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Building a DOM Model with XMLForms

2002-10-11 Thread Hunsberger, Peter

> I'm working on a project prototype where I'm trying to implement a kind of
> "wizard" using XMLForms. The difference is that I'd like the XML docs
> written by the content people to define the resulting XML doc, without
> specifying it ahead of time. In other words, I'd like the elements &
> attributes to be built by the XPath commands that originate from the XForm
> ref attributes. I'm using 2.1-dev, a fairly fresh snapshot.

We've got a similar problem.  I'm not using XForms/XMLForms due to the fact
that I've got a historical code base and 2.1 isn't yet ready for production.
However, let me describe what we're doing, a similar approach might be
useful for you...

In our case new forms are added daily.  We have one group of people that
define the meta-data for the forms (from which a DTD can be generated).  We
have another group of people who utilize this metadata to generate the
actual forms (most screens/forms utilize only a subset of the possible
fields).  Given that this stuff changes daily we keep all metadata in a
database.  

We're currently working on a GUI generator that will let the forms builder
people build a skeleton XML description of a form using a (essentially)
dynamically created DTD (from the metadata in the database).  This XML is
again stored in the database (as essentially form instance specific metadata
specified as XML).

At run time we generate the complete metadata for a given form back from the
metadata and aggregate this with the stored XML form description to
completely describe the form.  In addition, at run we generate all relevant
data from the database (in the same pass as the metadata generation), so
that a complete metadata and data XML tree is available for each form
element used by the form designers.  An XSLT then merges these two trees to
generate a new set of nodes which is used by a separate presentation XSLT
pass to actually generate the form.

I think, in your case something similar would be possible: aggregate the GUI
designers XML description with a (possibly transformed) XForms DTD (which
you may have to create?) via an XSLT, then feed this to the actual XForm
transformer?


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: SunShine-InsertTransformer: encoding

2002-10-11 Thread Alex Romayev

Hi Carsten,

Thanks for the quick fix, do you mean
SourceWritingTransformer or InsertTransformer?

Cheers,
-Alex

> -Original Message-> 
> From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: SunShine-InsertTransformer: encoding
> problem
> Date: Fri, 11 Oct 2002 08:36:00 +0200
> 
> Hi Alex,
> 
> I just checked in a fix for the namespace problem -
> now
> it works for me - could you please check - if
> everything
> is working for you, too.
> 
> Thanks
> Carsten
> 
> > -Original Message-
> > From: Alex Romayev [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 08, 2002 1:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: SunShine-InsertTransformer: encoding
> problem
> > 
> > 
> > --- Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
> > > 
> > > Alex Romayev wrote:
> > > > > This is currently hard coded into the
> > > transformer(!)
> > > > > which
> > > > > means you can't do anything against it...
> > > > > The InsertTransformer has been merged with
> the
> > > > > SourceWritingTransformer
> > > > > in 2.1-dev - the SourceWritingTransformer
> can be
> > > > > configured
> > > > > to what encoding should be used.
> > > > 
> > > > I did a quick search for "ISO-8859-1" in
> source
> > > files
> > > > and nothing related to InsertTransformer came
> up. 
> > > Is
> > > > there a workaround you could suggest until 2.1
> > > comes
> > > > out?  By the way, is there a rough timeline
> for
> > > this
> > > > release?
> > > > 
> > > It's not directly in the transformer. The
> > > transformer uses
> > > a component called ResourceConnector and this
> does
> > > the
> > > saving. The connector uses
> > >
> >
>
org.apache.cocoon.xml.XMLUtils.defaultSerializeToXMLFormat
> > > to serialize the XML and there you will find
> this
> > > setting.
> > > 
> > > A rough time line for 2.1 is end of this year, I
> > > guess
> > > +/- 1 or 2 months...
> > > 
> > > > The namespaces in content/news.xml.  By the
> way,
> > > I've
> > > > raised this problem with SourceWriting
> transformer
> > > as
> > > > well and haven't seen it in the recent
> bug-list
> > > > e-mail.  I'm just thinking that if the two got
> > > merged,
> > > > the problem might still be there.
> > > > 
> > > Can you give a complete test case for this?
> (Sitemap
> > > snippet plus the two xml files) - If you can
> provide
> > > this I will try to find the bug as soon as I
> have
> > > time.
> > > 
> > > Carsten
> > > 
> > 
> > Sure, here is the sitemap:
> > 
> > 
> >   
> >> src="resources/sunshine/admin/add-news-item.xml"/>
> >   
> >   
> >   
> > 
> > 
> > And I've attached the two files (slightly
> simplified).
> > 
> > Cheers,
> > -Alex
> > 
> > >
> >
>
-
> > > Please check that your question  has not already
> > > been answered in the
> > > FAQ before posting.
> > > 
> > > 
> > > To unsubscribe, e-mail:
> > > <[EMAIL PROTECTED]>
> > > For additional commands, e-mail:  
> > > <[EMAIL PROTECTED]>
> > > 
> > 
> > 
> 




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: DEFINITELY A BUG.. Re: Cocoon FAILS in transforming XML

2002-10-11 Thread Roger Ting

I tried what you suggested but i still think it is a bug in cocoon
which will show out when you use xsp with ESQL and XSLT together.

Current Sitemap Parameters:
PARAM: '0' VALUE: 'monthly'
PARAM: '../0' VALUE: 'report'

DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
generator:xsp(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Source= Xsp/monthly.xsp
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
transformer:xslt(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Source= Xsl/monthly_fall.xsl
DEBUG   (2002-10-10) 05:43.56:820   [sitemap] (/cocoon/report) 
HttpProcessor[8080][4]/sitemap_xmap: Component 
serializer:xml(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-10-10) 05:43.56:880   [sitemap.transformer.xslt] 
(/cocoon/report) HttpProcessor[8080][4]/TraxTransformer: Using stylesheet: 
'file:/C:/Apache Tomcat 4.0/webapps/cocoon/Xsl/monthly_fall.xsl' in 
org.apache.cocoon.transformation.TraxTransformer@6dddcf, last modified: 
1034192468000
DEBUG   (2002-10-10) 05:43.57:260   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=1
DEBUG   (2002-10-10) 05:43.57:430   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 0 day)   < discharge_date
DEBUG   (2002-10-10) 05:43.57:590   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=2
DEBUG   (2002-10-10) 05:43.57:750   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 1 day)   < discharge_date
DEBUG   (2002-10-10) 05:43.57:920   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=3
DEBUG   (2002-10-10) 05:43.58:580   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 2 day)   < discharge_date
DEBUG   (2002-10-10) 05:43.59:180   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=4
DEBUG   (2002-10-10) 05:43.59:350   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 3 day)   < discharge_date
DEBUG   (2002-10-10) 05:44.00:010   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=5
DEBUG   (2002-10-10) 05:44.00:170   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 4 day)   < discharge_date
DEBUG   (2002-10-10) 05:44.00:340   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_date)=2002 and 
dayofmonth(fall_date)=6
DEBUG   (2002-10-10) 05:44.00:500   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:   
select count(*) as denominator  from VITAL.Patient   where   
date_add("2002-9-01",  interval 5 day)   < discharge_date
DEBUG   (2002-10-10) 05:44.00:670   [sitemap.generator.serverpages] 
(/cocoon/report) HttpProcessor[8080][4]/monthly_xsp: esql query:  select 
count(*) as numerator from VITAL.Fall where  
month(fall_date)=9  and year(fall_da

Re: So close .. I think?

2002-10-11 Thread Geoff Howard

I'd leave the mod_jk setup you have as is, and use
host matchers in cocoon to handle requests from there,
assuming that at some point you'll want www.domain.com
to be handled differently than foo.domain.com, or
www.otherdomain.com.

I'm using the following setup with success:
1) (You may not want to do this step) I changed the
Tomcat Root Context in server.xml following the
instructions found at:
http://xml.apache.org/cocoon/faq/faq-configure-environment.html#faq-1
2) Add the WildCardHostMatcher (or regexp version) by
adding a declaration similar to the following in your
root sitemap:

3) Mount your application in a sub sitemap, matched on
the host from the root sitemap.  I'm currently using: 

  


Note, I'm not (yet) using mod_jk to pass requests from
port 80.  If you use that, you'll need to get rid of
the :8080 in the above example, and if you skip step
one above you may need to play with the value of
uri-prefix.  I haven't thought that through very
carefully for your situation.  I can say that the
above three steps exactly are working in my case. 

When you resolve this with mod_jk can you be sure to
summarize this to the list?

Also, in your example below you mention accessing
http://domain:8009/cocoon/domain - wouldn't this be
:8080 to the outside world?  I'm pretty sure 8009 is
just what apache uses internally to pass requests on,
though it's been a while and this has gotten fuzzy in
my mind.

Geoff Howard

--- "Marc G. Fournier" <[EMAIL PROTECTED]> wrote:
> 
> Okay, as suggested, I replaced mod_webapp with
> mod_jk2, and if I go to
> http://domain now, it comes up with an error to the
> effect of:
> 
> Cocoon 2 - Resource not found
> 
> In my httpd.conf file, I have:
> 
> # Configure mod_jk
> #
> JkWorkersFile
>
/usr/local/jakarta-tomcat4.1.10/conf/jk/workers.properties
> JkLogFile /var/www/mod_jk.log
> JkLogLevel info
> 
> where workers.properties just contains:
> 
> ===
> workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
> workers.java_home=/usr/local/jdk1.3.1
> ps=/
> worker.list=ajp12, ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> 
> Now, in my VirtualHost directive for the domain, I
> have:
> 
> JkMount /   ajp13
> 
> which is obviously wrong ... but what should it be?
> 
> Basically, what I want, is for:
> 
> http://domain to "connect" to
> http://domain:8009/cocoon/domain
> 
> and use the sub-sitemap.xmap file properly ... but
> this is all new to me
> :(
> 
> Again, if there is a good how to on this that I
> should be reading, please
> point me to it ...
> 
> Thanks ...
> 
> 
> 
>
-
> Please check that your question  has not already
> been answered in the
> FAQ before posting.
> 
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>
> 


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: sunRise User Administration for Dummies

2002-10-11 Thread Bert Van Kets

Wow, man are you impatient.
You can use any source you like.  File (as in the sample), database, LDAP, 
...  If you don't supply the info in the same structure as the original 
users file, you will have to put a transformer in the pipeline that 
supplies the info.
Find out more on sunRise at http://ziegeler.bei.t-online.de/c2auth.html and 
http://www.need-a-cake.com/stories/2002/02/28/usingTheSunriseComponents.html

If you're serious about Cocoon, get the book by Carsten and Matthew!

Bert

At 19:57 11/10/2002 -0800, you wrote:
>Hi Guys,
>
>Can anybody give me anything...
>I really don't have any clear idea on how to start on this...
>Any working samples...
>
>Thanks Again.
>Richard
>
>-
>
>- Original Message -
>From: Richard Reyes
>To: C2 Users
>Sent: Friday, October 11, 2002 3:14 PM
>Subject: sunRise User Administration for Dummies
>
>
>Hi Guys,
>
>How does the SunRise User Administration function?
>
>Are the Roles and Users saved in a Database?
>
>Do we have any tutorials?
>
>Thanks in Advance...
>
>Richard
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Port 8180 works, port 80 with mod_jk doesn't ... and it feels soclose

2002-10-11 Thread Marc G. Fournier


Okay, been working the various suggestions that have been made so far, and
I have it now so that if I go to:

http://www.domain.com:8180

everything loads up as expected ...

But, if I go to just http://www.domain.com, it gives me an error of:

The requested URL /index.html was not found on this server.

Now, my pipeline currnelty looks like:


  

  





And my domain/sitemap.xmap looks like:


http://apache.org/cocoon/sitemap/1.0";>
  

  

  

  

  

  

  

  

  

  


with a du of the directories looking like:

4   domain/css
32  domain/html
12  domain/images
2   domain/xml
2   domain/xsl
56  domain


and my apache config file looking like:


  ServerName www.domain.com
  ServerAlias domain.com

  ErrorLog /var/www/domain.com/www/error_log
  CustomLog /var/www/domain.com/www/access_log combined

  Alias /stats  /usr/local/stats/domain.com/www

  JkMount /   ajp13


And, ajp13 is defined in workers.properties as:

workers.tomcat_home=/usr/local/jakarta-tomcat4.1.10
workers.java_home=/usr/local/jdk1.3.1
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


Now, turning the JK Log level to debug, I'm seeing:

[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI '/'
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (491)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 -> /
[Fri Oct 11 18:58:27 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
[Fri Oct 11 18:58:27 2002]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found a 
worker
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1391)]: Into jk_worker_t::get_endpoint
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1107)]: Into jk_endpoint_t::service
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (132)]: Into jk_open_socket
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (139)]: jk_open_socket, try to connect 
socket = 7
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (148)]: jk_open_socket, after connect ret = 0
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (157)]: jk_open_socket, set TCP_NODELAY to on
[Fri Oct 11 18:58:27 2002]  [jk_connect.c (174)]: jk_open_socket, return, sd = 7
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (614)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 7
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #457
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2: request body 
to send 0 - request body to resend 0
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #154
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 
302
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of 
headers is = 4
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] 
[X-Cocoon-Version] = [2.0.3]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] 
[Location] = [http://www.domain.com/index.html]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[2] 
[Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[3] 
[Content-Language] = [en]
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #692
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Fri Oct 11 18:58:27 2002]  [jk_ajp_common.c (1369)]: Into jk_endpoint_t::done, 
recycling connection
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI 
'/index.html'
[Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c (599)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match


Can anyone see a step I've missed here?  From what i can tell, the mod_jk
link is working, in so far as its going to the tomcat server and
translation http://www.domain.com ->
http://www.domain.com/html/index.html, bit it seems to be ignoring the
sitemap.xmap that tells it whihch file to then load up :(

Thoughts/ideas?




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




ProxyPass vs. mod_jk

2002-10-11 Thread Lenz, Evan

I intend to use Apache in conjunction with Cocoon. What are the advantages
of using mod_jk as opposed to just ProxyPass? I'm probably missing some
obvious things. What are they?

Thanks,
Evan

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Port 8180 works, port 80 with mod_jk doesn't ... and it feels so close

2002-10-11 Thread Geoff Howard

I think you just need to add 
   JkMount /*   ajp13
right below your other JkMount.
0
You can see in the log below that / is processed with
an exact match, and /index.html is processed with no
match - meaning it wasn't sent on to cocoon correctly
as the other was.

Geoff
P.S. Do you really mean 8180?  Are you setting up
multiple versions of tomcat or is there some other
reason you've changed the default port?  If there is
another version running, does this setup leave those
unaffected as it should?


> Now, turning the JK Log level to debug, I'm seeing:
> 
> [Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c
> (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c
> (477)]: Attempting to map URI '/'
> [Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c
> (491)]: jk_uri_worker_map_t::map_uri_to_worker,
> Found an exact match ajp13 -> /


> (477)]: Attempting to map URI '/index.html'
> [Fri Oct 11 18:58:27 2002]  [jk_uri_worker_map.c
> (599)]: jk_uri_worker_map_t::map_uri_to_worker, done
> without a match


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Software Development magazine reviews a Cocoon book

2002-10-11 Thread Luca Morandini

Folks,

in the November issue of Software Developoment ( http://www.sdmagazine.com ) you may 
find a brief review of "Cocoon: building XML
applications" by well-known posters Carsten & Matthew: Cocoon scores another point :)

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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