geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vaughn_m <vmcmul...@comcast.net>
Subject Re: Multiple SharedLibs
Date Tue, 11 Aug 2009 14:34:37 GMT

I have attempted your adjustments and have tried to deploy again without any
luck.  If you know of a working assembly using this technique, perhaps I can
try it out. Let me know and thanks for your help.

Vaughn


RunHua Chi wrote:
> 
> Try using the following plan for your web application:
> 
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
>                
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2
> ">
>   <sys:environment>
>     <sys:moduleId>
>       <sys:groupId>com.company.app</sys:groupId>
>       <sys:artifactId>applib</sys:artifactId>
>       <sys:version>2.2.07</sys:version>
>       <sys:type>car</sys:type>
>     </sys:moduleId>
>     <sys:dependencies/>
>     <sys:hidden-classes/>
>     <sys:non-overridable-classes/>
>   </sys:environment>
>  <sys:gbean name="AppSharedLib"
> class="org.apache.geronimo.system.sharedlib.SharedLib">
>    <sys:attribute name="classesDirs">var/app/classes</sys:attribute>
>    <sys:attribute name="libDirs">var/app/lib</sys:attribute>
>    <sys:reference name="ServerInfo">
>      <sys:name>ServerInfo</sys:name>
>    </sys:reference>
>  </sys:gbean>
>   <context-root>/IfAny</context-root>
> </web-app>
> 
> Jeff C
> 
> On Tue, Aug 11, 2009 at 7:13 PM, vaughn_m <vmcmullin@comcast.net> wrote:
> 
>>
>> Hello -
>>
>> I am trying to create 4 different shared lib folders in different
>> directories.  I have read and tried to use the
>> org.apache.geronimo.system.sharedlib.SharedLib gbean (the plan is below)
>> in
>> the various web apps that might use the specific directory. But this has
>> been unsuccessful.  If I place my jars in the sharedlib folder
>> (var/shared/lib) it works perfectly. But if I place the jars in the
>> specified lib folder and remove the jars form the shared folder the
>> application will not deploy.  I need to separate these libs in different
>> folders so I can have an upgrade path for different components down the
>> road.  While I could use the repository as a last resort, it would be
>> more
>> convenient for me to reuse the SaredLib gbean to accomplish this task by
>> referencing a specific external folder.  Any insight anyone would have
>> would
>> be helpful.  See the plan below for a reference.
>>
>> Vaughn
>>
>> <module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
>>  <!--Company Web App-->
>>  <environment>
>>    <moduleId>
>>      <groupId>com.company.app</groupId>
>>      <artifactId>applib</artifactId>
>>      <version>2.2.07</version>
>>      <type>car</type>
>>    </moduleId>
>>    <dependencies>
>>      <dependency>
>>        <groupId>org.apache.geronimo.framework</groupId>
>>        <artifactId>rmi-naming</artifactId>
>>        <version>2.1.4</version>
>>        <type>car</type>
>>      </dependency>
>>    </dependencies>
>>    <hidden-classes/>
>>    <non-overridable-classes/>
>>  </environment>
>>  <gbean name="AppSharedLib"
>> class="org.apache.geronimo.system.sharedlib.SharedLib">
>>    <attribute name="classesDirs">var/app/classes</attribute>
>>    <attribute name="libDirs">var/app/lib</attribute>
>>    <reference name="ServerInfo">
>>      <name>ServerInfo</name>
>>    </reference>
>>  </gbean>
>> </module>
>> --
>> View this message in context:
>> http://www.nabble.com/Multiple-SharedLibs-tp24915605s134p24915605.html
>> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Multiple-SharedLibs-tp24915605s134p24918838.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.


Mime
View raw message