flow - database access

2003-06-05 Thread Frank Taffelt
Hi,

In my flowscript i'm making some database operations. This works most of the
time, but sometimes (it occurs mostly during 2 concurrent requests) i get
the following:

"resource://org/apache/cocoon/components/flow/javascript/Database.js", line
13:
uncaught JavaScript exception: TypeError: Cannot convert null to an object.
(res
ource://org/apache/cocoon/components/flow/javascript/Database.js; line 13)

my flowscript code looks like the following example:

var conn = Database.getConnection(poolname);
// begin db stuff
  conn.update(...)
// end db stuff
conn.close();

does anybody has any hints ?

Frank



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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-05 Thread Lionel Crine
don't forget to create a tomcat project pointing to your cocoon root directory.



At 06:21 05/06/2003 -0700, you wrote:
Lionel,
I followed your instructions, but I still have problems.
Tomcat works, but I can't lanch cocoon. it sais:
HTTP Status 404 - /cocoon/



type Status report

message /cocoon/

description The requested resource (/cocoon/) is not available.

Do you have sugestions what am I doing wrong?
I get only Tomcat's index.jsp
It appears in "work" directory on my eclipse server and that's all!
Thank you in advance!

Galia





Lionel Crine <[EMAIL PROTECTED]> wrote:
With the tomcat plugin : 2.1
I think you have setup the windows->preference->tomcat.
I repeat it :
1/choose the version you have. 4.1.x is good.
2/choose the tomcat root directory
3/choose the server.xml file
4/i had my tomcat project to my classpath (i'm not sure it's necessary).
5/ If you want to debug Tomcat (check the "execute in debug mode)
the parameter for the JVM :

The JRE by default is not working (or something like that)!!!
So you have to change it the another.
6/ Go in window->preferences->java->installed JREs
7/add a new standard VM (the one with your sdk). (for example mine is :
d:\software\java\sdk1.4)
8/notch it.
9/Come back to windows->preference->tomcat->JVM parameter
10/select the new JVM
Some optionnal things :
In window->preferences->java->Classpath Variables
create a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin
uses TOMCAT_HOME
In the properties of the project :

11/java Build Path->source : be sure WEB-INF/classes of your project is here
12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.
Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME
13/Tomcat : I notched "is a tomcat project" (check if this is your context)
"update automatically server.xml" and "reloadable = true".
Hope that help a little.
I may have forgotten some things so tell me.
PS: With my computer the classpath is not build with eclipse So I had to
add all the jars into the libraries (see 12/)
Lionel

At 04:11 04/06/2003 -0700, you wrote:
>Yes, please! I'll be grateful!
>
>Galia
>
>Lionel Crine wrote:
>Sorry I'm lost :
>
>Whould you like me to send the configuration for eclipse to work with
>cocoon and tomcat and sdk 1.4 ?
>If yes, tell me.
>
>
>
>
>At 10:43 04/06/2003 +0400, you wrote:
> >But who can send the solution about the using the eclipse in this
> >configuration?
> >
> > > I use tomcat cocoon and the sdk 1.4
> > >
> > > All is working fine.
> > >
> > > Do you have an error message ?
> > >
> > >
> > > At 07:27 03/06/2003 -0700, you wrote:
> > > >Hi,
> > > >
> > > >I would like to debug cocoon with eclipse and tomcat.
> > > >I have the blueskytime plugins for eclipse and tomcat but could not
> > > >make them debug cocoon.
> > > >May be there's something i'm not doing right?
> > > >
> > > >Galia
> > > >
> > > >
> >
> >--
> >
> >Best regards,
&g
Do you Yahoo!?
Free online 
calendar with sync to Outlook(TM).

Do you Yahoo!?
Free online 
calendar with sync to Outlook(TM).



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


Re: Serious Encoding Problems (Umlaute)

2003-06-05 Thread Matthias Brunner
On Thursday 05 June 2003 23:46, Alexander Schatten wrote:
> I use Tomcat 4 and Cocoon 2 and SQLTransformer, mySQL.
>
> Interestingly, everything works fine on Windows XP; German Umlauts
> are entered correctly into the database, and displayed correctly
> when HTML is created from the table.
>
> The *same* sitemap file (with added  tags in sql, xsl
> and html transformers) does not work correctly on Linux.

> On the other Linux box, not even the writing to the database
> works, there the german Umlauts are replaced with two characters.
> Has anybody on idea about this strange behavious? it really looks
> like it could have something to do with the OS, JVM...?

Hello Landsmann,

what is the LANG environment variable set to? Apparently, this can 
have some influence on the JVM. Try setting it to LANG=de.
Actually, it should work without that but I was not able to figure it 
out.

Regards,
Matthias

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



Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-05 Thread Galia Angelova
Lionel, 
I followed your instructions, but I still have problems.
Tomcat works, but I can't lanch cocoon. it sais:
HTTP Status 404 - /cocoon/



type Status report
message /cocoon/
description The requested resource (/cocoon/) is not available.



Do you have sugestions what am I doing wrong?
I get only Tomcat's index.jsp
It appears in "work" directory on my eclipse server and that's all!
 
Thank you in advance!
 
Galia
 
 
 
 
 
 
Lionel Crine <[EMAIL PROTECTED]> wrote:

With the tomcat plugin : 2.1I think you have setup the windows->preference->tomcat.I repeat it :1/choose the version you have. 4.1.x is good.2/choose the tomcat root directory3/choose the server.xml file4/i had my tomcat project to my classpath (i'm not sure it's necessary).5/ If you want to debug Tomcat (check the "execute in debug mode)the parameter for the JVM :The JRE by default is not working (or something like that)!!!So you have to change it the another.6/ Go in window->preferences->java->installed JREs7/add a new standard VM (the one with your sdk). (for example mine is : d:\software\java\sdk1.4)8/notch it.9/Come back to windows->preference->tomcat->JVM parameter10/select the new JVMSome optionnal things :In window->preferences->java->Classpath Variablescreate a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin uses TOMCAT_HOMEIn the properties of the project :11/java Build Path->source : be sure WEB-INF/classes of your project is here12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME13/Tomcat : I notched "is a tomcat project" (check if this is your context) "update automatically server.xml" and "reloadable = true".Hope that help a little.I may have forgotten some things so tell me.PS: With my computer the classpath is not build with eclipse So I had to add all the jars into the libraries (see 12/)LionelAt 04:11 04/06/2003 -0700, you wrote:>Yes, please! I'll be grateful!>>Galia>>Lionel Crine <[EMAIL PROTECTED]>wrote:>Sorry I'm lost :>>Whould you like me to send the configuration for eclipse to work with>cocoon and tomcat and sdk 1.4 ?>If yes, tell me.>At 10:43 04/06/2003 +0400, you wrote:> >But who can send the solution about the using the eclipse in this> >configuration?> >> > > I use tomcat cocoon and the sdk 1.4> > >> > > All is working fine.> > >> > > Do you have an error message ?> > >> > >> > > At 07:27 03/06/2003 -0700, you wrote:> > > >Hi,> > > >> > > >I would like to debug cocoon with eclipse and tomcat.> > > >I have the blueskytime plugins for eclipse and tomcat but could not> > > >make them debug cocoon.> > > >May be there's something i'm not doing right?> > > >> > > >Galia> > > >> > > >> >> >--> >> >Best regards,> >Yury Mikhienko.> >IT engineer, ZAO "Mobicom-Kavkaz"> >> >-> >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]>>>Do you Yahoo!?>Free online >calendar with sync to Outlook(TM).-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?Free online calendar with sync to Outlook(TM).
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

AW: regexp problem

2003-06-05 Thread Majcen, Kurt
Thanks for the advice.
In the meantime we tried with jakarta-regexp-1.3-dev.jar which seems to work now.

Kurt

-Ursprüngliche Nachricht-
Von: Christian Haul [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 05. Juni 2003 17:12
An: [EMAIL PROTECTED]
Betreff: Re: regexp problem


On 05.Jun.2003 -- 04:45 PM, Majcen, Kurt wrote:
> Hi all!
> 
> We are trying to validate input fields in a web user interface via the 
> form-validator action. One of the fields is a date field. Therefore we found a 
> regular expression at http://www.regxlib.com/REDetails.aspx?regexp_id=113 which 
> covers the aspects we are looking for:
> 
> ^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
> 
> Unfortunately Cocoon 2.0.3 does not validate correctly with this expression. Simpler 
> expressions work.
> We don't see any exceptions or errors. Any idea?

Try to use the underlying regexp library (apache.regexp) directly,
perhaps that is flawed already.

Honestly, you should extend the AbstractValidatorAction to validate
dates and submit a patch ;-)

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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



AW: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
> > All of this works fine when requesting the page using Netscape
Navigator
> > (valid page and images, no errors in log file). As soon as I use the
> > Microsoft Internet Explorer to request the same page, the HTML page
is
> > returned, but the svg image has not been served properly. According
to
> > the log file there was a "java.net.SocketException: Software caused
> > connection abort: socket write error" (details included below),
>
>I remember that other software (Squeak) had a somewhat similar problem
>which
>was solved by changing something in the networking layer. The browsers
were
>different regarding opening new connections. I think Netscape created
one
>connection to download one file after another while MSIE created a
>connection for every single file on a webpage. Something like that. It
took
>some time to fix that problem...

Thank you, Andreas.

I am afraid this is way too deep for my java skills. You don't have any
source code files/ changes by any chance?

Best regards,
Christian




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



Re: CVS update

2003-06-05 Thread Geoff Howard
Hmm.  This is weird - I've never had to delete the cvs tree.  It would be
hard to believe that build clean is missing something, because it just
deletes the entire build directory IIRC!
I have a feeling that you have some problem with the cvs checkout options
you are using.  Without knowing what error happens in the build, it's hard
to give specific suggestions.  Make sure you enable the "prune" feature.
Geoff

At 08:51 AM 6/5/2003, you wrote:

when i delete entire local cocoon-2.1 folder and checkout a new copy
i have no problem but im behind a ISDN connection so its take a long time
to get me e fresh entire CVS copy 
On Thu, 5 Jun 2003, Richard In Public wrote:

> I've been having this problem today.  Eventually I deleted my entire
> cocoon-2.1 folder and checked out a new copy from cvs.  This built fine
> (using the war target).   Perhaps build clean is missing something - I
> ran both build clean and build webapp.
>
> Regards,


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


AW: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
TK> To my 2.0 times I also had the problem. The problem was gone since I
use 
TK> cocoon 2.1. I guess it has something to do with pipeline caching,
but TK> have never tested.

Torsten,

thanks for the quick feedback.

My understanding was that 2.1 is still alpha. Do you have any system in
production, yet? We are quite close to release date...
 
Best regards,
Christian



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



Re: CVS update

2003-06-05 Thread Stavros Kounis


when i delete entire local cocoon-2.1 folder and checkout a new copy
i have no problem but im behind a ISDN connection so its take a long time
to get me e fresh entire CVS copy 



On Thu, 5 Jun 2003, Richard In Public wrote:

> I've been having this problem today.  Eventually I deleted my entire
> cocoon-2.1 folder and checked out a new copy from cvs.  This built fine
> (using the war target).   Perhaps build clean is missing something - I
> ran both build clean and build webapp.
>
> Regards,
>
> Richard Hoberman
>
> Geoff Howard wrote:
> > See if you can figure out what cvs command WinCVS is executing.
> > It's been a while, but I think WinCVS can be configured to show
> > you what it's doing.  Files should get cleaned up from your local
> > drive if they have been deleted from the repository - which happens
> > frequently in cocoon when things are moved around.
> >
> > HTH,
> > Geoff
> >
> > At 02:53 AM 6/5/2003, you wrote:
> >
> >
> >> i bluild clean first every time i try to build cocoon
> >>
> >> i have notice that some time after CVS checkout some files are missing
> >> from my local DIR
> >>
> >> but because i dont have ever use CVS clients in the past i'm not sure
> >> if i
> >> do checkout the right way
> >>
> >> --- stavros
> >> On Wed, 4 Jun 2003, Geoff Howard wrote:
> >>
> >> > when that happens, does build.bat clean fix it?
> >> >
> >> > Geoff
> >
> >
> > ...
> >
> >> > > hi people
> >> > > many time  when i update my cocoon2.1 cvs snapshot
> >> > > i get build errors
> >> > >
> >> > > i think that maybe i do something wrong with update
> >> > > i use checkout option by revision/tag/head : HEAD
> >> > >
> >> > > is this correct?
> >> > >
> >> > > i use WinCVS
> >> > >
> >> > > thnx
> >> > >
> >> > > --- stavros
> >> >
> >
> >
> >
> > -
> > 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]
>
>

-- 
Stavros S. Kounis
Development & Research Department
Osmosis - networks & consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



Re: Can't seem to load Firebird driver

2003-06-05 Thread Christian Haul
On 05.Jun.2003 -- 12:08 PM, Nier, Nikolai wrote:
> Hi,
>
> I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I
> hope this hasn't been discussed before - I've checked the mail archive
> and there was some discussion re. Firebird but it seems that mine is a
> different problem, as the driver isn't loaded in the first place.
> 
> I have successfully set up and used an Oracle DB connection before,
> and now I'm trying to use a Firebird DB.

This is with the same installation?

I have not worked with Firebird, so these are generic hints.

Make sure that you have the correct jdbc version for your cocoon
binary. Cocoon comes in a jdbc2 and jdbc3 flavour (jdbc2 is pre j2se
1.4 and jdbc3 is post j2se1.4). If your firebird driver is only jdbc2
and you want to install it in a jdbc3 environment this will probably
break.

Look into the libs directory, some jars will have a vm14 or vm13 in
their filename to determine the cocoon version.

> I made the necessary additions to web.xml and cocoon.xconf, and I
> placed the Firebird Driver (org.firebirdsql.jdbc.FBDriver, in
> firebirdsql.jar) into the same Tomcat dir as the Oracle driver
> (tomcat/common/lib). When I now try to start cocoon, I get a Tomcat

Try to put it into tomcat/webapp/cocoon/WEB-INF/libs

> Status 500 Error page. (Servlet Exception, root cause:
> java.lang.NoClassDefFoundError: javax/resource/ResourceException).
>  
> Putting the firebirdsql.jar into cocoon/web-inf/lib, and unpacking
> it into cocoon\web-inf\classes, didn't help.  The access log stops

Oh, you did it already ;-)

> after "Trying to load class: org.firebirdsql.jdbc.FBDriver", while
> with the Firebird driver removed from the 'load-class' parameter in
> web.xml, cocoon starts running and the access log continues after
> loading the Oracle driver.

Switch the core log level to debug and see what happens upon
startup. The driver should get loaded during normal initialization IOW
no need to request a page. Avalon excalibur will try to send a test
query to firebird. Look for it in the logs and post the result
here. Maybe that will shed some light on the issue.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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



make a ldap connection

2003-06-05 Thread Maxime.Gheysen
I tryied some of the LDAP public servers
(http://www.emailman.com/ldap/public.html)
But I always get this connection error :

http://apache.org/cocoon/LDAP/1.0";>[LDAPTransformer]
Failed ldap-connection to directory service. 

Is it because of my configuration or from the server? Here is my xml
page :


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


com.sun.jndi.ldap.LdapCtxFactory
simple
3
LDAP://noc2.irt.drexel.edu
o=drexel,c=us
389

 100

 TRUE

 Mail
 





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



Re: CVS update

2003-06-05 Thread Richard In Public
I've been having this problem today.  Eventually I deleted my entire 
cocoon-2.1 folder and checked out a new copy from cvs.  This built fine 
(using the war target).   Perhaps build clean is missing something - I 
ran both build clean and build webapp.

Regards,

Richard Hoberman

Geoff Howard wrote:
See if you can figure out what cvs command WinCVS is executing.
It's been a while, but I think WinCVS can be configured to show
you what it's doing.  Files should get cleaned up from your local
drive if they have been deleted from the repository - which happens
frequently in cocoon when things are moved around.
HTH,
Geoff
At 02:53 AM 6/5/2003, you wrote:


i bluild clean first every time i try to build cocoon

i have notice that some time after CVS checkout some files are missing
from my local DIR
but because i dont have ever use CVS clients in the past i'm not sure 
if i
do checkout the right way

--- stavros
On Wed, 4 Jun 2003, Geoff Howard wrote:
> when that happens, does build.bat clean fix it?
>
> Geoff


...

> > hi people
> > many time  when i update my cocoon2.1 cvs snapshot
> > i get build errors
> >
> > i think that maybe i do something wrong with update
> > i use checkout option by revision/tag/head : HEAD
> >
> > is this correct?
> >
> > i use WinCVS
> >
> > thnx
> >
> > --- stavros
>


-
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: Can't seem to load Firebird driver

2003-06-05 Thread Alexander Schatten
Nier, Nikolai wrote:

Von: Alexander Schatten
   

 

but if there is not a very good reason 
for using Firebird, I would not recommend it. 
   

Alex -
thank you very much! Unfortunately I will have to access an existing Firebird database via Cocoon ... you are right, it seems that there are some severe problems with Firebird. And in the mailing list archives I found a couple of notes that do not sound encouraging either, e.g. problems with the SQL transformer. But it seems that others were able to connect Cocoon to the Firebird database and then ran into problems. What bugs me is, why can't I even load the driver class and have Cocoon run? As I said, I'm a cocoon newbie (and don't know much about tomcat, either). But I had no problem establishing and using the Oracle DB connection - so I wonder what I'm doing wrong with Firebird. I'm afraid it must be some silly beginner's mistake.
 

did you verify, whether you can access firebird with any other JDBC 
application, e.g. DBVisualiser, because I could imagine, that it is a 
problem of the JDBC driver.

Usually you had to install Interbase/Firebire , then the Interclient 
(Server) part of the JDBC driver, and then the client side JDBC driver, 
though there *should* be a JDBC 4 driver available meanwhile, but I am 
not sure.

What was the usual problem in our setups was, that the versions of 
interclient and interbase/firebire had to fit together precisely.

so verify first of all, whether JDBC connection works, check 
DBVisualizer for that purpose (as an example)

(or maybe better, try to export the data from firebird and import it 
into PostgreSQL, eventually using ODBC)

alex



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


AW: Can't seem to load Firebird driver

2003-06-05 Thread Nier, Nikolai
> Von: Alexander Schatten

> but if there is not a very good reason 
> for using Firebird, I would not recommend it. 

Alex -
thank you very much! Unfortunately I will have to access an existing Firebird database 
via Cocoon ... you are right, it seems that there are some severe problems with 
Firebird. And in the mailing list archives I found a couple of notes that do not sound 
encouraging either, e.g. problems with the SQL transformer. But it seems that others 
were able to connect Cocoon to the Firebird database and then ran into problems. What 
bugs me is, why can't I even load the driver class and have Cocoon run? As I said, I'm 
a cocoon newbie (and don't know much about tomcat, either). But I had no problem 
establishing and using the Oracle DB connection - so I wonder what I'm doing wrong 
with Firebird. I'm afraid it must be some silly beginner's mistake.

Nik

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



Re: LDAP:Filter error

2003-06-05 Thread Olivier GUCKERT


[EMAIL PROTECTED] a écrit :
> 
> If I write eg
> (&(objectClass=group)(name=DG_IT-CLI_ADMIN_A_00)) ter>
> I get an error because of the "&" caracter that is not valid. How does
> ldap:filter work?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

You just have to replace "&" with "&"


Regards

Olivier

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



RE: CVS update

2003-06-05 Thread Geoff Howard
See if you can figure out what cvs command WinCVS is executing.
It's been a while, but I think WinCVS can be configured to show
you what it's doing.  Files should get cleaned up from your local
drive if they have been deleted from the repository - which happens
frequently in cocoon when things are moved around.
HTH,
Geoff
At 02:53 AM 6/5/2003, you wrote:


i bluild clean first every time i try to build cocoon

i have notice that some time after CVS checkout some files are missing
from my local DIR
but because i dont have ever use CVS clients in the past i'm not sure if i
do checkout the right way
--- stavros
On Wed, 4 Jun 2003, Geoff Howard wrote:
> when that happens, does build.bat clean fix it?
>
> Geoff
...
> > hi people
> > many time  when i update my cocoon2.1 cvs snapshot
> > i get build errors
> >
> > i think that maybe i do something wrong with update
> > i use checkout option by revision/tag/head : HEAD
> >
> > is this correct?
> >
> > i use WinCVS
> >
> > thnx
> >
> > --- stavros
>


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


LDAP:Filter error

2003-06-05 Thread Maxime.Gheysen
If I write eg
(&(objectClass=group)(name=DG_IT-CLI_ADMIN_A_00))
I get an error because of the "&" caracter that is not valid. How does
ldap:filter work? 

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



RE: problems tracking session from page to page

2003-06-05 Thread Geoff Howard
which you can do with the create-session="true" attribute on xsp:page.  see 
the docs.

Geoff

At 05:37 AM 6/5/2003, you wrote:
You have to create a session object first.

Regards
shoaib
-Original Message-
From: Mike Lenyon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 9:38 AM
To: [EMAIL PROTECTED]
Subject: Re: problems tracking session from page to page
shoaib,

thanks for your response.  the context in which i'm trying to use the 
session object is xsp.  unfortunately, merely starting my xsp with

http://apache.org/xsp>http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";

xmlns:xsp-session="http://apache.org/xsp/session/2.0";>

causes the error message:
java.lang.IllegalStateException: Cannot create a session after the 
response has been committed

Mike Lenyon
- Original Message -
From: shoaib
To: [EMAIL PROTECTED]
Sent: Monday, May 26, 2003 9:16 PM
Subject: RE: problems tracking session from page to page
Why dont you use XSP and then use session object of XSP just as you use in 
normal case of JSP page.

Regards
Shoaib
-Original Message-
From: Mike Lenyon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 4:53 AM
To: [EMAIL PROTECTED]
Subject: problems tracking session from page to page
hi all,

i'm a cocoon newbie.  i created a couple of pages that store values in the 
session.  i've tried retrieving those values from the session with calls 
like request.getSession(), but i get an error each time i make such a 
call:  "Cannot create a session after the response has been committed."

so i think, ok, cocoon will track the session for me from page to 
page.  all i need to do is use tags like this:


currentQuote

and this:


unfortunately, what i've found is that no state is maintained from page to 
page just using the above tags.

in the past, using servlets and jsp, i was accustomed to getting the 
session (by calling request.getSession()) whenever i was ready and storing 
objects in it and retrieving objects from it.  but with cocoon, i get the 
afforementioned error each time i call request.getSession().

what am i doing wrong?  what's a better way to track the session from one 
page to the next?  there are multiple points of entry into my website and 
i would like to avoid redirecting users to a page where a session gets created.

thanks in advance for your help.

Mike Lenyon


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


Re: Using cookies

2003-06-05 Thread Geoff Howard
At 05:00 AM 6/5/2003, you wrote:
>  there is a cookie logikcheet in xsp

Thanks. I'll look into that.

> but i dont know if they are online information (examples) somewhere

Regards, Upayavira
More generally, the request object available from the ObjectModel
should give set/get access on the cookies.  And I am pretty sure
the flow exposes this directly as well.  Check out the javadoc
for o.a.c.environment.request.*
Geoff 

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


Re: Sitemap parsing error?

2003-06-05 Thread Geoff Howard
And your sure you haven't typed any stray upsilon characters? ;)
υ = υ = u
Assuming you haven't, my only slightly informed guess is that you've
got an encoding mix up.  Is it possible you've saved the sitemap in
some file encoding where what appears to be whitespace is read as
an upsilon when interpreted as UTF-8?
HTH,
Geoff
At 04:03 AM 6/5/2003, you wrote:

Howdy Guys

I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun 
One App Server 7.

I've installed the WAR file and it runs fine... my final problem appears 
to be a cocoon
problem.

I am able to start up the application server fine... and no errors are 
logged. However, when
i invoke the servlet... i get the following problems:


Cocoon 2 - Internal server error
type fatal

message Illegal character at end of document, u.

description org.xml.sax.SAXParseException: Illegal character at end of 
document, u.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173)

at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390)

at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)

at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)

at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) 

at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)
request-uri

/cocoon/

path-info
---
Looking at the logs in WEB-INF/logs, I find the following curious 
statement in the access.log:
ERROR   (2003-06-05) 17:06.07:594   [access] (/cocoon/) 
service-j2ee/CocoonServl
et: Problem with Cocoon servlet
org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
generateResource(ProgramGeneratorImpl.java:390)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
createResource(ProgramGeneratorImpl.java:353)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:536)

In the sitemap.log i get:
ERROR   (2003-06-05) 17:06.07:591   [sitemap] (/cocoon/) 
service-j2ee/Handler: E
rror compiling sitemap
org.xml.sax.SAXParseException: Illegal character at end of document, u.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at 
org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
at 
org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
at 
org.apache.cocoon.components.language.generator

Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Yury Mikhienko
On Thu, 05 Jun 2003 19:31:01 +0200
Joerg Heinicke <[EMAIL PROTECTED]> wrote:

> Antonio Gallardo wrote:
> >>Do you think the bug is fixed in current Xalan? If it's not we have it
> >>in  Cocoon 2.0  too ;-)
> > 
> > I am not sure about this, but people was waiting for the new Xalan that
> > will solve this problem.
> 
> No, it's not fixed. I tested it. Moved the bug to the Xalan buglist.
> 
> > BTW, there is also a discusion about change Xalan
> > also in 2.0.
> 
> Isn't this exactly what I have done? :-)
> 

Probably I'm wrong, but with Xalan 2.5.1 XMLDBSource component does not work properly 
also.
For example, with query like 'documents[not(@id = 1)]' I get the empty collection,
but if I do not use the XSL functions, I get the collection of documents fine.

And I had to roll back to the Xalan 2.3.1 :((
 
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



Re: Can't seem to load Firebird driver

2003-06-05 Thread Alexander Schatten
Nier, Nikolai wrote:

Hi,
I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I hope this hasn't 
been discussed before - I've checked the mail archive and there was some discussion 
re. Firebird but it seems that mine is a different problem, as the driver isn't loaded 
in the first place.
I have successfully set up and used an Oracle DB connection before, and now I'm trying to use a Firebird DB.
 

even if it might be off-topic. but if there is not a very good reason 
for using Firebird, I would not recommend it. We tried to use it in the 
last projects and had a lot of problems.

Not with the database itself, but the development process seems to be 
chaotic and the documentation is extremly bad, support hardly available. 
I expected a lot of it, but now I am pretty dissapointed.

So if there is not any other reason why to use it, take PostgreSQL or 
mySQL. Both are meanwhile also available as Windows versions, which 
might be intersting for development purposes, but the server will 
obviously be Linux, so I can recommend both of them.

Alex

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


Generate() method called two times.

2003-06-05 Thread Lionel Crine
I have created a generator and the generate is called two times.

Which is amazing is that another generator is almost exactly the same and 
works fine.

Any idea ?

Lionel CRINE
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Some study of implantation

2003-06-05 Thread Mmutuberria
Thanks Joerg,

But I need something more specific with some statistics.

Thanks



- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 10:24 AM
Subject: Re: Some study of implantation


> What about the Cocoon website?
>
> http://cocoon.apache.org/2.1/userdocs/concepts/index.html
>
> Joerg
>
> Mmutuberria wrote:
> >  Hello friends,
> >
> >  I have to implant Cocoon in my enterprise  and I need a bit of generic
> >  information about it. I need some study of implantation with contrasted
> > data in a web site migration to Cocoon, and the economic advantages in
> > maintenance of the site.
> >
> >  Could you help me with some links?
> >
> > Really thanks.
>
>
> -
> 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: commandline executes matching pipeline three times

2003-06-05 Thread Geert Van Damme

I've decided to use Cocoon as a webapp and run a batch job that calls
the required URI, thus invoking Cocoon.
The server needs to run anyway so this sounds like a fair solution.

I'll take a look at the SourceWritingTransformer as it appears to do
what I need. 
For now I wrote my own Transformer for the FTP transfer.

Anyway
thanks once again for all the help !



>>> [EMAIL PROTECTED] 06/05/03 10:23am >>>

> thanks for the replies, it saves me a lot of frustration :)
> In the application, a transformer will be used to transfer the
> incoming XML to an FTP server. The resulting XML will contain info
> about the transfer, such as size, failure/success, ... So it is
> important that the transfer happens only once... If you have any
other
> suggestions for doing this, it would be appreciated ! 

Can you explain more exactly what you're trying to achieve? What
transformer will 
you use? If you're talking about writing your own transformer, I would
recommend 
using the SourceWritingTransformer and creating an FTPSource that you
can write 
to. Even better, write a VFS source (giving other protocols too). The
source itself 
could probably be configured to record success/failure, and to only
transfer once.

> (BTW, Cocoon2.1 is not an option at this point)

It's a real shame that you're not able to use 2.1, as it now can write
directly to 
modifiable sources. Therefore, if you had an FTP source, you could
generate a page 
and have the CLI send it straight to your FTP server.


> Thanks again !

You're welcome!

Upayavira

-
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: internal pipeline

2003-06-05 Thread Andreas Hartmann
Ali Mesbah wrote:

[...]

You can try to set the log level to DEBUG and look at the sitemap
log to see if the correct steps are executed.
No. There is a major difference between the log information when the "xms/test"
pipeline is called directly and when it is called by the second pipeline through
the Cocoon: protocol. 
I even added a LOG Transformer after the first pipeline; when using Cocoon:
protocol, this log file remains empty:
([setup]  [Thu Jun 05 11:59:01 CEST 2003] --)

while when called directly it is filled by all the right steps.
This is strange ...

The next debugging step could be to save the output of your first
pipeline as an XSLT file and to use this directly without the
cocoon: protocol.
Did that too. And indeed when I save the output of the first pipeline and use it
as a normal source for the second (view) pipeline it goes as wished. 

So I think my assumption was correct that it has to do with the use of the
Cocoon: protocol as the src of a transformer. Have you ever by the way used it in
this way too (Cocoon: as the src of XSLT (not XSP) via pipelines)? 
Yes, what I meant is that I used an XSP to generate XSLT that was used
in a transformation step, e.g., somethink like:

  
  


  
  
  

This worked perfectly, at least with Cocoon 2.1 M1
(I used it to prototype a transformer).
Sorry I can't help you, the only thing I could suggest is
to try it with 2.1-M1 or later if you're using 2.0.?.
Andreas



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


Re: internal pipeline

2003-06-05 Thread Ali Mesbah
Andreas,

As quoted from Andreas Hartmann <[EMAIL PROTECTED]>:
> Hi Ali,
> 
> Ali Mesbah wrote:
> 
> >Hi all,
> >I have a problem and don't know if it is a bug in Cocoon or if I'm doing
> >something wrong. 
> >
> >What I have is a pipeline which transforms an XML (source) file into an 
> >XSLT
> >(target) stylesheet:
> >
> >
> >  
> >  
> >  
> >
> >
> >
> >now I'd like to use the output as the source of another pipeline:
> >
> >
> >  
> >  
> >  
> >
> >
> >
> >I don't get any errors but the HTML output of the "view" pipeline is not 
> >the
> >expected (I have checked the output of the first pipeline and that is 
> >correct. I
> >assume it has something to do with the way I use "cocoon:/..." as the 
> >source of
> >the second transformer). Any ideas?
> 
> Your pipelines look OK (if I didn't miss anything). You're using
> the cocoon: protocol correctly. I also tried this kind of "stylesheet
> generation" (using XSP) and it worked very well. So I guess your
> problem is somewhere in the last transformation step.
> 
> You can try to set the log level to DEBUG and look at the sitemap
> log to see if the correct steps are executed.

No. There is a major difference between the log information when the "xms/test"
pipeline is called directly and when it is called by the second pipeline through
the Cocoon: protocol. 
I even added a LOG Transformer after the first pipeline; when using Cocoon:
protocol, this log file remains empty:
([setup]  [Thu Jun 05 11:59:01 CEST 2003] --)

while when called directly it is filled by all the right steps.

> The next debugging step could be to save the output of your first
> pipeline as an XSLT file and to use this directly without the
> cocoon: protocol.

Did that too. And indeed when I save the output of the first pipeline and use it
as a normal source for the second (view) pipeline it goes as wished. 

So I think my assumption was correct that it has to do with the use of the
Cocoon: protocol as the src of a transformer. Have you ever by the way used it in
this way too (Cocoon: as the src of XSLT (not XSP) via pipelines)? 

> HTH,
> Andreas

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

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



Can't seem to load Firebird driver

2003-06-05 Thread Nier, Nikolai
Hi,
I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I hope this hasn't 
been discussed before - I've checked the mail archive and there was some discussion 
re. Firebird but it seems that mine is a different problem, as the driver isn't loaded 
in the first place.

I have successfully set up and used an Oracle DB connection before, and now I'm trying 
to use a Firebird DB.

I made the necessary additions to web.xml and cocoon.xconf, and I placed the Firebird 
Driver (org.firebirdsql.jdbc.FBDriver, in firebirdsql.jar) into the same Tomcat dir as 
the Oracle driver (tomcat/common/lib). When I now try to start cocoon, I get a Tomcat 
Status 500 Error page. (Servlet Exception, root cause: java.lang.NoClassDefFoundError: 
javax/resource/ResourceException).

Putting the firebirdsql.jar into cocoon/web-inf/lib, and unpacking it into 
cocoon\web-inf\classes, didn't help.
The access log stops after "Trying to load class: org.firebirdsql.jdbc.FBDriver", 
while with the Firebird driver removed from the 'load-class' parameter in web.xml, 
cocoon starts running and the access log continues after loading the Oracle driver.

Does anybody have a clue?

Thanks
Nik

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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Antonio Gallardo
Joerg Heinicke dijo:
> Do you think the bug is fixed in current Xalan? If it's not we have it
> in  Cocoon 2.0  too ;-)
I am not sure about this, but people was waiting for the new Xalan that
will solve this problem. BTW, there is also a discusion about change Xalan
also in 2.0. I dont use 2.0 then I dont know is there is the same problem.

Antonio.
>
> Joerg
>
> Antonio Gallardo wrote:
>> Joerg Heinicke dijo:
>>
>>>Antonio Gallardo wrote:
>>>
Joerg Heinicke dijo:

>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
> so they should be in the next Cocoon 2.0.x release - I guess the 5
> comes after the 4 ;-)

Cool! I think we can close the bug related to document() function!
>>>
>>>Hello Anotnio,
>>>
>>>to which one you refer?
>>
>>
>> This?
>> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381
>>
>> Antonio
>>
>>>Joerg
>
> --
>
> System Development
> VIRBUS AG
> Fon  +49(0)341-979-7419
> Fax  +49(0)341-979-7409
> [EMAIL PROTECTED]
> www.virbus.de
>
>
> - To
> unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



problem saving sunshine profiles in database

2003-06-05 Thread Enrico Ballarin Dolfin
Hi

I'm using Cocoon 2.0.4 with Tomcat 4.0.4, Apache 1.3.26 and Java 1.3.1.

After having modified the sunspotdemoportal to perform authentication with a
database instead of with files, I'm trying now to solve the next problem
i.e. how to store user profile and status on the database instead to create
a lot of files on the system.

I added to my user table in mysql 1.3.23.52 the two fields profile and
status of type TEXT (till max 65536 characters each).

After this I added following resource in the sitemap:


  
  
  
  
  
  


This is the file saveuserprofile-db.xml:

 

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


After the generator and the sunShine transformer I get the  and
 elements filled with the current values and I'm trying to put
them in a SQL statement with following stylesheet:

 
http://www.w3.org/1999/XSL/Transform";>


  
http://apache.org/cocoon/SQL/2.0";>
  vip_db
  
update user_tb
   set profile = ''
   where name = ''
  

  




The file saveuserprofile-sql.xsl for postprocessing the results of the SQL
query is not relevant and I have omitted it in this mail.

Looking in the logfile I can see that there is an item with the sql update
statement with substituted values for profile and name, where profile
contains the xml tree in the desired form. The following item in the logfile
shows the same statement where the profile content is no more the xml tree
but only the text part of it with a lot of blank lines and without any
element tags.

If I look at the stored values in the database I see exactly this last
content without element tags.

Here a simplified test showing a similar extract from the logfile:

2003-06-04 16:51:44 DEBUG   (2003-06-04) 16:51.44:156   [sitemap.]
(/cocoon-min/test-saveuserprofile-db)
HttpProcessor[8080][10]/AbstractSAXTransformer: END endRecording
fragment=
update user_tb
   set profile = 'http://cocoon.apache.org/sunshine/1.0";>

The value

'
   where name = 'test'

2003-06-04 16:51:44 DEBUG   (2003-06-04) 16:51.44:165   [sitemap.]
(/cocoon-min/test-saveuserprofile-db)
HttpProcessor[8080][10]/AbstractSAXTransformer: END
endSerializedXMLRecording xml=
update user_tb
   set profile = 'The value'
   where name = 'test'

The other way would be to analyze which are the contents of status and
profile and map them to database tables, what I think can be very complex
and preferably to avoid.

HERE ARE MY QUESTIONS:

1) How can I store an user profile and status on the database?
2) Is there an easier way to solve it and to avoid a large number of created
files?
3) Beside this, there is the problem to escape characters like apostrophs or
german umlauts. How can be done this?

Thanks for your opinions and suggestions
Enrico



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



Re: Deleting files

2003-06-05 Thread Stavros Kounis

opps . Torsten sorry for my previous post

i was think that "torsten" was a list or a bug collection mechanism


--- stavros

On Fri, 6 Jun 2003, Stavros Kounis wrote:

>
> on cocoon samples (2.1) they are some cache empty uri
>
>
> On Fri, 6 Jun 2003, Tuomo L wrote:
>
> > Hi,
> >
> > How can I delete files on the server using Cocoon? Is there an action for
> > this, or should I write one?
> >
> > -Tuomo
> >
> > -
> > 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: problems tracking session from page to page

2003-06-05 Thread shoaib
Title: Message



You 
have to create a session object first.
 
Regards
shoaib

  
  -Original Message-From: Mike Lenyon 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:38 
  AMTo: [EMAIL PROTECTED]Subject: Re: problems 
  tracking session from page to page
  shoaib,
   
  thanks for your response.  the context in which i'm 
  trying to use the session object is xsp.  unfortunately, merely starting 
  my xsp with
      
  language="java"    xmlns:xsp="http://apache.org/xsp"
      xmlns:xsp-request="http://apache.org/xsp/request/2.0"    
  xmlns:xsp-session="http://apache.org/xsp/session/2.0">
   
  causes the error message:
  java.lang.IllegalStateException: Cannot create a session after the 
  response has been committed    
  Mike Lenyon
  
- Original Message - 
From: 
shoaib 

To: [EMAIL PROTECTED] 

Sent: Monday, May 26, 2003 9:16 
PM
Subject: RE: problems tracking session 
from page to page

Why dont you use XSP and then use session object of XSP just as you 
use in normal case of JSP page.
 
Regards
Shoaib

  
  -Original Message-From: Mike Lenyon 
  [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:53 
  AMTo: [EMAIL PROTECTED]Subject: 
  problems tracking session from page to page
  hi all,
   
  i'm a cocoon newbie.  i created a couple of pages 
  that store values in the session.  i've tried retrieving those values 
  from the session with calls like request.getSession(), but i get an error 
  each time i make such a call:  "Cannot create a session after the 
  response has been committed."
   
  so i think, ok, cocoon will track the session for me 
  from page to page.  all i need to do is use tags like 
  this:
      
  currentQuote
  and this:
   
  
   
  unfortunately, what i've found is that no state is 
  maintained from page to page just using the above tags.
   
  in the past, using servlets and jsp, i was 
  accustomed to getting the session (by 
  calling request.getSession()) whenever i was ready and storing 
  objects in it and retrieving objects from it.  but with cocoon, i get 
  the afforementioned error each time i call 
  request.getSession().
   
  what am i doing wrong?  what's a better way to 
  track the session from one page to the next?  there are multiple 
  points of entry into my website and i would like to avoid redirecting 
  users to a page where a session gets created.
   
  thanks in advance for your help.
   
  Mike 
Lenyon


Re: LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work

2003-06-05 Thread Bertrand Delacretaz
Le Jeudi, 5 juin 2003, à 11:22 Europe/Zurich, 
<[EMAIL PROTECTED]> a écrit :

...I also tried the mail archives, but there are all "dead
links" (eg.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html).
don't know about mail-archive but most people here use the MARC 
archives, which work:

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&w=2&r=1&s=ldap&q=b

http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=ldap&q=b

There are some docs at the wiki as well (search for LDAP at 
http://wiki.cocoondev.org/Wiki.jsp).

...Is there somewhere somebody who knows how LDAP works (more precisely
with Active Directory) from A to Z?
If there's no one you might have to investigate yourself (using the 
logs and possibly a debugger), or hire someone to do it for you.
Just talked about this earlier today at 
http://codeconsult.ch/bertrand/archives/72.html

-Bertrand

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


Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Joerg Heinicke
Do you think the bug is fixed in current Xalan? If it's not we have it in 
Cocoon 2.0  too ;-)

Joerg

Antonio Gallardo wrote:
Joerg Heinicke dijo:

Antonio Gallardo wrote:

Joerg Heinicke dijo:

I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
so they should be in the next Cocoon 2.0.x release - I guess the 5
comes after the 4 ;-)
Cool! I think we can close the bug related to document() function!
Hello Anotnio,

to which one you refer?


This?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381
Antonio

Joerg
--

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


Re[2]: TeX to PDF serializator

2003-06-05 Thread Vasil I. Yaroshevich
AS> Vasil I. Yaroshevich wrote:

>>Whether exists subj?
>>
>>  
>>
>>  
>>
AS> what should this be good for? tex is not XML and hence can not take part 
AS> in the Cocoon pipeline.
Why not? I have a XML document with MathML fragment. Also I have XSLT
document for trasformation it to LaTeX.

AS>  To publish tex, you can use pdflatex and publish
AS> the PDF directly.
Of course.

I can make XML document such as



and I want to convert it to PDF. How?


AS> what would definitly be useful is a tex generator, that generatex XML
AS> out of tex





-- 
Best regards,
 Vasilmailto:[EMAIL PROTECTED]


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



Re: Deleting files

2003-06-05 Thread Stavros Kounis

on cocoon samples (2.1) they are some cache empty uri


On Fri, 6 Jun 2003, Tuomo L wrote:

> Hi,
>
> How can I delete files on the server using Cocoon? Is there an action for
> this, or should I write one?
>
> -Tuomo
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
Stavros S. Kounis
Development & Research Department
Osmosis - networks & consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



RE: 2.1 dont work with ODBC?

2003-06-05 Thread Stavros Kounis


no i have not

btw .. what is torsten?


On Thu, 5 Jun 2003, Geoff Howard wrote:

> Did you contact Torsten as the error message said?
>
> Geoff
>
> > -Original Message-
> > From: Stavros Kounis [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 05, 2003 3:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: 2.1 dont work with ODBC?
> >
> >
> >
> > i have the latest (today 06/05/2003) CVS snapshot)
> >
> > i have add
> >
> >  sun.jdbc.odbc.JdbcOdbcDriver
> >
> > entry in web xml (just like i have do in 2.0.4)
> >
> > but when i try to make a query (calling a .xsp) in a ODBC database runing
> > in
> > the same machine i get no results
> >
> > in error.log i have found this message:
> >
> > ERROR   (2003-06-05) 22:47.59:001   [sitemap.generator.serverpages]
> > (/osOthello-s/encoding/comments.xsp) PoolThread-3/comments_xsp:
> > java.sql.SQLException: The database detection method has changed.
> > If your database is not being recognized (anymore) you can either fix it
> > in the Cocoon2EsqlConnection class,  file it to bugzilla, report it to
> > cocoon-dev or to me (tcurdt.at.apache.org) directly.
> >  Only be sure to include the database string "access" in your post.
> > at
> > org.apache.cocoon.components.language.markup.xsp.AbstractEsqlConne
> > ction.createQuery(AbstractEsqlConnection.java:197)
> > .
> > .
> > .
> >
> >
> > how can this database was recognized in 2.0.4 version and not in 2.1?
> >
> > is this in any todo list (so we have to wait for the final 2.1 version or
> > not ?)
> >
> > -- stavros
> >
> >
> > -
> > 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]
>
>

-- 
Stavros S. Kounis
Development & Research Department
Osmosis - networks & consulting services

web:http://www.osmosis.gr
email:  [EMAIL PROTECTED]


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



LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work

2003-06-05 Thread Maxime.Gheysen
Hello.
I'm trying to get LDAP working since 2days, but I can't get any
helpfully help! I also tried the mail archives, but there are all "dead
links" (eg.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html).
Is there somewhere somebody who knows how LDAP works (more precisely
with Active Directory) from A to Z? 

Thank you for any help!

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



Re: internal pipeline

2003-06-05 Thread Andreas Hartmann
Hi Ali,

Ali Mesbah wrote:

Hi all,
I have a problem and don't know if it is a bug in Cocoon or if I'm doing
something wrong. 

What I have is a pipeline which transforms an XML (source) file into an XSLT
(target) stylesheet:

  
  
  

now I'd like to use the output as the source of another pipeline:


  
  
  

I don't get any errors but the HTML output of the "view" pipeline is not the
expected (I have checked the output of the first pipeline and that is correct. I
assume it has something to do with the way I use "cocoon:/..." as the source of
the second transformer). Any ideas?
Your pipelines look OK (if I didn't miss anything). You're using
the cocoon: protocol correctly. I also tried this kind of "stylesheet
generation" (using XSP) and it worked very well. So I guess your
problem is somewhere in the last transformation step.
You can try to set the log level to DEBUG and look at the sitemap
log to see if the correct steps are executed.
The next debugging step could be to save the output of your first
pipeline as an XSLT file and to use this directly without the
cocoon: protocol.
HTH,
Andreas


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


Re: Using cookies

2003-06-05 Thread Upayavira
>  there is a cookie logikcheet in xsp

Thanks. I'll look into that.
 
> but i dont know if they are online information (examples) somewhere

Regards, Upayavira

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



internal pipeline

2003-06-05 Thread Ali Mesbah

Hi all,
I have a problem and don't know if it is a bug in Cocoon or if I'm doing
something wrong. 

What I have is a pipeline which transforms an XML (source) file into an XSLT
(target) stylesheet:


  
  
  



now I'd like to use the output as the source of another pipeline:


  
  
  



I don't get any errors but the HTML output of the "view" pipeline is not the
expected (I have checked the output of the first pipeline and that is correct. I
assume it has something to do with the way I use "cocoon:/..." as the source of
the second transformer). Any ideas?

Thanks,

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

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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Antonio Gallardo
Joerg Heinicke dijo:
> Antonio Gallardo wrote:
>> Joerg Heinicke dijo:
>>>I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS,
>>> so they should be in the next Cocoon 2.0.x release - I guess the 5
>>> comes after the 4 ;-)
>>
>> Cool! I think we can close the bug related to document() function!
>
> Hello Anotnio,
>
> to which one you refer?

This?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381

Antonio
>
> Joerg
>
>
> - 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: commandline executes matching pipeline three times

2003-06-05 Thread Upayavira

> thanks for the replies, it saves me a lot of frustration :)
> In the application, a transformer will be used to transfer the
> incoming XML to an FTP server. The resulting XML will contain info
> about the transfer, such as size, failure/success, ... So it is
> important that the transfer happens only once... If you have any other
> suggestions for doing this, it would be appreciated ! 

Can you explain more exactly what you're trying to achieve? What transformer will 
you use? If you're talking about writing your own transformer, I would recommend 
using the SourceWritingTransformer and creating an FTPSource that you can write 
to. Even better, write a VFS source (giving other protocols too). The source itself 
could probably be configured to record success/failure, and to only transfer once.

> (BTW, Cocoon2.1 is not an option at this point)

It's a real shame that you're not able to use 2.1, as it now can write directly to 
modifiable sources. Therefore, if you had an FTP source, you could generate a page 
and have the CLI send it straight to your FTP server.


> Thanks again !

You're welcome!

Upayavira

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



Re: Some study of implantation

2003-06-05 Thread Joerg Heinicke
What about the Cocoon website?

http://cocoon.apache.org/2.1/userdocs/concepts/index.html

Joerg

Mmutuberria wrote:
 Hello friends,

 I have to implant Cocoon in my enterprise  and I need a bit of generic
 information about it. I need some study of implantation with contrasted
data in a web site migration to Cocoon, and the economic advantages in
maintenance of the site.
 Could you help me with some links?

Really thanks.


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


Re: Using cookies

2003-06-05 Thread Stavros Kounis

 there is a cookie logikcheet in xsp

but i dont know if they are online information (examples) somewhere


--stavros
On Thu, 5 Jun 2003, Upayavira wrote:

> Dear All,
>
> I have a small application that I want to be able to set and read a cookie from the
> user's browser. The cookie must be persistent.
>
> In ASP, to set the cookie I would simply say:
>
> Response.cookies("name")=request("name")
>
> Then I can access it with:
>
> Request.cookies("name")
>
> I would imagine that this should be easy with Cocoon - a combination of an Action to
> set the cookie and an input module to read it. I'm quite prepared to use flow if 
> that'll
> help.
>
> But I can't find anything to point me in the right direction.
>
> Any pointers anyone?
>
> Regards, Upayavira
>
>
> -
> 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: TeX to PDF serializator

2003-06-05 Thread Andreas Kuckartz
> I think it's not in the the cocoon project's goals.

Why not? A good reason which I can see for such a component is that you
could use the features of TeX to automatically create printable pages with
high quality.

Andreas


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



Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Joerg Heinicke
Antonio Gallardo wrote:
Joerg Heinicke dijo:
I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so
they should be in the next Cocoon 2.0.x release - I guess the 5 comes
after the 4 ;-)
Cool! I think we can close the bug related to document() function!
Hello Anotnio,

to which one you refer?

Joerg

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


Sitemap parsing error?

2003-06-05 Thread Jason Nah
Title: Sitemap parsing error?





Howdy Guys


I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7.


I've installed the WAR file and it runs fine... my final problem appears to be a cocoon
problem.


I am able to start up the application server fine... and no errors are logged. However, when
i invoke the servlet... i get the following problems:





Cocoon 2 - Internal server error


type fatal


message Illegal character at end of document, u.


description org.xml.sax.SAXParseException: Illegal character at end of document, u.


sender org.apache.cocoon.servlet.CocoonServlet


source Cocoon servlet


stack-trace


org.xml.sax.SAXParseException: Illegal character at end of document, u.
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173)

    at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390)

    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390)

    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353)

    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
    at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
    at java.lang.Thread.run(Thread.java:536)


request-uri


/cocoon/


path-info
---



Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log:
ERROR   (2003-06-05) 17:06.07:594   [access] (/cocoon/) service-j2ee/CocoonServl
et: Problem with Cocoon servlet
org.xml.sax.SAXParseException: Illegal character at end of document, u.
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)


    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
    at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
generateResource(ProgramGeneratorImpl.java:390)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
createResource(ProgramGeneratorImpl.java:353)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
load(ProgramGeneratorImpl.java:312)
    at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
    at java.lang.Thread.run(Thread.java:536)



In the sitemap.log i get:
ERROR   (2003-06-05) 17:06.07:591   [sitemap] (/cocoon/) service-j2ee/Handler: E
rror compiling sitemap
org.xml.sax.SAXParseException: Illegal character at end of document, u.
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)


    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.
generateCode(LogicsheetCodeGenerator.java:173)
    at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g
enerateCode(AbstractMarkupLanguage.java:390)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
generateResource(ProgramGeneratorImpl.java:390)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
createResource(ProgramGeneratorImpl.java:353)
    at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.
load(ProgramGeneratorImpl.java:312)
    at 

Some study of implantation

2003-06-05 Thread Mmutuberria




 Hello friends,

 I have to implant Cocoon in my enterprise  and I need a bit of generic
 information about it. I need some study of implantation with contrasted
data in a web site migration to Cocoon, and the economic advantages in
maintenance of the site.

 Could you help me with some links?

Really thanks.



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



Re: TeX to PDF serializator

2003-06-05 Thread Nicolas SANDRI
I think it's not in the the cocoon project's goals.
A project also exist :
http://tex2pdf.berlios.de/
Nicolas

Le mercredi, 4 juin 2003, à 19:41 Europe/Paris, Vasil I. Yaroshevich a 
écrit :

Whether exists subj?



--
Best regards,
 Vasil  mailto:[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]


Using cookies

2003-06-05 Thread Upayavira
Dear All,

I have a small application that I want to be able to set and read a cookie from the 
user's browser. The cookie must be persistent.

In ASP, to set the cookie I would simply say:

Response.cookies("name")=request("name")

Then I can access it with:

Request.cookies("name") 

I would imagine that this should be easy with Cocoon - a combination of an Action to 
set the cookie and an input module to read it. I'm quite prepared to use flow if 
that'll 
help. 

But I can't find anything to point me in the right direction. 

Any pointers anyone?

Regards, Upayavira


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



Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Andreas Kuckartz
> All of this works fine when requesting the page using Netscape Navigator
> (valid page and images, no errors in log file). As soon as I use the
> Microsoft Internet Explorer to request the same page, the HTML page is
> returned, but the svg image has not been served properly. According to
> the log file there was a "java.net.SocketException: Software caused
> connection abort: socket write error" (details included below),

I remember that other software (Squeak) had a somewhat similar problem which
was solved by changing something in the networking layer. The browsers were
different regarding opening new connections. I think Netscape created one
connection to download one file after another while MSIE created a
connection for every single file on a webpage. Something like that. It took
some time to fix that problem...

Andreas


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



Re: commandline executes matching pipeline three times

2003-06-05 Thread Torsten Knodt
On Thursday 05 June 2003 08:42, Geert Van Damme wrote:

GV> In the application, a transformer will be used to transfer the incoming
GV> XML to an FTP server. The resulting XML will contain info about the
GV> transfer, such as size, failure/success, ... So it is important that the
GV> transfer happens only once... If you have any other suggestions for
GV> doing this, it would be appreciated !

As a workaround, you could do the following:
- You use a database to record every ftp transformer you do
- Before transfering via ftp, you check the database, if the transfer is 
already done.

Regards
Torsten
-- 
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.


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



Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Torsten Knodt
On Wednesday 04 June 2003 22:57, Christian Kurz wrote:
CK> has anybody successfully served svg images (not svg rendered as JPG or
CK> PNG, this just works great!) to the IE using the FragmentGenerator? I
CK> would really appreciate any information or code snippets about sitemap
CK> setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan).

Yes, works great on konqueror, netscape (mozilla), ie 5.5 and ie 6. Didn't try 
others.

CK> -cocoon (2.0.3, 2.0.4),

To my 2.0 times I also had the problem. The problem was gone since I use 
cocoon 2.1. I guess it has something to do with pipeline caching, but have 
never tested.

Regards
Torsten

-- 
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.


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



Warning: new namespace of XMLForms (xmlform block) in v2.1 CVS.

2003-06-05 Thread Dmitry Lisenko
Hello, Cocooners.

Old namespace "http://xml.apache.org/cocoon/xmlform/2002";
changed to "http://apache.org/cocoon/xmlform/1.0";

If you have problem with xmlforms under last month v2.1 cvs,
revise your docs/stylesheets.

WBR,
Dmitry.


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



RE: CVS update

2003-06-05 Thread Stavros Kounis


i bluild clean first every time i try to build cocoon

i have notice that some time after CVS checkout some files are missing
from my local DIR

but because i dont have ever use CVS clients in the past i'm not sure if i
do checkout the right way

--- stavros


On Wed, 4 Jun 2003, Geoff Howard wrote:

> when that happens, does build.bat clean fix it?
>
> Geoff
>
> > -Original Message-
> > From: Stavros Kounis [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 04, 2003 5:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: CVS update
> >
> >
> >
> >
> > hi people
> > many time  when i update my cocoon2.1 cvs snapshot
> > i get build errors
> >
> > i think that maybe i do something wrong with update
> >
> > i use checkout option by revision/tag/head : HEAD
> >
> > is this correct?
> >
> >
> > i use WinCVS
> >
> >
> > thnx
> >
> > --- stavros
> >
> >
> >
> > -
> > 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: commandline executes matching pipeline three times

2003-06-05 Thread Geert Van Damme

Hey all,

thanks for the replies, it saves me a lot of frustration :)
In the application, a transformer will be used to transfer the incoming
XML to an FTP server. The resulting XML will contain info about the
transfer, such as size, failure/success, ... So it is important that the
transfer happens only once... If you have any other suggestions for
doing this, it would be appreciated !
(BTW, Cocoon2.1 is not an option at this point)

Thanks again !


>>> [EMAIL PROTECTED] 06/04/03 03:43pm >>>
Geert Van Damme wrote:

> Hi,
> 
> I'm trying to run Cocoon from the command line, but it seems that
the
> matching pipeline for the requested URI is executed three times
instead
> of just one.

Look at the Cocoon Wiki
(http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine): 


In order to follow links and rewrite URLs, Cocoon must generate pages 
multiple times:

 * once to extract links from the page, using the links view
 * once to check the mime type for URL rewriting
 * once for getting page contents



> Did anyone experience the same problem ?
> 
> I'm running Cocoon2.0.4 using a very simple example which does work
> (meaning pipeline processed only once) when running Cocoon as a
webapp.
> 
> Following match is executed three times in stand alone mode :
> 
> 
>   
>   
>
> 
> I'm running following ant task to run the program :
> 
>  failonerror="true">
>   
>/>
>   
>   
>   
> 
> The log contains following output three times (with more log output
> inbetween):
> 
>[java] REQUEST: /test
> 
>[java] CONTEXT PATH: null
>[java] SERVLET PATH: /test
>[java] PATH INFO: null
>...
>...
>[java] METHOD: get
>[java] CONTENT LENGTH: -1
>[java] PROTOCOL: cli
>[java] SCHEME: cli
>[java] AUTH TYPE: null
> 
>[java] CURRENT ACTIVE REQUESTS: 1
>[java] REQUEST PARAMETERS:
> 
>[java] PARAM: 'accept' VALUES: '[text/html, */*]'
>[java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]'
>[java] HEADER PARAMETERS:
> 
> 
>[java] SESSION ATTRIBUTES:
> 
> 
> Is there anything I miss here ? Any options I need to set ?
> 
> Thanks,
> Geert



-
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: CVS update

2003-06-05 Thread Geoff Howard
ah, the message sounded like it was a recurring problem but 
I bet you're right.

Geoff

> -Original Message-
> From: Mark Eggers [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 8:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: CVS update 
> 
> 
> Geoff,
> 
> The CVS download appeared to be broken very early this
> morning.  It would not build, and had at least one
> undefined symbol error.
> 
> However, a fresh checkout at about 2:30 PM Pacific
> Time seems to build properly.
> 
> /mde/
> just my two cents . . . .


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



RE: CVS update

2003-06-05 Thread Mark Eggers
Geoff,

The CVS download appeared to be broken very early this
morning.  It would not build, and had at least one
undefined symbol error.

However, a fresh checkout at about 2:30 PM Pacific
Time seems to build properly.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



RE: [HELP]Exception in ServerPagesGenerator.generate() - Oracle+Cocoon

2003-06-05 Thread Geoff Howard
- Look in the cocoon logs in WEB-INF\logs for messages regarding your
datasource during startup.  Also check the tomcat logs.
- Send the snippets of web.xml and cocoon.xconf that you edited here.
- Where did you put the oracle driver jar?  What is it called?
- How did you get your version of Cocoon?  If it was binary download,
go in WEB-INF\lib and do a dir listing and send that here.

Geoff

> -Original Message-
> From: Himar Carmona Delgado [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: [HELP]Exception in ServerPagesGenerator.generate() -
> Oracle+Cocoon
>
> Hi,
>
>   Can you help me? I don't know what's wrong here.
>
>   I'm using:
>
>   Coccon 2.0.4.
>   Tomcat 4.0.1
>   Win2K
>   Oracle 9.2.0.1
>   JDK 1.3.1_08
>
>
>   I want to connect to an Oracle Database from Cocoon 2.0.4, using
> oracle drivers for JDBC.
>
>   I followed the tutorial at
> http://wiki.cocoondev.org/Wiki.jsp?page=Oracle , but al the end I obtained
> the following error:
>
> Description:org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get
> the datasource
> org.apache.avalon.excalibur.datasource.NoValidConnectionException:
>  No valid
> JdbcConnection class available


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



RE: CVS update

2003-06-05 Thread Geoff Howard
when that happens, does build.bat clean fix it?

Geoff

> -Original Message-
> From: Stavros Kounis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 5:02 PM
> To: [EMAIL PROTECTED]
> Subject: CVS update 
> 
> 
> 
> 
> hi people
> many time  when i update my cocoon2.1 cvs snapshot
> i get build errors
> 
> i think that maybe i do something wrong with update
> 
> i use checkout option by revision/tag/head : HEAD
> 
> is this correct?
> 
> 
> i use WinCVS
> 
> 
> thnx
> 
> --- stavros
> 
> 
> 
> -
> 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: TeX to PDF serializator

2003-06-05 Thread Alexander Schatten
Vasil I. Yaroshevich wrote:

Whether exists subj?

 

 

what should this be good for? tex is not XML and hence can not take part 
in the Cocoon pipeline. To publish tex, you can use pdflatex and publish 
the PDF directly.

what would definitly be useful is a tex generator, that generatex XML 
out of tex

alex

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


Re: recommed upgrading to Xalan 2.5 when using document() regularly

2003-06-05 Thread Joerg Heinicke
Hello Bruce,

I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so 
they should be in the next Cocoon 2.0.x release - I guess the 5 comes 
after the 4 ;-)

Joerg

Bruce Robertson wrote:
I've found that under JDK 1.4 my Cocoon 2.0.4 based project (http://heml.mta.ca)
tended to spawn a huge number of open files and after a couple of days of
service would:
a) crash with a 'too many open files' jvm error
b) start throwing 'unknown xpath error's in unlikely places. 

By checking with the unix 'lsof' utility, I found that the problem was with
files accessed through xsl's document() function. (This isn't a function you
should get into the habit of using with Cocoon, but at one point I wanted my
xslts to work outside Cocoon, too. I'll probably change things when I rewrite
that section.) Those files never seemed to get properly closed, except with
garbage collection.
The lastest version of Xalan has a fix for this bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4858
which directly relates to point b) above. So I replaced the stock Xalan in
Cocoon 2.0.4 with Xalan 2.5 and the necessary Xerces. And the result was ...
some of my xslt threw new errors :-( In particular, it looks like the xpath
parsing is more strict, which is probably a good thing. I fixed those, and, hey,
it works. I tried hammering the server with requests, and no failure so far. 

A happy outcome of this is that the part of my code using document() calls,
which had been unreasonably slow, now runs much faster. This is not a measured
result, but I'm certain it's true.
The upshot is that people who, against advice, use document() in their
Cocoon-processed xslt should look into swapping in the Xalan 2.5 jar.
Yrs,


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


CVS update

2003-06-05 Thread Stavros Kounis


hi people
many time  when i update my cocoon2.1 cvs snapshot
i get build errors

i think that maybe i do something wrong with update

i use checkout option by revision/tag/head : HEAD

is this correct?


i use WinCVS


thnx

--- stavros



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



All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
Hi,

has anybody successfully served svg images (not svg rendered as JPG or
PNG, this just works great!) to the IE using the FragmentGenerator? I
would really appreciate any information or code snippets about sitemap
setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan). 


After trying to fix what I though was a simple problem for 1.5 weeks I
have got no ideas on how to investigate anymore:

I am trying to serve a generated svg image as an svg file. The two
pipelines are basically:

FileGenerator
XSLT-Transformer to turn xml data into a xml document containing

Custom-Transformer for calling GraphViz to create SVG elements
in xml document
XSLT-Transformer
FragmentExtractor
XSLT-Tranformer 
HTML-Serializer

FragmentGenerator
SVGXML-Serializer

All of this works fine when requesting the page using Netscape Navigator
(valid page and images, no errors in log file). As soon as I use the
Microsoft Internet Explorer to request the same page, the HTML page is
returned, but the svg image has not been served properly. According to
the log file there was a "java.net.SocketException: Software caused
connection abort: socket write error" (details included below), in
certain configurations I am receiving a NPE in DOMStreamer.stream
instead (details included below). As discussed in other threads
(http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2,
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103907382827236&w=2),
this looks like IE requesting the svg twice and aborting the first
request causing the trouble. Is the FragmentExtractor able to handle
this, if the serializer is not JPG or PNG?

I am using WinXP and have tried various configurations: 
-cocoon (2.0.3, 2.0.4), 
-Tomcat (4.1.24, 4.1.18)
-JDK (1.4.0_02, 1.4.1_02)
-XALAN (2.3.1, 2.4.1, 2.5.1) and SAXON (6.5), 
-incremental processing turned on and off.

Any hints, ideas on further research very much appreciated.

Thanks in advance,
Christian


- SOCKET WRITE ERROR -
FATAL_E (2003-05-28) 00:04.34:399   [core.xslt-processor]
(/eti/etimdb/imsds-graph/e920f-f56ba6b144--8000.svg)
Thread-10/TraxErrorHandler: java.net.SocketException: Software caused
connection abort: socket write error
javax.xml.transform.TransformerException: java.net.SocketException:
Software caused connection abort: socket write error
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:690)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2008)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:199)
at
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
308)
at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:630)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:1017)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttrib
utes.startElement(AbstractTextSerializer.java:486)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandl
er.java:856)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHa
ndler.java:931)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand
ler.java:306)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:684)
... 7 more
-
java.net.SocketException: Software caused connection abort: socket write
error
at
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:199)
at
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
308)
at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:630)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:1017)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.cocoon.s

RE: clear cache problems

2003-06-05 Thread Conal Tuohy
Bertrand Delacretaz wrote:



> The best thing if you're not sure about the browser's cache
> is to test
> without a browser - use wget or telnet to make requests and check the
> results.

I use NetTool for this. It's an HTTP client with a GUI, but it's not a
browser :-) You have control over HTTP headers, too. Originally developed
for debugging SOAP, but it's great for debugging any HTTP server.
http://nettool.sourceforge.net/

Cheers

Con


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



Re: redirect at the end of a pipeline/match

2003-06-05 Thread Daniel McOrmond
I am not dead set against anything.. although I think flow is ruled out 
because this project is running on 2.0.4. I will probably implement some 
actions, they seem to be the cleanest way to accomplish this. Thanks 
very much for your help!

-Daniel

Geoff Howard wrote:

If you are dead set against using actions or flow, then I'd recommend
continuing your pipeline with the select data you want.  Probably the
best way to do this is
1) after the first sql transform, insert an xsl transform that 
replaces the
results of the insert with a cinclude of a pipeline that handles your 
select
statement.

or

2) have your pipeline aggregate two pipelines.  One pipeline
would be your insert, the other your select.  In the final result, your
xsl would ignore the output of the insert pipeline.
The first has the advantage that you can react to the result of the
sql transform and display different content.  I tend to dislike the
sql transformer for this kind of problem and prefer actions - the
modular database actions are very powerful.  Perhaps someone that
uses the sql transformer for inserts could provide a more elegant
solution.
HTH,
Geoff


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


Re: redirect at the end of a pipeline/match

2003-06-05 Thread Geoff Howard
If you are dead set against using actions or flow, then I'd recommend
continuing your pipeline with the select data you want.  Probably the
best way to do this is
1) after the first sql transform, insert an xsl transform that replaces the
results of the insert with a cinclude of a pipeline that handles your select
statement.
or

2) have your pipeline aggregate two pipelines.  One pipeline
would be your insert, the other your select.  In the final result, your
xsl would ignore the output of the insert pipeline.
The first has the advantage that you can react to the result of the
sql transform and display different content.  I tend to dislike the
sql transformer for this kind of problem and prefer actions - the
modular database actions are very powerful.  Perhaps someone that
uses the sql transformer for inserts could provide a more elegant
solution.
HTH,
Geoff
At 02:11 PM 6/4/2003, you wrote:
Drop the xml serialization. I don't want to send that back as a result. 
What I do want to do is display a page that now includes the new 
information which came from this database insert. Does this make sense?


  
  
  
  
  

-Daniel


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


[HELP]Exception in ServerPagesGenerator.generate() - Oracle+Cocoon

2003-06-05 Thread Himar Carmona Delgado



Hi, 

Can you help me? I don't know what's wrong here.

I'm using:

Coccon 2.0.4.
Tomcat 4.0.1
Win2K
Oracle 9.2.0.1
JDK 1.3.1_08


I want to connect to an Oracle Database from Cocoon 2.0.4, using
oracle drivers for JDBC.

I followed the tutorial at
http://wiki.cocoondev.org/Wiki.jsp?page=Oracle , but al the end I obtained
the following error:

Description:org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get
the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available

An error occurred 
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception in ServerPagesGenerator.generate() 

More precisely:

org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get
the datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available 

 
extra info 
full exception chain stacktrace show 
Original exception : java.lang.RuntimeException: Could not get the
datasource
org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid
JdbcConnection class available 
at
org.apache.cocoon.www.pruebas.sql_page_xml.generate(D:\jakarta-tomcat-4.0.1\
work\localhost\cocoon\cocoon-files\org/apache/cocoon/www/pruebas\sql_page_xm
l.java:353) 
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera
tor.java:258) 
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250) 
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395) 
at
org.apache.cocoon.www.sitemap_xmap.matchN107C6(D:\jakarta-tomcat-4.0.1\work\
localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:9660) 
at
org.apache.cocoon.www.sitemap_xmap.process(D:\jakarta-tomcat-4.0.1\work\loca
lhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3673) 
at
org.apache.cocoon.www.sitemap_xmap.process(D:\jakarta-tomcat-4.0.1\work\loca
lhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3097) 
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) 
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) 
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)

at org.apache.cocoon.Cocoon.process(Cocoon.java:579) 
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247) 
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193) 
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) 
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64) 
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163) 
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66) 
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011) 
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
) 
at java.lang.Thread.run(Thread.java:479) 


Re: WG: WG: Problems with umlaut in cocoon2.04

2003-06-05 Thread Joerg Heinicke
Nice to hear, that it works. But ...

Przybilla, Frank wrote:
Hello Joerg,

that's it! When I remove the encoding specification, so that it defaults
to UTF-8, then it works. Maybe in former versions of coocoon the jsp
generator
was aware of the specified encoding, but now it is confused.
... I don't think that this correct. Maybe in the old version the result 
of the JSP was ISO-8859-1 encoded by default and this has now changed to 
UTF-8. But you can't tell the parser that the content encoding is 
ISO-8859-1, if that's not true. With writing the xml declaration by 
hand, you don't influence the content encoding, but you possibly give 
the parser a wrong hint on the encoding.

Joerg

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


Re: redirect at the end of a pipeline/match

2003-06-05 Thread JD Daniels
Maybe I am off base here.. But wouldn't his solution be to take his xsp or
whatever that does the database insert and make it into an action?


   





   




If you dont want to view the serialization.. why serialize it?

- Original Message - 
From: "Daniel McOrmond" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 10:11 AM
Subject: Re: redirect at the end of a pipeline/match


> Drop the xml serialization. I don't want to send that back as a result.
> What I do want to do is display a page that now includes the new
> information which came from this database insert. Does this make sense?
>
> 
>
>
>
>
>
> 
>
> -Daniel
>
> Geoff Howard wrote:
>
> > What would the purpose be of sending xml back as a result and then
> > redirecting the client?  This "need" keeps coming up when using the
> > transformers with side effects, of which the sql transformer is one.
> >
> > Again, why do you need to redirect?  Why not serve them the content
> > you want them to have right away?
> >
> > Geoff
>
>
>
> -
> 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: redirect at the end of a pipeline/match

2003-06-05 Thread Neil Palmer
I'm looking to do the same thing - I'm using Cocoon purely for it's 
XML generation/transformation capabilities, while my actual application
is using JBoss/Jetty & Struts.

Basically I have an admin app that allows you to marshall a business 
object via Castor, perform various transformations on it and then 
serialize the result to an XML file.  This XML file will then get 
pushed out to production for use on the front end customer facing app.
However, I'd love to be able to redirect back to the admin home page 
after the xml serializaton.  I'm not actually using Cocoon for any
content presentation.

I've only been using Cocoon (2.0.4) for a couple of months, so if
there's a better way of doing this, I'm all ears.  While the redirect
after the serialization isn't critical, it'd certainly be nice.

cheers,
neil.

-Original Message-
From: Geoff Howard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:05 PM
To: [EMAIL PROTECTED]
Subject: Re: redirect at the end of a pipeline/match

What would the purpose be of sending xml back as a result and then
redirecting the client?  This "need" keeps coming up when using the
transformers with side effects, of which the sql transformer is one.

Again, why do you need to redirect?  Why not serve them the content
you want them to have right away?

Geoff

At 01:46 PM 6/4/2003, you wrote:
>I'm looking for a clean way to 'redirect' a user back to a page, at the

>end of a pipeline.
>
>
>
>
>
>
>
>
>
>
>map:redirect doesn't work because it skips the generate and transform. 
>Browsing through the mail archive someone suggest's using a meta
redirect 
>tag in generated html. 
>(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105464887116737&w=2
)
>
>This would work but it seems clunky.. There must be a cleaner way to 
>accomplish this.?
>
>-Daniel


-
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: redirect at the end of a pipeline/match

2003-06-05 Thread Daniel McOrmond
Drop the xml serialization. I don't want to send that back as a result. 
What I do want to do is display a page that now includes the new 
information which came from this database insert. Does this make sense?


  
  
  
  
  

-Daniel

Geoff Howard wrote:

What would the purpose be of sending xml back as a result and then
redirecting the client?  This "need" keeps coming up when using the
transformers with side effects, of which the sql transformer is one.
Again, why do you need to redirect?  Why not serve them the content
you want them to have right away?
Geoff


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


Re[2]: esql exception

2003-06-05 Thread Vasil I. Yaroshevich
>> I get follows exception
>> org.apache.cocoon.ProcessingException: Language Exception:
>> org.apache.cocoon.components.language.LanguageException: Error 
>> compiling test_xsp:
>> Line 364, column 58:  method valueOf() not found in class 
>> java.lang.String
>> 
>> What's wrong?

CH> See above.
Many thanks. All right now.

-- 
Best regards,
 Vasilmailto:[EMAIL PROTECTED]


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



Re: redirect at the end of a pipeline/match

2003-06-05 Thread Alex Romayev
Looks like flowmap would be the cleanest way of
handling this, but it's still in development and not
that well documented.

--- Daniel McOrmond <[EMAIL PROTECTED]> wrote:
> I'm looking for a clean way to 'redirect' a user
> back to a page, at the 
> end of a pipeline.
> 
> 
> 
> 
>  value="myconnection"/>
> 
> 
> 
> 
> 
> map:redirect doesn't work because it skips the
> generate and transform. 
> Browsing through the mail archive someone suggest's
> using a meta 
> redirect tag in generated html. 
>
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105464887116737&w=2)
> 
> This would work but it seems clunky.. There must be
> a cleaner way to 
> accomplish this.?
> 
> -Daniel
> 
> 
> 
> 
>
-
> 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: redirect at the end of a pipeline/match

2003-06-05 Thread Geoff Howard
What would the purpose be of sending xml back as a result and then
redirecting the client?  This "need" keeps coming up when using the
transformers with side effects, of which the sql transformer is one.
Again, why do you need to redirect?  Why not serve them the content
you want them to have right away?
Geoff

At 01:46 PM 6/4/2003, you wrote:
I'm looking for a clean way to 'redirect' a user back to a page, at the 
end of a pipeline.


   
   
   
   
   
   

map:redirect doesn't work because it skips the generate and transform. 
Browsing through the mail archive someone suggest's using a meta redirect 
tag in generated html. 
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105464887116737&w=2)

This would work but it seems clunky.. There must be a cleaner way to 
accomplish this.?

-Daniel


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


Re: esql exception

2003-06-05 Thread Christian Haul
Vasil I. Yaroshevich wrote:
Hello!

For this xsp:

http://apache.org/xsp";
xmlns:util="http://apache.org/xsp/util/2.0";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>


tivoli

select id from articles







 

I get follows exception
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error 
compiling test_xsp:
Line 364, column 58:  method valueOf() not found in class 
java.lang.String

What's wrong?
See above.

	Christian

--
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


redirect at the end of a pipeline/match

2003-06-05 Thread Daniel McOrmond
I'm looking for a clean way to 'redirect' a user back to a page, at the 
end of a pipeline.


   
   
   
   
   
   

map:redirect doesn't work because it skips the generate and transform. 
Browsing through the mail archive someone suggest's using a meta 
redirect tag in generated html. 
(http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105464887116737&w=2)

This would work but it seems clunky.. There must be a cleaner way to 
accomplish this.?

-Daniel



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


TeX to PDF serializator

2003-06-05 Thread Vasil I. Yaroshevich
Whether exists subj?

  

-- 
Best regards,
 Vasil  mailto:[EMAIL PROTECTED]


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



Translet transformer

2003-06-05 Thread Alison Meynert
Title: Translet transformer





Hi,


Does anyone know of a transformer component that takes translets as input?  There was some discussion on this topic recently - did anything come of it?  I am working with a program that outputs translets, and we would like to be able to plug these directly into a Cocoon pipeline.

Thanks,
Alison Meynert


--
[EMAIL PROTECTED]
Developer
Schema Software, Inc.
http://www.schemasoft.com





esql exception

2003-06-05 Thread Vasil I. Yaroshevich
Hello!

For this xsp:

http://apache.org/xsp";
xmlns:util="http://apache.org/xsp/util/2.0";
xmlns:esql="http://apache.org/cocoon/SQL/v2";>


tivoli
select id from articles






 


I get follows exception
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error 
compiling test_xsp:
Line 364, column 58:  method valueOf() not found in class 
java.lang.String

What's wrong?
  

-- 
Best regards,
 Vasil  mailto:[EMAIL PROTECTED]


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



Cocoon and XML-RPC

2003-06-05 Thread scott
Hi ppls,

Just been playing with Cocoon, don't really understand too much yet but I it
looks promising! I'm playing around with the idea of using XML-RPC to
retrieve data from another IT system, then I want to format (serialize?) it
into XHTML for the end user to interact with (read: fill out forms, post, go
to next page, repeat, etc)

Do you think Cocoon is right for this kind of concept? Obviously I'll need
to write business logic also, but some of that may be abstracted behind the
XML-RPC interface, allowing the other app to make some decisions on webapp
flow etc.

I was also looking at Maverick, which looks a bit less 'heavy' than Cocoon.

thoughts? please CC me on replies as I'm subscribed to the digest only.

regards,
Scott


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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
Here is my problem more clearly :
We are two developpers, we both develop an application with cocoon. I
use XSP and the other use XML-Forms. He builded a portal. I created an
application that has to be integrated into this portal. To help him in
his work, I have to change his authentification source (actually he use
an XML file to authentificate) to our Active Directory server. So I have
to add it into the portal and into my XSP pages (because I need to get
the user name/role/group).
I don't know anything about how XML forms work, but I know XSP.

Now, is there an easy way, to change the authentification source from an
XML file to Active Directory, and is there an easy way to get the
username in a XSP page.

At this time I have the LDAPTransformer well configured in my sitemap,
but nothing more.

Thank you for you help!


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted




> I use cocoon 2.0
> the output on the explorer is :
>
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the
following DTD is used.

* The following DTD is valid:
 * 
 * 
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * + (default:
"com.sun.jndi.ldap.LdapCtxFactory")
 * + (default: "simple")
 * + (default: "2")
 * +
 * + (default: 389)
 * +
 * +
 * + (default: ONELEVEL_SCOPE)
 * +
 * + (default: "doc-element")
 * + (default: "row-element")
 * + (default: "ldap-error") (in
case of error returned error tag)
 * +; (default: FALSE) (throws
SAX-Exception instead of error tag)
 * 
 *  (default: TRUE)
 * 
 *  (default: FALSE)
 *  (integer default: 0 -> no
limit)
 *  (integer default: 0 ->
infinite)
 * +; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56
cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents/{1}.xsp"/>
> > > 
> > > 
> > >   
> > >  
> > > and in the xsp page I write this sample page (from the apache
site).
> > And
> > > then I just get text as result. The tags aren't interpreted.
> > > 
> > >  > >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> > >  xmlns:xsp="http://apache.org/xsp";
> > >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> > >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> > >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > 
> > > 
> > >   
> > > lda

RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
And where must I write this DTD, and what is his name and extension?  I
have never used any DTD
And then, in the sitemap must I write :
...

...


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted




> I use cocoon 2.0
> the output on the explorer is :
>
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the
following DTD is used.

* The following DTD is valid:
 * 
 * 
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * + (default:
"com.sun.jndi.ldap.LdapCtxFactory")
 * + (default: "simple")
 * + (default: "2")
 * +
 * + (default: 389)
 * +
 * +
 * + (default: ONELEVEL_SCOPE)
 * +
 * + (default: "doc-element")
 * + (default: "row-element")
 * + (default: "ldap-error") (in
case of error returned error tag)
 * +; (default: FALSE) (throws
SAX-Exception instead of error tag)
 * 
 *  (default: TRUE)
 * 
 *  (default: FALSE)
 *  (integer default: 0 -> no
limit)
 *  (integer default: 0 ->
infinite)
 * +; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56
cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
 
com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents/{1}.xsp"/>
> > > 
> > > 
> > >   
> > >  
> > > and in the xsp page I write this sample page (from the apache
site).
> > And
> > > then I just get text as result. The tags aren't interpreted.
> > > 
> > >  > >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> > >  xmlns:xsp="http://apache.org/xsp";
> > >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> > >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> > >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > 
> > > 
> > >   
> > > ldap://ldap.innosoft.com
> > > (&(objectclass=pet)(cn=B*))
> > >
ou=Pets,dc=Innosoft,dc=com
> > > 
> > > one
> > > true
> > > 10
> > > owner,givenname,description
> > > false
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -Original Message-
> > > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 2:39 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > > Check the $COCOON_SRC_DIR/lib/jars.xml
> > > for following lines:
> > >  
> > >   jndi LDAP API
> > >   Java API for LDAP works
> > >   LDAP Transformer
> > >   optional/jndi.j

Re: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko


> I use cocoon 2.0
> the output on the explorer is :
> ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
> c=comonetrue10owner,givenname,descriptionfalse
> 

In all  versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the following DTD is used.

* The following DTD is valid:
 * 
 * 
 * increments (+1) an integer attribute on a directory-server (ldap)
 * 
 * + (default: 
"com.sun.jndi.ldap.LdapCtxFactory")
 * + (default: "simple")
 * + (default: "2")
 * +
 * + (default: 389)
 * +
 * +
 * + (default: 
ONELEVEL_SCOPE)
 * +
 * + (default: "doc-element")
 * + (default: "row-element")
 * + (default: "ldap-error") (in case of error 
returned error tag)
 * +; (default: FALSE) (throws SAX-Exception 
instead of error tag)
 * 
 *  (default: TRUE)
 * 
 *  (default: FALSE)
 *  (integer default: 0 -> no limit)
 *  (integer default: 0 -> infinite)
 * +; (default: FALSE)
 * 
 * + can also be defined as parameter in the sitemap.
 * 
 * 
 *
 * @author Felix Knecht
 * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56 cziegeler Exp $
 */


and the following namespace: http://apache.org/cocoon/LDAP/1.0

But what are you using?
simple real example:

 
  com.sun.jndi.ldap.LdapCtxFactory
  ldap://ldap.my.host
  389
  OBJECTS_SCOPE
  cn=DN
  password
  ou=people,o=company
  urls
  title
  mobile
  cn
  sn
  zone
  sleep
  trace
  admin
  true
  (&(uid=testuser))
 


> 
> No.
> Can you send me the output of work?
> And what the version of cocoon you use?
> 
> > doesn't work. Is there anything to add in the cocoon.xconf maybe?
> > 
> > 
> > Try the following:
> > 
> >  >   language="java"
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> > 
> > instead of
> >  >   xmlns:ldap="http://www.apache.org/2000/LDAP";
> >   xmlns:xsp="http://apache.org/xsp";
> >   xmlns:session="http://apache.org/xsp/session/2.0"; 
> >   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > 
> > 
> > > Yes, that works. now, how can I use it? When I use it like :
> > > 
> > >   
> > >  > > src="workflowmanager/documents/{1}.xsp"/>
> > > 
> > > 
> > >   
> > >  
> > > and in the xsp page I write this sample page (from the apache site).
> > And
> > > then I just get text as result. The tags aren't interpreted.
> > > 
> > >  > >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> > >  xmlns:xsp="http://apache.org/xsp";
> > >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> > >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> > >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > > >
> > > 
> > > 
> > > 
> > >   
> > > ldap://ldap.innosoft.com
> > > (&(objectclass=pet)(cn=B*))
> > > ou=Pets,dc=Innosoft,dc=com
> > > 
> > > one
> > > true
> > > 10
> > > owner,givenname,description
> > > false
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -Original Message-
> > > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 2:39 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > > Check the $COCOON_SRC_DIR/lib/jars.xml
> > > for following lines:
> > >  
> > >   jndi LDAP API
> > >   Java API for LDAP works
> > >   LDAP Transformer
> > >   optional/jndi.jar
> > >   http://java.sun.com/products/jndi
> > >  
> > > 
> > > and rebuild the cocoon.
> > > 
> > > After rebuilding, in the
> > >
> $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> > > you find the LDAPTransformer.class and
> LDAPTransformer$LDAPQuery.class
> > > 
> > > > there aren't in the c

Re: How to debug COCOON with ECLIPSE and TOMCAT?

2003-06-05 Thread Galia Angelova
Perfect! It works!
Thank you!
 
Galia ANgelova
Lionel Crine <[EMAIL PROTECTED]> wrote:
With the tomcat plugin : 2.1I think you have setup the windows->preference->tomcat.I repeat it :1/choose the version you have. 4.1.x is good.2/choose the tomcat root directory3/choose the server.xml file4/i had my tomcat project to my classpath (i'm not sure it's necessary).5/ If you want to debug Tomcat (check the "execute in debug mode)the parameter for the JVM :The JRE by default is not working (or something like that)!!!So you have to change it the another.6/ Go in window->preferences->java->installed JREs7/add a new standard VM (the one with your sdk). (for example mine is : d:\software\java\sdk1.4)8/notch it.9/Come back to windows->preference->tomcat->JVM parameter10/select the new JVMSome optionnal things :In window->preferences->java->Classpath Variablescreate a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin uses TOMCAT_HOMEIn the properties of the project :11/java Build Path->source : be sure WEB-INF/classes of your project is here12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME13/Tomcat : I notched "is a tomcat project" (check if this is your context) "update automatically server.xml" and "reloadable = true".Hope that help a little.I may have forgotten some things so tell me.PS: With my computer the classpath is not build with eclipse So I had to add all the jars into the libraries (see 12/)LionelAt 04:11 04/06/2003 -0700, you wrote:>Yes, please! I'll be grateful!>>Galia>>Lionel Crine <[EMAIL PROTECTED]>wrote:>Sorry I'm lost :>>Whould you like me to send the configuration for eclipse to work with>cocoon and tomcat and sdk 1.4 ?>If yes, tell me.>At 10:43 04/06/2003 +0400, you wrote:> >But who can send the solution about the using the eclipse in this> >configuration?> >> > > I use tomcat cocoon and the sdk 1.4> > >> > > All is working fine.> > >> > > Do you have an error message ?> > >> > >> > > At 07:27 03/06/2003 -0700, you wrote:> > > >Hi,> > > >> > > >I would like to debug cocoon with eclipse and tomcat.> > > >I have the blueskytime plugins for eclipse and tomcat but could not> > > >make them debug cocoon.> > > >May be there's something i'm not doing right?> > > >> > > >Galia> > > >> > > >> >> >--> >> >Best regards,> >Yury Mikhienko.> >IT engineer, ZAO "Mobicom-Kavkaz"> >> >-> >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]>>>Do you Yahoo!?>Free online >calendar with sync to Outlook(TM).-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

Re: Unable to get transformer handler for stylesheets/blah.xsl

2003-06-05 Thread Steven Cummings
I'm posting the test-case now. I've discovered (in only the simple case that you'll 
see), that the simple case of the stylesheet from the sitemap including one other that 
doesn't have its own includes is fine. When the included stylesheet includes yet one 
or more stylesheets of its own, that's when this error shows up.

/S

Joerg Heinicke <[EMAIL PROTECTED]> wrote:

>Sorry, I didn't scroll below the start of the exception trace :)
>
>If you don't have a real error in your stylesheets, it will work with 
>Xalan. xsl:include is probably the reason, it had problems with 
>resolving relative paths. But we thought the problem is already solved 
>with the dev version of Xalan/XSLTC used with Cocoon 2.1m2.dev. Can you 
>provide a minimum test case reproducing the error and add it here: 
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20308?
>
>Regards,
>
>Joerg
>
>Steven Cummings wrote:
>> Joerg,
>> 
>> Yes, in the original message I had attached the stylesheet, which
>> 'd another, which 'd a third stylesheet (I
>> attached all three of them). They are viewable here: 
>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105467465417098&w=2
>>  if your mail client didn't show them.
>> 
>> Anyway, I'll give the xalan transformer a shot and see what happens,
>> thanks for the tip!
>> 
>> /S
>> 
>> Joerg Heinicke <[EMAIL PROTECTED]> wrote:
>> 
>> 
>>> Hello Steven,
>>> 
>>> it's XSLTC who does give so exhaustive messages. Try to use Xalan
>>> for this particular transformation, maybe you get a real error
>>> message.
>>> 
>>> Are you refering external resources from the stylesheet
>>> (xsl:import, xsl:include, document())?
>>> 
>>> Joerg
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Steven Cummings
Columbia, MO
Email: [EMAIL PROTECTED]
AIM:   cummingscs
ICQ:   3330114
MSN:   [EMAIL PROTECTED]


__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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



Re: XSP & LDAP

2003-06-05 Thread Martin Holz
<[EMAIL PROTECTED]> writes:

> When I declare the transformer 
>  src="org.apache.cocoon.transformation.LDAPTransformer"/>
> in the sitemap I get the error "class not found".
> Do I need some special libs? I have tomcat 4.1.24 & cocoon 2.0
...
> Martin Holz wrote:
>> In cocoon-naming-block.jar. 

Forget cocoon-naming-block.jar in cocoon 2.0.
Blocks exist only in the 2.1 branch.

If I remember correctly, the LDAPTransformer was
not included in the binary distribution and
only compiled by ant, when the javax.naming 
classes where in the classpath at compile time.

--
Martin Holz <[EMAIL PROTECTED]>

Softwareentwicklung / Vernetztes Studium - Chemie
FIZ CHEMIE Berlin
Franklinstrasse 11
D-10587 Berlin  




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



Re: error in XSP

2003-06-05 Thread Joerg Heinicke
I don't know any French, but with my English, Latin and German knowledge I 
guess it means something like "requested resource is not available", doesn't it?

Hmm, I would suggest to look into the log files for a more exhaustive error 
message.

Joerg

[EMAIL PROTECTED] wrote:
where is the error in this page???
http://apache.org/xsp";>


aaa



I always get this error :
type Rapport d''état
message 
description :La ressource demandée () n'est pas disponible.

why? everything is right! It worked for 5minutes, and now I can't see it no more!
I know it's not an error in the sitemap, because all other pages work!
--

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


RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
I use cocoon 2.0
the output on the explorer is :
ldap://ldap.innosoft.com(&(objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d
c=comonetrue10owner,givenname,descriptionfalse

The JAVA output is attached


-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 4:36 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted


No.
Can you send me the output of work?
And what the version of cocoon you use?

> doesn't work. Is there anything to add in the cocoon.xconf maybe?
> 
> 
> Try the following:
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> 
> instead of
>xmlns:ldap="http://www.apache.org/2000/LDAP";
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0"; 
>   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> 
> 
> > Yes, that works. now, how can I use it? When I use it like :
> > 
> >   
> >  > src="workflowmanager/documents/{1}.xsp"/>
> > 
> > 
> >   
> >  
> > and in the xsp page I write this sample page (from the apache site).
> And
> > then I just get text as result. The tags aren't interpreted.
> > 
> >  >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> >  xmlns:xsp="http://apache.org/xsp";
> >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > >
> > 
> > 
> > 
> >   
> > ldap://ldap.innosoft.com
> > (&(objectclass=pet)(cn=B*))
> > ou=Pets,dc=Innosoft,dc=com
> > 
> > one
> > true
> > 10
> > owner,givenname,description
> > false
> >   
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 2:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > Check the $COCOON_SRC_DIR/lib/jars.xml
> > for following lines:
> >  
> >   jndi LDAP API
> >   Java API for LDAP works
> >   LDAP Transformer
> >   optional/jndi.jar
> >   http://java.sun.com/products/jndi
> >  
> > 
> > and rebuild the cocoon.
> > 
> > After rebuilding, in the
> >
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> > you find the LDAPTransformer.class and
LDAPTransformer$LDAPQuery.class
> > 
> > > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > > Should I add them? Where can I find them?
> > > 
> > > Check the :
> > > LDAPTransformer.class
> > > LDAPTransformer$LDAPQuery.class
> > > in the your cocoon.jar (org/apache/cocoon/transformation)
> > > 
> > > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > > jndi.jar
> > > > jaas.jar
> > > > ldap.jar
> > > > ldapbp.jar
> > > > ldapsec.jar
> > > > providerutil.jar
> > > > 
> > > > but I doesn't work. Still have the "class not found" error
> > > > 
> > > > > When I declare the transformer 
> > > > >  > > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > > in the sitemap I get the error "class not found".
> > > > > Do I need some special libs? 
> > > > 



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

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



login7_xsp.zip
Description: login7_xsp.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: "No buffer space available"

2003-06-05 Thread Nicolas SANDRI
ok, it works now !
I must think about a good way to join the two SQL request in only one  
now !

thanks a lot.

Nicolas

Le mercredi, 4 juin 2003, à 13:29 Europe/Paris, Geoff Howard a écrit :

You can (and should) use one esql:connection for your entire page.

Geoff

At 04:48 AM 6/4/2003, you wrote:
I don't know esql, but is it useful  to open a connection for each  
row ?

What's happening if you do not open a connection for your second  
request ?

At 19:28 03/06/2003 +0200, you wrote:
Yeah, buffer is full !

I open one connection for every rows, and another connection in each
one :

http://apache.org/xsp";
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  xmlns:esql="http://apache.org/cocoon/SQL/v2";>

Extraction catalogue (c)2003 MediaXtend
jdbc:mysql://localhost/my_dblogpass

SELECT
a.cle,a.refcomplete,a.titreindex,a.soustitre,a.resume,a.nsupports,s.s 
upp ort,a.cab,lcase(a.ref) AS image,l.label,c.publicTTC,a.motscles  
FROM
article AS a LEFT JOIN label AS l ON l.cle=a.label LEFT JOIN codeprix
AS c ON c.cle=a.codeprix LEFT JOIN support AS s ON s.cle=a.support
WHERE a.catalogue=7 AND a.dispo=1 AND a.supprime=0 AND a.parution  
<
'2003-05-31' AND genre=2 AND catalogue=7 ORDER BY a.titreindex,
a.motscles, a.soustitre


 
  
  
  
  
  
  
   
column="support"/>
  
String lbl = ;
lbl = lbl.toLowerCase();
lbl = lbl.replace( ' ' ,'_' );
lbl = lbl.replace( '\'' ,'_' );
  
  
name="href">file:///Scrat/abeille/images/codes-barres/ 
lbl/.eps
:attribute>
  
name="href">file:///Scrat/abeille/images/references/
column="image"/>.tiff

jdbc:mysql://localhost/  
my_dblogpassSELECT ra.article,r.code FROM recompensearticle AS  
ra
LEFT JOIN recompense AS r ON r.cle = ra.recompense WHERE ra.article =
 LIMIT
0,8
   
name="href">file:///Scrat/abeille/images/recompenses/couleurs/  

column="code"/>.eps
  
 








Le mardi, 3 juin 2003, à 16:53 Europe/Paris, Lionel Crine a écrit :

It seems that the buffer is full.

Do you open a connection for every rows ?

At 15:28 03/06/2003 +0200, you wrote:
Hi,

I'm trying to extract rows from my MySQL database and convert it to
an XML file, using Tomcat/Cocoon.
I'm running :
  FreeBSD 5.0R
  Sun JRE 1.3.1 (patchset 8)
  Tomcat 4.1.18
  Cocoon 2.0.4
  MySQL 3.23.54
  MySQL J/Connector 3.0.6
When I start loading my page (a simple XSP/ESQL), I get the normal
XML datas but after a moment download stops and a HTML page is  
added
at end of file. All of my other pages work but this one that  
extract
a lot of rows (more than 4,000) doesn't work.
In the html part, I got an error page with this message :
[...]
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
opening connection to dburl: jdbc:mysql://localhost/my_db: Unable  
to
connect to any hosts due to exception: java.net.SocketException: No
buffer space available
[...]

Any ideas ?

Thanks

Nicolas SANDRI

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



-
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: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko
No.
Can you send me the output of work?
And what the version of cocoon you use?

> doesn't work. Is there anything to add in the cocoon.xconf maybe?
> 
> 
> Try the following:
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>
> 
> instead of
>xmlns:ldap="http://www.apache.org/2000/LDAP";
>   xmlns:xsp="http://apache.org/xsp";
>   xmlns:session="http://apache.org/xsp/session/2.0"; 
>   xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>   xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> 
> 
> > Yes, that works. now, how can I use it? When I use it like :
> > 
> >   
> >  > src="workflowmanager/documents/{1}.xsp"/>
> > 
> > 
> >   
> >  
> > and in the xsp page I write this sample page (from the apache site).
> And
> > then I just get text as result. The tags aren't interpreted.
> > 
> >  >  xmlns:ldap="http://www.apache.org/2000/LDAP";
> >  xmlns:xsp="http://apache.org/xsp";
> >  xmlns:session="http://apache.org/xsp/session/2.0"; 
> >  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
> >  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > >
> > 
> > 
> > 
> >   
> > ldap://ldap.innosoft.com
> > (&(objectclass=pet)(cn=B*))
> > ou=Pets,dc=Innosoft,dc=com
> > 
> > one
> > true
> > 10
> > owner,givenname,description
> > false
> >   
> > 
> > 
> > 
> > 
> > 
> > -Original Message-
> > From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, June 04, 2003 2:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: XSP & LDAP
> > 
> > 
> > Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> > Check the $COCOON_SRC_DIR/lib/jars.xml
> > for following lines:
> >  
> >   jndi LDAP API
> >   Java API for LDAP works
> >   LDAP Transformer
> >   optional/jndi.jar
> >   http://java.sun.com/products/jndi
> >  
> > 
> > and rebuild the cocoon.
> > 
> > After rebuilding, in the
> > $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> > you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> > 
> > > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > > Should I add them? Where can I find them?
> > > 
> > > Check the :
> > > LDAPTransformer.class
> > > LDAPTransformer$LDAPQuery.class
> > > in the your cocoon.jar (org/apache/cocoon/transformation)
> > > 
> > > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > > jndi.jar
> > > > jaas.jar
> > > > ldap.jar
> > > > ldapbp.jar
> > > > ldapsec.jar
> > > > providerutil.jar
> > > > 
> > > > but I doesn't work. Still have the "class not found" error
> > > > 
> > > > > When I declare the transformer 
> > > > >  > > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > > in the sitemap I get the error "class not found".
> > > > > Do I need some special libs? 
> > > > 



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

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



RE: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
doesn't work. Is there anything to add in the cocoon.xconf maybe?

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 4:23 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP -> The tags aren't interpreted


Try the following:

http://apache.org/xsp";
  xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

instead of
http://www.apache.org/2000/LDAP";
  xmlns:xsp="http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0"; 
  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";


> Yes, that works. now, how can I use it? When I use it like :
> 
>   
>  src="workflowmanager/documents/{1}.xsp"/>
> 
> 
>   
>  
> and in the xsp page I write this sample page (from the apache site).
And
> then I just get text as result. The tags aren't interpreted.
> 
>   xmlns:ldap="http://www.apache.org/2000/LDAP";
>  xmlns:xsp="http://apache.org/xsp";
>  xmlns:session="http://apache.org/xsp/session/2.0"; 
>  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> 
> 
>   
> ldap://ldap.innosoft.com
> (&(objectclass=pet)(cn=B*))
> ou=Pets,dc=Innosoft,dc=com
> 
> one
> true
> 10
> owner,givenname,description
> false
>   
> 
> 
> 
> 
> 
> -Original Message-
> From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> Check the $COCOON_SRC_DIR/lib/jars.xml
> for following lines:
>  
>   jndi LDAP API
>   Java API for LDAP works
>   LDAP Transformer
>   optional/jndi.jar
>   http://java.sun.com/products/jndi
>  
> 
> and rebuild the cocoon.
> 
> After rebuilding, in the
> $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> 
> > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > Should I add them? Where can I find them?
> > 
> > Check the :
> > LDAPTransformer.class
> > LDAPTransformer$LDAPQuery.class
> > in the your cocoon.jar (org/apache/cocoon/transformation)
> > 
> > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > jndi.jar
> > > jaas.jar
> > > ldap.jar
> > > ldapbp.jar
> > > ldapsec.jar
> > > providerutil.jar
> > > 
> > > but I doesn't work. Still have the "class not found" error
> > > 
> > > > When I declare the transformer 
> > > >  > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > in the sitemap I get the error "class not found".
> > > > Do I need some special libs? 
> > > 
> > > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > > 
> > > >I have tomcat 4.1.24 & cocoon 2.0
> > > > 
> > > > Thanks
> > > > 
> > > > -Original Message-
> > > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: XSP & LDAP
> > > > 
> > > > 
> > > > <[EMAIL PROTECTED]> writes:
> > > > 
> > > > > Hello,
> > > > > I would like to get some information about how to use the LDAP
> > > > > transformer (first of all, in wich library the classes are),
> > > > 
> > > > In cocoon-naming-block.jar. 
> > > > 
> > > 
> > 
> > -- 
> >  
> > Best regards,
> > Yury Mikhienko.
> > IT engineer, ZAO "Mobicom-Kavkaz"
> > 
> >
-
> > 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]
> 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


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

-
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: [SUMMARY] RE: error in XSP --> Tomcat4.1.24 has CATASTROPHIC cache system!!!!

2003-06-05 Thread Bertrand Delacretaz
Le Mercredi, 4 juin 2003, à 16:17 Europe/Zurich, 
<[EMAIL PROTECTED]> a écrit :

I really have BIG problems with cache! I...
I don't know about your particular problem, but have you tried to use 
the cocoon logs to analyze what's happening?
The logs usually help a lot if you take some time to learn to interpret 
them.

The best way is to use LogFactor5 to watch the logs in real time, see 
http://wiki.cocoondev.org/Wiki.jsp?page=LogFactorFiveHowto

-Bertrand

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


Re: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Yury Mikhienko
Try the following:

http://apache.org/xsp";
  xmlns:ldap="http://apache.org/cocoon/LDAP/1.0";>

instead of
http://www.apache.org/2000/LDAP";
  xmlns:xsp="http://apache.org/xsp";
  xmlns:session="http://apache.org/xsp/session/2.0"; 
  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
  xmlns:xsp-request="http://apache.org/xsp/request/2.0";


> Yes, that works. now, how can I use it? When I use it like :
> 
>   
>  src="workflowmanager/documents/{1}.xsp"/>
> 
> 
>   
>  
> and in the xsp page I write this sample page (from the apache site). And
> then I just get text as result. The tags aren't interpreted.
> 
>   xmlns:ldap="http://www.apache.org/2000/LDAP";
>  xmlns:xsp="http://apache.org/xsp";
>  xmlns:session="http://apache.org/xsp/session/2.0"; 
>  xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
>  xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> >
> 
> 
> 
>   
> ldap://ldap.innosoft.com
> (&(objectclass=pet)(cn=B*))
> ou=Pets,dc=Innosoft,dc=com
> 
> one
> true
> 10
> owner,givenname,description
> false
>   
> 
> 
> 
> 
> 
> -Original Message-
> From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 04, 2003 2:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XSP & LDAP
> 
> 
> Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
> Check the $COCOON_SRC_DIR/lib/jars.xml
> for following lines:
>  
>   jndi LDAP API
>   Java API for LDAP works
>   LDAP Transformer
>   optional/jndi.jar
>   http://java.sun.com/products/jndi
>  
> 
> and rebuild the cocoon.
> 
> After rebuilding, in the
> $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
> you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class
> 
> > there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> > Should I add them? Where can I find them?
> > 
> > Check the :
> > LDAPTransformer.class
> > LDAPTransformer$LDAPQuery.class
> > in the your cocoon.jar (org/apache/cocoon/transformation)
> > 
> > > I have them, into the cocoon/web-inf/lib I have these libs :
> > > jndi.jar
> > > jaas.jar
> > > ldap.jar
> > > ldapbp.jar
> > > ldapsec.jar
> > > providerutil.jar
> > > 
> > > but I doesn't work. Still have the "class not found" error
> > > 
> > > > When I declare the transformer 
> > > >  > > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > > in the sitemap I get the error "class not found".
> > > > Do I need some special libs? 
> > > 
> > > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > > 
> > > >I have tomcat 4.1.24 & cocoon 2.0
> > > > 
> > > > Thanks
> > > > 
> > > > -Original Message-
> > > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: XSP & LDAP
> > > > 
> > > > 
> > > > <[EMAIL PROTECTED]> writes:
> > > > 
> > > > > Hello,
> > > > > I would like to get some information about how to use the LDAP
> > > > > transformer (first of all, in wich library the classes are),
> > > > 
> > > > In cocoon-naming-block.jar. 
> > > > 
> > > 
> > 
> > -- 
> >  
> > Best regards,
> > Yury Mikhienko.
> > IT engineer, ZAO "Mobicom-Kavkaz"
> > 
> > -
> > 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]
> 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


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

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



[SUMMARY] RE: error in XSP --> Tomcat4.1.24 has CATASTROPHIC cache system!!!!

2003-06-05 Thread Maxime.Gheysen
I really have BIG problems with cache! I call a page login.xsp, with an error in it, 
then I receive the error. I correct the error and I can't, by anyway, update the page! 
I have to rename the file so that I can see the changes. Then I delete the file, and 
the page still dispays! I can't, by anyway, erase this page!
How can I erase this cache! I don't want NO cache while I develop. I tried to erase 
the tomcat work directory, IE's cache, then with OPERA, then I restarded all my 
computers, but nothing works. And note that in the cocoon.xconf I have 
 


Thank you very much for any help because I can't work this way!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: error in XSP


where is the error in this page???
http://apache.org/xsp";>


aaa




I always get this error :
type Rapport d''état
message 
description :La ressource demandée () n'est pas disponible.


why? everything is right! It worked for 5minutes, and now I can't see it no more!
I know it's not an error in the sitemap, because all other pages work!

-
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: XSP & LDAP -> The tags aren't interpreted

2003-06-05 Thread Maxime.Gheysen
Yes, that works. now, how can I use it? When I use it like :

  



  
 
and in the xsp page I write this sample page (from the apache site). And
then I just get text as result. The tags aren't interpreted.

http://www.apache.org/2000/LDAP";
 xmlns:xsp="http://apache.org/xsp";
 xmlns:session="http://apache.org/xsp/session/2.0"; 
 xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
 xmlns:xsp-request="http://apache.org/xsp/request/2.0";
>



  
ldap://ldap.innosoft.com
(&(objectclass=pet)(cn=B*))
ou=Pets,dc=Innosoft,dc=com

one
true
10
owner,givenname,description
false
  





-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: XSP & LDAP


Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional
Check the $COCOON_SRC_DIR/lib/jars.xml
for following lines:
 
  jndi LDAP API
  Java API for LDAP works
  LDAP Transformer
  optional/jndi.jar
  http://java.sun.com/products/jndi
 

and rebuild the cocoon.

After rebuilding, in the
$COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation
you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class

> there aren't in the cocoon.jar (org/apache/cocoon/transformation)
> Should I add them? Where can I find them?
> 
> Check the :
> LDAPTransformer.class
> LDAPTransformer$LDAPQuery.class
> in the your cocoon.jar (org/apache/cocoon/transformation)
> 
> > I have them, into the cocoon/web-inf/lib I have these libs :
> > jndi.jar
> > jaas.jar
> > ldap.jar
> > ldapbp.jar
> > ldapsec.jar
> > providerutil.jar
> > 
> > but I doesn't work. Still have the "class not found" error
> > 
> > > When I declare the transformer 
> > >  > > src="org.apache.cocoon.transformation.LDAPTransformer"/>
> > > in the sitemap I get the error "class not found".
> > > Do I need some special libs? 
> > 
> > You must have the jndi.jar or use the J2SDK 1.4.1 family
> > 
> > >I have tomcat 4.1.24 & cocoon 2.0
> > > 
> > > Thanks
> > > 
> > > -Original Message-
> > > From: Martin Holz [mailto:[EMAIL PROTECTED] 
> > > Sent: Wednesday, June 04, 2003 11:15 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: XSP & LDAP
> > > 
> > > 
> > > <[EMAIL PROTECTED]> writes:
> > > 
> > > > Hello,
> > > > I would like to get some information about how to use the LDAP
> > > > transformer (first of all, in wich library the classes are),
> > > 
> > > In cocoon-naming-block.jar. 
> > > 
> > 
> 
> -- 
>  
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
> 
> -
> 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]


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

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



error in XSP

2003-06-05 Thread Maxime.Gheysen
where is the error in this page???
http://apache.org/xsp";>


aaa




I always get this error :
type Rapport d''état
message 
description :La ressource demandée () n'est pas disponible.


why? everything is right! It worked for 5minutes, and now I can't see it no more!
I know it's not an error in the sitemap, because all other pages work!

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



Re: commandline executes matching pipeline three times

2003-06-05 Thread Steven Noels
On 4/06/2003 15:48 Steven Noels wrote:

bug == feature ;-)

binnen Cocoon 2.1 wordt er momenteel flink getimmerd aan de CLI, als ik 
me goed herinner loopt men daar maar twéé keer over dezelfde pijplijn.
bzt - wrong To: address

Dutch-speaking people: stop laughing ;-)


--
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog athttp://blogs.cocoondev.org/stevenn/
stevenn at outerthought.orgstevenn at apache.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]