geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chi runhua <chirun...@gmail.com>
Subject Re: how in the world do you get the org.apache.geronimo.system.sharedlib.SharedLib to work?
Date Fri, 07 May 2010 01:53:04 GMT
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>
>
>
>
> *
> *
>

Mime
View raw message