geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chi runhua <chirun...@gmail.com>
Subject Re: war framework / external jar setup
Date Thu, 06 Aug 2009 13:16:47 GMT
Unpack your jar to c:\myjar, then use

deploy -u system -p manager deploy --inPlace c:\myjar

this should work, just tried on my side.

Jeff C


On Thu, Aug 6, 2009 at 8:59 PM, Marco Laponder <marco.laponder@kewill.com>wrote:

>  I can’t seem to get the –inPlace option to work, I am trying:
>
>
>
> deploy -u system -p manager install-library --groupId com.test --inPlace
> c:\inplace
>
>
>
> This gives me the error:
>
>
>
> Too many arguments.
>
>
>
> Help for command: install-library
>
>    install-library [--groupId grp] LibraryFile
>
>
>
>
>
>        Installs a library file into repository.
>
>
>
>        If a groupId is provided, the library file will be installed
>
>        under that groupId. Otherwise, default will be used. The
>
>        artifactId, version and type are computed from the library file
>
>        name which should be in the form <artifactId>-<version>.<type>,
>
>        for e.g. mylib-1.0.jar.
>
>
>
>
>
> Do I need a specific version of Geronimo or am I doing something else
> incorrect ?
>
>
>
> Kind regards,
>
> Marco
>  ------------------------------
>
> *Van:* chi runhua [mailto:chirunhua@gmail.com]
> *Verzonden:* donderdag 6 augustus 2009 14:35
> *Aan:* user@geronimo.apache.org
> *Onderwerp:* Re: war framework / external jar setup
>
>
>
> Here are some thoughts for your reference.
>
> First, unpack your jar and use --inPlace option[1] to deploy it into
> Geronimo Repository, then add a dependency in the deployment plan of war[2].
>
> Doc for reference.
>
> [1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
> [2]
> http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeploymentplan
>
> Jeff C
>
> On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder <marco.laponder@kewill.com>
> wrote:
>
> Hi erveryone,
>
>
>
> I need some advice on the following situation. We have a war with a
> framework which based on configuration in the database and use of reflection
> dynamically can call a method of a java class. When this class is present in
> a jar (lets call it impl.jar) which is located in WEB-INF/lib it works as
> expected.
>
>
>
> However what I want to accomplish is:
>
> 1)       have the impl.jar not included in the WEB-INF but at an alternate
> external location, so for a new impl.jar we need not redeploy the war
>
> 2)       once the jar has been altered I probably need to force a reload
> of the classes already loaded by the Geronimo classloader. Is this possible
> and how can this be accomplished
>
>
>
> When I am completely off the track or have any other advice which could
> help me just point me in the right direction, any documentation or google
> terms will be appreciated.
>
>
>
> Kind regards,
>
> Marco Laponder
>
>
>
>
>

Mime
View raw message