Yves -
Why not build your select statement as a string variable inside an
xsp:logic block after the root user tag, and then reference it thusly:
esql:query
xsp:exprmyQuery/xsp:expr
/esql:query
I do this all the time and it works perfectly.
Regards,
Lajos
--
galatea.com
Cocoon training,
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?
--
I can't understand what you are doing w/out seeing the whole XSP.
Typically I do this:
xsp:page language=Java ... /
html !-- This is your root user tag --
xsp:logic
String myQuery = select * from vwProducts;
!-- Or whatever logic you need to build the query string --
/xsp:logic
!--
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
Jeff -
You'll need to change the DTD for Cocoon's web.xml to version 2.3, thusly:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
Cheers,
Lajos
--
galatea.com
Cocoon training, consulting support
Book: Cocoon
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
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
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
map:redirect 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
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.
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
, 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
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.
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
Derek -
Did you declare the MySQL jar in web.xml thusly?
init-param
param-nameload-class/param-name
param-value
org.gjt.mm.mysql.Driver
/param-value
/init-param
And put the jar where Cocoon will find it?
Regards,
Lajos
Derek Hohls wrote:
I get the following
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
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
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
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:
map:match pattern=domain
map:redirect-to uri=domain//
/map:match
map:match pattern=domain/**
map:mount uri-prefix=domain
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
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.
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
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.
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
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
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
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
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
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
Hi Per -
If you were using the formval logicsheet and the FormValidatorAction,
you'd have something like this:
map:match pattern=newbook
map:act type=form-validator
map:parameter name=descriptor
value=context://newbook-def.xml/
map:parameter name=validate-set value=add/
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
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
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
Hi all -
I successfully compiled the latest version of 2.1, only to find all the
pages empty; i.e., nothing between the body 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
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
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
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):
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
://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
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
Why not do this in $CATALINA_HOME/conf/server.xml:
Context path= docBase=cocoon
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
-
-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:
Context path
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
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.
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
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
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
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
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:
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
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
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 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
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
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,
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.
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
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
With 1Gb of memory, I suggest starting with something like this and
tuning from there:
-Xms200m -Xmx600m
store-janitor class=org.apache.cocoon.components.store.StoreJanitorImpl
logger=core.store-janitor
parameter name=freememory
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
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
, 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
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
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 *
map:match pattern=hello-world.wml
map:generate
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
Hi Trevor:
You need to check the location of the logicsheet
(processor.xsp.logicsheet.util.java = resource://path) 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
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
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
... '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
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
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
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
Comment out the 3 svg* serializers from the map:serializers/ 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
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,
Hi Luca:
I did something like this in my sitemap:
map:match pattern=request
map:generate type=request/
map:transform src=stylesheets/request.xsl/
map:serialize/
/map:match
My request.xsl looks like this:
?xml version=1.0?
xsl:stylesheet version=1.0
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
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
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 Host tag in the Tomcat 4.0 documentation. If
the connection with the oracle db. And now our problem is that
cocoon doesn´t recognize the esql namespace.
How do we have to configure the sitemap in order to recognize the esql
namespace?
Thak you again and Saludos Cordiales
Alberto
- Original Message -
From: Lajos Moczar [EMAIL
Hi Alberto:
Here is what you have to do:
1) Add the Oracle class to Cocoon's web.xml in the init-param
section, thus:
init-param
param-nameload-class/param-name
param-value
oracle.jdbc.driver.OracleDriver
... // Other database classes
/param-value
version of Catalina. Getting kinda frustrating.
Any ideas will be welcome.
Lajos Moczar
galatea.com
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
See my FlashGuide on the subject at http://www.galatea.com. That is the
configuration I have running here on my laptop.
Lajos
[EMAIL PROTECTED] wrote:
Hi, I'm a newbie to cocoon. Trying to set up on win98 with apache and
tomcat. Apache and tomcat both work fine until I try to include the
Andre:
You might check out some guides I've written when I was struggling with
this stuff. They're at my site, galatea.com (powered by Cocoon 1.8.2 but
soon 2.1!). I explain how to get mod_jk working which, as Luca points
out, it preferable. If these still can't help you, I'll play around
I always point directly to mod_jk.conf-auto in httpd.conf because it
will always be up to date. It is created each time Tomcat starts to
reflect that latest context information for each webapp. If I have
things that I want to add, I just put them in httpd.conf after the
include for mod_jk.
.
Lajos Moczar
galatea.com
Andre Juffer wrote:
Luca Morandini wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre
Juffer
Sent: giovedì 12 luglio 2001 15.11
To: [EMAIL PROTECTED]
Subject: Re: C1 to C2
Luca Morandini wrote
, but on Windows I had to remove parser.jar as well. Then
everything worked.
Regards,
Lajos Moczar
galatea.com
Daniel Fernández wrote:
Attached, you have the HTML page returned by COCOON
I've made all posibilities:
Make the war, and put it into the webapps.
1- Without the file lib
()
method. Anyone know if this is the intended behavior or am I way off here?
Lajos Moczar
galatea.com
-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html
I've watched this list for months as others have had this problem, and
today I got bit by it myself (Cocoon2b1 w/ Tomcat 3.2.2 on Win 98). Just
delete $TOMCAT_HOME/lib/jaxp.jar and $TOMCAT_HOME/lib/parser.jar. That
did it for me.
Lajos
Galatea IS Inc.
Kalven Beaver wrote:
HelpHelp...
I'm doing it. I just downloaded C2b1, compiled, installed and it ran.
Unfortunately, it is horrendously slow even w/ 160MB on a Pentium II.
Lajos
Ling Kok Choon wrote:
hi,
Can cocoon2 be installed in Windows 98 with Tomcat 3.2.1 as a web server and
servlet container
?
Thank
Any link gives me this error. So far I haven't seen a single cocoon2
page on Linux. Tonight I'll try 2.0b1.
Lajos
giacomo wrote:
On Thu, 14 Jun 2001, Lajos Moczar wrote:
Well, I'm working with Linux and TC4.0 almost exclusively and don't
have faced
your problem. Can you tell my when
89 matches
Mail list logo