RE: Cocoon 2.1.2 sitemap

2004-12-06 Thread Adam Ratcliffe
Title: Cocoon 2.1.2 sitemap



Hi 
Roberto
 
Can 
you tell me a little more about what you want to do with your pipeline 
output.  What do you want to use the XML written to the file 
for?
 
Cheers
Adam

  -Original Message-From: Roberto 
  [mailto:[EMAIL PROTECTED]Sent: Monday, 6 December 2004 4:01 
  a.m.To: [EMAIL PROTECTED]Subject: Re: Cocoon 2.1.2 
  sitemap
  Hi,
  I guess I got the same need, I 
  mean... let I have this in my sitemap:
   
  
  
  
  
  
  
  
  
   
  I would save in a file (xml) the 
  output. The Log Transformer is good 4 debugging to see what's going on but not 
  for my target.
  Any suggestion?
   
  Thanx in advance
  Ciao
  ROb
  
- Original Message - 
From: 
Adam 
Ratcliffe 
To: [EMAIL PROTECTED] 
Sent: Saturday, December 04, 2004 9:31 
PM
Subject: RE: Cocoon 2.1.2 sitemap

IIUC you'd like to write the output of a pipeline 
to a file before sending the response to the browser.
 
You could try the Log Transformer for this purpose: 
http://cocoon.apache.org/2.1/userdocs/transformers/log-transformer.html
 
Cheers
Adam

  -Original Message-From: L.Austin 
  [mailto:[EMAIL PROTECTED]Sent: Friday, 3 December 2004 4:23 
  a.m.To: usersSubject: Cocoon 2.1.2 
  sitemap
  Hi, 
  Is there a way to within the sitemap to save 
  the output sent to the browser? 
  Cheers Lk 



cforms submit to xml file

2004-12-06 Thread Lincoln Mitchell
I am trying to create my 1st Cocoon Form which needs to append to an xml
file. For starters I would like to create a bare bones example where one
value is collected and out put as a xml tag in an xml file like:

fred
burt
harry
...


I have worked through the example "http://localhost:/forms/registration";
but that didn't create a data file so assume I need to use Binding
Framework.

Am I on the right track?
Has anyone got any example that may help?


Linc
 


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



Re: Cocoon 2.1.2 sitemap

2004-12-06 Thread Roberto
Title: Cocoon 2.1.2 sitemap



Well Adam,
Im just trying to do some 
experiment... 
The sql-page.xml contain a query I 
would save the result to use it as datafile for an xmlbinding with a cforms 
I don't know if make a sense anyway.. 
 
Thanx 
Cheers
ROb
 

  - Original Message - 
  From: 
  Adam 
  Ratcliffe 
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 06, 2004 9:01 
  AM
  Subject: RE: Cocoon 2.1.2 sitemap
  
  Hi 
  Roberto
   
  Can 
  you tell me a little more about what you want to do with your pipeline 
  output.  What do you want to use the XML written to the file 
  for?
   
  Cheers
  Adam
  
-Original Message-From: Roberto 
[mailto:[EMAIL PROTECTED]Sent: Monday, 6 December 2004 4:01 
a.m.To: [EMAIL PROTECTED]Subject: 
Re: Cocoon 2.1.2 sitemap
Hi,
I guess I got the same need, I 
mean... let I have this in my sitemap:
 








 
I would save in a file (xml) 
the output. The Log Transformer is good 4 debugging to see what's going on 
but not for my target.
Any suggestion?
 
Thanx in advance
Ciao
ROb

  - Original Message - 
  From: 
  Adam 
  Ratcliffe 
  To: [EMAIL PROTECTED] 
  Sent: Saturday, December 04, 2004 
  9:31 PM
  Subject: RE: Cocoon 2.1.2 
  sitemap
  
  IIUC you'd like to write the output of a pipeline 
  to a file before sending the response to the browser.
   
  You could try the Log Transformer for this 
  purpose: http://cocoon.apache.org/2.1/userdocs/transformers/log-transformer.html
   
  Cheers
  Adam
  
-Original Message-From: L.Austin 
[mailto:[EMAIL PROTECTED]Sent: Friday, 3 December 2004 
4:23 a.m.To: usersSubject: Cocoon 2.1.2 
sitemap
Hi, 
Is there a way to within the sitemap to save 
the output sent to the browser? 
Cheers Lk 
  


Re: Invalidate cachingURI coplet cache

2004-12-06 Thread pguillard
Thanks a lot Nick. You gave me everything.
( However i'm Java beginner and blocked with Avalon ServiceManager to 
get Portal Service and hope to find soon:-))

Phil
Nick Goupinets wrote:
Hi Phil,
Here are a few hints:
1.
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109774039000438&w=2
It talks about layout, but once you understand that, it's easy to get 
it working for coplet instance data.

2.
// for portal service
service = (PortalService)manager.lookup(PortalService.ROLE);
// for component manager
PortalComponentManager componentManager = service.getComponentManager();
// for profile manager
ProfileManager profileManager = componentManager.getProfileManager();
You will probably need the new GroupBasedProfileManager (GBPM) 
instead. GBPM has getCopletInstaceData method. I think that's what you 
wanted.

Sincerely,
Nick
pguillard wrote:
Hi all,
New try for my question because it was badly expressed and i tried 
further:
I know it's possible to invalidate the cachingURIcoplet cache 
"manually" in flow:
I found this class : 
org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter
and this method :
void  setCacheInvalid(CopletInstanceData coplet)

But i don't know how i could get the CopletInstanceData. Does anybody 
know how to use method like getCopletInstanceData  for example,  
from  some  "manager" class please?
thanks in advance,

Phil
pguillard wrote:
Hi all,
Question1:
I know it's possible to invalidate the cachingURI coplet cache 
"manually" from within flow, xsp or action but don't know how, here 
is where i am in flow:
function reset_cache() {
   var cidmanager = 
Packages.org.apache.cocoon.portal.profile.impl.CopletInstanceDataManager(); 

   var mycoplet = new 
Packages.org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter(); 

   var cid = cidmanager.getCopletInstanceData("test-1")
   mycoplet.setCacheInvalid(cid);}   Question2: Is this 
strategy correct ?
- I plan to use this to invalidate cachingURI coplet cache after a 
form has been submitted, then the user going back to this portal-tab 
will see the coplet refreshed with the form again
- Some users may update things that will change the content of other 
coplets (not concerning their profile and without having to login 
again), i assume i should also invalidate the cache for that coplets 
/ that users in order to view these coplets updated.

Regards,
Phil
-
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]


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


Re: providing a WebService

2004-12-06 Thread Luca Morlando
Thank you very much, Nick.
Now I'm scratching my head on this one:
When I try to connect to the service I receive:
java.io.IOException: Server returned HTTP response code: 500 for URL ...
Thank you very much for any advice on this.
Luca
Nick Goupinets wrote:
Hey Luca,
I don't know if this will help, as you have probably read it already:
http://marc.theaimsgroup.com/?t=10986227012&r=1&w=2
Read the whole thread, and pay special attention to:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109871573620372&w=2
Sincerely,
Nick.
Luca Morlando wrote:
Hi there...
We're struggling against Cocoon in the try of providing a WebService 
(SOAP) out of the
result of a pipeline which already produces XML.
The documentation on this part lacks almost completely.
Does anyone of you have a suggestion or a working example ?
Or point us where to look better because it's already been discussed 
in.. and we
didn't find it ?
Thank you very much for any advice on this.

-
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: examples xmldb and expression xpath

2004-12-06 Thread Aurélien DEHAY
Hello.

Le dimanche 05 décembre 2004 à 21:38 -0600, Andres Taborda a écrit :
> hello list
> 
> some user have examples of XML:DB XUpdate with
> xindice using expressions xpath (//, /*, parent,..etc)
> for update document xml.
> 
> I have an material of Kimbro Staken but not are
> examples advanced.
> 
> thanks very much.

Did you looked at the samples? The xmldb samples should be in

where_you_have_installed_cocoon/samples/blocks/xmldb

Rgds.


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



[CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread george georgovassilis
Guten Morgen Johannes
Thank you very much for your help. Your mentioning the Configuration 
class led me on the right track. One has to 
cfg.configure().buildSessionFactory() instead of
cfg.buildSessionFactory() which was practiced in the tutorial. When I 
changed the code accordingly it also started reading the 
hibernate.cfg.xml and mapped my classes correctly :-)

Best regards
G.

hi george,
I just started last week to write the below mentioned tutorial and it 
is not finished yet.

net.sf.hibernate.MappingException: Unknown entity class: my.test.Mutex
I would say that this happens because you did not add the class 
my.test.Mutex to your
Hibernate configuration. Can you post the source code of your 
HibernateFactory class ?

Did you add a statement like the following;
cfg.addClass(my.test.Mutex) ?
How did you add your classes to the hibernate configuration before ?
Regards,
Johannes

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


Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread D.Skirde
Title: Paremeter in Sitemape ( request.getRemoteUser() )






Hi all,

i want to use a sitemap parameter which refers to / use the request.getRemoteUser().

Here is my actual part of the sitemap:


       ?? thos doesn't work!!


How must i do this. Can anyone give me a tip?

Thanks for your help.


Gruß Dirk


Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]





Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Jonas . Kilian

Return Receipt
   
Your  Paremeter in Sitemape ( request.getRemoteUser() )
document   
:  
   
was   Jonas Kilian/EXTERN/o2-Germany   
received   
by:
   
at:   12/06/2004 10:41:42  
   





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



Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread D.Skirde
Title: Paremeter in Sitemape ( request.getRemoteUser() )






Hi all,

i want to use a sitemap parameter which refers to / use the request.getRemoteUser().

Here is my actual part of the sitemap:


       ?? thos doesn't work!!


How must i do this. Can anyone give me a tip?

Thanks for your help.


Gruß Dirk


Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]





Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Jonas . Kilian

Return Receipt
   
Your  Paremeter in Sitemape ( request.getRemoteUser() )
document   
:  
   
was   Jonas Kilian/EXTERN/o2-Germany   
received   
by:
   
at:   12/06/2004 11:35:49  
   





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



Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
Hi again George,
strange, the code in the page works for me and also for some people who 
have
tested the page. just out of curiosity: which version of Hibernate are 
you using ?

Regards,
Johannes
george georgovassilis wrote:
Guten Morgen Johannes
Thank you very much for your help. Your mentioning the Configuration 
class led me on the right track. One has to 
cfg.configure().buildSessionFactory() instead of
cfg.buildSessionFactory() which was practiced in the tutorial. When I 
changed the code accordingly it also started reading the 
hibernate.cfg.xml and mapped my classes correctly :-)

Best regards
G.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Merico Raffaele
Title: Paremeter in Sitemape ( request.getRemoteUser() )



Hi 
Dirk
 
Try: 
and 
declare it as: 
 
hope 
this helps ... Raffaele

  -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Gesendet: Montag, 6. Dezember 2004 
  10:57An: [EMAIL PROTECTED]Betreff: Paremeter in 
  Sitemape ( request.getRemoteUser() )
  Hi all,i want to use a sitemap parameter which refers 
  to / use the request.getRemoteUser().Here is my actual part of the 
  sitemap:       ?? 
  thos doesn't work!!How must i do this. Can 
  anyone give me a tip?Thanks for your help.Gruß 
  DirkDirk 
  SkirdeHessische Zentrale für DatenverarbeitungMainzer Strasse 50  
  Raum 00965189 WiesbadenTel.:  +49 611 340 
  1941Fax:   +49 611 340 5941EMail: 
  [EMAIL PROTECTED] 


Re: AW: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread D.Skirde
Title: Re: AW: Paremeter in Sitemape ( request.getRemoteUser() )






Hi Merico,

thanks for your help, but it doesn't work. After using your solution i am getting the following
error:

Fehlermeldung : Cannot get variable 'getRemoteUser()' in _expression_ '{request:getRemoteUser()}'

Beschreibung : org.apache.cocoon.ProcessingException: Cannot get variable 'getRemoteUser()' in _expression_ '{request:getRemoteUser()}':
   org.apache.cocoon.sitemap.PatternException: Cannot get variable 'getRemoteUser()' in _expression_ '{request:getRemoteUser()}'

My sitemap now looks like:

...

  

...

My XSL-File looks like:

    ...
    
    
    
   
    http://apache.org/cocoon/SQL/2.0">
    INSERT INTO ewo_log ( ewo_lg_persnr , ewo_lg_xml, ewo_lg_status, ewo_lg_type, EWO_LG_GKZ, EWO_LG_STRASSE, EWO_LG_GESCHLECHT, EWO_LG_FAMNAME, EWO_LG_VNAME, EWO_LG_GEBDATUM)
    VALUES ( '','/>','0401', 'Trefferliste','
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/gemeindeschluessel/schluessel"/>', '
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/strassenschluessel"/>', '
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geschlecht/geschlecht/schluessel"/>','
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/NACHNAME/nachname"/>', '
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/VORNAME/vorname"/>', '
    select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geburt/tagdergeburt"/>' ) 
    
  ...

Any idea?

Regards Dirk



Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]






Guten Tag Merico Raffaele,

am Montag, 6. Dezember 2004 um 12:40 schrieben Sie:

> Hi  Dirk
>  
> Try: 
> and  declare it as: 
>  
> hope  this helps ... Raffaele
 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]    [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 6. Dezember 2004    10:57
> An: [EMAIL PROTECTED]
> Betreff: Paremeter in    Sitemape ( request.getRemoteUser() )

 
> Hi all,

> i want to use a sitemap parameter which refers    to / use the request.getRemoteUser().

> Here is my actual part of the    sitemap:

> 
>        ??    thos doesn't work!!
> 

> How must i do this. Can    anyone give me a tip?

> Thanks for your help.


> Gruß    Dirk

> 
> Dirk    Skirde
> Hessische Zentrale für Datenverarbeitung
> Mainzer Strasse 50 Raum 009
> 65189 Wiesbaden
> Tel.:  +49 611 340    1941
> Fax:   +49 611 340 5941
> EMail:    [EMAIL PROTECTED]


  





Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread george georgovassilis

strange, the code in the page works for me and also for some people 
who have
tested the page. just out of curiosity: which version of Hibernate are 
you using ?
Yep, that is strange. But I really couldn't get it otherwise to work. 
I'm doing this on plain cocoon (no tomcat or other app server) with 
hibernate 2.1.7
g.

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


Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
ok, next time I will read more thoroughly :)
You needed to call configure() because you are using the 
hibernate.cfg.xml file,
as opposed to hibernate.properties used by me and in the tutorial, which 
is read
automatically when the session is created.

I will add this information to the page. thank you for bringing this up :)
regards,
johannes
george georgovassilis wrote:
strange, the code in the page works for me and also for some people 
who have
tested the page. just out of curiosity: which version of Hibernate 
are you using ?

Yep, that is strange. But I really couldn't get it otherwise to work. 
I'm doing this on plain cocoon (no tomcat or other app server) with 
hibernate 2.1.7
g.

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


Re: Problems with event handling in CForms

2004-12-06 Thread Sylvain Wallez
David Leangen wrote:
Hello!
I'm having a bit of trouble with event handling in CForms.
What is the element that I'm missing that will trigger a page update? I
can't seem to figure that out...

This is the function in my flow controller:
function showLimitsForm()
{
   var form = new Form("limits.xml");
   form.lookupWidget("age").setValue(cocoon.parameters.defaultAge);
   form.showForm("limits-display-pipeline");
   cocoon.request.setAttribute("ageselectorform", form.getWidget());
   cocoon.sendPage("limits-success-pipeline.jx", bizdata);
}
This is an excerpt of my form definition:
http://apache.org/cocoon/forms/1.0#definition";
 xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
 
   
 Age
 
 
 
   
 var thisWidget = event.source;
 ...
 ...
(Is it even necessary to use 'src="cocoon:/age"'? The contents of the list
are not dynamic.)
This is an excerpt from my template file:
 
   
 
However, when I change the value of the "age" radio, no event is being
triggered...
Any ideas?
 

Do you have a widget that is named "submit"? If yes, it overrides the 
submit() function of the form object in the web page, and therefore 
breaks the client-side handling of "submit-on-change".

Sylvain
--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problems with event handling in CForms

2004-12-06 Thread David Leangen

Hi, Sylvain,

Thanks for the suggestion.

> Do you have a widget that is named "submit"? If yes, it overrides the
> submit() function of the form object in the web page, and therefore
> breaks the client-side handling of "submit-on-change".

Yes, I have a submit button. Actually, I need a submit button.

Actually, what I'm trying to do isn't all that complicated, I think. It's
that that I haven't found the right combination of settings I need to get
the job done.

My form should be like this:

-
 (  ) radio1
 (  ) radio2
  [  ] checkbox1
  [  ] checkbox2

  [  submit  ]
-


When radio1 is set, both checkboxes should be disactivated.

When radio2 is set, the checkboxes should be activated.


However, I'm not able to capture the event indicating the change of values
between radio1 and radio2. I think that's pretty much the only thing I
haven't figured out yet.


Any suggestions are very welcome.

Thanks!
Dave



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



Re: Problems with event handling in CForms

2004-12-06 Thread Upayavira
David Leangen wrote:
Hi, Sylvain,
Thanks for the suggestion.
 

It's okay to have a submit button, just don't give it an ID or name of 
"submit". Call it something else. That's all.

Regards, Upayavira
Do you have a widget that is named "submit"? If yes, it overrides the
submit() function of the form object in the web page, and therefore
breaks the client-side handling of "submit-on-change".
   

Yes, I have a submit button. Actually, I need a submit button.
Actually, what I'm trying to do isn't all that complicated, I think. It's
that that I haven't found the right combination of settings I need to get
the job done.
My form should be like this:
-
(  ) radio1
(  ) radio2
 [  ] checkbox1
 [  ] checkbox2
 [  submit  ]
-
When radio1 is set, both checkboxes should be disactivated.
When radio2 is set, the checkboxes should be activated.
However, I'm not able to capture the event indicating the change of values
between radio1 and radio2. I think that's pretty much the only thing I
haven't figured out yet.
Any suggestions are very welcome.
Thanks!
Dave

-
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: AW: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Stephan Coboos
It must be {request:remoteUser} NOT {request:getRemoteUser()}.
Regards
Stephan
[EMAIL PROTECTED] wrote:
Hi Merico,
thanks for your help, but it doesn't work. After using your solution i 
am getting the following
error:

Fehlermeldung : Cannot get variable 'getRemoteUser()' in expression 
'{request:getRemoteUser()}'

Beschreibung : org.apache.cocoon.ProcessingException: Cannot get 
variable 'getRemoteUser()' in expression '{request:getRemoteUser()}':
   org.apache.cocoon.sitemap.PatternException: Cannot get 
variable 'getRemoteUser()' in expression '{request:getRemoteUser()}'

My sitemap now looks like:
...

  

...
My XSL-File looks like:
...



   
http://apache.org/cocoon/SQL/2.0";>
INSERT INTO ewo_log ( 
ewo_lg_persnr , ewo_lg_xml, ewo_lg_status, ewo_lg_type, EWO_LG_GKZ, 
EWO_LG_STRASSE, EWO_LG_GESCHLECHT, EWO_LG_FAMNAME, EWO_LG_VNAME, 
EWO_LG_GEBDATUM)
VALUES ( '','/>','0401', 
'Trefferliste','

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/gemeindeschluessel/schluessel"/>', 
'

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/strassenschluessel"/>', 
'

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geschlecht/geschlecht/schluessel"/>','

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/NACHNAME/nachname"/>', 
'

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/VORNAME/vorname"/>', 
'

select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geburt/tagdergeburt"/>' 
) 

  ...

Any idea?
Regards Dirk

Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]


Guten Tag Merico Raffaele,
am Montag, 6. Dezember 2004 um 12:40 schrieben Sie:
> Hi  Dirk
>  
> Try: 
> and  declare it as: 
>  
> hope  this helps ... Raffaele
 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 6. Dezember 200410:57
> An: [EMAIL PROTECTED]
> Betreff: Paremeter inSitemape ( request.getRemoteUser() )

 
> Hi all,

> i want to use a sitemap parameter which refersto / use the 
request.getRemoteUser().

> Here is my actual part of thesitemap:
> 
>??thos doesn't work!!
> 

> How must i do this. Cananyone give me a tip?
> Thanks for your help.
> GrußDirk
> 
> DirkSkirde
> Hessische Zentrale für Datenverarbeitung
> Mainzer Strasse 50 Raum 009
> 65189 Wiesbaden
> Tel.:  +49 611 3401941
> Fax:   +49 611 340 5941
> EMail:[EMAIL PROTECTED]
 


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


AW: AW: AW: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Merico Raffaele
Title: Re: AW: AW: Paremeter in Sitemape ( request.getRemoteUser() )



Hi 
Dirk
 
Good 
so, no errors any more ... as I told you below, I do not know how to set the 
remoteUser attribute within a HTTP request.
Can 
anybody on the list please anwer  this question.
 
Raffaele
 
 -Ursprüngliche 
Nachricht-Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]Gesendet: Montag, 6. Dezember 2004 
14:04An: [EMAIL PROTECTED]Betreff: Re: AW: AW: 
Paremeter in Sitemape ( request.getRemoteUser() )

  Hi Merico,after resrarting my webserver in runs now. 
  But in the database the field User (filling withremoteUser) is 
  emtpy.Am i trying the remoteHost i am getting e.x. the ip of my localhost. 
  Which value did the functionrequest:remoteUser gets?Gruß 
  DirkDirk 
  SkirdeHessische Zentrale für DatenverarbeitungMainzer Strasse 50  
  Raum 00965189 WiesbadenTel.:  +49 611 340 
  1941Fax:   +49 611 340 5941EMail: 
  [EMAIL PROTECTED]Guten 
  Tag Merico Raffaele,am Montag, 6. Dezember 2004 um 13:58 schrieben 
  Sie:> Hi  Dirk>  > Hm,  strange ... on 
  my side it works without any error even if  the remoteUser 
  is undefined or> empty (I really do not know how to define a  
  remoteUser for a request).  > What  happens when you 
  try to access the following cocoon-sample-page on  your local 
  installation:> - http://localhost:8080/%COCOON_WEBAPPS_DIR%/samples/modules/request.html.> 
  In  this page I can see all request attributes. The entry of the 
  remoteUser is  located immediatly after the entry of the 
  remoteHost.> FYI:  I'm using cocoon 2.1.6.>  > 
  Raffaele > -Ursprüngliche Nachricht-> Von: 
  [EMAIL PROTECTED]    [mailto:[EMAIL PROTECTED]]> 
  Gesendet: Montag, 6. Dezember 2004    12:57> An: 
  [EMAIL PROTECTED];    [EMAIL PROTECTED]> 
  Betreff: Re: AW: Paremeter in Sitemape (    
  request.getRemoteUser() ) > Hi Merico,> thanks 
  for your help, but it doesn't work.    After using your 
  solution i am getting the    following> 
  error:> Fehlermeldung : Cannot get variable    
  'getRemoteUser()' in _expression_    
  '{request:getRemoteUser()}'> Beschreibung :    
  org.apache.cocoon.ProcessingException: Cannot get variable 
  'getRemoteUser()'  in _expression_    
  '{request:getRemoteUser()}':> 
    
  org.apache.cocoon.sitemap.PatternException: Cannot get 
  variable  > 'getRemoteUser()' in _expression_ 
  '{request:getRemoteUser()}'> My sitemap    now looks 
  like:> ...> >   
  > > 
  ...> My    XSL-File looks like:> 
      ...>    
  > 
     
  > 
     > 
     > 
     
  http://apache.org/cocoon/SQL/2.0">> 
     
  INSERT INTO ewo_log ( ewo_lg_persnr 
  ,    ewo_lg_xml,> ewo_lg_status, ewo_lg_type, 
  EWO_LG_GKZ, EWO_LG_STRASSE,    EWO_LG_GESCHLECHT, 
  EWO_LG_FAMNAME,> EWO_LG_VNAME,    
  EWO_LG_GEBDATUM)> 
     
  VALUES ( '','> 
  select="/"/>/>','0401',    
  'Trefferliste','> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/gemeindeschluessel/schluessel"/>',> 
  '> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/anschrift.lokal/strassenschluessel"/>',> 
  '> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geschlecht/geschlecht/schluessel"/>','> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/NACHNAME/nachname"/>',> 
  '> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/name/VORNAME/vorname"/>',> 
  '> 
   > 
  select="datenuebermittlung.antwortbenutzerdefiniert.0401/uebermittelte.person/angefragtes.suchprofil/geburt/tagdergeburt"/>'> 
  ) > 
     
  >   
  ...> Any    idea?> 
  Regards    Dirk> 
  > Dirk    
  Skirde> Hessische Zentrale für Datenverarbeitung> Mainzer 
  Strasse 50 Raum 009> 65189 Wiesbaden> 
  Tel.:  +49 611 340    1941> Fax:   +49 
  611 340 5941> EMail:    
  [EMAIL PROTECTED]> 
  > Guten    
  Tag Merico Raffaele,> am Montag, 6. Dezember 2004 um 12:40 
  schrieben    Sie:>> Hi  Dirk>> 
   >> Try: >> and  
  declare    it as: >>  >> 
  hope this helps ... Raffaele> 
   >> -Ursprüngliche    
  Nachricht->> Von: [EMAIL PROTECTED]    [mailto:[EMAIL PROTECTED]]>>    
  Gesendet: Montag, 6. Dezember 2004    10:57>> 
  An:    [EMAIL PROTECTED]>> Betreff: Paremeter 
  in   Sitemape ( request.getRemoteUser() 
  )>  >> Hi all,>>    i 
  want to use a sitemap parameter which refers    to / use 
  the    request.getRemoteUser().>> Here is my 
  actual part of    the    
  sitema

XPathDirectoryTransformer takes too long!

2004-12-06 Thread Stephan Coboos
Hello,
I'am using the XPathDirectoryGenerator to read all xml files from a 
certain directory and to extract all found xml out of the xml files. 
Everything works fine except the one thing: The XPathDirectoryGenerator 
takes too long (about 1 Minute). Do you know faster alternatives to 
parse such files within a directory?

Thank you.
Regards
Stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SendMailTransformer charset?!

2004-12-06 Thread Ilya Vyatkin
Hi all!

I'm using SendMail Transformer.
Is it possible to set the character set for encoding the message?

For example, Sendmail Action has such option as parameter.


Ilya


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



Hibernate, cocoon db connection pooling & row locks

2004-12-06 Thread george georgovassilis
Dear All
I'm experiencing a strange case of  database locks not given up when 
locking rows through hibernate and using the cocoon database connection 
pool.
I've used the session factory from 
http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial to provide me 
with hibernate sessions.

Now the following happens:
A web user makes an http request during which more or less the following 
sequence is executed:

session = sessionFactory.createSession(); <-- that's the HibernateFactory
object = session.get(..., Lockmode.UPGRADE);
...
session.lock(object, Lockmode.NONE);
session.close();
(where the session.close() is done with the servlet filter as described 
in aforementioned tutorial).

This seems to lock the database up after a while [I suspect once the db 
connection pool run out of connections], the reason being me of course 
not reading the tutorial carefuly enough because session.close() is 
there infact (and correctly) session.connection().close().

After this, the locking works fine for multiple users hitting the same 
webapp.

However, when I run a second cocoon instance (on a different JVM, of 
course) unlocking is not propagated to the database. In particularily, 
since it's an Oracle db I can see the lock from the enterprise manager 
even way after unlock() and close() were executed.

I'm apreciating as always your thoughts on this :)
BR
G.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: XPathDirectoryTransformer takes too long!

2004-12-06 Thread Richard Lewis

On Mon, 06 Dec 2004 16:26:36 +0100, "Stephan Coboos" <[EMAIL PROTECTED]>
said:
> Hello,
> 
> I'am using the XPathDirectoryGenerator to read all xml files from a 
> certain directory and to extract all found xml out of the xml files. 
> Everything works fine except the one thing: The XPathDirectoryGenerator 
> takes too long (about 1 Minute). Do you know faster alternatives to 
> parse such files within a directory?
> 
Try having a look at a native XML database:

http://exist.sf.net/
http://xml.apache.org/xindice/

Richard.
-- 
  Richard Lewis
  [EMAIL PROTECTED]


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



Re: Issue in Cocoon views preventing XSLT working properly?

2004-12-06 Thread Jorg Heymans

Thomas Alexnat wrote:
Dear Cocoon-Users,
I have discovered an interesting issue with Cocoon. Using views seems 
work, until your content is being loaded internally via a 'cocoon:/xyz' 
url or content aggregation. When you then XSL transform the XML in a 
view, the resulting tree seems to be corrupted.
Could it be that the pretty-content stylesheet gets called twice?
Views are defined on components, so whenever that component gets 
executed the view kicks in if the default request parameter 
"cocoon-view" is present.

So in effect,




with request parameter cocoon-view=pretty-content does actually





IMO pipeline b tries to transform the already transformed output from 
pipeline a and messes something up.

Note that this is all highly speculative  ... but true :)

Try to change the generator in pipline a to one that does not use the 
label "content" ie


and



Whether this is expected behaviour or a bug i don't know. Someone from 
dev@ maybe??

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


Setting the Locale during login

2004-12-06 Thread Andrew MacDonald
Hello,
We're trying to internationalize our portal and are
having difficulty with the locale.  Currently, when
the user logs in to the portal, the locale is passed
as a request parameter (tacked onto the login form
action).  However, we'd like to replace the request
parameter locale with the user's locale preference (if
they have one) which is loaded into the authentication
context during login.  Currently we're doing this
replacement in flow after the login process, but would
like to have it performed during login (in the
sitemap).  Any ideas on how this could be
accomplished?

Thanks,
Andrew MacDonald



__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Cocoon-centric approach to customer configuration

2004-12-06 Thread Jorg Heymans
Adam Ratcliffe wrote:
Hi there,
 
I'm working on a Cocoon application that will be a hosted solution. I 
need to maintain independent configuration data for each customer 
related to such things as datasources, feature set etc. Because of the 
need to keep customer specific configuration separate from general 
system configuration I don't want to use cocoon.xconf, furthermore I'd 
like to be able to setup new customers without requiring a server restart.
This is very much an application architecture question rather than 
cocoon specific IMO. Adding new customer configurations at runtime is 
something you should handle yourself in the application, there might be 
cocoon components that help you do this but there is no clear-cut plugin 
or component for this.

HTH, if not rephrase your question to be a bit more specific?
Regards
Jorg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Binary log files

2004-12-06 Thread Jorg Heymans
Alex Romayev wrote:
Has anyone run into a problem when Cocoon log files have binary content?
Only when i dump binary content from my own components :)
Actually, I did have a few probs once viewing core.log with request 
parameters containing those funny german characters, but that was fixed 
by adjusting the shell encoding, not anything in cocoon.

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


Re: Whatspace Problem iin Cocoon 2.1.4

2004-12-06 Thread Jorg Heymans
Jeff Sexton wrote:
I have two Cocoon installs, one at 2.0.4 and one at 2.1.4.  In an 
application under the 2.0.4 Cocoon, there's an XML file processed 
through an XSL file, serialized to plain text, and thus formatted as 
rows and columns of data.

Yesterday, I put the XML and XSL files on the 2.1.4 server, updated the 
sitemap and requested the data.  On 2.1.4, most of the whitespace is 
missing from the output, including CRs.  The MIME type is text, but 
instead of rows and columns, I get one long, unusable, line of characters.

Before I start re-working everything, or rolling back to Cocoon 2.0.4, 
is there something simple I need to change to move my app to  2.1.4?
Would you update your installed applications when you switch from 
windows 3.11 to windows 2000? :)

Seriously now, a *lot* has changed between 2.0 and 2.1 branches, if you 
describe your application a bit more in detail we could help finding the 
migration issues.

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


Re: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Dan Durkin
[EMAIL PROTECTED] wrote:
Hi all,
i want to use a sitemap parameter which refers to / use the 
request.getRemoteUser().

Here is my actual part of the sitemap:

   
?? thos doesn't work!!


How must i do this. Can anyone give me a tip?
Thanks for your help.
Gruß Dirk

Dirk Skirde
Hessische Zentrale für Datenverarbeitung
Mainzer Strasse 50  Raum 009
65189 Wiesbaden
Tel.:  +49 611 340 1941
Fax:   +49 611 340 5941
EMail: [EMAIL PROTECTED]
Try:

on your local host, if you have the samples enabled
see cocoon/samples/modules/request.html this shows all the accessors for 
the request input module.

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


Re: Integrating FO Conveter from XMLMind with cocoon 2.1.5.1

2004-12-06 Thread Jorg Heymans
Per Christian Engdal wrote:
Hi,
 
I would like to know if there is anybody that have integrated the FO 
converter from XMLMind (www.xmlmind.com ) with 
cocoon. How should this be done ?
Have a look how FOP is embedded in cocoon, src/blocks/fop
The link between FOP and cocoon is in the setOutputStream method, where 
a contenthandler is assigned to the fop driver.

Any reason why you're using XMLMind? Is it faster or more complete than FOP?
Regards
Jorg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

2004-12-06 Thread Jorg Heymans
Did you get any further on this? We are trying to do the same but are 
running into classloader issues with rhino.

Has anyone solved the rhino issue on weblogic btw? We are operating on a 
locked down environment and are basically only allowed to deploy our 
webapp and restart the instance. Can one work around it given these 
restrictions?

Regards
Jorg
Per Christian Engdal wrote:
Hi,
I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1
Sp2 (Windows 2000) installation. The deployment works without 
exceptions, but when I try to access cocoon through 
_http://localhost:80/cocoon_  I get the 
following error message (stack

trace):
java.lang.NoClassDefFoundError: org/apache/log/Logger
at 
org.apache.avalon.framework.logger.LogKitLogger.isWarnEnabled(LogKitLogger.java:122)

at 
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:797)

at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)

at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)

at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)

at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)

at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)

at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)

at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)

at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)

at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)

at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 

I have added xercesImpl-2.6.2.jar and xml-apis.jar to the weblogic 
server CLASSPATH. I have also checked the cocoon.war file to see if the 
loggerkit-1.2.2.jar is included - it is!

Is there anybody with an idea about how to fix this ?
Regards,
Per-Christian Engdal
 

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


Cocoon portal tabs

2004-12-06 Thread Anna Bikkina
Hi,

I am using cocoon portal features. In my portal page I have tabs. When I
choose "portal" it goes to the first tab in my application. I want the
application to go to different tabs depending on which user is logged
in. so when I redirect to portal after I login . I tried


but that didnt work. When I use hyperlinks that say 

Site Stops Responding (2.1.5 w/ Tomcat 5.0.28)

2004-12-06 Thread Brent Johnson
I've brought this up on this list before (I think) - but its starting
to happen more frequently so I'm bringing it up again to see if anyone
has any ideas as to where I should spend my time investigating to see
what the problem is.

Cocoon version:  2.1.5
Tomcat Version:  5.0.28
OS:  Redhat Linux 9
Hardware:
Dell Poweredge 2600
Intel Xeon processor (2.4Ghz I think)
1GB Ram

I'm using the Tomcat HTTP connector to serve all pages.  I'm doing
this for a couple reasons... most notably ease.  I'm using cocoon
throughout the whole site as the base URI (i.e. www.someurl.com/).

After a few weeks (sometimes around a month.. this last time in about
3 weeks) the site just stops responding.  My browser tells me its
waiting for a response.. so a connection is being made.  After some
period of time.. bang.. nothing but a timeout and/or network error
from the browser.

This is on a production site.. luckily its a intranet site so I just
get calls from the employees trying to use it.  My fix is usually one
of the following:

1)  restart network script with /etc/rc.d/init.d/network restart
2)  if step #1 didnt work I shutdown and restart tomcat
3)  if neither of the two work (which has never happened so far) I'd
restart the machine

So what are my options here?  There seems to be no errors in the
tomcat logs and no errors in the cocoon logs (other than some piddly
handled errors about some missing stylesheet or something.. nothing
serious).

If ANYONE could give me a little insight.. or nudge me in the right
direction for getting this fixed I'd greatly appreciate it.  If it
wasnt for this problem.. the site would require no hours for
maintenance freeing me up for other work.

Thanks.

- Brent

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



Re: Issue in Cocoon views preventing XSLT working properly?

2004-12-06 Thread Thomas Alexnat
Dear Jorg,
I can confirm your thougts: When adding a custom label to my second 
matcher called "B" everything is fine. Unfortunally this does not 
really solve my problem:

How can I see the XML content of my pipelines, before the 
transformation starts. Adding a special lables for each pipleline seems 
not to be the greatest solution and I need a more generic approach...

Thanks for your response,
   Thomas
On 06.12.2004, at 17:54, Jorg Heymans wrote:

Thomas Alexnat wrote:
Dear Cocoon-Users,
I have discovered an interesting issue with Cocoon. Using views seems 
work, until your content is being loaded internally via a 
'cocoon:/xyz' url or content aggregation. When you then XSL transform 
the XML in a view, the resulting tree seems to be corrupted.
Could it be that the pretty-content stylesheet gets called twice?
Views are defined on components, so whenever that component gets 
executed the view kicks in if the default request parameter 
"cocoon-view" is present.

So in effect,




with request parameter cocoon-view=pretty-content does actually





IMO pipeline b tries to transform the already transformed output from 
pipeline a and messes something up.

Note that this is all highly speculative  ... but true :)

Try to change the generator in pipline a to one that does not use the 
label "content" ie


and



Whether this is expected behaviour or a bug i don't know. Someone from 
dev@ maybe??

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

Schoene Gruesse,
   Thomas

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


Re: Site Stops Responding (2.1.5 w/ Tomcat 5.0.28)

2004-12-06 Thread Bertrand Delacretaz
Le 6 déc. 04, à 20:35, Brent Johnson a écrit :
After a few weeks (sometimes around a month.. this last time in  
about
3 weeks) the site just stops responding.  My browser tells me its
waiting for a response.. so a connection is being made.  After some
period of time.. bang.. nothing but a timeout and/or network error
from the browser...
I'd start with by getting and analyzing a thread dump from the JVM.
There's some info at  
http://www.unixville.com/~moazam/stories/2004/05/18/ 
debuggingHangsInTheJvm.html for example, it's for Solaris but you can  
certainly find similar info for your platform.

-Bertrand


smime.p7s
Description: S/MIME cryptographic signature


Re: Site Stops Responding (2.1.5 w/ Tomcat 5.0.28)

2004-12-06 Thread Brent Johnson
On Mon, 6 Dec 2004 11:44:28 -0800, Mike Dickson <[EMAIL PROTECTED]> wrote:
> Could it be a memory leak? It sounds like it.

That was my initial thought.  The site uses XSP (no flow).  I'm
thinking about redeveloping the site using Flowscript and JXTemplates
instead of XSP.  But since its production I hate to mess with it too
much.

I did check the memory for the processes using the "ps" command (and
"top").. but I dunno if that would really indicate a memory leak.  The
tomcat process is still running and it appears to not be taking up any
real large amount of memory (if I recall correctly.. I dont think its
taking up any more when its failing than when its freshly started).

I'll check into it though.. oh.. one more thing.. the site doesnt get
a lot of usage so its pretty much idle most of the time.  But even
idle, it still takes about the same time (a month) for it to stop
responding.

On Mon, 6 Dec 2004 20:47:11 +0100, Bertrand Delacretaz
<[EMAIL PROTECTED]> wrote:
> Le 6 déc. 04, à 20:35, Brent Johnson a écrit :
> 
> I'd start with by getting and analyzing a thread dump from the JVM.
> 
> There's some info at
> http://www.unixville.com/~moazam/stories/2004/05/18/
> debuggingHangsInTheJvm.html for example, it's for Solaris but you can
> certainly find similar info for your platform.

Thanks - I'll definitely give this a try when the process hangs again.
 Hopefully that will give me a better idea of whats going on.  It just
drives me crazy when something fails (esp. in production) but doesnt
tell me why its failing.

Thanks,

- Brent

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



j2ee.jar conflicts (?)

2004-12-06 Thread Paul Joseph
Hi,

I have a method that uses HttpSessionBindingListener
which appears to be in the j2ee.jar.

It works fine..except that I can no longer do a build
clean and build all when the j2ee.jar is present.

I get the following error (Cocoon 2.1.5.1):
Compiling 515 source files to
C:\cocoon-2.1.5.1\build\cocoon-2.1.5.1\classes
C:\cocoon-2.1.5.1\src\java\org\apache\cocoon\servlet\multipart\MultipartHttpServ
letRequest.java:41:
org.apache.cocoon.servlet.multipart.MultipartHttpServletRequ
est is not abstract and does not override abstract
method getLocalName() in java
x.servlet.ServletRequest
public class MultipartHttpServletRequest implements
HttpServletRequest {
   ^
1 error

Any idea on what I am doing wrong?

thx
Paul

=
This communication, including attachments, is for the exclusive use of 
the addressee and may contain proprietary, confidential, or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination, or distribution is strictly prohibited.  If 
you are not the intended recipient, please notify the sender by return mail and 
delete this communication and destroy all copies.

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



Persist user «sessions» with cookie

2004-12-06 Thread Aurélien DEHAY
Hello.
I'm wondering how to persist users informations. Not really the session 
(in the httpSession meaning, but only the authentication of the user). 
My main question is how to make that in the sitemap?

The user will have a cookie, and the value of this cookie will be stored 
in the database. What is the best way to do?

Doing a match on the cookie in the sitemap and then do a internal 
redirect to the requested page?

Doing an action and putting it on every map:match?
Or... ?
In short, how can I implement the behaviour we can see on a lot of 
website, the little checkbox «remember me».

Rgds.
--
Aurélien
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

2004-12-06 Thread Ralph Goers
I believe the issue with Rhino is resolved by using Cocoon 2.1.6. The
version of Rhino used in Cocoon in 2.1.5.1 appears to be incompatible with
the version in use by Weblogic.

Ralph


Jorg Heymans said:
> Did you get any further on this? We are trying to do the same but are
> running into classloader issues with rhino.
>
> Has anyone solved the rhino issue on weblogic btw? We are operating on a
> locked down environment and are basically only allowed to deploy our
> webapp and restart the instance. Can one work around it given these
> restrictions?
>
> Regards
> Jorg
>
> Per Christian Engdal wrote:
>> Hi,
>>
>> I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1
>>
>> Sp2 (Windows 2000) installation. The deployment works without
>> exceptions, but when I try to access cocoon through
>> _http://localhost:80/cocoon_  I get the
>> following error message (stack
>>
>> trace):
>>
>> java.lang.NoClassDefFoundError: org/apache/log/Logger
>>
>> at
>> org.apache.avalon.framework.logger.LogKitLogger.isWarnEnabled(LogKitLogger.java:122)
>>
>> at
>> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:797)
>>
>> at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
>>
>> at
>> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
>>
>> at
>> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
>>
>> at
>> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
>>
>> at
>> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
>>
>> at
>> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
>>
>> at
>> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
>>
>> at
>> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
>>
>> at
>> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
>>
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>>
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>>
>>
>>
>> I have added xercesImpl-2.6.2.jar and xml-apis.jar to the weblogic
>> server CLASSPATH. I have also checked the cocoon.war file to see if the
>> loggerkit-1.2.2.jar is included - it is!
>>
>> Is there anybody with an idea about how to fix this ?
>>
>> Regards,
>>
>> Per-Christian Engdal
>>
>>
>
>
> -
> 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: j2ee.jar conflicts (?)

2004-12-06 Thread Ralph Goers

Cocoon 2.1 supports servlet 2.2. Just guessing, but most likely your J2EE
jar contains servlet 2.3.  I would suggest separating your build from
Cocoon's.

Ralph

Paul Joseph said:
> Hi,
>
> I have a method that uses HttpSessionBindingListener
> which appears to be in the j2ee.jar.
>
> It works fine..except that I can no longer do a build
> clean and build all when the j2ee.jar is present.
>
> I get the following error (Cocoon 2.1.5.1):
> Compiling 515 source files to
> C:\cocoon-2.1.5.1\build\cocoon-2.1.5.1\classes
> C:\cocoon-2.1.5.1\src\java\org\apache\cocoon\servlet\multipart\MultipartHttpServ
> letRequest.java:41:
> org.apache.cocoon.servlet.multipart.MultipartHttpServletRequ
> est is not abstract and does not override abstract
> method getLocalName() in java
> x.servlet.ServletRequest
> public class MultipartHttpServletRequest implements
> HttpServletRequest {
>^
> 1 error
>
> Any idea on what I am doing wrong?
>
> thx
> Paul
>
> =
> This communication, including attachments, is for the exclusive use of
> the addressee and may contain proprietary, confidential, or privileged
> information.  If you are not the intended recipient, any use, copying,
> disclosure, dissemination, or distribution is strictly prohibited.  If
> you are not the intended recipient, please notify the sender by return
> mail and delete this communication and destroy all copies.
>
> -
> 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: j2ee.jar conflicts (?)

2004-12-06 Thread Paul Joseph
Ah!  Thank you very much!

rgds
Paul
--- Ralph Goers <[EMAIL PROTECTED]> wrote:

> 
> Cocoon 2.1 supports servlet 2.2. Just guessing, but
> most likely your J2EE
> jar contains servlet 2.3.  I would suggest
> separating your build from
> Cocoon's.
> 
> Ralph
> 
> Paul Joseph said:
> > Hi,
> >
> > I have a method that uses
> HttpSessionBindingListener
> > which appears to be in the j2ee.jar.
> >
> > It works fine..except that I can no longer do a
> build
> > clean and build all when the j2ee.jar is present.
> >
> > I get the following error (Cocoon 2.1.5.1):
> > Compiling 515 source files to
> > C:\cocoon-2.1.5.1\build\cocoon-2.1.5.1\classes
> >
>
C:\cocoon-2.1.5.1\src\java\org\apache\cocoon\servlet\multipart\MultipartHttpServ
> > letRequest.java:41:
> >
>
org.apache.cocoon.servlet.multipart.MultipartHttpServletRequ
> > est is not abstract and does not override abstract
> > method getLocalName() in java
> > x.servlet.ServletRequest
> > public class MultipartHttpServletRequest
> implements
> > HttpServletRequest {
> >^
> > 1 error
> >
> > Any idea on what I am doing wrong?
> >
> > thx
> > Paul
> >
> > =
> > This communication, including attachments, is for
> the exclusive use of
> > the addressee and may contain proprietary,
> confidential, or privileged
> > information.  If you are not the intended
> recipient, any use, copying,
> > disclosure, dissemination, or distribution is
> strictly prohibited.  If
> > you are not the intended recipient, please notify
> the sender by return
> > mail and delete this communication and destroy all
> copies.
> >
> >
>
-
> > 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]
> 
> 


=
This communication, including attachments, is for the exclusive use of 
the addressee and may contain proprietary, confidential, or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination, or distribution is strictly prohibited.  If 
you are not the intended recipient, please notify the sender by return mail and 
delete this communication and destroy all copies.

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



datasource components in cocoon

2004-12-06 Thread Anna Bikkina
I am using datasources in cocoon. I define them in cocoon.xconf. Is
there any API in cocoon from which I can get all the datasources defined
in cocoon.xconf.I have to  create a adminsitrative page where I have to
display all datasources cocoon is configured to connect.

Any help is greatly appreciated.

Thanks,
Anna.


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



Re: datasource components in cocoon

2004-12-06 Thread Aurélien DEHAY
Anna Bikkina wrote:
I am using datasources in cocoon. I define them in cocoon.xconf. Is
there any API in cocoon from which I can get all the datasources defined
in cocoon.xconf.I have to  create a adminsitrative page where I have to
display all datasources cocoon is configured to connect.
Any help is greatly appreciated.
I think as cocoon.xconf is an xml file, an simple xslt should do the 
work.

Rgds.
--
Aurélien
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SV: Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

2004-12-06 Thread Per Christian Engdal
I resolved it by deploying cocoon exploded. I also had to add logKit.jar to the 
classpath for the Weblogic server.

Regards,
Per-Chr.

-Opprinnelig melding-
Fra: news [mailto:[EMAIL PROTECTED] På vegne av Jorg Heymans
Sendt: 6. desember 2004 18:46
Til: [EMAIL PROTECTED]
Emne: Re: Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

Did you get any further on this? We are trying to do the same but are running 
into classloader issues with rhino.

Has anyone solved the rhino issue on weblogic btw? We are operating on a locked 
down environment and are basically only allowed to deploy our webapp and 
restart the instance. Can one work around it given these restrictions?

Regards
Jorg

Per Christian Engdal wrote:
> Hi,
> 
> I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1
> 
> Sp2 (Windows 2000) installation. The deployment works without 
> exceptions, but when I try to access cocoon through 
> _http://localhost:80/cocoon_  I get the 
> following error message (stack
> 
> trace):
> 
> java.lang.NoClassDefFoundError: org/apache/log/Logger
> 
> at
> org.apache.avalon.framework.logger.LogKitLogger.isWarnEnabled(LogKitLo
> gger.java:122)
> 
> at
> org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:
> 797)
> 
> at 
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
> 
> at
> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servle
> tStubImpl.java:993)
> 
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticated
> Subject.java:317)
> 
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:1
> 18)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImp
> l.java:869)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubI
> mpl.java:848)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubIm
> pl.java:787)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.j
> ava:518)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImp
> l.java:362)
> 
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImp
> l.java:305)
> 
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction
> .run(WebAppServletContext.java:6350)
> 
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticated
> Subject.java:317)
> 
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:1
> 18)
> 
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSer
> vletContext.java:3635)
> 
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImp
> l.java:2585)
> 
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> 
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
> 
>  
> 
> I have added xercesImpl-2.6.2.jar and xml-apis.jar to the weblogic 
> server CLASSPATH. I have also checked the cocoon.war file to see if 
> the loggerkit-1.2.2.jar is included - it is!
> 
> Is there anybody with an idea about how to fix this ?
> 
> Regards,
> 
> Per-Christian Engdal
> 
>  


-
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]