You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robert Simmons <de...@arcor.de> on 2003/01/26 09:06:36 UTC
Single JAR with all the libs?
Is there a way to compress all the cocoon jars into one jar so I can just drop in my application server like a golf ball and all cocoon deployments will have access to it ?
-- Robert
Re: Single JAR with all the libs? -> rejar the distrib ...
Posted by Robert Simmons <de...@arcor.de>.
Attached is an incomplete attempt at building the jar. I don't have time to
figure out how to convert the fileset into the space delimited list of files
needed for the classpath attribute.
-- Robert
----- Original Message -----
From: "Robert Simmons" <de...@arcor.de>
To: <co...@xml.apache.org>
Sent: Sunday, January 26, 2003 11:56 PM
Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
> Incidentally you should probably index that jar since it will have lots of
> classes and make the classloader throw fits trying to find things.
> Performance wise its best to index.
>
> ----- Original Message -----
> From: "Robert Simmons" <de...@arcor.de>
> To: <co...@xml.apache.org>
> Cc: <lu...@tin.it>; <da...@saxess.com>
> Sent: Sunday, January 26, 2003 11:55 PM
> Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
>
>
> > Actually there is another option. Package all of the jars into a jar so
> that
> > the contents of that jar are all of the files. Then alter the manifest of
> the
> > containing jar (cocoon-all.jar) and add a Class-Path attribute with the
> names
> > of each of the sub jars. Now putting the cocoon-all.jar in the path will
> > cause them all to be in the classpath.
> >
> > ie:
> >
> > cocoon-all.jar
> > -- META-INF/MANIFEST.MF
> > -- avalon-framework-20020627.jar
> > -- batik-all-1.5b2.jar
> > -- bsf-2.2.jar
> > -- (etc ...)
> >
> > MANIFEST.MF
> > Created-By: Cocoon Developer Comittee.
> > Class-Path: avalon-framework-20020627.jar batik-all-1.5b2.jar bsf-2.2.jar
> > (etc ...)
> >
> > Viola .. one large jar containing many small jars. This would take a
> comitter
> > with good knowledge of the build.xml abotu 10 min to implement. Make it
20
> to
> > test it. :)
> >
> > -- Robert
> >
> >
> > ----- Original Message -----
> > From: "SAXESS - Hussayn Dabbous" <da...@saxess.com>
> > To: <co...@xml.apache.org>
> > Sent: Sunday, January 26, 2003 1:43 PM
> > Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
> >
> >
> > > If i understand you correct, you simply want to avoid deploying
> > > several cocoon-based webapps all containing tons of the same
> > > jar files ?
> > > And in order to keep your customers happy, you want to simplify
> > > the deployment by bundling all cocoon jars into one big jar,
> > > deploying this golfball.jar independently from cocoon into your
> > > appserver?
> > > Then your webapps get significantly smaller because
> > > you only have to deploy the cocoon configs and the webapp
> > > specifics ...?
> > >
> > > If this is what you want, you can do it in two ways:
> > >
> > >
> > > WAY I
> > > -----
> > > this is a very simplistic approach with some caveats, but
> > > it works. There may be a license problem here, but i
> > > don't know this for shure:
> > >
> > > 1.) unwar your cocoon distribution to any convenient place
> > > 2.) go to the WEB-INF/lib directory
> > > 3.) Now for each jarfile in the directory simply do:
> > > jar xf thefile.jar
> > > Of course you may skip all jars you dont need for your
> > > distribution ...
> > > 4.) throw away the .jar files
> > > 5.) jar cf golfball.jar *
> > >
> > > Now you have one single jar file, that you can distribute to
> > > whereever your container needs it to serve as common cocoon
> > > classes for your webapps.
> > >
> > > Finally you could repack the cocoon.war from step 1.) without
> > > the lib/*.jar files, add your webapp specific data (config/files/
> > > programs) and deploy the result as co-webapps into your container ...
> > >
> > >
> > > But you have to keep one caveat in your mind:
> > >
> > > You may fall into strongly hidden compatibility issues when
> > > your webapps use other versions of the .jar modules you just
> > > have bundled to allclasses.jar
> > >
> > > If you take the single jars as they are, at least you can easier
> > > track down which module (.jar file) causes compatibility issues.
> > > And you can easier exchanche module jars if needed although i
> > > must admit, sometimes exchanging one jar out of a bunch may not
> > > be trivial at all ;-)
> > > The golfball.jar only allows to determine, which classes cause
> > > problems.
> > >
> > >
> > > WAY II
> > > ------
> > >
> > > If you are under unix, you can reach your goal by clever use of
> > > softlinks.
> > > In my development environment we sometimes have to run 5 to 10
> > > cocoon-based webapps all across multiple platforms, multiple
> > > containers and so on. And we found a nice solution, that fits for
> > > our purposes. If this is something, anyone would be interested in,
> > > we could share knowledge here, but since this is kind of special
> > > i wouldn't bother this list and do this offline.
> > > just drop me an email.
> > >
> > > regards, hussayn
> > >
> > > hope, that helps
> > >
> > >
> > > Robert Simmons wrote:
> > > > Is there a way to compress all the cocoon jars into one jar so I can
> > > > just drop in my application server like a golf ball and all cocoon
> > > > deployments will have access to it ?
> > > >
> > > > -- Robert
> > >
> > > --
> > > 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: dabbous@saxess.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: <co...@xml.apache.org>
> > > For additional commands, e-mail: <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
Re: Single JAR with all the libs? -> rejar the distrib ...
Posted by Robert Simmons <de...@arcor.de>.
Incidentally you should probably index that jar since it will have lots of
classes and make the classloader throw fits trying to find things.
Performance wise its best to index.
----- Original Message -----
From: "Robert Simmons" <de...@arcor.de>
To: <co...@xml.apache.org>
Cc: <lu...@tin.it>; <da...@saxess.com>
Sent: Sunday, January 26, 2003 11:55 PM
Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
> Actually there is another option. Package all of the jars into a jar so
that
> the contents of that jar are all of the files. Then alter the manifest of
the
> containing jar (cocoon-all.jar) and add a Class-Path attribute with the
names
> of each of the sub jars. Now putting the cocoon-all.jar in the path will
> cause them all to be in the classpath.
>
> ie:
>
> cocoon-all.jar
> -- META-INF/MANIFEST.MF
> -- avalon-framework-20020627.jar
> -- batik-all-1.5b2.jar
> -- bsf-2.2.jar
> -- (etc ...)
>
> MANIFEST.MF
> Created-By: Cocoon Developer Comittee.
> Class-Path: avalon-framework-20020627.jar batik-all-1.5b2.jar bsf-2.2.jar
> (etc ...)
>
> Viola .. one large jar containing many small jars. This would take a
comitter
> with good knowledge of the build.xml abotu 10 min to implement. Make it 20
to
> test it. :)
>
> -- Robert
>
>
> ----- Original Message -----
> From: "SAXESS - Hussayn Dabbous" <da...@saxess.com>
> To: <co...@xml.apache.org>
> Sent: Sunday, January 26, 2003 1:43 PM
> Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
>
>
> > If i understand you correct, you simply want to avoid deploying
> > several cocoon-based webapps all containing tons of the same
> > jar files ?
> > And in order to keep your customers happy, you want to simplify
> > the deployment by bundling all cocoon jars into one big jar,
> > deploying this golfball.jar independently from cocoon into your
> > appserver?
> > Then your webapps get significantly smaller because
> > you only have to deploy the cocoon configs and the webapp
> > specifics ...?
> >
> > If this is what you want, you can do it in two ways:
> >
> >
> > WAY I
> > -----
> > this is a very simplistic approach with some caveats, but
> > it works. There may be a license problem here, but i
> > don't know this for shure:
> >
> > 1.) unwar your cocoon distribution to any convenient place
> > 2.) go to the WEB-INF/lib directory
> > 3.) Now for each jarfile in the directory simply do:
> > jar xf thefile.jar
> > Of course you may skip all jars you dont need for your
> > distribution ...
> > 4.) throw away the .jar files
> > 5.) jar cf golfball.jar *
> >
> > Now you have one single jar file, that you can distribute to
> > whereever your container needs it to serve as common cocoon
> > classes for your webapps.
> >
> > Finally you could repack the cocoon.war from step 1.) without
> > the lib/*.jar files, add your webapp specific data (config/files/
> > programs) and deploy the result as co-webapps into your container ...
> >
> >
> > But you have to keep one caveat in your mind:
> >
> > You may fall into strongly hidden compatibility issues when
> > your webapps use other versions of the .jar modules you just
> > have bundled to allclasses.jar
> >
> > If you take the single jars as they are, at least you can easier
> > track down which module (.jar file) causes compatibility issues.
> > And you can easier exchanche module jars if needed although i
> > must admit, sometimes exchanging one jar out of a bunch may not
> > be trivial at all ;-)
> > The golfball.jar only allows to determine, which classes cause
> > problems.
> >
> >
> > WAY II
> > ------
> >
> > If you are under unix, you can reach your goal by clever use of
> > softlinks.
> > In my development environment we sometimes have to run 5 to 10
> > cocoon-based webapps all across multiple platforms, multiple
> > containers and so on. And we found a nice solution, that fits for
> > our purposes. If this is something, anyone would be interested in,
> > we could share knowledge here, but since this is kind of special
> > i wouldn't bother this list and do this offline.
> > just drop me an email.
> >
> > regards, hussayn
> >
> > hope, that helps
> >
> >
> > Robert Simmons wrote:
> > > Is there a way to compress all the cocoon jars into one jar so I can
> > > just drop in my application server like a golf ball and all cocoon
> > > deployments will have access to it ?
> > >
> > > -- Robert
> >
> > --
> > 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: dabbous@saxess.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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs? -> rejar the distrib ...
Posted by Robert Simmons <de...@arcor.de>.
Actually there is another option. Package all of the jars into a jar so that
the contents of that jar are all of the files. Then alter the manifest of the
containing jar (cocoon-all.jar) and add a Class-Path attribute with the names
of each of the sub jars. Now putting the cocoon-all.jar in the path will
cause them all to be in the classpath.
ie:
cocoon-all.jar
-- META-INF/MANIFEST.MF
-- avalon-framework-20020627.jar
-- batik-all-1.5b2.jar
-- bsf-2.2.jar
-- (etc ...)
MANIFEST.MF
Created-By: Cocoon Developer Comittee.
Class-Path: avalon-framework-20020627.jar batik-all-1.5b2.jar bsf-2.2.jar
(etc ...)
Viola .. one large jar containing many small jars. This would take a comitter
with good knowledge of the build.xml abotu 10 min to implement. Make it 20 to
test it. :)
-- Robert
----- Original Message -----
From: "SAXESS - Hussayn Dabbous" <da...@saxess.com>
To: <co...@xml.apache.org>
Sent: Sunday, January 26, 2003 1:43 PM
Subject: Re: Single JAR with all the libs? -> rejar the distrib ...
> If i understand you correct, you simply want to avoid deploying
> several cocoon-based webapps all containing tons of the same
> jar files ?
> And in order to keep your customers happy, you want to simplify
> the deployment by bundling all cocoon jars into one big jar,
> deploying this golfball.jar independently from cocoon into your
> appserver?
> Then your webapps get significantly smaller because
> you only have to deploy the cocoon configs and the webapp
> specifics ...?
>
> If this is what you want, you can do it in two ways:
>
>
> WAY I
> -----
> this is a very simplistic approach with some caveats, but
> it works. There may be a license problem here, but i
> don't know this for shure:
>
> 1.) unwar your cocoon distribution to any convenient place
> 2.) go to the WEB-INF/lib directory
> 3.) Now for each jarfile in the directory simply do:
> jar xf thefile.jar
> Of course you may skip all jars you dont need for your
> distribution ...
> 4.) throw away the .jar files
> 5.) jar cf golfball.jar *
>
> Now you have one single jar file, that you can distribute to
> whereever your container needs it to serve as common cocoon
> classes for your webapps.
>
> Finally you could repack the cocoon.war from step 1.) without
> the lib/*.jar files, add your webapp specific data (config/files/
> programs) and deploy the result as co-webapps into your container ...
>
>
> But you have to keep one caveat in your mind:
>
> You may fall into strongly hidden compatibility issues when
> your webapps use other versions of the .jar modules you just
> have bundled to allclasses.jar
>
> If you take the single jars as they are, at least you can easier
> track down which module (.jar file) causes compatibility issues.
> And you can easier exchanche module jars if needed although i
> must admit, sometimes exchanging one jar out of a bunch may not
> be trivial at all ;-)
> The golfball.jar only allows to determine, which classes cause
> problems.
>
>
> WAY II
> ------
>
> If you are under unix, you can reach your goal by clever use of
> softlinks.
> In my development environment we sometimes have to run 5 to 10
> cocoon-based webapps all across multiple platforms, multiple
> containers and so on. And we found a nice solution, that fits for
> our purposes. If this is something, anyone would be interested in,
> we could share knowledge here, but since this is kind of special
> i wouldn't bother this list and do this offline.
> just drop me an email.
>
> regards, hussayn
>
> hope, that helps
>
>
> Robert Simmons wrote:
> > Is there a way to compress all the cocoon jars into one jar so I can
> > just drop in my application server like a golf ball and all cocoon
> > deployments will have access to it ?
> >
> > -- Robert
>
> --
> 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: dabbous@saxess.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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs? -> rejar the distrib ...
Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
If i understand you correct, you simply want to avoid deploying
several cocoon-based webapps all containing tons of the same
jar files ?
And in order to keep your customers happy, you want to simplify
the deployment by bundling all cocoon jars into one big jar,
deploying this golfball.jar independently from cocoon into your
appserver?
Then your webapps get significantly smaller because
you only have to deploy the cocoon configs and the webapp
specifics ...?
If this is what you want, you can do it in two ways:
WAY I
-----
this is a very simplistic approach with some caveats, but
it works. There may be a license problem here, but i
don't know this for shure:
1.) unwar your cocoon distribution to any convenient place
2.) go to the WEB-INF/lib directory
3.) Now for each jarfile in the directory simply do:
jar xf thefile.jar
Of course you may skip all jars you dont need for your
distribution ...
4.) throw away the .jar files
5.) jar cf golfball.jar *
Now you have one single jar file, that you can distribute to
whereever your container needs it to serve as common cocoon
classes for your webapps.
Finally you could repack the cocoon.war from step 1.) without
the lib/*.jar files, add your webapp specific data (config/files/
programs) and deploy the result as co-webapps into your container ...
But you have to keep one caveat in your mind:
You may fall into strongly hidden compatibility issues when
your webapps use other versions of the .jar modules you just
have bundled to allclasses.jar
If you take the single jars as they are, at least you can easier
track down which module (.jar file) causes compatibility issues.
And you can easier exchanche module jars if needed although i
must admit, sometimes exchanging one jar out of a bunch may not
be trivial at all ;-)
The golfball.jar only allows to determine, which classes cause
problems.
WAY II
------
If you are under unix, you can reach your goal by clever use of
softlinks.
In my development environment we sometimes have to run 5 to 10
cocoon-based webapps all across multiple platforms, multiple
containers and so on. And we found a nice solution, that fits for
our purposes. If this is something, anyone would be interested in,
we could share knowledge here, but since this is kind of special
i wouldn't bother this list and do this offline.
just drop me an email.
regards, hussayn
hope, that helps
Robert Simmons wrote:
> Is there a way to compress all the cocoon jars into one jar so I can
> just drop in my application server like a golf ball and all cocoon
> deployments will have access to it ?
>
> -- Robert
--
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: dabbous@saxess.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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Single JAR with all the libs?
Posted by Luca Morandini <lu...@tin.it>.
> -----Original Message-----
> From: Robert Simmons [mailto:derisor@arcor.de]
> Sent: Sunday, January 26, 2003 1:23 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Single JAR with all the libs?
>
>
> Ok I yanked the manifest file from WEB-INF and it all still seems to work,
> though I don't know about in the full cocoon deployment. Is there any JUnit
> built into this sucker?
have you looked into the the "test" build target ?
Regards,
P.S.
Don't call it a "sucker"... it ain't a sucker.
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
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/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs?
Posted by Robert Simmons <de...@arcor.de>.
Ok I yanked the manifest file from WEB-INF and it all still seems to work,
though I don't know about in the full cocoon deployment. Is there any JUnit
built into this sucker?
-- Robert
----- Original Message -----
From: "Robert Simmons" <de...@arcor.de>
To: <co...@xml.apache.org>; <lm...@ieee.org>
Sent: Sunday, January 26, 2003 1:12 PM
Subject: Re: Single JAR with all the libs?
> Hmm .... one question though. This huge manifest attribute called
> Cocoon-Libs. Where is it used in the application? Can I leave it out ?
>
> ----- Original Message -----
> From: "Luca Morandini" <lu...@tin.it>
> To: "Cocoon-users" <co...@xml.apache.org>
> Sent: Sunday, January 26, 2003 10:45 AM
> Subject: RE: Single JAR with all the libs?
>
>
> > Robert,
> >
> > well, if I were you I'd tweak the build.xml to tailor it to your needs,
and
> just tell the readers to:
> >
> > 1) replace the native build.xml with yours
> > 2) run it
> > 3) deploy the resulting WAR.
> >
> > I have no idea of alternative approaches... sorry :(
> >
> > Regards,
> >
> > ---------------------------------------------
> > Luca Morandini
> > GIS Consultant
> > lmorandini@ieee.org
> > http://utenti.tripod.it/lmorandini/index.html
> > ---------------------------------------------
> >
> >
> > > -----Original Message-----
> > > From: Robert Simmons [mailto:derisor@arcor.de]
> > > Sent: Sunday, January 26, 2003 9:57 AM
> > > To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> > > Subject: Re: Single JAR with all the libs?
> > >
> > >
> > > Ya I know that. I'm not talking about the prebuilt, distributed web
> > > application. I am trying to develop a strategy for other users to be
able
> to
> > > use cocoon from within JBoss without having to leap through 15 hoops.
So
> I
> > > basically want a way I can build cocoon libs and then in each war file
I
> make
> > > that uses cocoon, I merely need the config files and only things
> pertaining
> > > to my stuff and not to cocoon in general.
> > >
> > > Getting the kitchen sink build working was a matter of just dropping it
> in
> > > JBoss. Now I want to go further and make other applications with the
> product.
> > > Right now Id have to resort to telling readers to download cocoon,
unpack
> it,
> > > rewrite their manifests to include the Cocoon-Libs section, then run
the
> > > build which should convert the old libs to the new location and then
> install
> > > cocoon.
> > >
> > > Picture this scenario. You want to use cocoon for a front end to a
> powerful
> > > EJB based system. Your readers of your book want to download your
source
> code
> > > and install it and get it running. They need a simple process. Right
now
> the
> > > process is "download the kitchen sink version, figure out what the hell
> you
> > > don't need, repack everything and deploy it." Not functional for users
of
> the
> > > product.
> > >
> > > Therefore I keep rolling back around to having a single jar that I can
> drop
> > > in JBoss like an oversized golf ball and call cocoon "installed" and
> ready
> > > for users to deploy their OWN war files that use cocoon rather than
> asking
> > > them to modify cocoon's war.
> > >
> > > I'm not sure if I'm making sense here.
> > >
> > > -- Robert
> > >
> > >
> > > ----- Original Message -----
> > > From: "Luca Morandini" <lu...@tin.it>
> > > To: <co...@xml.apache.org>
> > > Sent: Sunday, January 26, 2003 9:41 AM
> > > Subject: RE: Single JAR with all the libs?
> > >
> > >
> > > > Robert,
> > > >
> > > > I'm not sure I've understood your question, but I like to give it a
> try.
> > > >
> > > > When you build Cocoon, it produces a WAR file, you just:
> > > >
> > > > 1) put the WAR under the webapps of your servlet container
> > > > 2) re-start the container
> > > >
> > > > The you can deploy your Cocoon app under the "mount" directory, hence
> avoid
> > > editing the general sitemap.xmap (the one in
> > > > "webapps/cocoon").
> > > >
> > > > Regards,
> > > >
> > > > ---------------------------------------------
> > > > Luca Morandini
> > > > GIS Consultant
> > > > lmorandini@ieee.org
> > > > http://utenti.tripod.it/lmorandini/index.html
> > > > ---------------------------------------------
> > > >
> > > > -----Original Message-----
> > > > From: Robert Simmons [mailto:derisor@arcor.de]
> > > > Sent: Sunday, January 26, 2003 9:07 AM
> > > > To: Cocoon Users
> > > > Subject: Single JAR with all the libs?
> > > >
> > > >
> > > > Is there a way to compress all the cocoon jars into one jar so I can
> just
> > > drop in my application server like a golf ball and all
> > > > cocoon deployments will have access to it ?
> > > >
> > > > -- Robert
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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: <co...@xml.apache.org>
> > > > For additional commands, e-mail: <co...@xml.apache.org>
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs?
Posted by Robert Simmons <de...@arcor.de>.
Hmm .... one question though. This huge manifest attribute called
Cocoon-Libs. Where is it used in the application? Can I leave it out ?
----- Original Message -----
From: "Luca Morandini" <lu...@tin.it>
To: "Cocoon-users" <co...@xml.apache.org>
Sent: Sunday, January 26, 2003 10:45 AM
Subject: RE: Single JAR with all the libs?
> Robert,
>
> well, if I were you I'd tweak the build.xml to tailor it to your needs, and
just tell the readers to:
>
> 1) replace the native build.xml with yours
> 2) run it
> 3) deploy the resulting WAR.
>
> I have no idea of alternative approaches... sorry :(
>
> Regards,
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
>
> > -----Original Message-----
> > From: Robert Simmons [mailto:derisor@arcor.de]
> > Sent: Sunday, January 26, 2003 9:57 AM
> > To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> > Subject: Re: Single JAR with all the libs?
> >
> >
> > Ya I know that. I'm not talking about the prebuilt, distributed web
> > application. I am trying to develop a strategy for other users to be able
to
> > use cocoon from within JBoss without having to leap through 15 hoops. So
I
> > basically want a way I can build cocoon libs and then in each war file I
make
> > that uses cocoon, I merely need the config files and only things
pertaining
> > to my stuff and not to cocoon in general.
> >
> > Getting the kitchen sink build working was a matter of just dropping it
in
> > JBoss. Now I want to go further and make other applications with the
product.
> > Right now Id have to resort to telling readers to download cocoon, unpack
it,
> > rewrite their manifests to include the Cocoon-Libs section, then run the
> > build which should convert the old libs to the new location and then
install
> > cocoon.
> >
> > Picture this scenario. You want to use cocoon for a front end to a
powerful
> > EJB based system. Your readers of your book want to download your source
code
> > and install it and get it running. They need a simple process. Right now
the
> > process is "download the kitchen sink version, figure out what the hell
you
> > don't need, repack everything and deploy it." Not functional for users of
the
> > product.
> >
> > Therefore I keep rolling back around to having a single jar that I can
drop
> > in JBoss like an oversized golf ball and call cocoon "installed" and
ready
> > for users to deploy their OWN war files that use cocoon rather than
asking
> > them to modify cocoon's war.
> >
> > I'm not sure if I'm making sense here.
> >
> > -- Robert
> >
> >
> > ----- Original Message -----
> > From: "Luca Morandini" <lu...@tin.it>
> > To: <co...@xml.apache.org>
> > Sent: Sunday, January 26, 2003 9:41 AM
> > Subject: RE: Single JAR with all the libs?
> >
> >
> > > Robert,
> > >
> > > I'm not sure I've understood your question, but I like to give it a
try.
> > >
> > > When you build Cocoon, it produces a WAR file, you just:
> > >
> > > 1) put the WAR under the webapps of your servlet container
> > > 2) re-start the container
> > >
> > > The you can deploy your Cocoon app under the "mount" directory, hence
avoid
> > editing the general sitemap.xmap (the one in
> > > "webapps/cocoon").
> > >
> > > Regards,
> > >
> > > ---------------------------------------------
> > > Luca Morandini
> > > GIS Consultant
> > > lmorandini@ieee.org
> > > http://utenti.tripod.it/lmorandini/index.html
> > > ---------------------------------------------
> > >
> > > -----Original Message-----
> > > From: Robert Simmons [mailto:derisor@arcor.de]
> > > Sent: Sunday, January 26, 2003 9:07 AM
> > > To: Cocoon Users
> > > Subject: Single JAR with all the libs?
> > >
> > >
> > > Is there a way to compress all the cocoon jars into one jar so I can
just
> > drop in my application server like a golf ball and all
> > > cocoon deployments will have access to it ?
> > >
> > > -- Robert
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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: <co...@xml.apache.org>
> > > For additional commands, e-mail: <co...@xml.apache.org>
> > >
> >
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: [OT] Re: Single JAR with all the libs?
Posted by Geoff Howard <co...@leverageweb.com>.
I don't know ant very well (and have been too poor of late to buy the ref
book) but since you're asking this in context of generating the Manifest for
the "mega jar" I assume the current build does this already in one place.
Can't find it myself now - I have a client coming over soon and my office is
a mess!
Geoff
> -----Original Message-----
> From: Robert Simmons [mailto:derisor@arcor.de]
> Sent: Monday, January 27, 2003 7:32 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: [OT] Re: Single JAR with all the libs?
>
>
> Ya I looked at that .. the problem is that I don't want the
> directories that
> they are coming from, just the file names.
>
> -- Robert
>
> ----- Original Message -----
> From: "Jeff Turner" <je...@apache.org>
> To: <co...@xml.apache.org>
> Sent: Monday, January 27, 2003 1:33 PM
> Subject: [OT] Re: Single JAR with all the libs?
>
>
> > On Mon, Jan 27, 2003 at 01:17:07PM +0100, Robert Simmons wrote:
> > > Does anyone know how, in Ant, to take a fileset and convert
> it to a space
> > > delimited list of files?
> >
> > Something like:
> >
> > <pathconvert property="list" dirsep=" ">
> > <path refid="...">
> > </pathconvert>
> >
> > --Jeff
> >
> > > -- Robert
> > >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: [OT] Re: Single JAR with all the libs?
Posted by Robert Simmons <de...@arcor.de>.
Ya I looked at that .. the problem is that I don't want the directories that
they are coming from, just the file names.
-- Robert
----- Original Message -----
From: "Jeff Turner" <je...@apache.org>
To: <co...@xml.apache.org>
Sent: Monday, January 27, 2003 1:33 PM
Subject: [OT] Re: Single JAR with all the libs?
> On Mon, Jan 27, 2003 at 01:17:07PM +0100, Robert Simmons wrote:
> > Does anyone know how, in Ant, to take a fileset and convert it to a space
> > delimited list of files?
>
> Something like:
>
> <pathconvert property="list" dirsep=" ">
> <path refid="...">
> </pathconvert>
>
> --Jeff
>
> > -- Robert
> >
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
[OT] Re: Single JAR with all the libs?
Posted by Jeff Turner <je...@apache.org>.
On Mon, Jan 27, 2003 at 01:17:07PM +0100, Robert Simmons wrote:
> Does anyone know how, in Ant, to take a fileset and convert it to a space
> delimited list of files?
Something like:
<pathconvert property="list" dirsep=" ">
<path refid="...">
</pathconvert>
--Jeff
> -- Robert
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs?
Posted by Robert Simmons <de...@arcor.de>.
Does anyone know how, in Ant, to take a fileset and convert it to a space
delimited list of files?
-- Robert
----- Original Message -----
From: "Luca Morandini" <lu...@tin.it>
To: "Cocoon-users" <co...@xml.apache.org>
Sent: Sunday, January 26, 2003 10:45 AM
Subject: RE: Single JAR with all the libs?
> Robert,
>
> well, if I were you I'd tweak the build.xml to tailor it to your needs, and
just tell the readers to:
>
> 1) replace the native build.xml with yours
> 2) run it
> 3) deploy the resulting WAR.
>
> I have no idea of alternative approaches... sorry :(
>
> Regards,
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
>
> > -----Original Message-----
> > From: Robert Simmons [mailto:derisor@arcor.de]
> > Sent: Sunday, January 26, 2003 9:57 AM
> > To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> > Subject: Re: Single JAR with all the libs?
> >
> >
> > Ya I know that. I'm not talking about the prebuilt, distributed web
> > application. I am trying to develop a strategy for other users to be able
to
> > use cocoon from within JBoss without having to leap through 15 hoops. So
I
> > basically want a way I can build cocoon libs and then in each war file I
make
> > that uses cocoon, I merely need the config files and only things
pertaining
> > to my stuff and not to cocoon in general.
> >
> > Getting the kitchen sink build working was a matter of just dropping it
in
> > JBoss. Now I want to go further and make other applications with the
product.
> > Right now Id have to resort to telling readers to download cocoon, unpack
it,
> > rewrite their manifests to include the Cocoon-Libs section, then run the
> > build which should convert the old libs to the new location and then
install
> > cocoon.
> >
> > Picture this scenario. You want to use cocoon for a front end to a
powerful
> > EJB based system. Your readers of your book want to download your source
code
> > and install it and get it running. They need a simple process. Right now
the
> > process is "download the kitchen sink version, figure out what the hell
you
> > don't need, repack everything and deploy it." Not functional for users of
the
> > product.
> >
> > Therefore I keep rolling back around to having a single jar that I can
drop
> > in JBoss like an oversized golf ball and call cocoon "installed" and
ready
> > for users to deploy their OWN war files that use cocoon rather than
asking
> > them to modify cocoon's war.
> >
> > I'm not sure if I'm making sense here.
> >
> > -- Robert
> >
> >
> > ----- Original Message -----
> > From: "Luca Morandini" <lu...@tin.it>
> > To: <co...@xml.apache.org>
> > Sent: Sunday, January 26, 2003 9:41 AM
> > Subject: RE: Single JAR with all the libs?
> >
> >
> > > Robert,
> > >
> > > I'm not sure I've understood your question, but I like to give it a
try.
> > >
> > > When you build Cocoon, it produces a WAR file, you just:
> > >
> > > 1) put the WAR under the webapps of your servlet container
> > > 2) re-start the container
> > >
> > > The you can deploy your Cocoon app under the "mount" directory, hence
avoid
> > editing the general sitemap.xmap (the one in
> > > "webapps/cocoon").
> > >
> > > Regards,
> > >
> > > ---------------------------------------------
> > > Luca Morandini
> > > GIS Consultant
> > > lmorandini@ieee.org
> > > http://utenti.tripod.it/lmorandini/index.html
> > > ---------------------------------------------
> > >
> > > -----Original Message-----
> > > From: Robert Simmons [mailto:derisor@arcor.de]
> > > Sent: Sunday, January 26, 2003 9:07 AM
> > > To: Cocoon Users
> > > Subject: Single JAR with all the libs?
> > >
> > >
> > > Is there a way to compress all the cocoon jars into one jar so I can
just
> > drop in my application server like a golf ball and all
> > > cocoon deployments will have access to it ?
> > >
> > > -- Robert
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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: <co...@xml.apache.org>
> > > For additional commands, e-mail: <co...@xml.apache.org>
> > >
> >
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Single JAR with all the libs?
Posted by Luca Morandini <lu...@tin.it>.
Robert,
well, if I were you I'd tweak the build.xml to tailor it to your needs, and just tell the readers to:
1) replace the native build.xml with yours
2) run it
3) deploy the resulting WAR.
I have no idea of alternative approaches... sorry :(
Regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Robert Simmons [mailto:derisor@arcor.de]
> Sent: Sunday, January 26, 2003 9:57 AM
> To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> Subject: Re: Single JAR with all the libs?
>
>
> Ya I know that. I'm not talking about the prebuilt, distributed web
> application. I am trying to develop a strategy for other users to be able to
> use cocoon from within JBoss without having to leap through 15 hoops. So I
> basically want a way I can build cocoon libs and then in each war file I make
> that uses cocoon, I merely need the config files and only things pertaining
> to my stuff and not to cocoon in general.
>
> Getting the kitchen sink build working was a matter of just dropping it in
> JBoss. Now I want to go further and make other applications with the product.
> Right now Id have to resort to telling readers to download cocoon, unpack it,
> rewrite their manifests to include the Cocoon-Libs section, then run the
> build which should convert the old libs to the new location and then install
> cocoon.
>
> Picture this scenario. You want to use cocoon for a front end to a powerful
> EJB based system. Your readers of your book want to download your source code
> and install it and get it running. They need a simple process. Right now the
> process is "download the kitchen sink version, figure out what the hell you
> don't need, repack everything and deploy it." Not functional for users of the
> product.
>
> Therefore I keep rolling back around to having a single jar that I can drop
> in JBoss like an oversized golf ball and call cocoon "installed" and ready
> for users to deploy their OWN war files that use cocoon rather than asking
> them to modify cocoon's war.
>
> I'm not sure if I'm making sense here.
>
> -- Robert
>
>
> ----- Original Message -----
> From: "Luca Morandini" <lu...@tin.it>
> To: <co...@xml.apache.org>
> Sent: Sunday, January 26, 2003 9:41 AM
> Subject: RE: Single JAR with all the libs?
>
>
> > Robert,
> >
> > I'm not sure I've understood your question, but I like to give it a try.
> >
> > When you build Cocoon, it produces a WAR file, you just:
> >
> > 1) put the WAR under the webapps of your servlet container
> > 2) re-start the container
> >
> > The you can deploy your Cocoon app under the "mount" directory, hence avoid
> editing the general sitemap.xmap (the one in
> > "webapps/cocoon").
> >
> > Regards,
> >
> > ---------------------------------------------
> > Luca Morandini
> > GIS Consultant
> > lmorandini@ieee.org
> > http://utenti.tripod.it/lmorandini/index.html
> > ---------------------------------------------
> >
> > -----Original Message-----
> > From: Robert Simmons [mailto:derisor@arcor.de]
> > Sent: Sunday, January 26, 2003 9:07 AM
> > To: Cocoon Users
> > Subject: Single JAR with all the libs?
> >
> >
> > Is there a way to compress all the cocoon jars into one jar so I can just
> drop in my application server like a golf ball and all
> > cocoon deployments will have access to it ?
> >
> > -- Robert
> >
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Single JAR with all the libs?
Posted by Robert Simmons <de...@arcor.de>.
Ya I know that. I'm not talking about the prebuilt, distributed web
application. I am trying to develop a strategy for other users to be able to
use cocoon from within JBoss without having to leap through 15 hoops. So I
basically want a way I can build cocoon libs and then in each war file I make
that uses cocoon, I merely need the config files and only things pertaining
to my stuff and not to cocoon in general.
Getting the kitchen sink build working was a matter of just dropping it in
JBoss. Now I want to go further and make other applications with the product.
Right now Id have to resort to telling readers to download cocoon, unpack it,
rewrite their manifests to include the Cocoon-Libs section, then run the
build which should convert the old libs to the new location and then install
cocoon.
Picture this scenario. You want to use cocoon for a front end to a powerful
EJB based system. Your readers of your book want to download your source code
and install it and get it running. They need a simple process. Right now the
process is "download the kitchen sink version, figure out what the hell you
don't need, repack everything and deploy it." Not functional for users of the
product.
Therefore I keep rolling back around to having a single jar that I can drop
in JBoss like an oversized golf ball and call cocoon "installed" and ready
for users to deploy their OWN war files that use cocoon rather than asking
them to modify cocoon's war.
I'm not sure if I'm making sense here.
-- Robert
----- Original Message -----
From: "Luca Morandini" <lu...@tin.it>
To: <co...@xml.apache.org>
Sent: Sunday, January 26, 2003 9:41 AM
Subject: RE: Single JAR with all the libs?
> Robert,
>
> I'm not sure I've understood your question, but I like to give it a try.
>
> When you build Cocoon, it produces a WAR file, you just:
>
> 1) put the WAR under the webapps of your servlet container
> 2) re-start the container
>
> The you can deploy your Cocoon app under the "mount" directory, hence avoid
editing the general sitemap.xmap (the one in
> "webapps/cocoon").
>
> Regards,
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
> -----Original Message-----
> From: Robert Simmons [mailto:derisor@arcor.de]
> Sent: Sunday, January 26, 2003 9:07 AM
> To: Cocoon Users
> Subject: Single JAR with all the libs?
>
>
> Is there a way to compress all the cocoon jars into one jar so I can just
drop in my application server like a golf ball and all
> cocoon deployments will have access to it ?
>
> -- Robert
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Single JAR with all the libs?
Posted by Luca Morandini <lu...@tin.it>.
Robert,
I'm not sure I've understood your question, but I like to give it a try.
When you build Cocoon, it produces a WAR file, you just:
1) put the WAR under the webapps of your servlet container
2) re-start the container
The you can deploy your Cocoon app under the "mount" directory, hence avoid editing the general sitemap.xmap (the one in
"webapps/cocoon").
Regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
-----Original Message-----
From: Robert Simmons [mailto:derisor@arcor.de]
Sent: Sunday, January 26, 2003 9:07 AM
To: Cocoon Users
Subject: Single JAR with all the libs?
Is there a way to compress all the cocoon jars into one jar so I can just drop in my application server like a golf ball and all
cocoon deployments will have access to it ?
-- Robert
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>