[S2] JARs in plugins

2007-06-06 Thread Frank W. Zammetti
Hi everyone... I'm writing my first S2 plugin and I'm running into a problem, which may well just be one of understanding. I had thought that any JAR placed in the root of the plugin JAR would be added to the path, but this seemingly isn't the case. My understanding is that a plugin JAR is a

Re: [S2] JARs in plugins

2007-06-06 Thread Philip Luppens
On 6/6/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: Hi everyone... I'm writing my first S2 plugin and I'm running into a problem, which may well just be one of understanding. I had thought that any JAR placed in the root of the plugin JAR would be added to the path, but this seemingly isn't

Re: [S2] JARs in plugins

2007-06-06 Thread Dave Newton
You can also consider using Jar Jar Links (o, me-sa gonna muck witha your bytecodes, or if you prefer a more recent meme, IM UP IN UR JARZ TWEAKIN UR PKGS) if you are coupled to a specific release and want to ensure there's no possibility of library conflict with webapp libs. Dave --- Philip

Re: [S2] JARs in plugins

2007-06-06 Thread Frank W. Zammetti
No, I wouldn't want to repack JARs... we actually do that with Java Web Parts with a couple of Commons packages, but what I'm working on now has a larger number of dependencies and they are a little more complex. Definitely wouldn't want to do any bytecode manipulation either, or any other voodoo

Re: [S2] JARs in plugins

2007-06-06 Thread Musachy Barroso
The whole auto-unpacking thing could quickly become a nightmare, not a good idea IMO. @Phil: last time I tried to get OSGi and Struts together I failed miserably, I even feel dumber after that :). Someday I will try again, but that time I will actually read OSGi documentation first. musachy On

Re: [S2] JARs in plugins

2007-06-06 Thread Frank W. Zammetti
On Wed, June 6, 2007 12:57 pm, Musachy Barroso wrote: The whole auto-unpacking thing could quickly become a nightmare, not a good idea IMO. Yeah, your probably right... If there was a way to ensure you didn't have two versions of the same class in two different JARs I might feel differently,

Re: [S2] JARs in plugins

2007-06-06 Thread Ted Husted
On 6/6/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: All this does however, to me anyway, mean that plugins can't really be called self-contained, and saying ...can extend the framework just by adding a JAR to the application's classpath in the documentation isn't 100% accurate (99% maybe).

Re: [S2] JARs in plugins

2007-06-06 Thread Frank W. Zammetti
On Wed, June 6, 2007 1:07 pm, Ted Husted wrote: On 6/6/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: All this does however, to me anyway, mean that plugins can't really be called self-contained, and saying ...can extend the framework just by adding a JAR to the application's classpath in the

Re: [S2] JARs in plugins

2007-06-06 Thread Ted Husted
On 6/6/07, Frank W. Zammetti [EMAIL PROTECTED] wrote: I'd be happy to... I don't seem to have permissions to edit the guides pages though Done. (or are these docs auto-generated by the build process?) The ones to edit are here: * http://struts.apache.org/2.x/index.html The static HTML

Re: [S2] JARs in plugins

2007-06-06 Thread Frank W. Zammetti
Thanks Ted! Very minor update done now as well :) Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1)