You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by chi runhua <ch...@gmail.com> on 2010/05/07 03:53:04 UTC

Re: how in the world do you get the org.apache.geronimo.system.sharedlib.SharedLib to work?

Complete the deployment plan with reference to ServerInfo as followed,
then try again.


*classesDirs attribute is used for shared files while *

*     <attribute name="libDirs">var/shared/lib</attribute>  *

*   shall be used if you are using shared libraries(jar files).*


Hope this helps.


Jeff


>
> <?xml version=*"1.0"* encoding=*"UTF-8"*?>
>
> <app:application xmlns:app=*"
> http://geronimo.apache.org/xml/ns/j2ee/application-2.0"*
>
> xmlns:client=*"
> http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0"*
>
> xmlns:conn=*"http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"*
>
> xmlns:dep=*"http://geronimo.apache.org/xml/ns/deployment-1.2"*
>
> xmlns:ejb=*"http://openejb.apache.org/xml/ns/openejb-jar-2.2"*
>
> xmlns:log=*"http://geronimo.apache.org/xml/ns/loginconfig-2.0"*
>
> xmlns:name=*"http://geronimo.apache.org/xml/ns/naming-1.2"*
>
> xmlns:pers=*"http://java.sun.com/xml/ns/persistence"*
>
> xmlns:pkgen=*"http://openejb.apache.org/xml/ns/pkgen-2.1"*
>
> xmlns:sec=*"http://geronimo.apache.org/xml/ns/security-2.0"*
>
> xmlns:web=*"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"*
>
> application-name=*"MyAppEAR"*>
>
>     <dep:environment>
>
>         <dep:moduleId>
>
>             <dep:groupId>MyGroup</dep:groupId>
>
>             <dep:artifactId>*MyApp*</dep:artifactId>
>
>             <dep:version>1.4</dep:version>
>
>             <dep:type>ear</dep:type>
>
>         </dep:moduleId>
>
>         <dep:dependencies/>
>
>         <dep:hidden-classes/>
>
>         <dep:non-overridable-classes/>
>
>     </dep:environment>
>
>     <app:module>
>
>         <app:web>MyAppWeb.war</app:web>
>
>         <web:web-app>
>
>             <dep:environment>
>
>                 <dep:moduleId>
>
>                     <dep:groupId>MyGroup</dep:groupId>
>
>                     <dep:artifactId>MyAppWeb</dep:artifactId>
>
>                     <dep:version>2.4</dep:version>
>
>                     <dep:type>war</dep:type>
>
>                 </dep:moduleId>
>
>             </dep:environment>
>
>             <web:context-root>/MyAppWeb</web:context-root>
>
>                 <dep:gbean class=*
> "org.apache.geronimo.system.sharedlib.SharedLib"* name=*"mylib"*>
>
>                     <dep:attribute name=*"classesDirs"* >c:/mypropertiesdir,c:/myxmldir
> </dep:attribute>
>
                                             <dep:reference
name="ServerInfo">

 <dep:name>ServerInfo</dep:name>

                                              </dep:reference>

>                 </dep:gbean>
>
>         </web:web-app>
>
>     </app:module>
>
>
>
> </app:application>
>
>
>
> *
> *
>

Re: how in the world do you get the org.apache.geronimo.system.sharedlib.SharedLib to work?

Posted by Ivan <xh...@gmail.com>.
As you said, all those files are in the application itself, why not put them
together in the lib folder of the ear package ?

2010/5/7 chi runhua <ch...@gmail.com>

> Complete the deployment plan with reference to ServerInfo as followed, then try again.
>
>
> *classesDirs attribute is used for shared files while *
>
> *     <attribute name="libDirs">var/shared/lib</attribute>  *
>
> *   shall be used if you are using shared libraries(jar files).*
>
>
> Hope this helps.
>
>
> Jeff
>
>
>>
>> <?xml version=*"1.0"* encoding=*"UTF-8"*?>
>>
>> <app:application xmlns:app=*"
>> http://geronimo.apache.org/xml/ns/j2ee/application-2.0"*
>>
>> xmlns:client=*"
>> http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0"*
>>
>> xmlns:conn=*"http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"*
>>
>> xmlns:dep=*"http://geronimo.apache.org/xml/ns/deployment-1.2"*
>>
>> xmlns:ejb=*"http://openejb.apache.org/xml/ns/openejb-jar-2.2"*
>>
>> xmlns:log=*"http://geronimo.apache.org/xml/ns/loginconfig-2.0"*
>>
>> xmlns:name=*"http://geronimo.apache.org/xml/ns/naming-1.2"*
>>
>> xmlns:pers=*"http://java.sun.com/xml/ns/persistence"*
>>
>> xmlns:pkgen=*"http://openejb.apache.org/xml/ns/pkgen-2.1"*
>>
>> xmlns:sec=*"http://geronimo.apache.org/xml/ns/security-2.0"*
>>
>> xmlns:web=*"http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"*
>>
>> application-name=*"MyAppEAR"*>
>>
>>     <dep:environment>
>>
>>         <dep:moduleId>
>>
>>             <dep:groupId>MyGroup</dep:groupId>
>>
>>             <dep:artifactId>*MyApp*</dep:artifactId>
>>
>>             <dep:version>1.4</dep:version>
>>
>>             <dep:type>ear</dep:type>
>>
>>         </dep:moduleId>
>>
>>         <dep:dependencies/>
>>
>>         <dep:hidden-classes/>
>>
>>         <dep:non-overridable-classes/>
>>
>>     </dep:environment>
>>
>>     <app:module>
>>
>>         <app:web>MyAppWeb.war</app:web>
>>
>>         <web:web-app>
>>
>>             <dep:environment>
>>
>>                 <dep:moduleId>
>>
>>                     <dep:groupId>MyGroup</dep:groupId>
>>
>>                     <dep:artifactId>MyAppWeb</dep:artifactId>
>>
>>                     <dep:version>2.4</dep:version>
>>
>>                     <dep:type>war</dep:type>
>>
>>                 </dep:moduleId>
>>
>>             </dep:environment>
>>
>>             <web:context-root>/MyAppWeb</web:context-root>
>>
>>                 <dep:gbean class=*
>> "org.apache.geronimo.system.sharedlib.SharedLib"* name=*"mylib"*>
>>
>>                     <dep:attribute name=*"classesDirs"* >c:/mypropertiesdir,c:/myxmldir
>> </dep:attribute>
>>
>                                              <dep:reference
> name="ServerInfo">
>
>  <dep:name>ServerInfo</dep:name>
>
>                                               </dep:reference>
>
>>                 </dep:gbean>
>>
>>         </web:web-app>
>>
>>     </app:module>
>>
>>
>>
>> </app:application>
>>
>>
>>
>> *
>> *
>>
>


-- 
Ivan