You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Antony Stubbs <an...@gmail.com> on 2007/09/06 00:07:30 UTC

Inter web-module class dependencies

Is it possible for one war to use classes in another war?

So far my googling says no:
http://www.ibm.com/developerworks/websphere/library/techarticles/0112_deboer/deboer.html
"The only restriction to this otherwise simple solution is that, since Web
modules are not structured with classes at their root, other modules can
never depend on classes from within Web modules. In other words, no modules
may use the manifest to depend on classes from within a Web module."
Is there another way other than using the manifest file?
Editing the "J2EE Module Dependencies" only let's you add jar files, which
supports the above statement.

Why? - i have a legacy struts app and i would like to make a wicket war
which uses the struts' app's backend which is burried in the struts war
file.

The other option could be to add a wicket servlet catching a different
sub-url say /wicket/* - but not sure if that would work, and i'd like to
keep the wicket app separate if possible.
-- 
View this message in context: http://www.nabble.com/Inter-web-module-class-dependencies-tf4388432.html#a12511971
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Inter web-module class dependencies

Posted by Eelco Hillenius <ee...@gmail.com>.
On 9/5/07, Antony Stubbs <an...@gmail.com> wrote:
>
> Is it possible for one war to use classes in another war?
>
> So far my googling says no:
> http://www.ibm.com/developerworks/websphere/library/techarticles/0112_deboer/deboer.html
> "The only restriction to this otherwise simple solution is that, since Web
> modules are not structured with classes at their root, other modules can
> never depend on classes from within Web modules. In other words, no modules
> may use the manifest to depend on classes from within a Web module."
> Is there another way other than using the manifest file?
> Editing the "J2EE Module Dependencies" only let's you add jar files, which
> supports the above statement.
>
> Why? - i have a legacy struts app and i would like to make a wicket war
> which uses the struts' app's backend which is burried in the struts war
> file.
>
> The other option could be to add a wicket servlet catching a different
> sub-url say /wicket/* - but not sure if that would work, and i'd like to
> keep the wicket app separate if possible.

You can include the classes as jars in both the wars, right? That
should typically work fine.

Eelco

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