You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Patrick Hess <pa...@ish.de> on 2003/12/10 17:37:56 UTC

cocoon-blank.war II

Hi Cocoon-Users,

I followed the threads about a blank cocoon.war and I can understand the 
arguments of the people voting agains something like this and I can 
understand the problem some users have. When I started in the area of 
web applications it was often hard for me to solve even the simplest 
problems -- having such an option would have saved me lots of hours of work.

So yesterday evening I started to hack a small project that I would like 
to introduce now and get some feedback - maybe it will again this week 
if you convince me :)

My idea was to offer cocoon creator. It's a web application (at the of 
this writing in PHP -- I will convert it to cocoon if the concept is 
good enough) asking you some build-specific question (JDK to build, 
Cocoon version, blocks to include). Based on this information it will 
start to build a customized version of cocoon and offer it to download 
to user.

The basics are there and I'm happy with current state. This evening I 
will do some polishing and hope to get somebody of you for testing and 
critics. This is why I'm NOT going to publish the URL right now.

I really really enjoy cocoon and for me it's the best piece of software 
in terms of web publishing that I've found in the last years so this may 
be a way to give back something to the cocoon community until my cocoon 
skills are good enough to give back some really usefull stuff :)))

Because of time needed to build a complete .war file I'm running only 
one build at the same time so it may take a while until the user really 
gets the file. Because of the bandwidth I will also restrict the amount 
of downloads to around 20-30 per day (or 1000 per month, don't know yet...)

If someone is interested in testing this app please contact me and I 
will send you the URL.

Any other comments, flames or ideas are also welcome!

Thanks for your time...
-- 
Patrick Hess



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by "Scherler, Thorsten" <th...@apache.org>.
Patrick Hess wrote:

> If someone is interested in testing this app please contact me and I 
> will send you the URL.

Very nice. I would love to try it!

> 
> Any other comments, flames or ideas are also welcome!

Comments and ideas I can provide, let somebody else flames u ;-)

> 
> Thanks for your time...


-- 
<thorsten>
  <name>Thorsten Scherler</name>
  <country>Spain</country>
  <@mail> thorsten@apache.org</...@mail>
  <@cocoon-WIKI> 
http://wiki.cocoondev.org/Wiki.jsp?page=Scherler</...@cocoon-WIKI>
  <http>http://www.target-x.de</http>
</thorsten>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Geoff Howard <co...@leverageweb.com>.
Ok, I was going to sleep, but Tony Collen wrote:

> Geoff Howard wrote:

...

> I remember a friend doing this, but for the Linux kernel :()
> 
> This will all be obsolete when 2.2 comes around and we have "real" 
> blocks.  Until then, why not explore some ideas?
> 
> Another idea:  Someone should built a naked Cocoon, and we could 
> distribute it on BitTorrent.  We'd just need lots of people hosting it.

IMNVHO the best idea for 2.1 I've "heard" was briefly mentioned on the 
dev list here: 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106208434632320&w=2 ;)

"... the build step really is a "configure" step and a
build step rolled into one.  We could probably (now that the JDK
dependencies are fixed) distribute a "half built" Cocoon, where all
classes are compiled but the webapp is not configured/assembled.  That
would not get you out of having to run ./something.sh|bat target-name to 
do the last step.  ...
"

I made a stab at this but didn't get very far but I still think it has 
merit and would probably "only" involve some slight refactoring of the 
build here and there and a new target or two.

If anyone wants to make another go I'd help!

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Tony Collen <co...@umn.edu>.
Geoff Howard wrote:

<snip>

> great!
> 
>> My idea was to offer cocoon creator. It's a web application (at the of 
>> this writing in PHP -- I will convert it to cocoon if the concept is 
>> good enough) asking you some build-specific question (JDK to build, 
>> Cocoon version, blocks to include). Based on this information it will 
>> start to build a customized version of cocoon and offer it to download 
>> to user.
> 
> 
> I have considered doing something like this with Ant which has built in 
> support for interactive properties which can also be scripted for later 
> rebuilds.  But I think your idea of doing it over the web is worth 
> pursuing (except you're stuck paying for the bandwidth).
> 
> As I see it, these are the problems people have with the build process:
> 
> 1) emotional shock at having to build at all.
> 2) java environment problems (jvm instead of jdk, JAVA_HOME not set, 
> endorsed libs problem?)
> 3) winzip empty libs problem
> 4) failure to read INSTALL.txt
> 5) trouble deciphering the options in build.properties and 
> blocks.properties
> 6) misinterpreting build output (warnings!=failure !)
> 
> the web based builder idea helps with all of those, except postpones the 
>  problem with java environment (#2).

I remember a friend doing this, but for the Linux kernel :()

This will all be obsolete when 2.2 comes around and we have "real" 
blocks.  Until then, why not explore some ideas?

Another idea:  Someone should built a naked Cocoon, and we could 
distribute it on BitTorrent.  We'd just need lots of people hosting it.

Tony


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Patrick Hess <pa...@ish.de>.
Thanks for all replies to my message!


Bertrand Delacretaz wrote:

> So maybe a web app that would explain (once again) the steps needed to 
> run Cocoon and spit out local.*.properties files according to  the 
> user's options (by activating groups of related blocks) might be useful. 
> More than that is not very practical IMHO.

I like this idea above. It's much more than I had i mind it fits 
perfectly to my idea. I will test this weekend how to move from a simple 
"make-my-war"-tool into an app that helps users to do a step by 
build/install. I will go for the webapp first and will start with tomcat 
4.1 (later weblogic 7/8) on Linux and Windows 2000. So doing a complete 
build will shift to the background for this but will be still availble.

Have a nic weekend...
-- 
Patrick Hess


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Roger I Martin PhD <hy...@hypernexinc.com>.
Hi Patrick,

I like what your thinking.  I've tinkered with this but didn't have time to
go it alone.  A tremendous amount of Cocoon is based on xml docs itself and
there are schemas defined in places like
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/documentation/xdocs/drafts/
for at least the sitemap and esql(Maybe more or some dtds from which schemas
can be generated).  These could be used to show users the constraints and
options available.  Perhaps Java Bindings
http://java.sun.com/xml/jaxb/index.jsp could assist in this.  The problem of
knowing the options and constraints is not restricted to Cocoon but all xml
based technologies.  If the generated sitemap <webapp>.xmap of a webapp
includes the location of the sitemap-2.1-draft.xsd, then tools that make use
of schemas can operate on the xmap doc with assurance it stays a sitemap.
For any changes to the sitemap design as other versions 2.2? come out,
hopefully the application of schemas makes it easier to maintain your tool;
especially if your tool becomes Cocoon based:-)  Let me know if you pursue
this; maybe a sourceforge project till it incubates a little?

Just a thought...

--Roger

P.S. LeTourneau of (http://www.letourneau-inc.com/ & http://www.letu.edu/)
talks in his autobiography about how proud he was of one of his first earth
movers that as a young man he built in his home shop and demonstrated at a
fair.  Everybody was impressed with the amount of dirt he could move but no
one offered to buy one from him.  He was perplexed until an elderly
gentleman came up to him and said "Son  the way you jump, pull levers and
climb around, at my age, where can I buy a trained chimpanzee to operate
your earth mover?" He went back to his shop, rethought from an operators
perspective and built a successful business.  Well he went bankrupt and
broke his neck more often than a human being should but it never stopped
him:-)  It's a good read if anyone has the time.

----- Original Message ----- 
From: "Bertrand Delacretaz" <bd...@apache.org>
To: <us...@cocoon.apache.org>
Sent: Thursday, December 11, 2003 2:01 AM
Subject: Re: cocoon-blank.war II


Le Jeudi, 11 déc 2003, à 06:07 Europe/Zurich, Geoff Howard a écrit :

> ...As I see it, these are the problems people have with the build
> process:

Nice analysis! Let my try to elaborate on it (just my 2 swiss centimes):

> 1) emotional shock at having to build at all.

Positive IMHO, helps people realize that Cocoon is a tool for
*developers*.

> 2) java environment problems (jvm instead of jdk, JAVA_HOME not set,
> endorsed libs problem?)

You have the same problems when running Cocoon later on anyway, having
to build it first makes no difference here AFAIK.

> 3) winzip empty libs problem

ok.

> 4) failure to read INSTALL.txt

People should do their homework, and maybe help us fix the docs if
they're unclear (read the "getting started" tracks for example).

> 5) trouble deciphering the options in build.properties and
> blocks.properties

Agree on this one, that's where a web application (or a build based on
a higher-level config file) could help. But generating
local.*.properties files would be enough IMHO.

> 6) misinterpreting build output (warnings!=failure !)

ok, one for the docs I guess.

> the web based builder idea helps with all of those, except postpones
> the  problem with java environment (#2).

So maybe a web app that would explain (once again) the steps needed to
run Cocoon and spit out local.*.properties files according to  the
user's options (by activating groups of related blocks) might be
useful. More than that is not very practical IMHO.

I don't mean to sound cynical - if people are willing to build and
maintain front-ends to the build system, why not.

But again, I don't think we want Cocoon to be a shrink-wrapped thing
that fools people into thinking it is a point-and-click thing, only to
have them miserably fail later on. Failing early is certainly better if
people do not have the necessary skills/mindset.

Again, just my 2c.

-Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Bertrand Delacretaz <bd...@apache.org>.
Le Jeudi, 11 déc 2003, à 06:07 Europe/Zurich, Geoff Howard a écrit :

> ...As I see it, these are the problems people have with the build 
> process:

Nice analysis! Let my try to elaborate on it (just my 2 swiss centimes):

> 1) emotional shock at having to build at all.

Positive IMHO, helps people realize that Cocoon is a tool for 
*developers*.

> 2) java environment problems (jvm instead of jdk, JAVA_HOME not set, 
> endorsed libs problem?)

You have the same problems when running Cocoon later on anyway, having 
to build it first makes no difference here AFAIK.

> 3) winzip empty libs problem

ok.

> 4) failure to read INSTALL.txt

People should do their homework, and maybe help us fix the docs if 
they're unclear (read the "getting started" tracks for example).

> 5) trouble deciphering the options in build.properties and 
> blocks.properties

Agree on this one, that's where a web application (or a build based on 
a higher-level config file) could help. But generating 
local.*.properties files would be enough IMHO.

> 6) misinterpreting build output (warnings!=failure !)

ok, one for the docs I guess.

> the web based builder idea helps with all of those, except postpones 
> the  problem with java environment (#2).

So maybe a web app that would explain (once again) the steps needed to 
run Cocoon and spit out local.*.properties files according to  the 
user's options (by activating groups of related blocks) might be 
useful. More than that is not very practical IMHO.

I don't mean to sound cynical - if people are willing to build and 
maintain front-ends to the build system, why not.

But again, I don't think we want Cocoon to be a shrink-wrapped thing 
that fools people into thinking it is a point-and-click thing, only to 
have them miserably fail later on. Failing early is certainly better if 
people do not have the necessary skills/mindset.

Again, just my 2c.

-Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Geoff Howard <co...@leverageweb.com>.
Patrick Hess wrote:
> 
> Hi Cocoon-Users,
> 
> I followed the threads about a blank cocoon.war and I can understand the 
> arguments of the people voting agains something like this and I can 
> understand the problem some users have. When I started in the area of 
> web applications it was often hard for me to solve even the simplest 
> problems -- having such an option would have saved me lots of hours of 
> work.

By the way I never mentioned (in this round of the discussion at least)
that I (and I think every committer) understand completely the need and
desire for a binary Cocoon dist.  It's only the impracticality of it as
things stand in 2.1 that has kept it from happening.

> So yesterday evening I started to hack a small project that I would like 
> to introduce now and get some feedback - maybe it will again this week 
> if you convince me :)

great!

> My idea was to offer cocoon creator. It's a web application (at the of 
> this writing in PHP -- I will convert it to cocoon if the concept is 
> good enough) asking you some build-specific question (JDK to build, 
> Cocoon version, blocks to include). Based on this information it will 
> start to build a customized version of cocoon and offer it to download 
> to user.

I have considered doing something like this with Ant which has built in 
support for interactive properties which can also be scripted for later 
rebuilds.  But I think your idea of doing it over the web is worth 
pursuing (except you're stuck paying for the bandwidth).

As I see it, these are the problems people have with the build process:

1) emotional shock at having to build at all.
2) java environment problems (jvm instead of jdk, JAVA_HOME not set, 
endorsed libs problem?)
3) winzip empty libs problem
4) failure to read INSTALL.txt
5) trouble deciphering the options in build.properties and blocks.properties
6) misinterpreting build output (warnings!=failure !)

the web based builder idea helps with all of those, except postpones the 
  problem with java environment (#2).

...

> If someone is interested in testing this app please contact me and I 
> will send you the URL.

sure - let me know.

> Any other comments, flames or ideas are also welcome!

The worst you'll ever get from me is disagreement but don't let that 
bother you.

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: cocoon-blank.war II

Posted by Johan Kok <jk...@in-corp.com>.
Partick,

I really like the direction you are choosing, as I believe a lot can be 
done to bring userfriendly front-ends to cocoon. I am also using forrest 
and had similar thoughts there. - I would be a user of such.With a bit 
of Forrest background I recently started working on Cocoon and had a 
torred time obtaining a simple environment to work from - missed the 
myapp sample until most were done.



Patrick Hess wrote:

>
> Hi Cocoon-Users,
>
> I followed the threads about a blank cocoon.war and I can understand 
> the arguments of the people voting agains something like this and I 
> can understand the problem some users have. When I started in the area 
> of web applications it was often hard for me to solve even the 
> simplest problems -- having such an option would have saved me lots of 
> hours of work.
>
> So yesterday evening I started to hack a small project that I would 
> like to introduce now and get some feedback - maybe it will again this 
> week if you convince me :)
>
> My idea was to offer cocoon creator. It's a web application (at the of 
> this writing in PHP -- I will convert it to cocoon if the concept is 
> good enough) asking you some build-specific question (JDK to build, 
> Cocoon version, blocks to include). Based on this information it will 
> start to build a customized version of cocoon and offer it to download 
> to user.
>
> The basics are there and I'm happy with current state. This evening I 
> will do some polishing and hope to get somebody of you for testing and 
> critics. This is why I'm NOT going to publish the URL right now.
>
> I really really enjoy cocoon and for me it's the best piece of 
> software in terms of web publishing that I've found in the last years 
> so this may be a way to give back something to the cocoon community 
> until my cocoon skills are good enough to give back some really 
> usefull stuff :)))
>
> Because of time needed to build a complete .war file I'm running only 
> one build at the same time so it may take a while until the user 
> really gets the file. Because of the bandwidth I will also restrict 
> the amount of downloads to around 20-30 per day (or 1000 per month, 
> don't know yet...)
>
> If someone is interested in testing this app please contact me and I 
> will send you the URL.
>
> Any other comments, flames or ideas are also welcome!
>
> Thanks for your time...



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org