Cocoon not recognizing Kannel headers

2002-05-02 Thread snodx

Hi all,
  Is there anyway to find out what
  headers an agent appends to its requests
  sent to cocoon?

   I have Cocoon 1.8.2 configured
   to run with Apache 1.3.19

   I have the following lines added in
   cocoon.properties

   browser.1 = wap=Nokia
   browser.2 = wap=UP
   browser.3 = wap=R380

   which means that if a request comes from either
   a Nokia or UPSDK or Ericsson R380 then Cocoon
   is to recognize it as a WAP request. For WAP
   requests cocoon loads a seperate WAP-content
   generating Stylesheet.

FOR WAP
| NOKIA|__  REQUESTS  __
| UPSDK| REQUEST FOR| APACHE |WAP CONTENT | COCOON |
| ERICSSON R380|__\\|  HTTP  |__//|   XML  |
| .|  //| SERVER |  \\| ENGINE |
| .|  XML FILE  ||  FOR HTTP  ||
|__||   REQUESTS
|   HTML CONTENT
|
|
   REQUEST FOR  |
XML FILE   /|\
   /|\
|
|
|
|__
| HTTP|
| BROWSER |
| NETSCAPE|
|   OR|
|   IE|
|_|


   The dots below Ericsson r380 are for other
   phone models which may be added in
   cocoon.properties file for which cocoon
   is to return WAP content. For requests coming
   from HTTP agents such as Netscape or IE cocoon
   loads a HTML content-generating stylesheet.

   It is very time-consuming to add each and every
   phone model in the cocoon.properties and then
   restart Apache each time. So I decided to install
   Kannel which is supposedly a WAP gateway. My plan
   is to write one line in the cocoon.properties file

   browser.1 = wap=kannel

   and then tell all my clients to connect to
   my site using the Kannel gateway.



| CLIENT's |
| NOKIA|
| UPSDK|
| ERICSSON R380|
| .|
| .|
|__|
|
|  REQUEST FOR
   \|/ XML FILE
   \|/
|
|_FOR WAP
| KANNEL |__  REQUESTS  __
|   WAP  | REQUEST FOR| APACHE |WAP CONTENT | COCOON |
| GATEWAY|__\\|  HTTP  |__//|   XML  |
||  //| SERVER |  \\| ENGINE |
XML FILE  ||  FOR HTTP  ||
  |   REQUESTS
  |   HTML CONTENT
  |
  |
 REQUEST FOR  |
  XML FILE   /|\
 /|\
  |
  |
  |
  |__
  | HTTP|
  | BROWSER |
  | NETSCAPE|
  |   OR|
  |   IE|
  |_|

   I tried to add the header X-WAP-Gateway: which
   I believe kannel appends to any of its request:
   in cocoon.properties but cocoon did not recognize
   this header and refused to deliver WAP content

   browser.1=wap=X-WAP-Gateway

   Next I tried:

   browser.1=wap=Kannel/1.0.3 (I have this
   version installed)

   but again the same result. cocoon refused
   to recognize the headers.

   Has anyone else tried this Cocoon-Kannel
   setup and came across this problem?

   Please let me know of any suggestions
   regarding this.

   Sorry for the long-winded story here.

   Eagerly awaiting a reply.

   I have posted this question here
   as well:

http://www.mail-archive.com/users@kannel.3glab.org/msg00907.html

   Thanks in advance.
 SNODX

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Cocoon and SOAP

2002-05-02 Thread Graaf, Edgar de (fin)

Chitharanjan,

Try:
http://www.w3schools.com/soap/default.asp

Here is a example of without parameters.
Of course you have to adapt it to your situation.

?xml version=1.0 encoding=ISO-8859-1?
!--
 Author: Edgar de Graaf, [EMAIL PROTECTED]
 Date: May 2, 2002
--
xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:xsp-request=http://apache.org/xsp/request/2.0;
  xmlns:soap=http://apache.org/xsp/soap/3.0;
  
  page
  soap:call url=http://localhost:8080/apache-soap/servlet/rpcrouter;
  ns1:getAllProjects xmlns:ns1=urn:com/ordina/bugdb/Project
soap:enc/
  /ns1:getAllProjects
  /soap:call
 /page
/xsp:page

-Oorspronkelijk bericht-
Van: Chitharanjan Das [mailto:[EMAIL PROTECTED]]
Verzonden: woensdag 1 mei 2002 19:28
Aan: [EMAIL PROTECTED]
Onderwerp: Cocoon and SOAP


Hello,
I had a brief stint with the XSP which invokes Google Search via
SOAP.
Thanks to the author
 
Is there any documentation to support the SOAP logic sheet..
I was wondering how to invoke a remote method with no parameters.
Any link to documentation regarding the syntax will be deeply appreciated...
 
Regde,
Chiths
 

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: wysiwyg - development tool

2002-05-02 Thread Alexandru COSTIN

Hello,
We are working on something similar for Krysalis, a PHP XML/XSL
application framework.
We are considering porting the IDE for Krysalis, named KrysalIDE, to
Cocoon2.

Your requests are welcome, we are eager to find out what would you need
from a visual editor.

For more details, visit http://www.interakt.ro/products/KrysalIDE/

Alexandru
On Tue, 2002-04-30 at 17:09, [EMAIL PROTECTED] wrote:
 is ther any wysiwyg - development tool for developing sidemaps or webapps with 
cocoon ?
 
 
 Versendet durch Jet2Web Internet - Webmail (webmail.jet2web.net)
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
---
Alexandru COSTIN 
Product Manager
http://www.interakt.ro/ 
+401 411 2610 


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon generated Java throwing SQLException

2002-05-02 Thread Christian Haul

On 01.May.2002 -- 09:54 PM, Zack Angelo wrote:
 Hey,
 
 I'm having some really peculiar behavior with the ESQL logicsheet. I
 have the following XSP (in my own logicsheet):
 
 esql:query select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID/esql:query
 
 The corresponding Java seems to be generating just fine: 
 
 _esql_query = new EsqlQuery( _esql_connection, String.valueOf(select
 ID,count(ID) as count from Users where LoginUser='zack' and
 Password='password' group by ID) );
 
 But, upon execution, I get this exception:
 
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
 executing statement: select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID:
 java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
 'where clause'
 
 For some reason it's saying that one of the columns doesn't exist...I
 have no idea why. I've also copied and pasted the SQL query from the
 Java into the mysql client, and it works fine. Any ideas? This just
 seems really strange to me. Thanks in advance.

It seems to be a problem with the mySQL jdbc driver. I believe we had
another user reporting similar problems with mySQL. I *think* a solution
was using only lower case coulmn names. According to the SQL standard,
case does not matter because everything is converted to uppercase internally,
except for strings within quotes.

If the table belongs to another user / schema, you might need to qualify it
with the user name.

Please check with a small java program that the driver is OK.

HTH.

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon not recognizing Kannel headers

2002-05-02 Thread Johannes Koch

[EMAIL PROTECTED] schrieb:
It is very time-consuming to add each and every
phone model in the cocoon.properties and then
restart Apache each time. So I decided to install
Kannel which is supposedly a WAP gateway. My plan
is to write one line in the cocoon.properties file
 
browser.1 = wap=kannel
 
and then tell all my clients to connect to
my site using the Kannel gateway.
 
I tried to add the header X-WAP-Gateway: which
I believe kannel appends to any of its request:
in cocoon.properties but cocoon did not recognize
this header and refused to deliver WAP content
 
browser.1=wap=X-WAP-Gateway
 
Next I tried:
 
browser.1=wap=Kannel/1.0.3 (I have this
version installed)

Cocoon 1.8.2 only uses the User-Agent header for mapping clients to
device client classes. As the Kannel doesn't add something to the
client's User-Agent header, you can't recognize the Kannel.
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10245 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon not recognizing Kannel headers

2002-05-02 Thread snodx

Johannes Koch wrote

Cocoon 1.8.2 only uses the User-Agent header for mapping clients to
device client classes. As the Kannel doesn't add something to the
client's User-Agent header, you can't recognize the Kannel

Thanks for the input.

I have to apologize but I did'nt understand.

What's this User-agent header? And does it
mean that Nokia, UPSDK and R380 send such
User-Agent headers (whatever it means)?

In short what I want is just as
cocoon is able to recognize that the
request is coming from Nokia, UPSDK
or Ericsson R380, cocoon should also
be able to recognize that the request
is coming from Kannel. I can make- if
so desired- changes in the coding of
both Cocoon and Kannel (I have the
source code of both available).

So what modifications should I make
on either side (Kannel or Cocoon)
including any modifications in coding
(if necessary) to make Cocoon
recognize that the request is coming
from Kannel

Awaiting a reply.

Thanks in advance.
  SNODX

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Problem while extending the cocoon servlet

2002-05-02 Thread manish

 Hello,
I want to extend the cocoon servlet and want to initialize some variable
in init of servlet. How can i do thisI also don't find any example to
handle this issue, please help me...



Regards,

Manish




-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Request to external XML server in pipeline

2002-05-02 Thread Ewing, Bryce

Hi,

Just started working with Cocoon and I have a question in regards to reading
XML content from a XML server probably within a pipeline.  What I have at
present is a backend XML server that given a XML formatted packet does some
processing, including database access, legacy etc. then replies with an
answer XML packet.  This is totally outside of Cocoon.

What I have inside Cocoon at present is an html form that has the request
parameters that would make up the inwards XML packet.  I have a pipeline
that has a request generator, then a xslt transformation to get the XML into
the required format.  What I would like to do is post this packet to the XML
server, with the reply packet being available to the pipeline, maybe a
transformer that changes the input XML to the output via the post.  Then
process this reply XML packet to create the next HTML page.

If anyone has any help on this, or can think of a better way this could be
performed your help would be greatly appreciated.

Cheers
Bryce

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Request to external XML server in pipeline

2002-05-02 Thread Matthew Langham

Hi Bryce,

here's one way of doing this:

pipeline
reguest generator
  stylesheet - builds cinclude statements with the params
  cinclude transformer
  stylesheet for output
/pipeline
So you use the cinclude transformer to fetch the external data. Check out
the cinclude documentation for more details.

Matthew

--
Open Source Group   sunShine - Lighting up e:Business
=
Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
   Weblogging at: http://www.need-a-cake.com
 Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
=



-Original Message-
From: Ewing, Bryce [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:27 AM
To: '[EMAIL PROTECTED]'
Subject: Request to external XML server in pipeline


Hi,

Just started working with Cocoon and I have a question in regards to reading
XML content from a XML server probably within a pipeline.  What I have at
present is a backend XML server that given a XML formatted packet does some
processing, including database access, legacy etc. then replies with an
answer XML packet.  This is totally outside of Cocoon.

What I have inside Cocoon at present is an html form that has the request
parameters that would make up the inwards XML packet.  I have a pipeline
that has a request generator, then a xslt transformation to get the XML into
the required format.  What I would like to do is post this packet to the XML
server, with the reply packet being available to the pipeline, maybe a
transformer that changes the input XML to the output via the post.  Then
process this reply XML packet to create the next HTML page.

If anyone has any help on this, or can think of a better way this could be
performed your help would be greatly appreciated.

Cheers
Bryce

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Request to external XML server in pipeline

2002-05-02 Thread Carsten Ziegeler

In the case of a POST, you can use the session transformer (only available
in the latest CVS) instead of the cinclude transformer:

 pipeline
reguest generator
   stylesheet - builds cinclude statements with the params
   cinclude transformer
   stylesheet for output
 /pipeline

The session transformer is able to use post for HTTP requests. The following
XML should get something from http://itsunshine/test by using POST:

data xmlns:session=http://ocoon.apache.org/session/1.0;
  session:include
  session:connection type=uri
  !-- THE URI --
  session:targethttp://itsunshine/test/session:target

  !-- Setting POST --
  session:config
session:param
  session:namemethod/session:name
  session:valuePOST/session:value
  /session:param
   /session:config

   !-- Setting parameters --
   session:params
 session:param
  session:namemessage/session:name
  session:valueHi there/session:value
/session:param
  /session:params
  /session:connection
   /session:include
/data

But I must confess that I'm not sure if this works with the lastest CVS,
as we changed the source resolving - I will have a look at it asap.

HTH
Carsten

 -Original Message-
 From: Matthew Langham [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 02, 2002 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Request to external XML server in pipeline


 Hi Bryce,

 here's one way of doing this:

 pipeline
   reguest generator
   stylesheet - builds cinclude statements with the params
   cinclude transformer
   stylesheet for output
 /pipeline
 So you use the cinclude transformer to fetch the external data. Check out
 the cinclude documentation for more details.

 Matthew

 --
 Open Source Group   sunShine - Lighting up e:Business
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.com
  Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352
 =



 -Original Message-
 From: Ewing, Bryce [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 02, 2002 11:27 AM
 To: '[EMAIL PROTECTED]'
 Subject: Request to external XML server in pipeline


 Hi,

 Just started working with Cocoon and I have a question in regards
 to reading
 XML content from a XML server probably within a pipeline.  What I have at
 present is a backend XML server that given a XML formatted packet
 does some
 processing, including database access, legacy etc. then replies with an
 answer XML packet.  This is totally outside of Cocoon.

 What I have inside Cocoon at present is an html form that has the request
 parameters that would make up the inwards XML packet.  I have a pipeline
 that has a request generator, then a xslt transformation to get
 the XML into
 the required format.  What I would like to do is post this packet
 to the XML
 server, with the reply packet being available to the pipeline, maybe a
 transformer that changes the input XML to the output via the post.  Then
 process this reply XML packet to create the next HTML page.

 If anyone has any help on this, or can think of a better way this could be
 performed your help would be greatly appreciated.

 Cheers
 Bryce

 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




cann't run sql examples

2002-05-02 Thread Olivier GUCKERT

Hello all,

I have a problem to run example cocoon with SQL database.
In the : http://localhost:8080/cocoon/welcome page, if i try the simple
SQL example, i become a white page. If i uncomment the execute-query in
the sql-page-xml, i botain a html page (without the data).

When i click on the ESQL example, it works fine : so i think my
database connexion is well.

What's wrong ?

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Multiple Pipelines Advantages?

2002-05-02 Thread Vadim Gritsenko

internal-only=true


PS This one was asked several times already... FAQ?

Vadim

 From: David Trammell [mailto:[EMAIL PROTECTED]]
 
 I was wondering what the advantages were for using multiple pipelines
in
 a sitemap.  It looks like being able to have a different error page is
 one, are there others?
 
 David


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon generated Java throwing SQLException

2002-05-02 Thread Zack Angelo

On 5/2/02 2:26 AM, Christian Haul [EMAIL PROTECTED]
wrote:

 On 01.May.2002 -- 09:54 PM, Zack Angelo wrote:
 Hey,
 
 I'm having some really peculiar behavior with the ESQL logicsheet. I
 have the following XSP (in my own logicsheet):
 
 esql:query select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID/esql:query
 
 The corresponding Java seems to be generating just fine:
 
 _esql_query = new EsqlQuery( _esql_connection, String.valueOf(select
 ID,count(ID) as count from Users where LoginUser='zack' and
 Password='password' group by ID) );
 
 But, upon execution, I get this exception:
 
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
 executing statement: select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID:
 java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
 'where clause'
 
 For some reason it's saying that one of the columns doesn't exist...I
 have no idea why. I've also copied and pasted the SQL query from the
 Java into the mysql client, and it works fine. Any ideas? This just
 seems really strange to me. Thanks in advance.
 
 It seems to be a problem with the mySQL jdbc driver. I believe we had
 another user reporting similar problems with mySQL. I *think* a solution
 was using only lower case coulmn names. According to the SQL standard,
 case does not matter because everything is converted to uppercase internally,
 except for strings within quotes.
 
 If the table belongs to another user / schema, you might need to qualify it
 with the user name.
 
 Please check with a small java program that the driver is OK.
 
 HTH.
 
 Chris.

Chris, 

Yeah, I've written entire applications with the mm mySQL driver before. I'm
pretty certain it works. The lower-case solution also comes off a little
strange because I've written a small XSP script (the one you helped me with
before) and it worked great (also had capitalized column names).

I also tried changing the user to root in the esql connection pool, still no
good.  Thanks for the input.

- Zack



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Cocoon generated Java throwing SQLException

2002-05-02 Thread Zack Angelo

Hmm, well, I don't think there are problems with my XSP syntax because the
Java seems to be generating correctly, but I guess you're right. It could be
something obscure. So here it is:


?xml version=1.0?
xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:xsp=http://apache.org/xsp;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
xmlns:xsp-session=http://apache.org/session/2.0;
xmlns:malin-auth=http://nostromo.com/malin-auth;
version=1.0

xsl:template match=xsp:page
  xsl:copy
xsl:apply-templates select=@*/
xsl:apply-templates/
  /xsl:copy
/xsl:template

xsl:template match=malin-auth:authenticate
xsp:logic
String userLogin = xsl:value-of select=login/;
String userPass = xsl:value-of select=password/;
/xsp:logic
esql:connection
esql:poolmySql/esql:pool
esql:execute-query
esql:query
select ID,count(ID) as count from Users where LoginUser='zack'
and Password='password' group by ID
/esql:query
esql:results
esql:row-results
xsp:logic
int rescount = esql:get-int
column=count/;
int userID = 0;
if (rescount  0)
{
userID = esql:get-int
column=ID/;
}
/xsp:logic
xsp-session:set-attribute
name=malin-uidxsp:expruserID/xsp:expr/xsp-session:set-attribute
/esql:row-results
  /esql:results
/esql:execute-query
  /esql:connection
/xsl:template
   
xsl:template match=malin-auth:get-userid
   xsp-session:get-attribute name=malin-uid/
/xsl:template
   
xsl:template match=@*|node() priority=-1
 xsl:copy
   xsl:apply-templates select=@*|node()/
 /xsl:copy
/xsl:template

/xsl:stylesheet  



On 5/2/02 2:12 AM, Graaf, Edgar de (fin) [EMAIL PROTECTED] wrote:

 Zack,
 
 Please provide the whole XSP.
 
 Regards,
 
 Edgar
 
 -Oorspronkelijk bericht-
 Van: Zack Angelo [mailto:[EMAIL PROTECTED]]
 Verzonden: donderdag 2 mei 2002 4:55
 Aan: [EMAIL PROTECTED]
 Onderwerp: Cocoon generated Java throwing SQLException
 
 
 Hey,
 
 I'm having some really peculiar behavior with the ESQL logicsheet. I
 have the following XSP (in my own logicsheet):
 
 esql:query select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID/esql:query
 
 The corresponding Java seems to be generating just fine:
 
 _esql_query = new EsqlQuery( _esql_connection, String.valueOf(select
 ID,count(ID) as count from Users where LoginUser='zack' and
 Password='password' group by ID) );
 
 But, upon execution, I get this exception:
 
 org.apache.cocoon.ProcessingException: Exception in
 ServerPagesGenerator.generate(): java.lang.RuntimeException: Error
 executing statement: select ID,count(ID) as count from Users where
 LoginUser='zack' and Password='password' group by ID:
 java.sql.SQLException: Column not found: Unknown column 'LoginUser' in
 'where clause'
 
 For some reason it's saying that one of the columns doesn't exist...I
 have no idea why. I've also copied and pasted the SQL query from the
 Java into the mysql client, and it works fine. Any ideas? This just
 seems really strange to me. Thanks in advance.
 
 -Zack Angelo
 Nostromo Corporation
 
 
 
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Request to external XML server in pipeline

2002-05-02 Thread Zack Angelo

Bryce,

On a side note, it sounds like you may also benefit from the use of SOAP,
have you checked it out yet?

-Zack

On 5/2/02 4:27 AM, Ewing, Bryce [EMAIL PROTECTED] wrote:

 Hi,
 
 Just started working with Cocoon and I have a question in regards to reading
 XML content from a XML server probably within a pipeline.  What I have at
 present is a backend XML server that given a XML formatted packet does some
 processing, including database access, legacy etc. then replies with an
 answer XML packet.  This is totally outside of Cocoon.
 
 What I have inside Cocoon at present is an html form that has the request
 parameters that would make up the inwards XML packet.  I have a pipeline
 that has a request generator, then a xslt transformation to get the XML into
 the required format.  What I would like to do is post this packet to the XML
 server, with the reply packet being available to the pipeline, maybe a
 transformer that changes the input XML to the output via the post.  Then
 process this reply XML packet to create the next HTML page.
 
 If anyone has any help on this, or can think of a better way this could be
 performed your help would be greatly appreciated.
 
 Cheers
 Bryce
 
 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




i18n throws exception if locale does not match exactly

2002-05-02 Thread Volker Schneider

Hi colleagues,

when my browser is using the locale configuration en-gb and I have a
i18n-catalog for lang=en it works fine, but there is an error exception
reported in the log, because there is a file not found exception coming up
(messages_en_gb was not found). I think there is no need to have an error
being reported. No web application supports all possible languages. If an
arabian user wants to use the site, he will get the fallback (en for
example), but that's no error.

Please think about changing this, maybe it could be a warning, but if he
have thousands of users with a locale en_us uses our site and we only
support en or thousands of users uses the fallback locale, logging the
stack trace will reduce perfomance.

Best regards
- Volker -


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




error on Mac OS X + Tomcat 4.0.1 + Cocoon 2.0.2

2002-05-02 Thread Noah Mittman

I got this error when first running after the install (trying to 
get /cocoon/):

type fatal
message Error compiling sitemap
description org.apache.cocoon.ProcessingException: Error compiling 
sitemap: java.lang.NoSuchFieldError: generators

FYI The log contained this (I don't know if it's relevant but it 
seems important):

ERROR   (2002-05-02) 13:29.26:860   
[sitemap.generator.velocity](/cocoon/) 
HttpProcessor[8080][4]/VelocityGenerator: ResourceManager : unable 
to find resource 'VM_global_library.vm' in any resource loader.

Anyone know what that's about?

This was a config that supported a perfectly fine Cocoon 2.0.1... 
All I did was drop in the new .war...


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Never Mind (Re: error on Mac OS X + Tomcat 4.0.1 + Cocoon 2.0.2)

2002-05-02 Thread Noah Mittman

Never mind... I finally found the thread in the list-archive on 
MARC that said to delete the tomcat/work directory and restart, 
which solved the problem.

Sorry for the repeat.

On Thursday, May 2, 2002, at 01:43  PM, Noah Mittman wrote:

 I got this error when first running after the install (trying to 
 get /cocoon/):

 type fatal
 message Error compiling sitemap
 description org.apache.cocoon.ProcessingException: Error compiling 
 sitemap: java.lang.NoSuchFieldError: generators


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: Is there any performance monitoring tool?

2002-05-02 Thread Berin Loritsch

Steven Punte wrote:
 Dear Cocoon User Group:
 
   Does anyone know if there is any performance
   monitoring tool built into Cocoon2?  Something
   that would report the number of ms 
   consumed by each component for a particular
   request.
 
   Thanks in advance:

Not yet.

Excalibur has a new Instrumentation package that will be
good for this and other jobs.  Unfortunately, it is not yet
integrated into Cocoon.

The documenation is not up on the site yet :(
But hopefully soon.


-- 

They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
 - Benjamin Franklin


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




RE: Is there any performance monitoring tool?

2002-05-02 Thread Lai, Harry

Hi Steven,

I don't know if this will give you the level of detail you're looking for,
but Cocoon 2 does have a basic profiler built in that tells you how many
milliseconds each pipeline component takes.  Here's a post from Vadim that
explains how to use it:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg07748.html

Harry


-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Is there any performance monitoring tool?


Steven Punte wrote:
 Dear Cocoon User Group:
 
   Does anyone know if there is any performance
   monitoring tool built into Cocoon2?  Something
   that would report the number of ms 
   consumed by each component for a particular
   request.
 
   Thanks in advance:

Not yet.

Excalibur has a new Instrumentation package that will be
good for this and other jobs.  Unfortunately, it is not yet
integrated into Cocoon.

The documenation is not up on the site yet :(
But hopefully soon.


-- 

They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
 - Benjamin Franklin


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




HOWTO install cocoon under JDK 1.4

2002-05-02 Thread Robert J. Lebowitz

 I've noted how often this question comes up.  I'm probably just asking for
trouble by writing this follow-up HOWTO (someone will highlight something
that I forgot to mention), but I thought it might keep poor Vadim's
responses to a minimum (assuming my information is accurate).

My installation environment consists of a Redhat 7.2 Linux server, with all
the latest upgrade packages installed.  I'm running a headless server,
implying that I don't require the XServer or the Xvfb to render SVGs, PDFs,
and anything else that employs the batik classes used in Cocoon 2.

Here are the various Apache and Sun RPMs and packages I've installed:

Tomcat 4.0.3 RPM (I decided it was too much work to build the sources
myself).
Cocoon 2.0.2 distribution (this I compiled myself).
Ant 1.4.1 (I compiled the distribution myself)
Batik 1.5 beta distribution (I compiled this myself)
Sun J2SDK 1.4.0 RPM

I like using the tomcat RPMs because they provide all the necessary startup
scripts.  With very little modification you can usually start Tomcat up.
You also don't have to go and collect all those jar files needed for Tomcat
yourself.  The only major things I had to do were:

1.  To add the bin directory of the J2SDK to my PATH variable.
2.  Set the JAVA_HOME environmental variable to the correct location for my
system.  This meant editing the tomcat4.conf file that is part of the RPM
distribution since it defaults to the IBM JDK 1.3 JVM.
3.  Edited the /usr/sbin/dtomcat4 script, specifying the option
-Djava.awt.headless=true  when tomcat4 starts up, so that I can avoid
using the XServer or Xvfb.

When compiling the batik 1.5 package, I ran ant and specified the all-jar
option so that it would build the batik-all.jar file.

When compiling cocoon 2.0, I built the cocoon.war file, installed it in an
appropriate location under my tomcat webapps subdirectory, and unjarred it.
I then removed the xalan, xerces and xml-apis jar files, as well as the xt
and batik files.

Presumably because JDK 1.4 includes versions of xerces, xalan and the jaxp
stuff, you don't need any of these to get cocoon to run with this version.
I've seen references to removing xt in previous notes, besides, I see it as
just an extra jar (no offense to James Clark) that can be eliminated.

I'm aware that there are newer versions of xerces, xalan, etc.  than those
included in the jdk 1.4.  I believe that the new standard mechanism for
substituting alternate jaxp implementations is to specify an endorsed
class path when you are running a java application (correct me if I'm wrong
about this, I haven't tried it).  Presumably you could override the default
classes following this approach if you wanted to do this.

In the WEB-INF subdirectory where my unjarred cocoon.war appears, I edited
the web.xml file.  I added the following like under the extra-classpath
parameter:  your-path-to/batik.jar .  I made sure that I copied my
batik-all.jar to that same location.

I made a few minor changes to the server.xml file in the conf subdirectory
of my tomcat installation with regards to host names, and the context and
paths where to find the cocoon installation.  These will obviously vary with
the user.  Then I started up tomcat and lo and behold, it actually ran just
fine.

I didn't test every single example since my particular uses for Cocoon are
rather mundane (document delivery, basically) but I think most of them are
working just fine.

I hope I haven't left anything vital out.  You should be able to compile
your own apache packages using Ant, I found that I just had to be careful to
set and export my JAVA_HOME and ANT_HOME environment variables to get
everything work.  About the only thing I always seem to have problems with
is generating the javadocs for these packages... I get a lot of error
messages, but since the docs are usually available on-line, I don't worry
about it too much.

Good luck...

Rob


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




SQLTransformer returning empty XML tags

2002-05-02 Thread Fabricio Chalub

Hello,

I'm using SQLTransformer to convert this simple piece of SQL:

page xmlns:sql=http://apache.org/cocoon/SQL/2.0;
execute-query xmlns=http://apache.org/cocoon/SQL/2.0;
  query
SELECT name
FROM listing
  /query
/execute-query
/page

into XML file using this code from the DocBook XSLT that prints all unknown
tags in red:

xsl:template match=*
  font color=blue
xsl:textlt;/xsl:text
xsl:value-of select=name(.)/
xsl:textgt;/xsl:text
xsl:apply-templates/
xsl:textlt;//xsl:text
xsl:value-of select=name(.)/
xsl:textgt;/xsl:text
  /font
/xsl:template

(the query comes from an Oracle data source)

The problem is that, instead of getting an output like:

- - - - - - - - - -

rowset nrofrows=2 xmlns=http://apache.org/cocoon/SQL/2.0;
row
nameProgrammers/name
/row
row
nameLoungers/name
/row
/rowset

- - - - - - - - - -

I'm getting this:

- - - - - - - - - -



Programmers/
/

Loungers/
/
/

- - - - - - - - - -

That is, all XML tags are empty!  My sitemap is simple:

map:match pattern=*
map:generate src=documents/{1}.xml /

map:transform type=sql
  map:parameter name=use-connection value=db/
/map:transform

map:transform src=stylesheets/site.xsl /
[...]

Does anyone know what is causing this?  All other unknown XML tags are
corretly printed by the XSLT code, so I don't thing the problem is there.

fc

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Re: HOWTO install cocoon under JDK 1.4

2002-05-02 Thread Robert J. Lebowitz

Of course, I forgot one small detail that I culled from earlier messages.

When compiling the cocoon sources for release 2.02, several errors will
appear in conjunction with the ESQLConnection.java class.

Towards the bottom of the file are a number of methods that are commented
out in order to make the source compile under JDK 1.3.1.  You'll have to
uncomment these to get it to compile under JDK 1.4.

Rob


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




xsp-session:get-attribute not returning a String?

2002-05-02 Thread Zack Angelo

Hey, 

I have a statement along the lines of this in my XSP doc:  

String test = xsp-session:get-attribute name=mySessionAttr/;

However, it won't work (I get an incompatible types compiler error)
unless I cast it as a String. Consequently, I think it's returning an
invalid value.  The same circumstances apply when I use
session.getAttribute() as well. Any ideas? Thanks in advance. 

-Zack



-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Windows 2000, PDF, and Cocoon

2002-05-02 Thread Don Wellington

I have seen the IE posts for not opening acrobat and
displaying PDF without the .pdf ending.  My problem is
slightly different. 

IE and Mozilla cannot display PDF from cocoon on
Windows 2000 regardless of extension. Netscape 4.77
with Acrobat 5 plug-in works. Mozilla tries to start
acrobat, but only shows a blank page.

Any ideas?

Thanks,
Don  

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




Tomcat 4.0.4b2 Cocoon2.0.2 JDK1.3.1 HP-UX 11 Error

2002-05-02 Thread Jorge Bello

I'm a newbie in cocoon. Please help

I installed Tomcat 4.0.4b2 on a HP-UX 11
platform. Everything went OK

When I installed cocoon.war as the
install guide mentions, I get the next error

stack trace

org.apache.cocoon.ProcessingException: Error compiling sitemap:
java.lang.NoClassDefFoundError
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError
at org.apache.batik.dom.svg.SAXSVGDocumentFactory.(Unknown Source)
at org.apache.cocoon.xml.dom.SVGBuilder.(SVGBuilder.java:86)
at org.apache.cocoon.serialization.SVGSerializer.(SVGSerializer.java:95)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:98)
at
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:
82)
at
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java
:126)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceL
imitingPool.java:91)
at
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftRes
ourceLimitingPool.java:80)
at
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(Po
olableComponentHandler.java:88)
at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen
t(ExcaliburComponentSelector.java:467)
at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(Defau
ltSitemapComponentSelector.java:181)
at
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponen
t(DefaultSitemapComponentSelector.java:188)
at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:275)
at
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(/usr/local/t
omcat/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
temap_xmap.java:1129)
at
org.apache.cocoon.www.sitemap_xmap.configure(/usr/local/tomcat/work/Standalo
ne/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:470
)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:172)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:84)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:170)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:248)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Unknown Source)

I have been following the threads about installing cocoon
and I didn't find anything useful.

Any solution or idea ?

TIA
Jorge


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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




sendmail

2002-05-02 Thread Horst Rutter

Can someone please fill me in on the following:

I found two ways of sending an email in Cocoon:
1) the sendmail.xsp/sendmail.xsl combo
2) the SendMailAction

Is this intentional and if so in which case would I be using which one?
Maybe this is more a general question: when would I prefer an action over using xsp if 
either one is available?

Horst





-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

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