[ANNOUNCE] Cocoon Training Classes in July, August

2003-07-01 Thread Lajos
Hi all -

Just a reminder that I will be giving my "Building Cocoon Applications" 
class July 14-17 in Colorado Springs, CO, USA. This is a four-day crash 
course in everything you need to know to build Cocoon-based 
applications. We cover sitemap logs, XSPs, logicsheets, actions, 
portals, authentication mechanisms, performance, administration, 
development & deployment techniques, custom components, Lucene and many 
other topics.

I also have a class "Cocoon 2.1 Intensive", August 4-6. From the course 
description: "This course is designed first to give participants with 
previous Cocoon experience an overview of the new concepts and features 
of Cocoon 2.1, but then, more importantly, to provide then with 
practical and concrete principles for using this new functionality in 
building web applications. In particular, we will cover the 2.1 portal 
framework, authentication framework, flow control, modular actions, form 
handling, web syndication and SOAP services. The emphasis of this course 
is less on using all the features, and more on making effective and 
intelligent use of certain features in creating robust applications. 
Since this is an intensive course, lab time will dominate the sessions, 
as we take a hands-on approach to learning Cocoon 2.1."

More information on these and other courses can be found at the Galatea 
IS Inc. training page, http://www.galatea.com/training.

For those of you who don't know, I am one of the authors of the Cocoon 
Developer's Handbook, published by SAMS last December.

Regards,

Lajos
800.711.4901
galatea.com
--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


Re: Setting up cocoon at site root

2003-06-27 Thread Lajos
Justin -

You can't make webapps/cocoon your host's appBase. The appBase must 
point to the directory containing the web applications, cocoon being one 
of them. So set appBase to just "webapps", and the docBase of the 
default Context to "cocoon".

Regards,

Lajos

Justin Makeig wrote:
Lajos,
Thanks so much for the quick response. I'm still kind of muddled in the
Tomcat documentation, though.
Here's what I changed in server.xml:


...



However, when I go to http://localhost/ I get a directory listing of
webapps/cocoon/mysite as generated by Tomcat. How do I tell Tomcat that
there's supposed to be a Cocoon site there?
Thanks again.

- Justin

On 6/27/03 4:52 PM, "Lajos" <[EMAIL PROTECTED]> wrote:


Hi Justin -

Easy. Make the path for the cocoon  in server.xml "" and
remove/comment out the ROOT . If you don't have an entry for
cocoon in server.xml, then you could even just edit the existing root
definition and change "ROOT" to "cocoon".
Regards,

Lajos

Justin Makeig wrote:



How do I configure Tomcat 4.1.24 to run Cocoon sites from the site root?
For example, right now I'm successfully running a Cocoon site from
http://localhost/cocoon/mysite

However, I would like to to configure Tomcat to run mysite from the request

http://localhost/

I'm sure it can be done, but I don't see anything in the set up docs. Any
help would be much appreciated.
- Justin

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



--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


Re: Setting up cocoon at site root

2003-06-27 Thread Lajos
Hi Justin -

Easy. Make the path for the cocoon  in server.xml "" and 
remove/comment out the ROOT . If you don't have an entry for 
cocoon in server.xml, then you could even just edit the existing root 
definition and change "ROOT" to "cocoon".

Regards,

Lajos

Justin Makeig wrote:


How do I configure Tomcat 4.1.24 to run Cocoon sites from the site root?
For example, right now I'm successfully running a Cocoon site from
http://localhost/cocoon/mysite

However, I would like to to configure Tomcat to run mysite from the request

http://localhost/

I'm sure it can be done, but I don't see anything in the set up docs. Any
help would be much appreciated.
- Justin

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



--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


Re: Cocoon usage

2003-06-03 Thread Lajos
Hi Ralph -

I personally know of Cocoon being used at Sun (my client, actually), P & 
G and CA. I can give you more info on the first, if you are interested.

My own company, Galatea IS Inc., offers commercial support for Cocoon. I 
actually package Cocoon with Apache and Tomcat, in a product called Az, 
and have support packages available. The production release of Az 2.0, 
coindicentally, is next Monday. If you are interested, please contact me 
directly.

Regards,

Lajos
Galatea IS
800.711.4901
[EMAIL PROTECTED]
Ralph Goers wrote:
I am proposing that Cocoon be used in the project I am working on.  My 
boss wants some assurance that he isn't jumping off a cliff by agreeing 
to this - although the rest of my development team is convinced.  He 
would like answers to a couple of questions:
1. What "big" companies are using Cocoon in production?  (I've seen the 
Cocoon links and am not sure which ones would qualify).
2. What kind of performance are they getting?
3. If we wanted to who could we purchase a support contract from to 
provide support for Cocoon?  I've already looked at the code and am 
quite sure we could do it ourselves, but I'd like to provide him with 
options.
 
Thanks,
 
Ralph


--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


[ANN] "Getting Started with Cocoon" Course

2003-06-03 Thread Lajos
Hi all -

A (re)annoucement about the "Getting Started with Cocoon" course I'm 
offering in Colorado Springs, CO, June 30 - July 3. This course is for 
Cocoon users (or users-to-be) with little or no XML, XSL and/or J2EE 
experience. After covering the basic of these foundational techologies, 
I teach participants the basics of building Cocoon applications and work 
through a series labs that provide hands-on experience with key Cocoon 
concepts.

To find out more, please visit http://www.galatea.com/training or 
contact me directly.

Regards,

Lajos,

Galatea IS Inc.
800.711.4901
[EMAIL PROTECTED]
--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


[ANN] "Getting Started with Cocoon" Course

2003-06-03 Thread Lajos
Hi all -

A (re)annoucement about the "Getting Started with Cocoon" course I'm 
offering in Colorado Springs, CO, June 30 - July 3. This course is for 
Cocoon users (or users-to-be) with little or no XML, XSL and/or J2EE 
experience. After covering the basic of these foundational techologies, 
I teach participants the basics of building Cocoon applications and work 
through a series labs that provide hands-on experience with key Cocoon 
concepts.

To find out more, please visit http://www.galatea.com/training or 
contact me directly.

Regards,

Lajos,

Galatea IS Inc.
800.711.4901
[EMAIL PROTECTED]
--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


[ANN] New Cocoon Training Dates

2003-03-21 Thread Lajos
Hi folks -

I'll be offering my two Cocoon classes again this spring, in Colorado 
(US). Cocoon Fundamentals will be from 4/22-23, followed by Advanced 
Cocoon from 4/24-25. Course details and registration info can be found 
at http://www.galatea.com/training/courses. We'd like 5 participants in 
each class and so far have 3 in each.

I will most likely be giving a summer course as well, so let me know if 
you are interested.

Regards,

Lajos
[EMAIL PROTECTED]
800.711.4901


   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Ok, there is another way. Say you have your top level directories - 
images, scripts, style - under DocumentRoot, so they are served by 
Apache. Then, you have specific Cocoon applications forwarded to Cocoon 
in Tomcat via JkMount's:

JkMount /myapp1 ajp13
JkMount /myapp2 ajp13

etc.

Then, in the XSLs that produce the HTML in your Cocoon apps, you just 
put /images, /scripts, /style for all *.gif, *.jpg, *.js, *.css files. 
So, nothing will ever get routed thru Tomcat.

Luca is right that is is inefficient to use the pipelines the way I 
suggest. And in fact, for galatea.com I do just what I suggest above: 
all my gif, jpg, css and js references start from the root so never get 
to Cocoon.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
Hey, Lajos;

i see we are all very creative people ;-)
Another cool idea how to get around the problem.

The one thing i am *really* uncomfortable with this
solution is the sequence:

1.) browser requests .img
2.) apache forwards request to tomcat
3.) tomcat forwards request to cocoon
4.) cocoon processes and redirects.
5.) apache redirects
6.) browser calls apache
7.) apache serves the file


hmm. performance again ??


i really would prefer something like:

1.) browser requests .img
2.) apache serves the file

ill need to switch on my hackers-brain-partition ;-)
Thanks again for your answers...

regards, hussayn


Lajos wrote:


Hi Hussayn -

Here is what I do in almost every cocoon app I do:


 


 



 


 


Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:

hy,

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of "static" links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with "myapp" to 
Tomcat/Cocoon
2) Setup an alias named "myapp-static" pointed to a directory 
containing your static files
3) Use URI like "/myapp/dynamic.htlm" for dynamic content and URI 
like "/myapp-static/static.html" for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content ("/myapp-static/*") and one
app-server serving the Cocoon-generated content ("/myapp/*").

Regards.

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



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache 
???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get 
round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:


  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon


because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):

  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...


The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

regards, Hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


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

Re: how can i get static files REALLY been processed by apache ???

2003-02-13 Thread Lajos
Hi Hussayn -

Here is what I do in almost every cocoon app I do:


 


 



 


 


Any gif or css (and you can do the same for jpg, js, etc.) gets 
redirected to the appropriate directory off the webserver root, and 
hence is served by Apache. So, under Apache's DocumentRoot I have 
/images, /styles, /scripts, etc., etc.

Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
hy,

thats a very pragmatic idea. i like such approaches.
but, hmm... wouldn't this need lots of "static" links
in your pages ???

i mean, you really must point to the myapp-static pages
with absolute links. What about maintenance ... ???

seems as if i need to do it in this way, or let cocoon
serve everything ;-(

Maybe i can plugin something in to apache, or would it be
a big problem to get mod_JK do what i want (hacking ...) ???
I'll go and ask the apache-group ...
and report back, what i get from there maybe in a Wiki ;-) ?

anyway thanks for the tip...

regards, hussayn


Luca Morandini wrote:


Hussayn,

I know it is not a smart solution, but it worked for me.

1) Setup mod_jk to redirect everything starting with "myapp" to 
Tomcat/Cocoon
2) Setup an alias named "myapp-static" pointed to a directory 
containing your static files
3) Use URI like "/myapp/dynamic.htlm" for dynamic content and URI like 
"/myapp-static/static.html" for static content

This has the advantage of scaling up well: we have three web-servers 
serving the static content ("/myapp-static/*") and one
app-server serving the Cocoon-generated content ("/myapp/*").

Regards.

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



-Original Message-
From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:14 PM
To: [EMAIL PROTECTED]
Subject: how can i get static files REALLY been processed by apache ???


Hy;

When i setup apache/tomcat/cocoon, i run into following
fancy problem. Although what i want seems trivial, but i did not
manage to get it done (I might not know the magic command to get 
round it)

Here is the problem:

1.) I want all static files been served by apache, i.e.:

*.gif, *.html, *.jpg

2.) I want *ALL* other files be served by cocoon.


Now how should i setup mod_jk.conf 

this doesn't help:


  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon   cocoon
  JkMount /cocoon/  cocoon
  JkMount /cocon/*  cocoon


because it redirects everything to cocoon. But apache shall
serve the files mentioned above ...

This is not complete (Indeed it can never be complete):

  JkWorkersFile /etc/httpd/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLevel error
  JkMount /cocoon/*.xml   cocoon
  JkMount /cocoon/*.jsp   cocoon
  JkMount /cocon/*.foococoon
  ...


The list could potentially go down endlessly.
There MUST be an obvious solution to this!

Anyone can help me here ?

regards, Hussayn

--
Dr. Hussayn Dabbous
SAXESS Software Design GmbH
Neuenhöfer Allee 125
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
E-Mail:  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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






--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

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




Re: Passing parameters to an XSP

2003-01-30 Thread Lajos
Mark -

Yup, you do. I use something like:


  String myparam = "";

  try {
  myparam = parameters.getParameter("myparam");
  } catch (Exception e) { }


Make sure it comes AFTER the root user tag in your XSP.

Regards,

Lajos


Mark H wrote:

I'm trying to pass parameters to an XSP but I'm getting an exception:

unreported exception:
org.apache.avalon.framework.parameters.ParameterException; must be caught or
declared to be thrown

I saw a similar post in the archives but when I tried the recommended
solution it still didn't work, any ideas? Do I have to stick in a try catch?

Thx, Mark

sitemap:


  
  
	
  
  


executeQuery.xsp:

http://apache.org/xsp";
xmlns:xmldb="http://exist-db.org/xmldb/1.0";>
	
		
			String datasource=parameters.getParameter("datasource");
			String xpath=parameters.getParameter("xpath");
		
		
		
			"xmldb:xindice:///db/"+datasource
			
xpath

	

			
		
	




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

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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

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




Re: build.xml

2003-01-29 Thread Lajos
Hi Richard -

Just catching up - I was up in Denver all day today.

You need Ant 1.5.1 - I think that's the problem. IIRC, isset is not in 1.4.

Regards,

Lajos


Richard Cunliffe wrote:

Me again,

Fixed the "does not exist problem" but I'm now getting the following
error:

BUILD FAILED

C:\tomcat_connectors\jk\build.xml:379:
Classorg.apache.tools.ant.taskdefs.condition.Not doesn't support the
nested "isset" element.


What should I do to correct this?


Richard.





-Original Message-
From: Richard Cunliffe [mailto:[EMAIL PROTECTED]] 
Sent: 29 January 2003 22:49
To: [EMAIL PROTECTED]; 'Lajos'
Subject: build.xml


Lajos,

I have fixed the Java problem, but it is still coming up with the
following error:

	Bulidfile: build.xml does not exist!
	Build failed

What does this mean? Do I have to build the build.xml myself? If so how
would I go about doing this.


Richard.

	





-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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




--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

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




Re: WARP, Jserv or mod_jk?

2003-01-29 Thread Lajos
Hi Richard -

mod_jk by far is the best. WARP is buggy and is may not even be actively 
developed any more. mod_jk is stable, widely used, and generally has few 
bugs reported. If you need help with the integration, my FlashGuides 
(www.galatea.com/flashguides) have instructions on connecting Apache 2.x 
with Tomcat 4.x using Jk.

Regards,

Lajos


Richard Cunliffe wrote:
Hi,

 

I?m upgrading! Can anyone suggest the best way to connect Apache 2.0.42 
and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the 
WARP connecter is the best, but I used Jserv on my older version. There 
is also the mod_jk. Which is the most reliable etc.

 

 

Thanks

 

Richard.


--
This message has been scanned for viruses and dangerous content by
MailScanner <http://www.mailscanner.info/>, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."


--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

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




Re: Thanks for the book!

2003-01-25 Thread Lajos
Thanks Antonio! We appreciate the comments and look forward to reading 
your review.

Regards,

Lajos


Antonio Gallardo wrote:
Hi Lajos!

I just write you because I got your book on Jan, 20th and is the best of
the three about Cocoon 2. Thanks again to you and Jeremy. You are really
good writers!

I promise to post a review on amazon.com since there still are no one review.

Best Regards,

Antonio Gallardo.



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

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





--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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

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




Re: Cocoon is complex, but worth it! Some Answers to your dilemma

2003-01-25 Thread Lajos
Hi Robert -

Ok, my turn to weigh in.

First off, one first principle about any technology is that it's 
usability and suitability are largely subjective. Over the years, I have 
found that many technologies - JSP, EJBs, PHP, Perl/CGI, ActiveX, etc. - 
can work great if YOU like them and know how to use them EFFECTIVELY. 
And the same holds absolutely true with Cocoon. Sometimes you like it, 
sometimes you don't. For some jobs it rocks, for others a simpler 
approach will get the job done as well, if not better. THERE IS NO 
OBJECTIVE RIGHT OR WRONG. Put it another way, you cannot compare Cocoon 
with ActiveX, Perl, JSP or anything else - it is all apples and oranges.

Though I'm a Cocoon book author, I can tell you I myself sometimes get 
fairly pissed with Cocoon. Only recently I was coding up a simple, 
though lengthy, form in Cocoon using an XSP with the formval logicsheet, 
when I started getting an error that I was exceeding 66535 (or whatever) 
bytes for a method. Gr. Luca will affirm that I was not feeling too 
kindly towards Cocoon that week. But in the end, (thanks to his 
client-side validation mechanism) I recoded and am fairly happy with the 
result. Should I have chosen Cocoon for this? Maybe not, actually. I 
probably put in more hours with this project than I would have using a 
JSP. But now that I'm done, I can modify the form to fit the client's 
changing needs much more easily than had I used a JSP. On the other 
hand, when I added credit-card capabilities to my site, I never even 
once considered Cocoon - I rolled a servlet with my own helper objects 
and am totally satisfied with the result. Point is, Cocoon is no magic 
bullet but then again, nothing is.

You make an excellent point that I have to agree with: it is hard to 
separate the Cocoon developer from the Cocoon user. To put it another 
way, you have to be prepared to be a bit of a Cocoon developer to be an 
effective Cocoon user. Frankly, yes, that can be a deterent to adoption. 
If you are under the gun to get some multi-output app up and you are 
looking at Cocoon stricly as a user of the technology yes, you might 
have to learn more than you bargined for. But that is the nature of this 
particular beast, just like it is the nature of M$ products that you 
know next to nothing about how they operate (until you find yourself 
hacked through one of their many security holes). Again, you can't 
compare the two - apples and oranges.

Absolutely, Cocoon is complex, and large, which I personally don't care 
for. But the flip side is that you can also do many, many, many things 
with Cocoon. If you like such complexity and flexibility, and care to 
take the time to work through the materials at hand (like mine and 
Jeremy's book ;) ), you will be happy with the results.

I also must agree with you and Hussayn about the business aspect of 
Cocoon. Having consulted at all layers of IT, I know what people look 
at. And yes, Cocoon can fall short for the reasons mentioned - 
usability, time-to-get-running, documentation, abstraction from details, 
separation of developer/user knowledge, etc. Business does judge 
harshly, though perhaps unfairly. Certainly, we serious users will all 
sneer if a pile of MS sh*t is taken more seriously than Cocoon. But, 
then again, there is a point. MS may have the usability (or perhaps the 
perception of usability) edge on Cocoon. But, here is the hard part, it 
is NO ONE'S JOB TO CHANGE THIS. This freedom from accountability is both 
a strength and weakness of OSS in general. One the one hand, someone 
with a great idea can start something like Cocoon, but conversely there 
is no implicit responsibility to an end-user like you (and the others 
who periodically raise the same objections).

If someone wants to position Cocoon for the big time and compete on the 
usability front with the big commercial software products, then that 
person/organization can do something about it. Many of the current 
developers and users of Cocoon don't need more than they have and are 
neither concerned nor required to be concerned with this debate. If you 
want to change it, put together a project - email me offline and let's 
talk. I love the idea. But that is the only way it will be done - nobody 
actually has the responsibility to do anything. No one involved with 
Cocoon has the job to capture "the minds and hearts of web publishers". 
  If they don't want to, that's just fine. And if, as a result, some 
other products does end up capturing the minds and hearts of web 
publishers, that is fine too.


Regards,

Lajos


--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Coco

Re: Orion 1.5.3 and cocoon2.1 - help complete deployment

2003-01-05 Thread Lajos Moczar
Don't know if you've checked this out already, but Steve Punte has 
Cocoon-Orion integration instructions at 
http://www.candlelightsoftware.com/orion-cocoon.html.

Regards,

Lajos


e nio wrote:
  I tried deploying cocoon2.1 which I have recently
downloaded and compiled, it deploys fine on Tomcat
4.1.12 but not on Orion 1.5.3.  It is only partially
working on Orion 1.5.3, partially since I can use
http://localhost:/  which becomes
http://localhost:/documents/index.html which is
the main page and I can click on all the menu items or
the links within the page without much of a problem. 
However if I typed in
http://localhost:/samples/welcome which should go
to the sample pages, I get an error instead:

org.apache.cocoon.ProcessingException: Failed to load
sitemap from

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap:
 org.apache.cocoon.ResourceNotFoundException: Resource
not found.:
 org.apache.excalibur.source.SourceNotFoundException:
Resource not found

file:/u01/OJSP/j3ee/orion/applications/cocoon/cocoon/samples/welcome/sitemap.xmap

Steps I have done are:
1. remove from /u01/OJSP/j3ee/orion/ 
xalan.jar,xerces.jar, and jaxp.jar and replaced those
with xalan-2.4.1.jar,xercesImpl-2.1.0.jar and
xml-apis.jar accordingly.

2. put cocoon.war at
/u01/OJSP/j3ee/orion/applications/

3. in orion/server.xml added 
name="cocoon" path="../applications/cocoon" />

4. in orion/application.xml added 

and

path="../applications/cocoon/cocoon/WEB-INF/lib"/>

path="../applications/cocoon/cocoon/WEB-INF/classes"/>

5. in orion/default-web-site.xml added

/>

6. in orion/lib/  I added cocoon.jar

7. I think I started orion, for cocoon.war to expand
then stop, and restarted. Then I have to modify the
cocoon dir to look like this

orion/applications/cocoon/cocoon/<- added one dir
above, I dont know why I must, but I did.
orion/applications/cocoon/cocoon/META-INF/application.xml
 <-- this is not same application.xml as in
orion/config/, the file content is like so:



Inc.//DTD J2EE Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd";>


   Cocoon servlet
   Cocoon
   
  
 cocoon
 /
  
   


8.  on orion/config/global-web-application.xml I
commented out the  xsl<...>
block

9. downloaded the batik-all-1.5b.2.jar per
candlelightsotware.com to replaced the current one (I
did verify current one can't be unjarred)

10. restarted orion and browsed http://localhost:/
result is posted above.

Am I missing a step, or botched a step here? please
help complete the steps. Why would the documents work
but the samples does not? I surmised that it does not
want to go to the submount, is the configs on orion
wrong?  This same cocoon.war works on Tomcat 4.1.12
without the application.xml modification I have to do
for orion. Fyi, I never was able to get cocoon+orion
before after so many tries, this time it is partial success.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: Dynamic query in xsp:logic and esql:query (partly solved)

2003-01-05 Thread Lajos Moczar
I can't understand what you are doing w/out seeing the whole XSP. 
Typically I do this:



 

 
  String myQuery = "select * from vwProducts";
  
 

 

 
   pierrefabre

   
 myQuery

     

   

 




Lajos


Yves Vindevogel wrote:
Hi, 

I had tried this:

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




pierrefabre


	
	String myQuery = "select * from vwProducts" ;

			
	myQuery




And this didn't work !!  I says: variable myQuery not found in class . 
When I do this, it works :

Guess the first part of the problem already got me on the wrong way 


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


	
	String myQuery = "select * from vwProducts" ;






pierrefabre


			
	myQuery




NOW:
When I do this:
	
	String myQuery;

myQuery = "select * from vwProducts" ;


It still gives me "class myQuery not found in class ."
It only works when I immediatly assign it (String s = "jkml";)
I can't do anything on the string afterwards ...

How is that possible ??




Yves -

Why not build your select statement as a string variable inside an
 block after the root user tag, and then reference it thusly:


 myQuery


I do this all the time and it works perfectly.

Regards,

Lajos






--
galatea.com
Cocoon training, consulting & support


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

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




Re: Request: XSP for quering Google Web API

2003-01-05 Thread Lajos Moczar
Attached is one from my and Jeremy's book.

Lajos


Lenya L. Khachaturov wrote:

Hello,

I've discovered that there exists an XSP for quering Google Web API. It
was posted to this list by Ugo Cei at 04.19.2002. Could someone please
send it to me? Or maybe there exist more advanced variants?




--
galatea.com
Cocoon training, consulting & support
Book: Cocoon Developer's Handbook


http://apache.org/xsp";
 xmlns:soap="http://apache.org/xsp/soap/3.0";
>

  

  String query = "";
  try {
 query = request.getParameter("query");
  } catch (Exception e) { }


http://api.google.com:80/search/beta2";
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
  
YOUR_KEY_GOES_HERE
query
0
10
true

false
lang_en|lang_de
latin1
latin1
  

  




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

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


Re: Dynamic query in xsp:logic and esql:query

2003-01-05 Thread Lajos Moczar
Yves -

Why not build your select statement as a string variable inside an 
 block after the root user tag, and then reference it thusly:


 myQuery


I do this all the time and it works perfectly.

Regards,

Lajos

--
galatea.com
Cocoon training, consulting & support
Book: Cocoon Developer's Handbook (SAMS)


Yves Vindevogel wrote:
Hi,

I've got a form with one textbox (name) and a combobox (type)
When the user presses "submit", a searchpage is called where I execute this 
query (on postgres db)

			
	select * from vwProducts
	where upper(name) like 
upper('%%')
and typeoid = 



This works 

Unfortunately, the combobox must be filled out.  That's not exactly what I 
want because the user may let this one empty (selecting all with a certain 
name without regard to the type)

In that case, my query should be (empty combobox)
select * from vwProducts where upper(name) like 
upper('%%')


Something like this works too:
			
	
		   "select * from vwProducts where typeoid = " + 

 



If I try this, I get errors :  (Starts when I use an if-clause)
			

if (.equals("0"))
{
		"select * from vwProducts"
}
else
{	
		"select * from vwProducts where name like 
('%product%')"
} ;


I've tried several methods, I get:
Illegal start of expression on line . 
Method ValueOf() missing 


Anyone can help me out ??




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

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




Re: Confused About Realms

2003-01-03 Thread Lajos Moczar
Jeff -

You'll need to change the DTD for Cocoon's web.xml to version 2.3, thusly:

http://java.sun.com/dtd/web-app_2_3.dtd";>

Cheers,

Lajos

--
galatea.com
Cocoon training, consulting & support
Book: Cocoon Developer's Handbook (SAMS)

Jeff Sexton wrote:

I seem to solve my own problems frequently after posting to this list...

I moved the Sybase jar file from $CATALINA_HOME/lib to
$CATALINA_HOME/common/lib and it worked.  It seems that Cocoon's
connection pools can function with the jar in the root lib, but realms can
not.  Moving the jar to common/lib allows both realms and the connection
pool to work.

However now I have a new question.  I really want to password protect
cocoon URLs.  I added a  to webapps/cocoon/web.xml,
but this breaks cocoon.

Anyone know the correct way to use realms for cocoon?

On Fri, 3 Jan 2003, Jeff Sexton wrote:


Today I wanted to try a Tomcat security setup.  I created and populated
tables in a (Sybase) database and edited server.xml per examples in the
Goodwill Apress book.

I get an exception on startup, Tomcat fails to initialize.  I didn't
expect this because I am also running Cocoon with a connection pool, so I
know that it can find the Sybase JDBC jar.  I also know that the host,
socket and login are correct.

I hope someone can give me a tip on the exception.  Is the jar not found
until later in the startup process?

Here is the server.xml entry:



I also added entries to web.xml for my apps, but it doesn't seem to be
getting there?

Here is the exception from catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Catalina.start: LifecycleException:  Exception opening database
connection:  java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver
LifecycleException:  Exception opening database connection:
java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: com.sybase.jdbc2.jdbc.SybDriver
   at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.html>

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




Re: newbie trying samples from: "Cocoon: Building XML Apps..."

2002-12-21 Thread Lajos Moczar
Hi Ray -

I hope your other book is mine & Jeremy's - Cocoon Developer's Handbook 
;) The easiest configuration I've found is Tomcat 4.0.5 or greater, with 
JDK 1.3.x. I have been able to drop Cocoon 2.0.3/2.0.4 into Tomcat 
4.0.5/4.0.6/4.1.12 without any problems. Just note that if you build 
2.0.4 yourself, be sure in include the scratchpad libs.

Regards,

Lajos


Ray Tayek wrote:
hi, newbie here trying to run the samples from the above book on linux.

dropped the war in to tomcat 4.0.1. with jdk1.4.1 and things went 
downhill fast.

finaly gave up and installed 1.3.1_03 and the tomcat off the book's cd. 
(3.3.? final or something like that). (that's what the book says to do). 
has anyone made the sample work? if so, what versions of jdk and tomcat 
were you using?

what versions of tomcat, jdk and jdkee would you recommend in general? 
(i have  another cocoon book coming or i can roll my own samples or use 
the one that come with the download?.

what is the easiest path to get started?

thanks

---
ray tayek http://home.attbi.com/~rtayek/ actively seeking mentoring or 
telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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

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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: How to install Cocoon with Apache?

2002-12-20 Thread Lajos Moczar
Hi Soren -

You can download a bundle called Az from http://www.galatea.com/az. It 
currently uses 2.0.3, but I'll be upgrading to 2.0.4 this weekend. It is 
available on Linux and Windows.

Cheers,

Lajos


Sorin Marti wrote:
Hi All,

I'd like to set up Cocoon with apache. I did it with Tomcat and it was 
not a problem... but on the cocoon home-page there's nowhere described 
how to do it with apache...

any suggestions?

I am working
- on Linux
- cocoon 2.0.4
- apache 2.0.43

Thanks

Sorin Marti


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

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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: Security and authentication

2002-12-16 Thread Lajos Moczar
If you really didn't want to do it via web.xml, which I would recommend, 
you probably could have a pipeline for the resource that did a 
 and took your user to a fully-qualified secure URL.

Lajos


Miles Elam wrote:
Is there a way to specify that a Cocoon resource only be accessed via a 
secure socket?  Another way, most of the site would be Cocoon on an 
unencrypted channel, but you could specify that a particular URL would 
redirect to an https handler.

This would be an equivalent to the servlet spec that allows an entry in 
web.xml to say that the resource is confidential.

Is this possible now?

---

Also, do the portal/authentication frameworks use the same mechanisms as 
the enclosing servlet container or do they use their own, 
Cocoon-specific mechanisms where authentication to one has no bearing on 
authentication to the other?

- Miles



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

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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: starting cocoon with windows 2000

2002-11-27 Thread Lajos Moczar
You should use 2.0.3 instead - it is the easiest version to install so 
far. Personally, I'd go with JDK 1.3.1, however, 'cause you'll have to 
recompile some jars for JDK 1.4.

Lajos


Ferran Urgell wrote:
Hello!

I'm new in the cocoon, and I'm using windows 2000, I would to install 
cocoon.

which is the best configuration ?

I would to try with JDK 4.0, Tomcat 4.0.6 and Cocoon 2.0.1. Is that ok 
for an easy installation ?

Thanks 



Do you Yahoo!?
Yahoo! Mail Plus 
<http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com> - 
Powerful. Affordable. Sign up now 
<http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com>


--
galatea.com
Cocoon training, consulting & support


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

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




Re: Cocoon Cobundle ? Please!

2002-11-22 Thread Lajos Moczar
You mean a patched cocoon-2.0.3.jar? Sure, I can do that. The only 
actual change was to 
org.apache.cocoon.components.ExtendedComponentSelector.java in order to 
enable sub-sitemap inheritance of component definitions when using the 
interpreted sitemap.

Lajos


Murray Cumming wrote:
On Fri, 2002-11-22 at 21:26, Lajos Moczar wrote:


You can find my own integrated back of Apache, Tomcat and Cocoon at 
http://www.galatea.com/az.


You are distributing a patched cocoon. It would be nice if you put the
patch online too.




--
galatea.com
Cocoon training, consulting & support


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

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




Re: Cocoon Cobundle ? Please!

2002-11-22 Thread Lajos Moczar
You can find my own integrated back of Apache, Tomcat and Cocoon at 
http://www.galatea.com/az.

When 2.1 hits production, I'll have that version available as well.

Regards,

Lajos


Christian Kissner wrote:
Hi, this is a plea, from an experienced developer, to bundle working
versions of cocoon with servlet engines. Just Tomcat would be enough.

This is my story:
2 years ago I came across cocoon, liked the concept, and 
developed a cocoon-1.8 based application - see www.efonds24.de 

Every 3-5 months since then I start thinking along the similar
lines and try to install cocoon 2.x on Jboss, Tomcat or whatever and
notice IT DOES NOT WORK.
I go back to the web site, read the parts about installing and replacing
the XML parser, try that and find that IT STILL DOES NOT WORK
I then guess, the tomcat/jboss/whatever codebase may have moved on or
maybe the cocoon codebase moved on or my JDK ist out of date and maybe
the documentation on the web site has not yet caught on. 
So I go back, read the mailing lists and fetch the latest releases,
compile, fix and reinstall and find that ***NONE OF IT WORKS ***

Now I may be a dumb idiot or simply out of luck, but I always think:
HOW SAD... cocoon is great technology, but it would have much wider
distribution if they could ease deployment and 

		+--+
		|JUST BUNDLE WORKING VERSIONS TOGETHER.|
		+--+



thanks for listening.






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

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




--
galatea.com
Cocoon training, consulting & support


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

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




Re: Does cocoon support name based virtual hosting?

2002-11-07 Thread Lajos Moczar
Sure, O Great One. Use the WildcardHostMatcher.

Lajos


GreatOne wrote:

Does cocoon support name based virtual hosting?


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

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





--
galatea.com
Cocoon training, consulting & support


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

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




Re: Latest Cocoon 2.1-dev scratchpad appears to depend on j2sdk 1.4.x

2002-11-04 Thread Lajos Moczar
I just changed the relevant line to:

fos = new FileOutputStream(file.getCanonicalPath(), append);

Regards,

Lajos


Mark Eggers wrote:

While trying to compile the lastest CVS version of
cocoon, I ran into an issue with the scratchpad
libraries:

In part, from the file DelayedFileOutputStream.java:

public void setFileOutputStream(File file, boolean
append) throws FileNotFoundException {
if (fos == null) {
fos = new FileOutputStream(file, append);

The form of FileOutputStream constructor used is new
in 1.4.  This will no longer compile in 1.3.x.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

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

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





--
galatea.com
Cocoon training, consulting & support


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

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




Re: Fatal error - how to test database connection?

2002-10-29 Thread Lajos Moczar
Derek -

Did you declare the MySQL jar in web.xml thusly?


  load-class
  
org.gjt.mm.mysql.Driver
  


And put the jar where Cocoon will find it?

Regards,

Lajos

Derek Hohls wrote:

I get the following fatal error when trying to load a sub-sitemap:
 
FATAL_E (2002-10-29) 16:32.18:484   [cocoon  ] (Unknown-URI) 
Unknown-thread/JdbcConnectionPool:
Excalibur could not create any connections.  Examine your settings to 
make sure they are correct. 
Make sure you can connect with the same settings on your machine.
 
As far as I can tell I have set up the MySQL database permissions and 
cocoon.xconf  file properly (i.e. in the same way as my other projects...):
 

  
  true
  jdbc:mysql://localhost:3306/sbwq
  username
  password

 
Does any one have a simple test file that I can use to "connect with the 
same settings" outside of Cocoon so I can try and pin down the source of 
the error?
 
Thanks
Derek


--
galatea.com
Cocoon training, consulting & support



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

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




Re: cocoon- vs. tomcat-authentication ???

2002-10-26 Thread Lajos Moczar
Hussayn -

It really depends on what you are more familiar with. I generally prefer 
Tomcat's realms, both because they take less programming and also 
because I can easily write a custom realm when I need to (and I have had 
to before). Although you can use a Realm to protect an entire Cocoon 
webapp, you can also use it to protect specific URI patterns as well. 
For one client, I used a custom realm to protect one particular 
subdirectory.

On the other hand, Cocoon authentication is great for protected specific 
pipelines under specific situations. The fine-grained control you have 
with Cocoon will fit some projects better.


Regards,

Lajos


SAXESS - Hussayn Dabbous wrote:
Hy,

while browsing through the cocoon docs, i realised, that
cocoon offers an authentication mechanism on it's own.
Since i'm developing webapplications using tomcat i
naturally use the authentication Realms provided by tomcat.

But when i want to use cocoon on top of tomcat, what shall i do:
Either drop the cocoon authentication in favour of the tomcat auth. or 
vice versa ?
Where can i find hints about advantages/disadvantages
concerning the two approaches?

any pointers or explanations are welcome ;-)
regards, hussayn


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

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




--
galatea.com
Cocoon training, consulting & support



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

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




Re: Cocoon 2.0.3 installation with Tomcat 4.0.1

2002-10-25 Thread Lajos Moczar
Chris -

Tomcat will automatically unpack the war file - you don't need to do so 
yourself. Also, I recommend you use a new version of Tomcat - like 4.0.5 
or 4.1.12. These are preferred over 4.0.1.

Lajos


Chris Bovasso wrote:
I have an install of Tomcat 4.0.1 and I downloaded the .gz file for
cocoon 2.0.3 and I followed the (brief) instructions in the INSTALL
file. I copied the cocoon.war file into my opt/jakarta/webapps/
directory and even copied it into opt/jakarta/webapps/cocoon/ and still
I get nothing. What do I need to do with this cocoon.war file after I
copy it into the webapps directory of tomcat?

Chris


Chris Bovasso
www.edcomm.com
888 4 EDCOMM 


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

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




--
galatea.com
Cocoon training, consulting & support



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

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




Re: Sample Cocoon App

2002-10-18 Thread Lajos Moczar
Check out Jeremy's and my book when it comes out in December - that has 
several fairly complex apps for your enjoyment - authentication, SOAP, 
internationalization, J2EE, portals, etc. Link is at 
http://www.amazon.com/exec/obidos/tg/detail/-/0672322579/002-9257316-7139204. 
Sadly, my name is not yet on the Amazon listing :-(

Lajos


Dave Bettin wrote:
I am looking for a complex sample cocoon app. The app
should take advantage of most cocoon features. Is
anyone aware of such an app?

Thanks,
Dave

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

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

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





--
galatea.com
Cocoon training, consulting & support



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

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




Re: So close .. I think?

2002-10-11 Thread Lajos Moczar

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

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


 



 


Cheers,

Lajos

Marc G. Fournier wrote:

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


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: sub-sitemaps with mod_webapp ...

2002-10-10 Thread Lajos Moczar

What OS are they running on? Unfortunately, mod_webapp is, well, sort of 
crappy. To be more politically correct, it is a work in progress, and 
has been known to cause problems like you describe (especially with 
Netscape on Windows).

Why not use mod_jk? You can't beat the tried and true.

However, if you must work with mod_webapp, I suggest making cocoon the 
default webapp in Tomcat (path="" in the  tag). That way, each 
"domain" appears to be its own webapp under Tomcat. Then you point 
mod_webapp to each specific domain. That is what I do with mod_jk on my 
own site.

Regards,

Lajos
-- 
galatea.com
Cocoon training, consulting & support


Marc G. Fournier wrote:

> I have a client that we've got setup using Jakarta-Tomcat 4.x and Cocoon
> 2.x ... we have mod_webapp setup so that when you go to http://domain, it
> connects to the warp Connector through to /cocoon/domain, in which the
> client has a sitemap.xmap file ...
> 
> If we go to http://domain:8083/cocoon/domain, everything loads up fine ...
> if we go to http://domain, we just get a directory listing that shows the
> sitemap.xmap file and the subdirectories ...
> 
> So, from what I can tell, tomcat is setup right, its the mod_webapp stuff
> that isn't working right ...
> 
> I'm not finding anything in the log files either, that are indicating a
> problem?
> 
> I've searched through google, and the FAQs, and what HowTos I could find,
> but nothing seems to get into this ;( Is there one that I've missed?  Is
> there something that I'm overlooking?
> 
> Pointers to docs I can read (and bookmark) are most appreciated ...
> 
> thanks ...
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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




Re: CVS of C2.0.4-dev

2002-10-10 Thread Lajos Moczar

Olivier -

Use cocoon_2_0_3_branch.

Lajos


ROSSEL Olivier wrote:

> I need C2.0.4-dev.
> I am currently getting the CVS of HEAD.
> I wonder if HEAD is either C2.0.4-dev? or C2.1-dev?
> 
> If HEAD is not C2.0.4-dev, what are the instructions to get it?
> 
> Note: may be this point should be clearly written in the docs or in the
> wiki.
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: local site setup

2002-10-09 Thread Lajos Moczar

Hi Peter -

Not a dumb question at all. In fact, until recently, you had to add your 
own build targets to build a clean example-less distribution. But now 
you can do:

build.bat clean-webapp

or

build.sh clean-webapp.

This gives you a clean war file, without any samples, that you can copy 
to your servlet container.

Once you have a running app, then I suggest that when you rebuild Cocoon 
from the CVS sources, you copy the libs only from the 
build/cocoon/webapp/WEB-INF/lib directory. That way, you get the latest 
code but you don't have to mess up your sitemap.xmap and cocoon.xconf. 
That is, unless there are changes to those files in CVS.

It is also a good idea to do your own work in a subdirectory of the main 
cocoon installation and have your own sub-sitemap. That way, all your 
stuff won't get stomped on if you happen to update the main sitemap.

Good luck,

Lajos




Peter Koellner wrote:

> hi!
> 
> i'm sure this must be some dumb beginner's question, since nobody seems to
> have asked it until now.
> 
> ok. now i have got this bright new xml-cocoon2 from cvs, built it,
> copied the war file to tomcat3.3's webapps directory, got the whole
> site running. so far, so good.
> 
> what i don't quite understand at the moment is how am i supposed to remove
> the whole demo site and add my own content without intermingling with the
> cocoon cvs tree? i mean, do i have to work inside the cocoon directory,
> which obviously was generated from the war file? or even inside the
> cocoon source repository? can't be, or can it?
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: SPAM: Cocoon 2 Developers Wanted...

2002-10-03 Thread Lajos Moczar

Whoops - sorry about the spam. I guess you have to do that at least once 
in your career ;)

Lajos



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

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




Re: Cocoon 2 Developers Wanted...

2002-10-02 Thread Lajos Moczar

Hi Ernst -

I am not based in the area you are looking for, but I have extensive 
experience with Cocoon and am just wrapping up a book on it. My CV is 
attached. I do outsource as well as remote work. Please let me know if I 
can be of assistance.

Regards,

Lajos Moczar
-- 
galatea.com
Cocoon training, consulting & support

[EMAIL PROTECTED] wrote:

> Hi all,
> 
> sorry for spamming, but we are looking for Cocoon 2 Developers to help us
> develop a challenging internet/intranet webapplication. We will need between 2-4
> developers for a period of 3 - 6 Months. Since we already have a team working on
> that application, it would be great if you are based in Switzerland, Austria or
> Germany.
> 
> Cheers and sorry for the spam
> Ernst
> 
> 
> ===
> 
> Ernst N usterer tel: +41 1 455 70 00
> S w i s s r i s k   fax: +41 1 455 70 01
> Räffelstrasse 32mail: [EMAIL PROTECTED]
> 8045 Zürich 
> 
> ***
> * Visit us at European Banking Technology Fair (EBTF), Frankfurt  *
> * Oct. 29 - 31, 2002 - Hall 5 *
> ***
> 
>  
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 






resume082802.doc
Description: Binary data

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

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


Re: Cocoon 2.0.3 Tomcat 4.1.10 sub sitemap problem - failed sitemap 'inheritance' - anyone seen this and have any ideas?

2002-09-30 Thread Lajos Moczar

Which is a matter of editing 
src/java/org/apache/cocoon/components/ExtendedComponentSelector.java, 
adding the following method at the end of the file and rebuilding Cocoon.

public boolean hasComponent(Object hint) {
 boolean exists = super.hasComponent( hint );
 if ( !exists && this.parentSelector != null ) {
 exists = this.parentSelector.hasComponent( hint );
 }
 return exists;
}

Lajos


Vadim Gritsenko wrote:

> Christopher Watson wrote:
> 
>> Hello
>>
>> I'm having problems with a sub-sitemap
>>
>> I'm on 2.0.3 release. It works on tomcat 4.0.1 and 4.0.4 but doesn't with
>> 4.1.10 or 4.1.12
>>
>> The example subsitemap http://10.1.1.2:8080/cocoon203/sub/ shows the same
>> problem.
>> It's a problem of sitemap 'inheritance' as far as I can tell.
>>
>> The error I get from the example URL above is as follows ..
>>
>> Description:org.apache.avalon.framework.configuration.ConfigurationException 
>>
>> : Type 'wildcard' is not defined for 'match' at
>> file:/F:/jakarta-tomcat/webapps/cocoon203/sub/sitemap.xmap:21:26
>>
>> True, the wildcard matcher component is not declared in the 
>> subsitemap, but
>> used to 'inherit' it from the 'root' sitemap
>> at file:/F:/jakarta-tomcat/webapps/cocoon203/sitemap.xmap in the above
>> example.
>>
>> If I declare the lost wildcard matcher component in the subsitemap 
>> then it
>> works, or at least, I get the next error caused by the failed 
>> 'inheritance'
>>
>> So I guess I have a workaround in declaring everything in the subsitemap,
>> but this kind of defeats the object !?
>>
>> I've just done a clean install on tomcat 4.0.1 (works) and 4.1.10 
>> (doesn't)
>> to check my sanity on this!
>> It's weird that the version of Tomcat should create this different
>> behaviour.
>> Does anyone have any idea what's going on?
>>
> 
> Seems you have switched to interpreted sitemap which (IIRC) in 2.0.3 
> release had some bugs. These were fixed later on, in 2.0.4-dev.
> 
> Vadim
> 
> 
>> Christopher
>>  
>>
> 
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Lajos Moczar

Hi Gernot -

Whether one method is a better or worse idea than another is largely 
dependent on how you implement it. Yes, XSPs do somewhat violate 
Separation of Concerns. And yes, you can compare XSPs to JSPs in terms 
of pitfalls.

The fact is, that there are some things you can only do with XSPs. My 
own personal preference is to first look at alternatives to XSPs (like 
using SQLTransformer instead of XSP + ESQL logicsheet). Then, if I do 
use an XSP, I try to use logicsheets wherever possible. If I have 
 blocks, I keep them TO A MINIMUM. If have more than say 2 
such blocks, I typically make my own logicsheet. The extra time it takes 
to do this is well worth the savings in administration later on.

Bottom line: there is no right or wrong way in Cocoon. Pick you 
approach, especially if you are comfortable with it. Just develop your 
own best practices to help you code cleanly and in a way that can easily 
be maintained later on.

Regards,

Lajos

-- 
galatea.com
Cocoon training, consulting & support

Gernot Koller wrote:

> Hi!
> 
> First, thanks for your very quick replies to my last question!
> 
> After quite some time discussing and evaluating we made a decision in 
> favor of cocoon as presentation framework. One major argument for cocoon 
> and against struts was that in jsp a strict seperation of logic (Java 
> code) and presentation is not always encouraged. There was also fear 
> that the same issues might apply to xsp and therefore the decision was 
> made to use cocoon but to avoid the use of xsp.
> 
> I'm very new to cocoon and by now only have a very vague idea about xsp 
> and issues that might arise using xsp. So what do you think ? Is it a 
> bad idea to use cocoon but not use xsp ? Is it generally possible to 
> compare jsp and xsp in that way? Or are these fears inappropiate?
> 
> thanks,
> 
> Gernot
> 
>  
> 
> 
> 
> --
> DI Gernot Koller
> mailto:[EMAIL PROTECTED]
> phone:+43-676-340 55 52
> 
> 
> 
> Do you Yahoo!?
> Yahoo! News <http://news.yahoo.com/> - Today's headlines






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

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




Re: JSP Server Page

2002-09-10 Thread Lajos Moczar

Again, that's because you are using 2.0.2. JSPGenerator & JSPReader are 
BROKEN in 2.0.2. Upgrade to 2.0.3 or search the mail archives for the 
patches I posted for these files in 2.0.2

Lajos


Sushil Bhattarai wrote:

> Hi
> 
> Like you suggested I put jasper-compiler.jar in WEB-INF/lib. The source 
> already starts with "/" in the sitemap. Still I'm not able to run the 
> sample link properly. The JSP Reader sample (welcome.htm) returns a 
> blank page without any error and the JSP Generator sample (hello.jsp) 
> throws out error
> 
> java.lang.IllegalStateException
>   at 
>org.apache.catalina.connector.HttpResponseFacade.sendError(HttpResponseFacade.java:159)
>   at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1003)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>   at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   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.java:201)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>   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:566)
>   at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>   at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>   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:566)
>   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:484)
> 
> Any suggestions ???
> 
> Sushil
> 
>  >From: Piroumian Konstantin
> 
>  >Reply-To: [EMAIL PROTECTED]
> 
>  >To: "'[EMAIL PROTECTED]'"
> 
>  >Subject: RE: JSP Server Page
> 
>  >Date: Tue, 10 Sep 2002 11:21:36 +0400
> 
>  >
> 
>  >You need jasper-compiler.jar (jasper.jar won't help). And you should use
> 
>  >paths starting with '/' as source for the JSPGenerator and JSPReader, 
> e.g.:
> 
>  >
> 
>  >
> 
>  >
> 
>  >--
> 
>  >Konstantin Piroumian
> 
>  >
> 
>  >
> 
>  >-Original Message-
> 
>  >From: Sushil Bhattarai [mailto:[EMAIL PROTECTED]]
> 
>  >Sent: Tuesday, September 10, 2002 12:24 AM
> 
>  >To: [EMAIL PROTECTED]
> 
>  >Subject: JSP Server Page
> 
>  >
> 
>  >
> 
>  >
> 
>  >Hi
> 
>  >
> 
>  >I have been unable to run the JSP demo that comes with Cocoon2.0.2. I 
> saw in
> 
>  >the discussion list that jasper.jar needs to be in WEB-INF/lib but that's
> 
>  >not helping either. I'm running Cocoon on Catalina (Tomcat 4.0.1).
> 
>  >
> 
>  >Sushil
> 
>  >
> 
>  >
> 
>  > _
> 
>  >
> 
>  >Join the world's largest e-mail service wit

Re: JSP Server Page

2002-09-09 Thread Lajos Moczar

Sushil -

You need to patch JSPGenerator and/or JSPReader in 2.0.2 in order to 
make it work. Or, much easier, upgrade to 2.0.3

Regards,

Lajos
galatea.com
Cocoon training, consulting & support


Sushil Bhattarai wrote:

> Hi
> 
> I have been unable to run the JSP demo that comes with Cocoon2.0.2. I 
> saw in the discussion list that jasper.jar needs to be in WEB-INF/lib 
> but that's not helping either. I'm running Cocoon on Catalina (Tomcat 
> 4.0.1).
> 
> Sushil
> 
> 
> 
> Join the world's largest e-mail service with MSN Hotmail. Click Here 
> <http://g.msn.com/1HM1ENUS/c157??PI=44364>
> - 
> Please check that your question has not already been answered in the FAQ 
> before posting. To unsubscribe, e-mail: For additional commands, e-mail:


-- 



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

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




How do SOAP services work in 2.1?

2002-09-09 Thread Lajos Moczar

Quick question - I've tested out the hello.service example (in the 
samples/hello-world subproject from 2.1) from my SOAP client, and 
received back the expected XML content in the SOAP response. Then I 
created my own 'service', by simply having my own pipeline spit out XML. 
My question is: how does Cocoon know to encapsulate the response in 
SOAP? I've searched the source code and can't see where the logic is.

Any clues appreciated.

Regards,

Lajos
-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: [Q] Form posting sitemap pattern...

2002-09-04 Thread Lajos Moczar

Hi Per -

If you were using the formval logicsheet and the FormValidatorAction, 
you'd have something like this:

  
   




 
 

   
   
   
   
  

Here, the "newbook" pipeline is the action for your form and "books" is 
the pipeline for the display of books (not shown). When the "newbook" 
pipeline executes, the action "validator" tries to validate the posted 
form. If nothing was posted, or if the validation failed, execution 
drops outside that  block to the "addbook.xsp" page, which 
contains your form and which uses the formval logicsheet to access info 
on what failed during validation. If validation succeeds, then 
everything inside that  block gets executed which, as you can 
see, uses the DatabaseAddAction to insert the row in your database and 
then redirects the user to the "books" pipeline. Key to the 
DatabaseAddAction, FormValidatorAction and formval logicsheet is the 
descriptor file "newbook-def.xml". All these concepts are discussed in 
the Cocoon documentation.

The main gotcha here is the formval logicsheet is a bit clumsy to use, 
as you have to make sure you not only display validation errors to the 
user, but repopulate valid fields with the data the user already entered.

Regards,

Lajos

galatea.com
Cocoon training, consulting & support


Per Kreipke wrote:

> I can't quite figure out what the right way is to use actions to handle
> posting when there is an originating page, the form itself, a validator and
> an action.
> 
> Scenario:
> 
> - The user has a page which displays a collection of items of some sort
> (books).
>   + page: books.xyz
> 
> - clicking 'new' on the books page brings up a form for entering a new
> book's details
>   + page: newbook.xyz
> 
> - posting the book's details should validate the book's details (must have a
> title)
>   + validator action: ValidateBook.java
> 
> - Code adds the book to the book repository
>   + add action: AddBook.java
> 
> 
> Flows:
> 
> books.xyz -> [new book] -> newbook.xyz -> [post]
>   -> ValidateBook -> [ok] -> AddBook -> books.xyz
> 
> 
> books.xyz -> [new book] -> newbook.xyz -> [post]
>   -> ValidateBook -> [fail] -> newbook.xyz
> 
> 
> Details:
> 
> - to implement both flows above, I can't figure out what:
>   + the 'action' target of the POST should be: books.xyz again, newbook.xyz?
>   + what matcher to put the validate and add actions on
> 
> Any help would be appreciated. A pointer to or an actual sample sitemap
> snippet would be great.
> 
> FYI, I'm not using XMLForm and I'm using 2.0.3
> 
> Per
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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




Re: could not add record/mysql

2002-09-02 Thread Lajos Moczar

Wolfgang -

Make sure you change the pool name not just in cocoon.xconf but anywhere 
you actually use the pool, like create-empl.xsp. Then bounce your 
servlet container so Cocoon will reread cocoon.xconf. If you do those 
things and still have problems, stop Tomcat, delete the work directory 
for the cocoon webapp, and then restart it.

Regards,

Lajos


Wolfgang Weigel wrote:

> hi!
> 
> i tried to change the example from
> http://localhost:8080/cocoon/tutorial/home.html by using a mysql-database.
> everything works fine if using the name "personnel" for the
> database-connection in the cocoon.xconf ( logger="core.datasources.mysql" name="personnel">)
> 
> as soon as i modify the name-parameter (e.g. mysql) i get the following
> exception:
> 
> Message
> 
> Could not add record
> 
> 
> Source
> 
> org.apache.cocoon.ProcessingException
> 
> 
> Description
> 
> org.apache.cocoon.ProcessingException: Could not add record:
> org.apache.avalon.framework.component.ComponentException: datasources:
> ComponentSelector could not find the component for hint: personnel
> 
> 
> Does anybody have a solution?
> 
> 
> bye
> 
> wolfgang
> 
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: clearing all caches

2002-08-19 Thread Lajos Moczar

Delete Tomcat's work directory for your webapp 
($CATALINA_HOME/work/Standalone/localhost ...)

Lajos


Vaskin Kissoyan wrote:

> I'm sometime seeing changes and sometimes not, how do I make sure 
> everything is be reflected properly? Is there a way to clear Cocoon's 
> cache directly, as I'm pretty sure its not in my browser cache or 
> anywhere else that I can tell, and restargint Tomcat doesn't seem to do 
> it either.
> 
> Tomcat 4.04
> Cocoon 2.0.3
> Mozilla very recent Nightly
> 
> Working on bonebreaker.zip from cocooncenter.de 's "Creating a 
> navigation Menu"
> 
> When I try to add new sections I have issues where I cannot see the new 
> sections, I have edited and created new home.xml pages and everything.
> 
> any help would be appreciated.
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Xms, Xmx, freememory and heapsize

2002-08-19 Thread Lajos Moczar

Hi folks -

In January, there was an excellent post (with the same subject line) by 
Peter Hargreaves describing his experiences and recommendations for 
setting -Xmx, freememory and heapsize. One of his recommendations was 
that the value of heapsize should be somewhat less than that of -Xmx (he 
suggested the difference could be the value of freememory, as a good 
rule of thumb). The logic was that Cocoon needed some free memory to run 
the StoreJanitor. If -Xmx and heapsize were the same, you could 
theoretically have a situation in which Cocoon would not have enough 
memory to free memory.

But in some subsequent posts, I've seen it stated several times that 
-Xmx and heapsize should be the same. My question is whether anything 
changed in the 2.0.3 StoreJanitor implementation that makes Peter's 
suggestions irrelevant, or are they still valid?

Thanks.

Lajos

-- 
galatea.com
Cocoon training, consulting & support



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

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




Cocoon 2.1 - empty pages?

2002-07-29 Thread Lajos Moczar

Hi all -

I successfully compiled the latest version of 2.1, only to find all the 
pages empty; i.e., nothing between the  tags. In error.log I get:

ERROR   (2002-07-29) 12:46.47:099   [access] (Unknown-URI) 
Unknown-thread/Cocoon
Servlet: Cocoon servlet threw an Exception while trying to close stream.
java.io.IOException: The stream has been closed

Happens with IE and Netscape.

Thanks.

Lajos

-- 
galatea.com
Cocoon training, consulting & support


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

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




Debugging buggy XSL code

2002-07-16 Thread Lajos Moczar

Hi all -

At various times (or versions), I though I have seen Cocoon spit out 
messages about XSL errors, like "The element type "xsl:if" must be 
terminated by a matching end-tag". In 2.0.2, these messages come at the 
Tomcat console window or logs. Wouldn't it be helpful to capture these 
messages and add them to Cocoon error page? It would certainly help me - 
the "Transform error: null pointer exception" doesn't mean very much.

If someone has an idea of where the change needs to be made, unless it 
has already been done, I'll gladly look into doing it.

Regards,

Lajos

-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: Java packages

2002-07-16 Thread Lajos Moczar

You still can keep your concept of "Application". I look at Cocoon as a 
framework, within which my applications run. I make each application a 
subdirectory off the main directory, and each has its own sitemap. The 
benefit is that I have a "clean" sitemap, (i.e. very few map:component 
definitions except those that are specific to the application, like 
actions) and then I have a certain degree of portability. I have 
development and deployment copies of my website, which is comprised of 4 
such applications. When I want to roll a new version of an application, 
I jar up the appropriate directory, copy it to the production machine 
and unjar. All automated, too.

A traditional Servlet Spec-based application is a different paradigm 
from a Cocoon-based application which, obviously can only run inside 
Cocoon. In a way, you are comparing apples and oranges. A Cocoon-based 
application does have certain ties to the framework: the application 
sitemap must be referenced in the main sitemap and it shares 
WEB-INF/libs and the settings in web.xml/cocoon.xconf. Unless, of 
course, you write your own class-loader that picks up jars from your 
application directory structure.

Regards,

Lajos
galatea.com
Cocoon training, consulting & support


Robert Bourdeau wrote:

>>>It's not that these solutions won't work, but they feel awkward and
>>>seem a little like hacks. I work in a shop where we have multiple
>>>virtual hosts running on a single server configuration, and within
>>>each virtual host, multiple applications. Further, there are dev,
>>>alpha, beta, and prod configurations of everything, so I expect to
>>>be able to configure my software to allow for the independent upgrade
>>>of a Cocoon application from dev to prod without interferring
>>>with any of my other applications (except for changes in the common
>>>components, Cocoon, Tomcat, etc.)
>>>
>>Every application has WEB-INF directory, thus, it has all the libraries
>>it needs and it does not interfere with other applications.
>>
>>When you upgrade one of the applications, you just replace application
>>directory with the version of the new one, replacing all the libraries
>>old application has with new versions. This does not affect any other
>>application deployed in the system.
>>
>>
>>So, what's the issue?
>>
>>Vadim
>>
> 
> 
> You're calling Cocoon "the application". For me, the application is 
> my "Environmental Treaty Information Service", and 
> my "Work Flow Management System", and my "Guide to Global Population
> Projections", and my "Collaborative Document Authoring Environment".
> These applications could all be XML applications supported by Cocoon, 
> but in Cocoon they do not get their own WEB-INF directory. In JSP, they
> do. Now, yes, I could create subdirs in cocoon/WEB-INF/classes or create
> separate jars for each in the libs, and have my apps each include their own.
> I'm still mulling this over, and maybe this is all fine. Still mulling this
> over.  In gneral, I'm wanting something as transparent as a an Apache module, 
> or add on Tomcat core classes. Something more transparent than Cocoon
> current seems.
> 
> Don't get me wrong. I think Cocoon is great. It's really fantastic.
> It's a steep learning curve, but I think it's worth the climb.
> This is a hunt for the right way to configure an environment for
> multiple developers, multiple projects, multiple computers,
> and a staged releases.
> 
> Thanks for your comments!
> 
> --- Bob
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>

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




[SUMMARY] JspReader/JspGenerator in 2.0.2

2002-07-10 Thread Lajos Moczar

Hi all -

I've seen several rather frustrated posts from users trying to figure 
out how to make JspReader and/or JspGenerator work in Cocoon 2.0.2. This 
email describes how.

JspReader

Edit src/java/org/apache/cocoon/reading/JSPReader.java and replace the 
following lines (119-132):

 // KP: A hacky way of source resolving.
 // Why context:// protocol returns not a string in URL format,
 // but a system-dependent path with 'file:' prefix?
 String contextDir = new 
File(httpContext.getRealPath("/")).toURL().t
oExternalForm();
 src = this.resolver.resolve(this.source);
 String url = src.getSystemId();
 if(url.startsWith(contextDir)) {
 // File is located under contextDir, using relative 
file name
 url = url.substring(contextDir.length());
 }
 if (url.startsWith("file:")) {
 // we need a relative path
 url = url.substring(5);
 }

with the following:

 String url = this.source;

 // -- debug info --
 src = resolver.resolve(url);
 System.out.println("Resolved to: " + src);
 java.net.URL resURL = httpContext.getResource(".");
 System.out.println(". resource is: " + resURL);
 // -- end debug --


 // absolute path is processed as is
 if (!url.startsWith("/")) {
 // get current request path
 String servletPath = httpRequest.getServletPath();
 // remove file part
 servletPath = servletPath.substring(0, 
servletPath.lastIndexOf('
/') + 1);
 url = servletPath + url;
 }

JspGenerator

Edit src/java/org/apache/cocoon/generation/JspGenerator.java and replace 
the following lines (106-113):

 src = this.resolver.resolve(this.source);
 String url = src.getSystemId();
 // Guarantee src parameter is a file
 if (!url.startsWith("file:/"))
 throw new IOException("Protocol not supported: " + url);

 url = url.substring(5);
 getLogger().debug("JspGenerator executing JSP:" + url);

with the following:

 String url = this.source;
 // absolute path is processed as is
 if (!url.startsWith("/")) {
 // get current request path
 String servletPath = httpRequest.getServletPath();
 // remove file part
 servletPath = servletPath.substring(0, 
servletPath.lastIndexOf('
/') + 1);
 url = servletPath + url;
 }


The rebuild Cocoon and replace your existing cocoon-2.0.2.jar with the 
new one in build/cocoon/webapp/WEB-INF/lib.

Don't forget to copy jasper-compiler.jar from $CATALINA_HOME/lib to 
WEB-INF/lib (or whatever JSP compiler you choose to use).

Finally, if you are using a sub-sitemap, any references to JSP files in 
pipelines with either JspReader or JspGenerator must have the path 
starting from the root cocoon context and MUST start with a leading 
forward slash. Thus, if you have a sub-sitemap in a directory called 
abc, with a JSP file in abc/jsps/hello.jsp, the src attribute of either 
component should be something like:

src="/abc/jsps/hello.jsp"


Cheers,

Lajos

-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: Getting parameters to SQLTransformer

2002-06-24 Thread Lajos Moczar

Hi Luca -

I agree that the SPs are the way to go - when I was a DBA, I used to 
enforce their use all the time. What I was after here was to include 
sitemap/request/session parameters into the XML file during the 
generation phase, so that the complete query would be passed to the 
transformer. I have gone the XSL route before, and I guess that is what 
I'll stick with now.

Thanks,

Lajos


Luca Morandini wrote:

> Lajos,
> 
> the substitution in SQL Transformer uses parameters defined in the sitemap,
> which don't fit your bill I presume...
> 
> ...but, being it a transformer, you can feed it any SQL you have built from
> whatever source (XSL, XSP, plain XML file, ...), including any parameters of
> your choice.
> This is not the same as "dynamic parameters" though, it is like "dynamic
> SQL".
> 
> What I would suggest is the use of stored procedures, with an XSL building
> the statement, hence:
> 1) max flexibility in the value of parameters (build them as you like, from
> whatever source you like)
> 2) min performance penalty (the real SQLs are already been parsed when the
> stored procedure was submitted to the DBMS)
> 
> Not to mention the SoC it enforces.
> 
> And if your DBMS doesn't support SPs ? Use dynamic SQL by using stylesheets
> or XSPs: after all, this is what a lot of people does with ASP anyway.
> 
> Hope this helps,
> 
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> 
> 
>>-Original Message-
>>From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, June 24, 2002 10:18 PM
>>To: [EMAIL PROTECTED]
>>Subject: Getting parameters to SQLTransformer
>>
>>
>>I think I know the answer, but is there any way to construct dynamic
>>queries using SQLTransformer? Specifically, I'd like to build the where
>>clause of my query using either a session attribute or a sitemap
>>parameter. I've been thru the code and don't see that it can be done,
>>but I thought I'd ask just the same ... I'm on 2.0.2.
>>
>>Regards,
>>
>>Lajos
>>
>>--
>>galatea.com
>>Cocoon training, consulting & support
>>
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Getting parameters to SQLTransformer

2002-06-24 Thread Lajos Moczar

I think I know the answer, but is there any way to construct dynamic 
queries using SQLTransformer? Specifically, I'd like to build the where 
clause of my query using either a session attribute or a sitemap 
parameter. I've been thru the code and don't see that it can be done, 
but I thought I'd ask just the same ... I'm on 2.0.2.

Regards,

Lajos

-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: Lucene and cocoon-view

2002-06-20 Thread Lajos Moczar

Hi Maha -

Do you have a message in core.log from SimpleLuceneXMLIndexerImpl saying 
something about "Ignoring ... "? Check that the view is working 
correctly: call http://localhost:8080/cocoon/myapps?cocoon-view=content 
and make sure it is returning XML with a mime-type of text/xml. If not, 
Lucene will ignore it. Of course, http://localhost:8080/cocoon/myapps 
has to be a real URI.

Regards,

Lajos
galatea.com
Cocoon training, consulting & support


Maha Al-Yahya wrote:

> Hi Lajos,
> Good for you, but unfourtunately I'm still having a problem running the
> search on my webapp. I use the sample search with cocoon and input the
> base URL as:
> http://localhost:8080/cocoon/myapps
> (Iwant cocoon to search all documents in myapps directory)
> 
> in myapps sub-sitemap I put the following within components:
> 
>  
>  
> 
> 
>  
> 
> and in the pipeline section of myapps sitemap like this:
> 
>   
>   
>   
> 
> 
> However when I click on create button, the created false value turns to
> true and when I see the statistics page everthing is zero and If I search
> for any word nothing appears. I checked the log files but nothing helped.
> 
> Any advice or suggestions?
> 
> Cheers,
> Maha
> 
> On Thu, 20 Jun 2002, Lajos Moczar wrote:
> 
> 
>>I found my problem; just an oopsee (yes, this is a technical term ;) ), 
>>nothing wrong with Cocoon 2.0.2. I had defined a view called "content" 
>>but fat-fingered the map:views section into the map:components section. 
>>Once I fixed that, Lucene worked like a charm.
>>
>>Lajos
>>
>>
>>leo leonid wrote:
>>
>>
>>>On Thursday, June 20, 2002, at 04:12  Uhr, M Al-yahya wrote:
>>>
>>>
>>>>Hi Leo,
>>>>
>>>>I'm using Cocoon's latest release cocoon 2.0.2 and Tomcat 4.0.4-b3
>>>>
>>>>Cheers,
>>>>Maha
>>>>
>>>>
>>>hmm... I never used the 2.0.2 release, I always used the CVS version, 
>>>and everything was fine till beginning of may
>>>(long after the 2.0.2 release) (On may 8 I sent my first mail about this 
>>>problem to this list.) Thats why I connected this problem with 2.1-dev.
>>>
>>>Anyway, I now use the 2.0.3 branch and where view-labels within 
>>>aggregation and indexing the docs is possible.
>>>But the problem exits (still or again) in the CVS HEAD branch.
>>>/Leo
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>leo leonid wrote:
>>>>
>>>>
>>>>>On Thursday, June 20, 2002, at 02:57  Uhr, M Al-yahya wrote:
>>>>>
>>>>>
>>>>>>Hello,
>>>>>>
>>>>>>I'm experimenting with cocoon XML search using lucene.
>>>>>>
>>>>>
>>>>>You are using the the 2.1-dev version of cocoon, right?
>>>>>
>>>>>
>>>>>>At
>>>>>>http://localhost:8080/cocoon/search/create if I input the base URL 
>>>>>>as it
>>>>>>is :
>>>>>>http://localhost:8080/cocoon/documents/index.html the creation goes on
>>>>>>well and the search is good. However, if I input the base URL:
>>>>>>http://localhost:8080/cocoon/mywebapp/index.html
>>>>>>the index statistics shows everything 0 and I don't see anything 
>>>>>>helpful
>>>>>>in the logs. I think it has to do with the statement "The base url
>>>>>>should be cocoon-view aware of content-labels links, and content." I've
>>>>>>read the concepts/view section of the documentation but could not 
>>>>>>figure
>>>>>>out what must I do to make my XML files cocoon-view aware.
>>>>>>
>>>>>>
>>>>>everything right, only something prevents the 2.1-dev version from
>>>>>interpreting labels within an aggregation
>>>>>
>>>>>
>>>>>>Any suggestions?
>>>>>>
>>>>>>
>>>>>writing a patch or waiting for the bug fix or using cocoon 2.03 :-(
>>>>>/Leo
>>>>>
>>>>>
>>>>>>Cheers,
>>>>>>Maha
>>>>>>
>>>>>>-
>>>>>>Please check that your question  has not already been 

Re: URL rewriting solution in FAQ does not do the trick

2002-06-18 Thread Lajos Moczar

True, you are building stuff right out of the box and don't want to make 
configuration changes that might be overwritten when you reinstall or 
upgrade components. However, for production purposes, the Tomcat home 
and docs pages are oftentimes superfluous (just like Cocoon examples, 
Apache docs, etc.). At least I find them sperfluous, as do many of my 
clients. Hence, I typically strip off all included webapps, and make 
cocoon the ROOT context.

Regards,

Lajos


Luca Morandini wrote:

> Lajos,
> 
> OTOH, the adding of this context will make the Tomcat doc and Tomcat home
> page unreacheable.
> 
> There are ways around it (like the adding of /root and /tomcat-docs
> contexts),
> but replacing the default Tomcat behaviour doesn't seem to me such a good
> idea; though, it may be just fine for a production environment.
> 
> In my opinion the use of mod_rewrite, ugly as it may be, is still the path
> of least resistance (it doesn't alter the behaviour of anything).
> 
> Best regards,
> 
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
> http://utenti.tripod.it/lmorandini/index.html
> -----
> 
> 
> 
>>-Original Message-
>>From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, June 18, 2002 5:57 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: URL rewriting solution in FAQ does not do the trick
>>
>>
>>Why not do this in $CATALINA_HOME/conf/server.xml:
>>
>>>  debug="0" reloadable="true"/>
>>
>>Regards,
>>
>>Lajos
>>
>>
>>Robert Bourdeau wrote:
>>
>>
>>>This is more of an Apache question than a Cocoon question, but
>>>hopefully someone will know what I'm doing wrong here.
>>>
>>>Setup: SPARC Solaris 2.7, Apache 1.3.24 w/mod_webapp (Warp),
>>>
>>and Tomcat 4.0.1
>>
>>>Goal:  Eliminate cocoon from the URL
>>>Constraints:  Want all my custom content (XML, stylesheets,
>>>
>>etc.) to be removed
>>
>>>from the Cocoon tree so I can upgrade Cocoon separately. Must
>>>
>>use Apache to
>>
>>>receive request. URL mapping has to be done per virtual host.
>>>
>>>I looked at the FAQ, and followed the instructions. I rebuilt
>>>
>>Apache with mod_rewrite
>>
>>>enabled, then added the followed code to my httpd.conf:
>>>
>>>
>>>ServerName myhost.mydomain
>>>DocumentRoot   /myhost.mydomain/htmls
>>>
>>>
>>>RewriteEngine on
>>>RewriteLog /var/adm/www/rewrite.log
>>>RewriteLogLevel 9
>>>RewriteRule ^/xml /cocoon/xml/ [R]
>>>RewriteRule ^/xml(.*) /cocoon/xml$1 [R]
>>>
>>>
>>>WebAppConnection   conn  warpmyhost.mydomain:8008
>>>WebAppDeploy   cocoonconn/cocoon
>>>
>>>
>>>I also modified the Cocoon sitemap.xmap to forward the
>>>
>>processing to a sitemap
>>
>>>outside of the Cocoon tree.
>>>
>>>This URL works:
>>>
>>>http://myhost.mydomain/cocoon/xml/foo
>>> * Apache correctly passes the /cocoon/xml/foo address to
>>>Tomcat which then passes it to Cocoon. Output is correct
>>>
>>>This URL
>>> http://myhost.mydomain/xml/foo
>>>is redirected to http://myhost.mydomain/cocoon/xml/foo
>>>and the user sees it in the browser. Not what I wanted.
>>>I tried the single line [PT] variation shown in the FAQ, and
>>>as indicated there, this does not work at all.
>>>
>>>Thoughts?
>>>
>>>Regards,
>>>--- Bob Bourdeau
>>>
>>>-
>>>Please check that your question  has not already been answered in the
>>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>>
>>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>>
>>>
>>
>>--
>>
>>Cocoon training, consulting & support
>>galatea.com
>>
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.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/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 
galatea.com
Cocoon training, consulting & support



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

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




Re: URL rewriting solution in FAQ does not do the trick

2002-06-18 Thread Lajos Moczar

Why not do this in $CATALINA_HOME/conf/server.xml:



Regards,

Lajos


Robert Bourdeau wrote:

> This is more of an Apache question than a Cocoon question, but
> hopefully someone will know what I'm doing wrong here.
> 
> Setup: SPARC Solaris 2.7, Apache 1.3.24 w/mod_webapp (Warp), and Tomcat 4.0.1
> 
> Goal:  Eliminate cocoon from the URL
> Constraints:  Want all my custom content (XML, stylesheets, etc.) to be removed
> from the Cocoon tree so I can upgrade Cocoon separately. Must use Apache to
> receive request. URL mapping has to be done per virtual host.
> 
> I looked at the FAQ, and followed the instructions. I rebuilt Apache with mod_rewrite
> enabled, then added the followed code to my httpd.conf:
> 
> 
> ServerName  myhost.mydomain
> DocumentRoot   /myhost.mydomain/htmls
> 
> 
> RewriteEngine on
> RewriteLog /var/adm/www/rewrite.log
> RewriteLogLevel 9
> RewriteRule ^/xml /cocoon/xml/ [R]
> RewriteRule ^/xml(.*) /cocoon/xml$1 [R]
> 
> 
> WebAppConnection   conn  warpmyhost.mydomain:8008
> WebAppDeploy   cocoonconn/cocoon
> 
> 
> I also modified the Cocoon sitemap.xmap to forward the processing to a sitemap
> outside of the Cocoon tree.
> 
> This URL works:
> 
> http://myhost.mydomain/cocoon/xml/foo
>   * Apache correctly passes the /cocoon/xml/foo address to 
> Tomcat which then passes it to Cocoon. Output is correct
> 
> This URL 
>  http://myhost.mydomain/xml/foo
> is redirected to http://myhost.mydomain/cocoon/xml/foo
> and the user sees it in the browser. Not what I wanted.
> I tried the single line [PT] variation shown in the FAQ, and 
> as indicated there, this does not work at all.
> 
> Thoughts?
> 
> Regards,
> --- Bob Bourdeau
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 


-- 

Cocoon training, consulting & support
galatea.com



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

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




Logging problem with actions & subsitemaps?

2002-06-09 Thread Lajos Moczar

It might be because its the end of another long weekend of work, but I'm 
stumped here. I've got some sub-sitemaps that use various actions like 
DatabaseAuthenticatorAction, etc. Problem is, none of the debug 
statements ever show up in the logs. Specifically, I'm trying to figure 
out why a login doesn't work, but I can't find ANYTHING in the logs from 
the DatabaseAuthenticatorAction. I haven't fiddled with any logging 
setttings.

Am I missing something simple?

TIA,

Lajos

Cocoon training, consulting & support
galatea.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]>




Re: Logging and Form Validation

2002-06-07 Thread Lajos Moczar

Another point worth mentioning is complexity. I have done some sites 
stuffed so full of JS that things started breaking without any reason. 
JS has inherent flaws (in my experience) that prevent it from doing the 
complex sorts of things many clients need. For small-scale validation, 
no problem. But for complex operations, like Adam's example, I'll stick 
with Cocoon and have the client upgrade their servers, if need be.

Lajos
galatea.com


Andrew Savory wrote:

> Hi,
> 
> On Fri, 7 Jun 2002, Luca Morandini wrote:
> 
> 
>>wait: how many users out there are without JavaScript support ?
>>
> 
> Irrelevant question - if there is only one user without javascript
> support, you should support that user, surely? The point of the web being
> accessibility and the point of a web developer being to develop for the
> *web* and not for specific web browsers? It's frustrating that people are
> STILL assuming support for X, Y and Z in browsers even after so many years
> of browser wars.
> 
> 
>>I won't write both validations, I don't simply cater to people wihout
>>Javascript... and I wonder how many developers pay attention to those
>>unlucky fellows.
>>
> 
> Well, if you're lucky enough to have clients that are happy with sites
> that only do client-side validation that only works in specific browsers
> with specific options enabled, fair enough. I could rant on here about
> text-mode browsers, line readers, security-conscious users that surf with
> scripting turned off, etc, but given you're using Cocoon, I'm sure you
> know how easy it is to provide support for these other browsers simply by
> adding more stylesheets ;-)
> 
> Adam: in answer to your question, take a look at:
>   src/webapp/docs/samples/formvalidation/descriptor.xml
> ...which gives a nice example of doing form validation using XML
> descriptors. See also:
>   http://xml.apache.org/cocoon/xmlform/step2-xmlform-howto.html
> ...for the new way of doing things.
> 
> Hope that helps,
> 
> 
> Andrew.
> 
> 


-- 
Lajos

Cocoon training, consulting & support
galatea.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]>




Re: Logging and Form Validation

2002-06-07 Thread Lajos Moczar

web developers could always learn Cocoon ...

Vadim Gritsenko wrote:

>>From: Hunsberger, Peter [mailto:[EMAIL PROTECTED]]
>>
>>
>>>(remember, you still must have validation on the backend)
>>>
>>Precisely my original point: since you have to write the server side
>>validation anyway, do you really want to write both client and server
>>
> side
> 
>>validation? 
>>
> 
> It is standard to have client-side validation in my current client
> company. And it makes sense most of the time - you want to keep count of
> round trips low.
> 
> Otherwise, what web developers would do? ;)
> 
> Vadim
> 
> 
> 
>>I only do so if there is a real performance penalty with the
>>page validation/regeneration on the server side...
>>
>>
> 
> 
> -
> 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]>
> 
> 


-- 
Lajos

Cocoon training, consulting & support
galatea.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]>




Re: Logging and Form Validation

2002-06-07 Thread Lajos Moczar

Sorry, read "logicsheet" instead of "action". Don't know where my mind 
has gone ...

Lajos


Lajos Moczar wrote:

> There is already an action included in Cocoon that does validation. 
> What's nice is that you define the validation parameters in a definition 
>  files and the action takes care of applying them. I suppose you might 
> need to define your own action to actually send the data where you want it.
> 
> Lajos
> 
> galatea.com
> Cocoon training, consulting & support
> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> So how would I accomplish this with Cocoon.  Could I just create a
>> component for doing that validation and treat it as a self contained 
>> pipe?
>>
>> -Adam
>>
>>
>> 
>
>>   
>> "Hunsberger,
>  
>>   Peter"To:   
>> "'[EMAIL PROTECTED]'" 
>> <[EMAIL PROTECTED]>   
>> > cc: 
>
>>   stjude.org>   Subject:  RE: Logging 
>> and Form Validation   
>> 
>
>>   06/07/02 12:06 
>> PM  
>   
>>   Please respond 
>> to  
>   
>>   
>> cocoon-users
>  
>> 
>
>> 
>
>>
>>
>>
>>
>>
>>> This is a major
>>> sticking point for my developers that like and are comfortable with jsp
>>> with javascript embedded.
>>> They want to keep it at the client and I am trying to build a case for
>>>
>> the
>>
>>> server through cocoon.
>>>
>>
>> IMNSHO, the only way you can justify client side validation is if you are
>> running an Intranet and you have an organization that somehow 
>> restricts the
>> users capability to modify browsers settings so that you can ensure
>> JavaScript is enabled.  Otherwise, you can receive unvalidated data...
>>
>> If you're running over the Internet it's fine to use client side 
>> validation
>> in addition to server side if you want to have some extra performance
>> benefits for those who have JavaScript enabled.  However, who wants to
>> maintain both?
>>
>> Even if you have an Intranet and locked down browser settings, client 
>> side
>> validation can be a real pain to maintain over time.  In particular, 
>> there
>> is (usually) no good coupling between the validation and the rest of the
>> server side code.  The exception is if you generate your client side
>> validation code from server side templates.  That's quite possible, but I
>> suspect that once you developers jump through the hoops of embedding
>> JavaScript within  XML ( lot's of escaping and/or CDATA) they won't 
>> object
>> to server side validation nearly so much...
>>
>>
>> -
>> 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]>
> 
> 



-
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: Logging and Form Validation

2002-06-07 Thread Lajos Moczar

There is already an action included in Cocoon that does validation. 
What's nice is that you define the validation parameters in a definition 
  files and the action takes care of applying them. I suppose you might 
need to define your own action to actually send the data where you want it.

Lajos

galatea.com
Cocoon training, consulting & support


[EMAIL PROTECTED] wrote:

> So how would I accomplish this with Cocoon.  Could I just create a
> component for doing that validation and treat it as a self contained pipe?
> 
> -Adam
> 
> 
>  
>   
>   "Hunsberger,   
>   
>   Peter"To:   
>"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 
>  
>   stjude.org>   Subject:  RE: Logging and Form 
>Validation   
>  
>   
>   06/07/02 12:06 PM  
>   
>   Please respond to  
>   
>   cocoon-users   
>   
>  
>   
>  
>   
> 
> 
> 
> 
> 
>>This is a major
>>sticking point for my developers that like and are comfortable with jsp
>>with javascript embedded.
>>They want to keep it at the client and I am trying to build a case for
>>
> the
> 
>>server through cocoon.
>>
> 
> IMNSHO, the only way you can justify client side validation is if you are
> running an Intranet and you have an organization that somehow restricts the
> users capability to modify browsers settings so that you can ensure
> JavaScript is enabled.  Otherwise, you can receive unvalidated data...
> 
> If you're running over the Internet it's fine to use client side validation
> in addition to server side if you want to have some extra performance
> benefits for those who have JavaScript enabled.  However, who wants to
> maintain both?
> 
> Even if you have an Intranet and locked down browser settings, client side
> validation can be a real pain to maintain over time.  In particular, there
> is (usually) no good coupling between the validation and the rest of the
> server side code.  The exception is if you generate your client side
> validation code from server side templates.  That's quite possible, but I
> suspect that once you developers jump through the hoops of embedding
> JavaScript within  XML ( lot's of escaping and/or CDATA) they won't object
> to server side validation nearly so much...
> 
> 
> -
> 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: How is it possible to remove 'files' from a war file?

2002-05-31 Thread Lajos Moczar

mkdir temporarydirectory
cd temporarydirectory
jar xvf $PATH_TO/cocoon.war
rm WEB-INF/lib/xalan-XXX.jar etc.
jar cvf cocoon.war *

Lajos
galatea.com


Ian Tindale wrote:

> I'm following the procedure for installing Cocoon 2.0.2 with Tomcat 4.0.3 with 
>j2sdk1.4.0 and in the instructions it mentions to:
> 
> *  Remove xalan-XXX.jar, xercesImpl-XXX.jar, batik-libs-XXX.jar, and xml-apis.jar 
>from the cocoon.war archive.
> 
> However, although I've found the war file specified, it's only a (large) single 
>file. No explanation is supplied as to how it is possible to remove anything from 
>inside it. Or am I looking at the wrong thing?
> 
> This is on Mandrake 8.2 btw.
> 
> Cheers.
> 
> 



-
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: build target with no samples?

2002-05-31 Thread Lajos Moczar

There is a simple way to build a cocoon.war file without the samples. We 
do it all the time to build our Azure product. First, you need to have a 
minimal sitemap somewhere in the source directory. I call mine 
sitemap-min.xmap (it's attached) and I put it in ./src/webapp. All I did 
was take the original sitemap.xmap and edit out all the crap between the 
 tags.

Then I added a new target to ./build.xml:






Optionally, you can strip out extra jars and the stuff in the classes 
directory, if you really wanted to get it lean.

Regards,

Lajos
galatea.com


Geoff Howard wrote:

> 
>>>Now you are asking a bit much.  How is Ant to know what 
>>>
>>components you
>>
>>>need.
>>>
>>It already does.
>>If you remove jars from the lib/optional dir it doesn't use 
>>those features,
>>and doesn't include them in the config.
>>
> 
> Right - I knew this much.  I've looked at adding a condition in the
> "excludes" in prepare-src-main that could be controlled from a
> .ant.properties file to keep stuff we don't need out.  For instance:
>   
>   
> ...
> 
> And set poi.ignore in the .ant.properties file in user.home so that fresh
> cvs checkouts which put all the jars back in again don't undo your changes.
> 
> Unfortunately, I can't find any Ant documentation which indicates whether
> you can combine both conditions into one statement ( unless="poi.present AND
> !poi.ignore" ) which would be more maintainable.  This could also be done if
> the class-exists task would take an unless argument.  I've looked at
> ClassAvailableTask and Task but can't quite figure out whether this is
> already provided for or would need to be coded for explicitly.
> 
> What do you think?  
> 
> The issue of unwanted examples still remains however.  I'm guessing that the
> only thing needed for this would be a build target with fewer dependencies.
> 
> Geoff
> 
> 
>>What is still lacking is a more user-friendly system and to 
>>complete the
>>samples refactoring.
>>
>>Blocks will make all this possible without recompiling, so it 
>>will even be
>>better.
>>
>>--
>>Nicola Ken Barozzi   [EMAIL PROTECTED]
>>- verba volant, scripta manent -
>>   (discussions get forgotten, just code remains)
>>-
>>
>>
>>-
>>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]>
> 
> 





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






 


  










   

   
  


  

  false
  false
  false








   

   

   
messages
translations
   

   

   

   
   

  


  

  


  





  1024


   

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

   
-//W3C//DTD SVG 2303 Stylable//EN
http://www.w3.org/TR/2000/03/WD-SVG-2303/
   

   
 -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
 UTF-8
   

   
  


  



   

   

   

   

   
  org.apache.cocoon.SessionState
   

   
  next-state
   

   
  referer
   
  


  
   















   

   

   

   

   

   

   

   

   

   

   
  


  






   

   

   

   

   

   

   

   

  
 




 
  
   
  

  


  
  
  
   
  

 





 
  
   
   


   
   
   
  

  
 
 
   
 
 
  

  
 
 



   

 
  

  
 


   

 
  

  
 
 

 
 
  
 





 
  
   
   
   
  
 





 
 






-
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: hsqldb - how do I get rid of this error message (and turn off hsqldb)

2002-05-29 Thread Lajos Moczar

I don't know PostgreSQL, but you might try putting the jar file in 
cocoon/WEB-INF/lib. I have found cases where cocoon doesn't have access 
to the jars in $CATALINA_HOME/common/lib, even though it is supposed to.

If that doesn't fix the problem, you'll have to post the error message.

Lajos


daniel robinson wrote:

> Ok,
> 
> I commented out the hsqldb stuff and this error has gone away - but I can't
> get PostgreSQL to work correctly.
> 
> I've created the sample DB and modified cocoon.xconf:
> 
>   
> 
>   
>   true
>   jdbc:postgresql:testdb
>   unknown
>   
> 
>   
> 
> and Web.xml contains:
> 
>  
>   load-class
>   
> org.postgresql.Driver
>   
> 
> 
> and pgjdbc1.jar (containing org.postresql.Driver) is in Tomcat/common/lib and
> I have created the sample tables in testdb within PostgreSQL.
> 
> Help appreciated.
> 
> Lajos Moczar wrote:
> 
> 
>>Comment out the hsqldb stuff in cocoon.xconf, unless you really need it.
>>
>>Lajos
>>
>>daniel robinson wrote:
>>
>>
>>>List,
>>>
>>>Is there some comprehensive DB configure doc for C2?  I've looked
>>>throught the listserv but its very piecemeal (sp?).  I keep getting this
>>>error from tomcat:
>>>
>>>Loading catalog: /localhost/cocoon/resources/entities/catalog
>>>Server.run/init: java.net.BindException: Address in use: JVM_Bind
>>>java.net.BindException: Address in use: JVM_Bind
>>>at java.net.PlainSocketImpl.socketBind(Native Method)
>>>at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
>>>at java.net.ServerSocket.(ServerSocket.java:170)
>>>at java.net.ServerSocket.(ServerSocket.java:82)
>>>at org.hsqldb.Server.run(Server.java:131)
>>>at org.hsqldb.Server.main(Server.java:78)
>>>at
>>>org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
>>>at java.lang.Thread.run(Thread.java:484)
>>>Starting service Tomcat-Apache
>>>Apache Tomcat/4.0.3
>>>
>>>help appreciated.
>>>
>>>Dan
>>>
>>>
>>>
>>>-
>>>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]>
> 
> 



-
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: hsqldb - how do I get rid of this error message (and turn off hsqldb)

2002-05-29 Thread Lajos Moczar

Comment out the hsqldb stuff in cocoon.xconf, unless you really need it.

Lajos


daniel robinson wrote:

> List,
> 
> Is there some comprehensive DB configure doc for C2?  I've looked
> throught the listserv but its very piecemeal (sp?).  I keep getting this
> error from tomcat:
> 
> Loading catalog: /localhost/cocoon/resources/entities/catalog
> Server.run/init: java.net.BindException: Address in use: JVM_Bind
> java.net.BindException: Address in use: JVM_Bind
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
> at java.net.ServerSocket.(ServerSocket.java:170)
> at java.net.ServerSocket.(ServerSocket.java:82)
> at org.hsqldb.Server.run(Server.java:131)
> at org.hsqldb.Server.main(Server.java:78)
> at
> org.apache.cocoon.components.hsqldb.ServerImpl.run(ServerImpl.java:101)
> at java.lang.Thread.run(Thread.java:484)
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> 
> help appreciated.
> 
> Dan
> 
> 
> 
> -
> 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)announcement: Cocoon training in June

2002-05-28 Thread Lajos Moczar

Hi folks -

We announced our Cocoon training classes a couple of months ago, but I 
wanted to remind all you stateside Cocooners that I'll be giving the 
Cocoon Fundamentals and Advanced Cocoon classes June 11-14 in Denver, 
CO. If you are interested, check out 
http://www.galatea.com/training/cocoon or call me at 800.711.4901.

Regards,

Lajos
galatea.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]>




Removing batik from Cocoon 2.0.2 build

2002-05-27 Thread Lajos Moczar

Hi all -

I've been experimenting in building a Cocoon that doesn't require an X 
server. I removed batik-all-1.5b1.jar from the build, along with all the 
svg examples in the sitemap, rebuilt and tried it. I found that in 
addition to these changes, the FOPSerializer needs to be commented out 
for Cocoon to run without an X server. When I comment it out, everything 
runs fine. But if I leave it in, I get an exception because 
FOPSerializer apparently relies on org.apache.batik.bridge.UserAgent. Is 
the only way for the FOP renderer to work is using batik? I don't need 
svg in my application, but I do need FOP. If FOP indeed needs batik, 
then it looks like I'm stuck with xvfb, Java 1.4 or the eteks.com 
version of awt.

Thanks in advance.

Lajos
galatea.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]>




Re: Cocoon book reviewers wanted

2002-05-22 Thread Lajos Moczar

For GPL/LGPL, see http://www.gnu.org/copyleft/

Regards,

Lajos
galatea.com

Bert Van Kets wrote:

> Ah, I definitely need to brush up my understanding of the license 
> agreements.
> Darn, I hate those legal texts.
> Does anybody know a good site where all the different license agreements 
> are explained in English?
> Bert
> 
> At 14:43 22/05/2002 +0200, you wrote:
> 
>> >De: Bert Van Kets [mailto:[EMAIL PROTECTED]]
>> >
>> >My opinion exactly!
>> >Open Source survives because it is used in a commercial world.
>> > Let this be the "Paradox of Open Source".
>> >Bert
>>
>> IM(H)O, this is not a paradox at all. This is a paradox for "free" 
>> license
>> (GPL) project, but not for apache. Too many people make a confusion 
>> between
>> *Open* Source and *Communist* Source :)
>>
>>
>> fabien.
>>
>> -
>> 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: Jboss and Tomcat

2002-05-20 Thread Lajos Moczar

Jorge -

No question is stupid on this list. After all, we've all been there.

JBoss is an EJB container that optionally contains an embedded version 
of Tomcat. Tomcat by itself is simply a servlet container.

Cocoon can run under JBoss/Tomcat or just Tomcat. If you are just 
starting out with Cocoon, Tomcat 4.0.1 is the easiest servlet engine to 
start with.

Regards,

Lajos
galatea.com


Jorge Bello wrote:

> May be this is a stupid question. Sorry any way,
> I'm a beginner.
> 
> Could someone shed some light about the
> differences between Jboss and Tomcat.
> What is every one for ?
> 
> 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]>
> 
> 



-
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: iPlanet + Cocoon: did anybody try?

2002-05-15 Thread Lajos Moczar

I did, but something (I presume in Cocoon) kept unexpectedly bringing 
down iPlanet. I ended up switching back to Tomcat.

Regards,

Lajos


Argyn Kuketayev wrote:

> I must test my reporting module written with Cocoon on jBoss/Tomcat,
> iPlanet, IBM WAS, BEA WLS.
> 
> My main concern is iPlanet, since I'm more or less confident about others.
> Did any body deploy real-life Cocoon apps in iPlanet 6.5? Need resources.
> 
> Argyn
> 
> -
> 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: Cocoon 1.8.2 and Tomcat 3.2.1

2002-05-03 Thread Lajos Moczar

Hi Joshua:

http://www.galatea.com/flashguides/apache-tomcat-cocoon-win32.xml should 
help you.

Regards,

Lajos


Joshua Miller wrote:

> I'm trying to get Cocoon 1.8.2 up and running with Tomcat 3.2.1 on a 
> Windows XP machine.
> 
> I'm new to Cocoon and I can't seem to get things running.
> 
>  
> 
> I followed the installation instructions included in the 
> /docs/install.htm file exactly - I got a 404 when trying to access .xml 
> files.
> 
> I tried manipulating the tomcat.bat file by creating the CLASSPATH 
> statically to ensure that Xerces jar file loaded AFTER everything else 
> ... I still get a 404.
> 
> I tried uninstalling and reinstalling EVERYTHING - including Tomcat ... 
> I still get a 404.
> 
>  
> 
> Tomcat runs fine, I get no errors other than 404 - all the XSL files 
> work fine and JSP/Servlets are running fine under Tomcat.
> 
>  
> 
> Anyone have any help to offer?
> 
>  
> 
> I can send you the .bat file or anything you need to help out - just let 
> me know.
> 
>  
> 
> THANKS!
> 
>  
> 
> Joshua Miller
> 
> Web Development :: Programming
> Eagle Web Development LLC
> www.eaglewd.com <http://www.eaglewd.com/>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> (304) 622-5676 (Clarksburg Office)
> (304) 456-4942 (Home Office)
> 
>  
> 
> -
> 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: MySQL

2002-04-26 Thread Lajos Moczar

Istvan -

http://www.galatea.com/flashguides/cocoon-tips-2.xml on my site has a 
section about MySQL and Cocoon. Don't try with JDK 1.4, though. People 
have recently reported problems with the connections under that JDK.

Tisztelettel,

Lajos
galatea.com


Istvan Beszteri wrote:

> Hi All,
> 
> Is there somewhere any detailed decription about how to get Cocoon work with 
> MySQL? I have found many complaining mails and answers about particular 
> problems, but non of them contains a reference to a complete doq.
> Br,
>   Istvan
> 
> -
> 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: Memory leaks(?)

2002-04-25 Thread Lajos Moczar

With 1Gb of memory, I suggest starting with something like this and 
tuning from there:

-Xms200m -Xmx600m


  
  
  
  
  
   


Regards,


Lajos
galatea.com


Rogier Peters wrote:

> Hi,
> 
> We've been running cocoon for some time now, and we really like it, but we keep 
>having problems with memory usage. 
> We're running on a dual pII-700 with 1Gb memory and windows 2000 server. I just 
>upgraded from jdk1.3.1_01 to 1.3.1_03, using the hotspot jvm, and from cocoon 2.0.1 
>to 2.0.2 but is doesn't seem to solve the problems.
> The site we're developing is largish, about 1000 pages, and probably very (too?) 
>transformation intensive. A typical page transforms the aggregate of about 5 
>elements, which each come from pipelines that do a couple of transform on data that 
>is retrieved from an xml database with a custom Source.
> 
> The problem is that with each page, looking at the Windows Task Manager, memory use 
>increases by about 25M and although in the processes window java.exe will reduce 
>memory now and again, system memory use stays high. 
> 
> I played around with the jvm -Xmx option, and with cocoon.xconf heapsize and cached 
>objects, but that didn't help. I was wondering whether anyone had the same problems 
>with cocoon, and I am of course very interested in solutions, tweaks, or 
>configuration options that I may have overlooked.
> 
> Regards,
> 
> Rogier Peters
> 
> 
> -
> Content Management Department
> Hippo Webworks
> Grasweg 35
> 1031 HW Amsterdam
> The Netherlands
> Tel  +31 (0)20 6345173 
> Fax +31 (0)20 6345179
> Rogier(at)hippo(dot)nl / www.hippo.nl 
> 
> -
> 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]>




Livesites

2002-04-25 Thread Lajos Moczar

Reminder that http://www.galatea.com is happily powered by Cocoon 2.0.2

Thanks.

Lajos


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




More sendmail problems

2002-04-24 Thread Lajos Moczar

Hi folks -

I checked out the latest sendmail.xsl from CVS, but I get a 
"javax.mail.internetParseException" that I haven't seen anyone else get. 
My xsp is attached. Its real simple, just like the examples that have 
been floating around the last few days. Does this have anything to do 
with encoding type?

Thanks in advance,

Lajos
galatea.com


 sendmail.xsp **



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



Hello there


  mail.earthlink.net
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  Test
  This is a test








-
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: serving WML to Opera or Openwave SDK

2002-04-16 Thread Lajos Moczar

Here ya' go. These are taken from one of my courses. I've tested with 
Opera and 2 versions of the Openwave SDK.

Regards,

Lajos
galatea.com


** sitemap entry *


 
 
 


**



Ralph Holz wrote:

> Lajos,
> 
> thanks anyway.
> 
> Would it be possible to let me have a look at both your WML and your 
> sitemap entries? Maybe that would give me some clue. I tried changing 
> the doctype-public and system setting to WML 1.3, didn't help.
> 
> Cheers,
> Ralph
> 
>> Nothing wrong here. I double-checked my own stuff (I use Openwave SDK 
>> 5.0 and 4.1) and my pages work just fine. The only thing I can think 
>> of is to change the doctype-public and doctype-system setttings for 
>> the wml serializer in sitemap.xmap (or define another one with wml 1.3 
>> references). If you are using something not in the wml 1.1 DTD, you 
>> might have a problem.
> 
> 
> 
> -
> 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]>
> 
> 






 Welcome to Cocoon Fundamentals
 
  Hello!
  
   I am a basic XML page.
  
 






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

 
  
   

 



   
  
 

 
  
 






-
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: serving WML to Opera or Openwave SDK

2002-04-16 Thread Lajos Moczar

Nothing wrong here. I double-checked my own stuff (I use Openwave SDK 
5.0 and 4.1) and my pages work just fine. The only thing I can think of 
is to change the doctype-public and doctype-system setttings for the wml 
serializer in sitemap.xmap (or define another one with wml 1.3 
references). If you are using something not in the wml 1.1 DTD, you 
might have a problem.

Regards,

Lajos




Ralph Holz wrote:

> Lajos,
> 
>> I've tested with both, without any problems. Can I see your sitemap 
>> entry?
> 
> 
> Sure.
> 
> This is the sitemap for the WML version:
> 
> 
> http://apache.org/cocoon/sitemap/1.0";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  value="britain"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  src="{1}.jpg"/>
> 
> 
>  src="{1}.gif"/>
> 
> 
> 
> 
> 
> And this is the Cocoon sitemap entry:
> ...
> 
> 
> 
> 
>  src="itb/sitemap-mobile.xmap" uri-prefix="itb" reload-method="synchron"/>
> 
> 
> 
> 
> 
> 
> Thanks for help,
> Ralph
> 
> 
> -
> 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]>




Cocoon 2 powered training site

2002-04-16 Thread Lajos Moczar

Hi all -

I'd like to add my site, galatea.com, to the list of sites powered by 
Cocoon 2.

I'd also like to announce the first (to my knowledge) publicly-available 
Cocoon training classes. We are giving two classes this summer: Cocoon 
Fundamentals and Advanced Cocoon. If you are interested, check out 
http://www.galatea.com/training/courses.


Regards,

Lajos Moczar
galatea.com
800.711.4901



-
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: serving WML to Opera or Openwave SDK

2002-04-16 Thread Lajos Moczar

I've tested with both, without any problems. Can I see your sitemap entry?

Lajos
galatea.com


Ralph Holz wrote:

> Hi,
> 
> I try to use Cocoon 2 to serve WML files, which are the products of an 
> XSL-T transformation. I'd like to test my results with Opera 6 or the 
> Openwave SDK 5.0 (both of which connect to localhost for this).
> 
> However, neither Opera nor the Openwave SDK simulator display it. Opera 
> just extracts the tags' content and Openwave is sulking and returns a 
> "translation failed for content type: text/vnd.wap.wml".
> 
> When I look at the transformations' results(Opera: view source), the 
> source seems to be ok.
> 
> That leads me to the assumption that the error might have something to 
> do with the MIME type? However, I believe text/vnd.wap.wml is correct.
> 
> Did anyone ever try something similar and had similar problems?
> 
> If you have any hints what I could do, please let me know.
> 
> Cheers,
> Ralph
> 
> 
> -
> 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: pdf transformation and xml file sizes

2002-04-16 Thread Lajos Moczar

In my experience, it is memory that is the key factor. Running with 
512MB allocated to the JVM, I can produce 53 pages of PDF, but no more. 
I would have thought that SAX-based processing would allow you to 
process as much as you want, but obviously there is something with PDF 
documents that eliminates this advantage.

Regards,

Lajos
galatea.com


caleb racey wrote:

> What factors limit the size of xml file you can transform to pdf?
> 
> I'm testing out one of my pipelines that generates simple pdf from an
> xml file. When using a small (2kb) xml file it all works fine but as I
> begin to paste more (valid) xml into the file it stops working (at about
> 23k).  The pdf plugin in Internet explorer 6.0 says "the file doesn't
> start with %pdf" and cocoon throws the error 
> 
> FATAL_E (2002-04-16)
> 09:47.15:055[core.xslt-processor](/cocoon/demo/short.pdf)
> HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransform
> er: javax.xml.transform.TransformerException: java.io.IOException:
> Connection reset by peer
> javax.xml.transform.TransformerException: java.io.IOException:
> Connection reset by peer
> at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
> ava:725)
> at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
> formerImpl.java:2243)
> at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
> ava:
> 710)
> 
> 
> see attached file for full error log. 
> 
> My server environment = Redhat linux 7.2, cocoon 2.0.2, jdk 1.3.1_02.
> 
> The xml and the xsl transformations are alright as they work on smaller
> files. 
> 
> Anyone know what is going on? Is this the IE acrobat problem that I have
> seen mentioned briefly on the lists. 
> 
> Cheers Cal
> 
> 
> 
> 
> -
> 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: How to deploy my cocoon project [Apache/Tomcat]

2002-01-31 Thread Lajos Moczar

Hi Derek:

For Tomcat 3.2.x and Apache, see 
http://www.galatea.com/flashguides/apache-tomcat-unix.xml

For Tomcat 4.0.x and Apache, see 
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml

There are also new instructions on building cocoon-based web apps in 
http://www.galatea.com/flashguides/cocoon-tips-2.xml.

I'm not on the Cocoon mailing list right now, so email me directly if 
you have problems/questions with these instructions.

Regarding your other question, my cocoon.properties are the same between 
my two machines. The tomcat.sh is obviously different from tomcat.bat. 
Do you explicitly put your database jars in the CLASSPATH path in 
tomcat.sh? You might also try Tomcat 4 - you don't have to edit the 
startup script at all. Tomcat 4 is much better at picking up and loading 
jars placed in each webapps WEB-INF/lib.


Regards,

Lajos



Derek Hohls wrote:

> Quick follow-up question:  how do I get "Apache on top of Tomcat" - my
> previous Apache-Tomcat3 link does not work anymore... is there a
> reference for how to do this?
> 
> Thanks
> Derek
> 
> 
> 
>>>>[EMAIL PROTECTED] 25/10/2001 03:12:03 >>>
>>>>
>  reloadable="true"/>
> 
> in server.xml. Works for me. Then use Apache on top of Tomcat, if you 
> want to remove the Tomcat port from your URL.
> 
> 
> Lajos
> galatea.com
> 
> 
> Eduardo Godoy Vega wrote:
> 
> 
>>OK,
>>but I don't want to put my project inside %TOMCAT_HOME% tree ...
>>
> 'cause I
> 
>>delete it from time to time ... (re-build the lastest version of
>>
> cocoon2)
> 
>>...
>>
>>to me, the best solution is to put my project in
>>
>>D:\Myproj
>>
>>I was searching the FAQ and the archives ... but I didn't find a
>>
> solution...
> 
>>Eduardo.
>>
>>-Original Message-
>>From: Lajos Moczar [mailto:[EMAIL PROTECTED]] 
>>Sent: Tuesday, October 23, 2001 5:06 PM
>>To: [EMAIL PROTECTED] 
>>Subject: Re: How to deploy my cocoon project ?
>>
>>
>>If you're not using %TOMCAT_HOME%\webapp\ROOT, you could either
>>
> rename
> 
>>"cocoon" to "ROOT", and restart Tomcat, or edit
>>%TOMCAT_HOME%\conf\server.xml and point the docBase for the ""
>>
> context
> 
>>to webapps/cocoon.
>>
>>Either way, you remove the offending "cocoon" from the URL.
>>
>>Lajos
>>galatea.com
>>
>>
>>Eduardo Godoy Vega wrote:
>>
>>
>>
>>>Hi,
>>> I wrote and test my "cocoon project" ... right now is on
>>> %TOMCAT_HOME%\webapps\cocoon\myproj
>>>
>>> is it possible to deploy it in a different path ?
>>> for example:
>>> %TOMCAT_HOME%\webapps\myproj
>>>
>>> or
>>> D:\myproj
>>>
>>>Eduardo.
>>>
>>>-
>>>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]>
>>
>>
> 
> 
> 
> -
> 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: util.xsl not found problem

2001-11-09 Thread Lajos Moczar

Hi Trevor:

You need to check the location of the logicsheet 
(processor.xsp.logicsheet.util.java = resource://) in 
cocoon.properties. I've had several occasions where I simply had to 
change "resource://" to "file://" and point to the where they were in 
the Cocoon 1.8.2 distribution. Not that it is the right way, of course, 
but I was in a hurry & didn't have time to figure out why.

Lajos
www.galatea.com



Tegid wrote:

> Hi,
> 
>   I installed Tomcat 3.2.3 and Cocoon 1.8.2 with the cocoon jars in
> the tomcat/lib/common directory.  However, when I attempt to access the
> Cocoon sample xml pages I get:
> 
> java.lang.RuntimeException: Error loading logicsheet at
> resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to
> java.lang.Exception: Resource not found or retrieving error.
> at
> org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:302)
> at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> at org.apache.cocoon.framework.Router.init(Router.java:80)
> at org.apache.cocoon.framework.Manager.create(Manager.java:109)
> at org.apache.cocoon.Engine.(Engine.java:179)
> etc...etc...etc...
> 
> If anyone has any idea why this is happening I could really use the
> assistance.
> 
> Thanks,
> 
> Trevor
> 
> <->
> "How many Prolog programmers does it take to change a lightbulb?"
> "No."
> 
> 
> 
> -
> 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: [C1] Installation woes [rant AND request] - PLEASE help!

2001-11-09 Thread Lajos Moczar

Hi Derek:

Here is my cocoon.properties. Note the entire jdbc-driver section: 
you'll see that the DBMM driver is also listed on the first line:

# These are the supported jdbc-drivers and their adaptors.
# These properties are used by the DBFactory.
processor.xsp.pool.database.adaptor=DBWeblogic,DBOracle,DBInstantDB,DBPostgres,DBSybase,DBInformix,DBMM
processor.xsp.pool.database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driver
processor.xsp.pool.database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriver
processor.xsp.pool.database.adaptor.DBInstantDB=org.enhydra.instantdb.jdbc.idbDriver
processor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driver
processor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
processor.xsp.pool.database.adaptor.DBSybase=com.sybase.jdbc.SybDriver
processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver

Also note the log line: this can help you see exactly where it is 
throwing up:

processor.xsp.pool.logfile=c:\_trash\dbPool.log

I guess the next thing to look at is versions: what is your tomcat, jdk 
& mysql versions?

Also, do you explicitly load mysql_comp.jar in tomcat.sh/tomcat.bat? You 
might try that. Edit the :staticClasspath section and add it. It really 
seems like cocoon is just not able to access the jar.

Lajos
galatea.com


Derek Hohls wrote:

> Thanks - they do all already have the mysql_uncomp.jar as well...
> 
> 
>>>>[EMAIL PROTECTED] 09/11/2001 10:35:02 >>>
>>>>
> Dunno if this makes a difference, but I have mysql_comp.jar located in 
>$TOMCAT_HOME/webapps/cocoon/web-inf/lib
> 
> Another thought:  try each configuration using mysql_uncomp.jar.  Perhaps one of the 
>OS's (or one of the JDK's) is having a problem reading a compressed jar.
> 
> HTH.
> 
> 
> DR
> 
> 
> 
> At 09:44 AM 11/9/01 +0200, you wrote:
> 
>>Lajos
>>Thanks - I have actually done all this - tho' I only have just put mysql_comp.jar in 
>$TOMCAT_HOME/lib
>>That's what so frustrating... it all *looks* the same on each machine 
>[settings-wise] but behaves differently!  If you could send a copy of whatever files 
>you think are relevant, I would appreciate that.
>>Derek
>>
> 
> 
> -
> 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]>
> 
> 



##
#  Cocoon Configuration file #
##

##
# IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS FILE #
##
#  This is a limitation which is fixed in Cocoon 2.  #
##


##
# Global Configurations  #
##

# Indicates whether or not Cocoon should be visible if
# the requested URI equals the specified one.
selfservlet.enabled = true
selfservlet.uri = /Cocoon.xml

# Indicates whether or not Cocoon should handle errors internally
# and format the error and the exception stack trace to the client
# or return the HTTP error code to the web server and let it handle it.
handle.errors.internally = true

# Indicates the log severity level
#log.level = emergency
#log.level = critical
log.level = error
#log.level = warning
#log.level = info
#log.level = debug



##
# XML Parsers#
##

# Apache Xerces 1.0.1+ (http://xml.apache.com/)
parser = org.apache.cocoon.parser.XercesParser

# SUN ProjectX TR2 (http://java.sun.com/xml/)
#parser = org.apache.cocoon.parser.SunXMLParser

# Indicate whether the XML file should be validated or not
# this is turned off by default for faster operation.
parser.validate = false


##
# XSLT Transformers  #
##

# Apache Xalan (ht

Re: [C1] Installation woes [rant AND request] - PLEASE help!

2001-11-08 Thread Lajos Moczar

Sure we're still running 1.8.2; works for my site and probably will 
until I ever find the time to upgrade to 2.01.

Basically, here is how I got it all to work (1.8.2 w/ Tomcat 3.2.2 & 
MySQL on both Linux & Win 98):

1) added mysql_comp.jar to Tomcat's classpath (I just edited tomcat.sh 
/tomcat.bat, but I suppose you could just throw it in $TOMCAT_HOME/lib


2) edited cocoon.properties and added a line to for the mysql driver:

processor.xsp.pool.database.adaptor.DBMM=org.gjt.mm.mysql.Driver

(add this after the other adaptors: note that DBMySQL is incorrect!).


3) edited cocoon.properties and added the connection info for the pool:

processor.xsp.pool.database.default.driver=org.gjt.mm.mysql.Driver
processor.xsp.pool.database.default.url=jdbc:mysql://localhost/mydatabase
processor.xsp.pool.database.default.username=myuser
processor.xsp.pool.database.default.password=mypass
processor.xsp.pool.database.default.maxConnections=3
processor.xsp.pool.database.default.expiryTime=360


4) restarted tomcat


Let me know if this still doesn't work & I can send you copies of the 
actual files.

Lajos
galatea.com



Derek Hohls wrote:

> You can skip the rant and read the request at the end...
> 
> 
> 
> "I come to bury Caesar, not to praise him" Julius Caesar, Act III, Scene ii
> 
> So, at one time in my life, I was a Windows programmer [well, still am, really].  
>And life was occasionally frustrating, but mostly colorful and satisfying.  And then 
>came the Web.  Wow!  New ideas, new paradigms, and new languages to learn... and boy, 
>did they come thick and fast in a stream of acronyms... HMTL, CSS, JS; followed by 
>XML, JSP, XSLT.  I did my best to absorb them all and see how and where they could be 
>used to help those around [non techies, mostly] me to make use (and sense!) of this 
>'information revolution'.  
> 
> Looming over it all, of course, is the ongoing conflict between Sun [Java] and 
>Microsoft [VB/ASP et al].  Open source vs vendor.  Being in a poorish country, with 
>limited resources, OS made financial sense; and the paradigm and philosophy was one 
>that appealed to my nature.  But what to use?  I did not have the luxury of time to 
>contribute (or, in most cases, even the expertise) to a new area, and needed 
>something that was useful and intuitive to use.  Then I found Cocoon - at last, 
>something that tied together everything I had been learning in a meaningful way.   I 
>installed it - it worked [pretty much - BUT see below] and I started designing, 
>developing and coding.  I scorned those others who were suggesting - dare I say it 
>aloud - M$ tools such as VBScript, ASP or even Oracle Web Developers XYZ; "don't be 
>fooled, I said, big companies do not have your interests at heart - OS is the way, 
>the truth... well, anyway, it's good and What We Should Be Doing".  That was then.  
Now (for the last 4 weeks) I have been desperately trying to get a UNIX box working to 
replicate what I have on my development machine; while colleagues [techie and non 
techie] alike are watching with increasing scepticism as they move on with Oracle, ASP 
and Access [choke] et al.   No one is actually smirking yet at least not to my 
face.  I have posted before - but the traffic seems thick with [c2] and [docbook] 
queries... maybe I am the last person on the planet still trying to use 1.8?
> 
> Is it too late - maybe M$ will take me back - "look, son, here is an ASP primer and 
>an Intro to VB - its not hard... you don't really need that U**X... let me dim the 
>lights for you...".
> 
> 
> 
> 
> 
> Seriously, I really do need help trying to finalize my Cocoon installations.   I 
>have 3 machines, and each of which has a slightly different problem.  All are running 
>Apache/Tomcat/Cocoon 1.8.2/mySQL.
> 
> Machine 1: Win2000 (development)
> - dbPool does NOT work BUT embedding Database properties in  tags does 
> 
> Machine 2: UNIX (test)
> - dpPool works BUT embedding Database properties in  tags does NOT
> 
> Machine 3: UNIX (Deployment)
> - neither dbPool or embedded properties works!
> 
> I am sure the problems lie with some configuration or file location SOMEWHERE, but 
>have run out things to try ... apart from pushing buttons at random.  If I cannot 
>solve this very soon, it will be back to M$ tools and that would not, I think, be 
>good for my soul.
> 
> ARE THE DEVELOPERS STILL OUT THERE (do they care?)
> 
> 
> 
> Many thanks for listening
> Derek
> 
> [EMAIL PROTECTED]
> 
> 
> 
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> T

Re: Installing actions

2001-10-31 Thread Lajos Moczar

Kristof,

I'm curious about your problem; what version of Cocoon & Tomcat are you 
running?

Regards,

Lajos
galatea.com



Jozsa Kristof wrote:

> Arno,
> 
>   I've tried both the cocoon/WEB-INF/classes/ dir, which should be
> auto-included due to the Tomcat config, and setting the extra-classpath
> in Cocoon's web.xml. In the first case, I get extreme errors, Cocoon cannot
> even start up its default page. In the second case, the dir in
> extra-classpath gets ignored, even if I set it absolute, relative, whatever.
> 
>   I've found a way, where Cocoon *can* find my own Action class, however.
> I've bundled my class file in the right directory structure in a .jar file,
> and dropped it into WEB-INF/lib beside cocoonXX.jar and such. Using that way
> (but only that), Cocoon can find my action class, and starts up correctly,
> but situation still aint clear..
> 
>   I'm trying to get a parameter from my Cocoon action. I've used the
> standard way of setting the parameter on the java side, from act() returning
> a Map object, just as I've seen it in the examples. I also try to reach it
> the standard way from the xsp:  default="did not worked"/>, and I only get the default value back every
> time. 
> 
>   So the question still stands: can anyone show me a Hello-World like
> example of setting a value from a Java action class which can be retreived
> from an xsp with the correct sitemap setup? 
> 
> I'm begging for this, I'm suffering on that very same problem for 1 whole
> week, and I cant step any further.
> 
> Best regards,
> Christopher
> 
> On Tue, Oct 30, 2001 at 09:07:35AM +0100, Arno Illmann wrote:
> 
>>Hi Christopher, here is what Vadim Gritsenko wrote to me in a similar case. 
>>In the end I putted the class file in the cocoon source and made a new 
>>build. This works, but it should be easier as shown below.
>>
>>Arno
>>
>>---
>>Hi,
>>
>>Here is couple of hints for you:
>>
>>1) Extra-classpath the way you specified would never work. The correct path 
>>would be:
>>
>>
>>extra-classpath
>>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\clas
> \
>>ses 
>>
>>2) You do need to add ...\cocoon\WEB-INF\classes into classpath, because it 
>>is added
>>automatically by the servlet contaier (Tomcat)
>>
>>
>>If you have DatabaseSelectAction.class file in \
>>...\cocoon\WEB-INF\classes\org\apache\cocoon\acting, you do not required to 
>>add any \
>>classpath entries. Try to restart Tomcat and access sitemap again. If this 
>>fails, I \
>>do not have other pointers...
>>
>>Vadim
>>
>>
>>>-Original Message-
>>>From: Arno Illmann [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, October 04, 2001 2:34 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: installing of actions
>>>
>>>
>>>In the morning I posted this at the wrong thread so I do it again.
>>>My tryings over the day came not to success too and I hope, someone with 
>>>
>>more \
>>
>>>cocoon knowledge can shed us  some light on the following?
>>>
>>>Thanks in advance, Arno Illmann
>>>
>>>I did this:
>>>
>>>1) downloaded DatabaseSelectAction.java from CVS and compiled it to
>>>..\cocoon\WEB-INF\classes\org\apache\cocoon\acting.
>>>
>>>2) added to cocoons web.xml:
>>>
>>>
>>>extra-classpath
>>>
>>>
>>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\cl 
>\
>>
>>>asses\org\apache\cocoon\ac ting\DatabaseSelectAction.class
>>>
>>>
>>>3) added to the sitemap of the tutorial web application example:
>>>
>>>
>>>>>
>>src="org.apache.cocoon.acting.DatabaseSelectAction"/>  >>src="org.apache.cocoon.acting.DatabaseAddAction"/> >>
>>name="dbDel" \
>>
>>>src="org.apache.cocoon.acting.DatabaseDeleteAction"/> >>
>>name="dbUpd" \
>>
>>>src="org.apache.cocoon.acting.DatabaseUpdateAction"/> >>
>>name="form" \
>>
>>>src="org.apache.cocoon.acting.FormValidatorAction"/> 
>>>
>>>The error message after invoking the tutorial is :
>>>
>>>org.apache.cocoon.ProcessingException: Exception in Handler:
>>>org.apache.avalon.framework.component.ComponentException:
>>>Could not set up Component for hint: 
>>>
>>o

Re: C2 and mysql

2001-10-26 Thread Lajos Moczar

http://www.galatea.com/flashguides/cocoon-tips-2.xml explains this in 
detail.

Lajos
galatea.com

Olivier MOUGEL wrote:

> Hi all,
> 
> I'm using mysql with php without great problem but I want to investigate 
> the power of XML et Cocoon.
> 
> My problem is that my data is stored under an DBMS !!!
> 
>  
> 
> I want to get a connection between cocoon and mysql using xsp.
> 
> Is somebody using this to explain in few steps what I have to configure.
> 
>  
> 
> Sorry for the newbie's questions but the using database part in C2 
> doc is very short and it don't explain very well the problem with mysql
> 
>  
> 
> Thank's for all
> 
> I'm sure it will be interesting for others cocoon users
> 
>  
> 
> Olivier
> 
> from Bordeaux - France
> 
>  
> 



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




Delay in mailing list ???

2001-10-25 Thread Lajos Moczar

Hi folks,

I'm getting up to a 7-hour delay in receiving posts to this list. Is it 
just me or is everyone having problems?

Regards,

Lajos


-
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: Cocoon2 Release Candidate?

2001-10-25 Thread Lajos Moczar

Brent,

In my experience, anything over and including 2.0rc1a works better with 
JDK 1.3.0/1. I don't know what your exceptions are, but I run Cocoon2 
rc1a with Jdk 1.3 in production on several different OSs without problems.

Lajos
galatea.com


Brent L Johnson wrote:

> I've been using Cocoon 1.8.2 in a production/live environment - and had some
> problems with some strange exceptions being thrown when using a FreeBSD
> virtual machine with JDK1.2.2.
> 
> Is Cocoon2 RC1a ready for production use?  I realize RC is a "Release
> Candidate" - but would it be beneficial (and would it cause any problems)
> switching over to Cocoon2 instead, to see if it fixes my problems?
> 
> Thanks,
> 
> - Brent
> 
> 
> -
> 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: How to deploy my cocoon project ?

2001-10-25 Thread Lajos Moczar



in server.xml. Works for me. Then use Apache on top of Tomcat, if you 
want to remove the Tomcat port from your URL.


Lajos
galatea.com


Eduardo Godoy Vega wrote:

> OK,
> but I don't want to put my project inside %TOMCAT_HOME% tree ... 'cause I
> delete it from time to time ... (re-build the lastest version of cocoon2)
> ...
> 
> to me, the best solution is to put my project in
> 
> D:\Myproj
> 
> I was searching the FAQ and the archives ... but I didn't find a solution...
> 
> Eduardo.
> 
> -Original Message-
> From: Lajos Moczar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 23, 2001 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to deploy my cocoon project ?
> 
> 
> If you're not using %TOMCAT_HOME%\webapp\ROOT, you could either rename
> "cocoon" to "ROOT", and restart Tomcat, or edit
> %TOMCAT_HOME%\conf\server.xml and point the docBase for the "" context
> to webapps/cocoon.
> 
> Either way, you remove the offending "cocoon" from the URL.
> 
> Lajos
> galatea.com
> 
> 
> Eduardo Godoy Vega wrote:
> 
> 
>>Hi,
>>  I wrote and test my "cocoon project" ... right now is on
>>  %TOMCAT_HOME%\webapps\cocoon\myproj
>>
>>  is it possible to deploy it in a different path ?
>>  for example:
>>  %TOMCAT_HOME%\webapps\myproj
>>
>>  or
>>  D:\myproj
>>
>>Eduardo.
>>
>>-
>>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]>
> 
> 



-
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 1.8.2 and jakarta-tomcat-4.0.1

2001-10-23 Thread Lajos Moczar

Sure it does. What configuration is causing you problems? You still need 
to copy the cocoon 1.8.2 jars (xeres, xalan, cocoon, fop, servlet) to 
$TOMCAT_HOME/common/lib, and edit the web.xml of whatever web app you 
want to cocoonize, but it is still a straightforward process.

Regards,

Lajos


Truong,Hoang C. wrote:

> Hello everyone,
> Does Cocoon-1.8.2 work with tomcat-4.0.1?  I noticed that tomcat-4.0.1
> have changed the configuration files.  How do I make it to work with
> cocoon-1.8.2?  Thanks.
> 
> Hoang
> 
> -
> 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: Where to put libs in Tomcat 4.0.1 (without using .war)

2001-10-23 Thread Lajos Moczar

Jorn:

I have the same problem, and you're better off copying the relevant 
stuff from cocoon's WEB-INF to each web app's WEB-INF. In particular, 
make sure you include all the libs you need (consult the docs for which 
ones are optional) and create the logs directory. You also, of course, 
need the contents of cocoon's web.xml file. And then don't forget 
sitemap.xmap and cocoon.xconf. I've been doing this for a while, and it 
seems to work. In fact, I've rolled it into a web app deployment 
structure so I can reuse the configuration whenever I need it.

I suppose it's theortically possible to put all the jars in 
$TOMCAT_HOME/common/lib and reference them individually via the 
extra-classpath tag in web.xml, but I've never tried it.

Regards,

Lajos
galatea.com


Jörn Heid wrote:

> Well, I'm a newbie using Tomcat.
> With Resin, the deployment of the jars is quite easy - just put it in lib.
> 
> With Tomcat I tried out common/lib, server/lib and lib.
> Without success.
> 
> Here's the exception:
> 
> type internal-server-error
> 
> message Language Exception
> 
> description org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> sitemap_xmap: Line 21, column 7: Class
> org.apache.avalon.framework.component.Component not found in import. Line
> 22, column 7: Class org.apache.avalon.framework.configuration.Configurable
> not found in import. Line 23, column 7: Class
> org.apache.avalon.framework.configuration.Configuration not found
> 
> 
> I do not want to use the cocoon.war as I have many projects which requires
> Cocoon. So I want to share those jars.
> 
> JOERN_HEID
> 
> 
> -
> 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: How to deploy my cocoon project ?

2001-10-23 Thread Lajos Moczar

If you're not using %TOMCAT_HOME%\webapp\ROOT, you could either rename 
"cocoon" to "ROOT", and restart Tomcat, or edit 
%TOMCAT_HOME%\conf\server.xml and point the docBase for the "" context 
to webapps/cocoon.

Either way, you remove the offending "cocoon" from the URL.

Lajos
galatea.com


Eduardo Godoy Vega wrote:

> Hi,
>   I wrote and test my "cocoon project" ... right now is on
>   %TOMCAT_HOME%\webapps\cocoon\myproj
> 
>   is it possible to deploy it in a different path ?
>   for example:
>   %TOMCAT_HOME%\webapps\myproj
> 
>   or
>   D:\myproj
> 
> Eduardo.
> 
> -
> 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]>




Problem with RequestAction ... grrr ...

2001-10-23 Thread Lajos Moczar

Hi folks,

I'm be experimenting with passing in parameters to SQLTransformer and 
not having much luck. First, I tried this:


  
  


  
  
  


My sqltest.xml file looks like this:



http://apache.org/cocoon/SQL/2.0";>

  Hello
  
   This is my first Cocoon2 page filled with sql data!

   http://apache.org/cocoon/SQL/2.0";>

 select id,name from department_table where id = 


   

  



And it works just fine.

Now, what I really want to do is pass in the "id" parameter via a 
request parameter: http://localhost:8080/cocoon/paramsql?id=1.

So I tried this:


 
  
  
  

  
  
 
 



But the "id" parameter is always missing when it gets to the 
SQLTransformer (so it throws up at the replaceCharWithString line). My 
understanding of the RequestParamAction is that it will post all the 
request parameters to the pipeline. Wouldn't this make it the same as if 
I explicitly declared the "id" parameter in the sitemap?

Thanks in advance.

Lajos


-
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 + Tomcat + Apache

2001-10-23 Thread Lajos Moczar

Hi Simone,

You have a few options:

1) To remove the port 8080, you can use mod_webapp/mod_jk so that Tomcat 
can 'hide' behind Apache.

2) To remove the "cocoon", you can do one of two things:
2a) Rename cocoon.war to ROOT.war and restart Tomcat. This will make 
cocooon the default web application on Tomcat. Make sure, of course, 
that you don't already have something in the ROOT application!
2b) Again, if you don't have anything in the ROOT application on Tomcat, 
you can simply edit Tomcat's server.xml and set the docBase for ROOT to 
/cocoon; i.e:



This is usually my first choice.

3) Then you'll have to map either the whole cocoon context or something 
like all *.xml files to Tomcat. Depends on what connector method you use 
(which in turn, depends on what versions of everything you're using). 
This is where you have to decide what should be served where.


My site gives more details on the above. You'll just have to start 
experimenting like we are all doing here ;)

Lajos
galatea.com

Simone Gianni wrote:

> Hi all ..
> 
> I'm trying to combine cocoon-tomcat with apache in a way that 
> instead of typing 
> http://www.mysite.com:8080/cocoon/something/somethingelse i can simply 
> use http://www.mysite.com/something/somethingelse  do you know if 
> there is any document describing how to do this? And to make apache 
> serve the static files (images for example) how do i override the 
> "catch-all" to alias some directories (like /images) to a static dir and 
> have them served by apache ?
> 
> Thanks, ciao
> 
> Simone
> 
> 
> -
> 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: HELP for Cocoon2 and Unix

2001-10-22 Thread Lajos Moczar

Comment out the 3 svg* serializers from the  section 
and the pipeline entries that use those serializers.

Lajos
galatea.com

Andreas Grünhagen wrote:

> Hello,
> when I start cocoon2 (with Tomcat 3.3 Beta 2) under Linux or Solaris it 
> always tries to establish a connection to a running XServer. 
> How can I avoid this ?
> 
> thanks in advance
> 
> andreas
> 
> -
> 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: cocoon + tomcat in window2000 services

2001-10-21 Thread Lajos Moczar

Hi Ling,

What version of Cocoon 2 are you running? I've run 2.0rc1 with Tomcat 
3.2.2 after deleting both parser.jar and jaxp.jar, and copying 
xerces_1_x_x.jar from the Cocoon2 build directory to %TOMCAT_HOME%\lib. 
That did the trick for me.

Lajos
galatea.com

Ling Kok Choon wrote:

> Hi,
> 
>   I have changed the parser.jar and jaxp.jar to zparser.jar and zjaxp.jar, and 
>follow the change 
> the setting on the wrapper.properties, the tomcat service is running well , but 
>cocoon can't 
> executed, the The sitemap handler's sitemap is not available error occur.
> 
> Do u have any idea to solve this problem ?
> 
> Note: OS=Window 2000, jdk1.3.1, cocoon version 2, tomcat 3.2.2
> 
> Thank you.
> 
> regards,
> 
> Kok Choon
> 
> 
> Name: Ling Kok Choon
> E-mail: Ling Kok Choon <[EMAIL PROTECTED]>
> Date: 10/22/01
> Time: 11:37:24
> 
> This message was sent by Z-Mail Pro - from NetManage
> NetManage - delivers Standards Based IntraNet Solutions
> 
> 
> -
> 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: Deploying xml pages/resources

2001-10-19 Thread Lajos Moczar

Hi Allan:

I'm not sure what you are trying to do. If it is simply to process XML 
files using your old XSLs, look at the examples in the cocoon 
sitemap.xmap (like the hello.html one). All you have to do is add a 
similar entry for your own stuff. Then put your files under the cocoon 
webapp (according to the locations you specified in the sitemap entry) 
and start testing. If you want to use Cocoon2 in another web 
application, you'd essentially have to replicate the bulk of what's in 
your cocoon web app. I'm putting an entry in my Cocoon2 Tips & Tricks 
Flashguide (http://www.galatea.com/flashguides/cocoon-tips-2.xml) 
describing how I've done this. Check back early next week if you are 
interested.

If I've missed the intent of your question, let me know.


Lajos
galatea.com

Allan Kamau wrote:

> I've installed C2 successfully now I'd like to know
> how I can be able to have cocoon serve my xml pages.
>  
> In C1.x we could instruct TC3 to forward all .xml (and
> so on) to cocoon.jar. How is it done in C2, does it
> involve use of site map?
> Perhaps Lajos Moczar you could help..
> 
> Thank you.
> Allan.
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.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]>
> 
> 



-
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 Generator examples

2001-10-19 Thread Lajos Moczar

Hi Luca:

I did something like this in my sitemap:


 
 
 



My request.xsl looks like this:



http://www.w3.org/1999/XSL/Transform";
  xmlns:request="http://xml.apache.org/cocoon/requestgenerator/2.0";>

   


 Request Test
 
 
  Request Test

 

   

   
Request Headers

 


   

   
Request Parameters

 


   

   
Configuration Parameters

 


   

   
 = 
   

   
 = 
   





Hope it helps.

Lajos
galatea.com

Luca Morandini wrote:

> Folks,
> 
>   has any of you been able to use Request Generator ?
> 
>   I tried hard to extract parameters (say, the host name) from a request
> generator's result via XSL... to no avail: has anyone had more luck (or
> expertise) ?
> 
> 
> Best regards,
> 
> -
>Luca Morandini
>GIS Consultant
>   [EMAIL PROTECTED]
>+39 0744 598 51Office
>+39  335 681 02 12 Mobile
> http://utenti.tripod.it/lmorandini/index.html
> -
> 
> 
> 
> -
> 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: session and xsl

2001-10-18 Thread Lajos Moczar

Mark:

AFAIK, Tomcat does not by default share session across web applications. 
If you want that, you need Tomcat 4.0 and then you need to put all web 
applications in the same Realm object. You might want to take a look at 
the description of the  tag in the Tomcat 4.0 documentation. If 
you don't have it on your machine, you can view mine at 
http://galatea.com/docs/tomcat40/config/host.html. Look for the section 
on "Single Sign On".


Hope that helps.


Lajos
galatea.com


Mark S. Kent wrote:

> Marty,
> 
> I tried your suggestion, but it didn't work.  Although cocoon is seeing a
> session, it does not appear to be the same one that Tomcat(?) created when
> the user logged in.  I put a "session.getId()" call into my JSP page and
> also one in the XML file and both returned different values.
> 
> Now, I assumed (and I know what that means!) that since Tomcat created the
> session when the user logged in, and Cocoon runs under Tomcat, that both
> would be the same.  Not the case.
> 
> Can anyone shed light on how these "sessions" are being defined?  From
> looking at what "process" is serving the file (Tomcat=JSP, Cocoon=XML), it
> seems a new session ID value is created for each one.  Does that sound
> right?
> 
> Or, is the session ID related to where these files reside within a folder
> structure (webapps\myapp vs. webapps\cocoon) and each call to a different
> "alias" in apache starts a new session?  I'm confused. I thought Tomcat was
> handling them all.
> 
> Mark
> 
> -Original Message-
> From: Marty McClelland [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 2001 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: session and xsl
> 
> 
> I use C1.8.2 and have the following code to access the session:
> HttpSession theUserSession = request.getSession(); 
> String theLoginName = (String) theUserSession.getAttribute("loginName");
> 
> 
> marty 
> 
> 
>>-Original Message-
>>From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, October 16, 2001 3:06 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: session and xsl
>>
>>
>>This is what I have in C1 in my XSP code:
>>
>>
>>EmployeeData employeeData = null;
>>try
>>{
>>  employeeData = (EmployeeData)session.getAttribute( "employee" );
>>}
>>catch( ClassCastException e ) {}
>>
>>Integer empID = null;
>>if( employeeData != null )
>>{
>>  System.out.println( "Data ID: " + 
>>employeeData.getEmployee_id() );
>>  empID = employeeData.getEmployee_id();
>>}
>>else
>>{
>>  System.out.println( "Data ID: none" );
>>  empID = new Integer( -1 );
>>}
>>
>>
>>The line:
>>
>>  employeeData = (EmployeeData)session.getAttribute( "employee" );
>>
>>is exactly how I do it in my JSP pages.  When I test for "null" on the
>>employeeData object, however, it is always "null".  It may be a C1
>>limitation.  We are looking at C2 because of the additional features.
>>
>>Is there a "request" object for the session variable?  
>>Currently I retrieve
>>session variables as above and have only done "requests" for form/URL
>>variables.
>>
>>Mark
>>
>>-Original Message-
>>From: Christian Haul [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, October 16, 2001 1:35 PM
>>To: [EMAIL PROTECTED]; Mark Kent
>>Subject: Re: session and xsl
>>
>>
>>On 16.Oct.2001 -- 09:14 AM, Mark S. Kent wrote:
>>
>>>I also have an interest on retrieving session values in my 
>>>
>>XML file to
>>help
>>
>>>build the XML data.  I thought that XSP would be able to 
>>>
>>read them as my
>>JSP
>>
>>>pages do since both run under Tomcat, but am having trouble 
>>>
>>seeing them
>>from
>>
>>>the XML document.
>>>
>>Mark, accessing session attributes from XSP ist piece of cake :-)
>>There's a logicsheet aka taglib for it. Otherwise use the request
>>object and access the data through ordinary java.
>>
>>
>>>Chris, is the solution you mention below only available in C2?
>>>
>>Which one of the two alternatives? Honestly, I don't know about C1,
>>there might be a session taglib but passing parameters from a non
>>existant sitemap won't do :-)
>>
>>
>>
>>>Fro

Re: Cocoon 1.8.2 and mySQL/ ESQL - hanging?

2001-10-18 Thread Lajos Moczar

Hi Derek:

Maybe the JDBC jar came with your version of MySQL? I downloaded mine 
from http://www.mysql.com/Downloads/Contrib/mm.mysql.jdbc-1.2c.tar.gz. I 
then had to edit tomcat.bat/sh so it could find the jar file. I 
initially developed my app on Win98 and then ported it to Linux, but I 
didn't have your problem.

You're right about the supplied esql examples. All you have to do is 
change the parameters to those of your MySQL database and create the 
test table there. Or you can change the esql example to point to an 
existing table in your database.

You might also try what Marty suggested first in the last post on this 
thread. SOP is to delete tomcat's work diretory for the cocoon webapp 
($TOMCAT_HOME/work/localhost/cocoon) when you fix an error and want to 
restart Tomcat and test again.

Lajos


Derek Hohls wrote:

> Lajos 
> 
> Thanks for the suggestions.  In response:
> 
> 1.  Where do I find the  mysql_comp.jar you refer to (I do not have it on my Windows 
>test machine) and a quick scan at the mysql site did not reveal anything either... 
>all I have is the mm.mysql driver (as seen below) which is in the Java lib.
> 
> 2. I cannot run the supplied esql examples as they depend on having the postgresql 
>database installed...
>   org.postgresql.Driver
>   jdbc:postgresql://localhost/test
>   test
>   test
> 
> Thanks
> Derek
> 
> 
>>>>[EMAIL PROTECTED] 17/10/2001 05:11:43 >>>
>>>>
> Derek:
> 
> I assume that the MySQL jar is in the classpath? Depending on the 
> version of Tomcat you're running, you'll want mysql_comp.jar in either 
> $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib.
> 
> Another idea is to run one of the supplied esql examples just to make 
> sure that the taglib is working correctly.
> 
> Lajos
> 
> 
> Derek Hohls wrote:
> 
> 
>>I have a Cocoon system which fine on a setup under Win2000 as a localhost 
>(Apache/Tomcat); but when I upload it to our UNIX server, also  running Apache/Tomcat 
>(which has just been setup to handle Cocoon - so we are still in 'testing' mode) - 
>the app just hangs...
>>
>>The XML page is given below (altho' I do not think it is a syntax problem) - the 
>MySQL part works OK if I logon to the server and run tests from the command line 
>interface...  Cocoon also handles normal XML pages fine, and the cocoon.properties 
>file include the esql taglib.
>>
>>Any ideas as to where the 'hangup' might be or what part of the system I should look 
>at it to try and see where it is getting to?  My UNIX knowledge is very very basic 
>(at best).
>>
>>All help much appreciated!
>>
>>Derek
>>
>>*
>>
>>
>>
>>
>>
>>
>>
>>>  xmlns:xsp="http://www.apache.org/1999/XSP/Core";
>>  xmlns:esql="http://apache.org/cocoon/SQL/v2";
>>  xmlns:request="http://www.apache.org/1999/XSP/Request";
>>
>>
>>
>>
>>
>>  org.gjt.mm.mysql.Driver
>>  jdbc:mysql://myhost.com/est
>>  est
>>  est
>>  
>>   
>>SELECT * FROM computer
>> 
>>  
>>
>>   
>> 
>>  
>>   
>>   
>>  
>>
>>
>>
>>
>>
>>
>>
>>-
>>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]>
> 
> 



-
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 2, Tomcat 4 and Apache Server

2001-10-01 Thread Lajos Moczar

Hi Pater:

mod_jk is the 'glue' that Apache uses to talk to Tomcat. With Tomcat 4, 
many people are using mod_webapp, which is a newer module. I have posted 
mod_jk instructions (using Tomcat 3.2.x) on my web site, and I'll be 
posting mod_webapp instructions there this week as well.

Lajos Moczar
galatea.com


Sparkes, Peter wrote:

> Help please,
> 
> I am trying to integrate Apache Server and Cocoon 2 (Tomcat4).
> What is mod_jk?
> 
> Peter
> 
> 
> Peter Sparkes
> Data Architect
> Derwent Information
> 14 Great Queen St   Tel. +44 (0)20 7424 2084
> London  Fax. +44 (0) 20 7344 2815
> WC2B 5DFEmail. [EMAIL PROTECTED]
> UK  Website: http://www.derwent.com/
> 
> 
> 
> **
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.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]>




  1   2   >