You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "ganesh (JIRA)" <ji...@apache.org> on 2008/11/27 09:43:44 UTC

[jira] Created: (GERONIMO-4434) Folder classpath cannot be added in geronimo

Folder classpath cannot be added in geronimo
--------------------------------------------

                 Key: GERONIMO-4434
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4434
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: 2.1.3
            Reporter: ganesh
            Priority: Blocker


Websphere Application Server has a concept of shared library which can point to external folder (containing configuraition files)....How to achieve the same functionality in geronimo.....Do we need to copy all the files to geronimo shared repository ? If yes, this doesnt work if we have different web application with same configuration file with different parameter values...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4434) Folder classpath cannot be added in geronimo

Posted by "ganesh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652011#action_12652011 ] 

ganesh commented on GERONIMO-4434:
----------------------------------

I have some questions

1.    Does the entries in config.xml only contains relative path to directories or  can we add absolute path  like  e:\\somefolder 

2.    Can we add multiple folder classpath in config.xml....If yes what is the syntax ?

for eg:  can we have something like

<module name="org.apache.geronimo.configs/sharedlib/2.0.3-SNAPSHOT/car">
<gbean name="SharedLib">
<attribute name="classesDirs">var/shared/classes;e:\\somefolder; c:\\applicationConfig</attribute>
<attribute name="libDirs">var/shared/lib; e:\\apacheJars</attribute>
</gbean>
</module>

Thank You.





> Folder classpath cannot be added in geronimo
> --------------------------------------------
>
>                 Key: GERONIMO-4434
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4434
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.1.3
>            Reporter: ganesh
>            Priority: Blocker
>
> Websphere Application Server has a concept of shared library which can point to external folder (containing configuraition files)....How to achieve the same functionality in geronimo.....Do we need to copy all the files to geronimo shared repository ? If yes, this doesnt work if we have different web application with same configuration file with different parameter values...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4434) Folder classpath cannot be added in geronimo

Posted by "Joe Bohn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652022#action_12652022 ] 

Joe Bohn commented on GERONIMO-4434:
------------------------------------

1.  I believe that you can specify an absolute file path but I'm not sure about the windows syntax for this.   I've never tried this ... you might have to experiment some.
2.  You can specify multiple entries using a comma (no space) delimiter.

> Folder classpath cannot be added in geronimo
> --------------------------------------------
>
>                 Key: GERONIMO-4434
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4434
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.1.3
>            Reporter: ganesh
>            Priority: Blocker
>
> Websphere Application Server has a concept of shared library which can point to external folder (containing configuraition files)....How to achieve the same functionality in geronimo.....Do we need to copy all the files to geronimo shared repository ? If yes, this doesnt work if we have different web application with same configuration file with different parameter values...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4434) Folder classpath cannot be added in geronimo

Posted by "Joe Bohn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652000#action_12652000 ] 

Joe Bohn commented on GERONIMO-4434:
------------------------------------

Are you familiar with with the Geronimo sharedlib support?  We don't publicize this much because it is not considered a best practice as it makes the application less portable in that an application cannot simply be exported as a plugin and installed in another server and work correctly if it is using the shared library.

One would normally copy their jar files to GERONIMO_HOME/var/shared/lib and include the shared library component as a dependency in their geronimo specific deployment plan:

<environment>
    <dependencies>
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>sharedlib</artifactId>
        </dependency>
    </dependencies>
 ...
</environment> 

However, it sounds like you had some concern with having to include the jars in a specific location for the server.  You can optionally include other directories of jars or classes in the configuration of the sharedlib in GERONIMO_HOME/var/config/config.xml.  The default directories are as follows:
    <module name="org.apache.geronimo.configs/sharedlib/2.0.3-SNAPSHOT/car">
        <gbean name="SharedLib">
            <attribute name="classesDirs">var/shared/classes</attribute>
            <attribute name="libDirs">var/shared/lib</attribute>
        </gbean>
    </module>

You can add these entries under the sharedlib module entry that should already be present in your config.xml and extend or replace the directories listed.  



> Folder classpath cannot be added in geronimo
> --------------------------------------------
>
>                 Key: GERONIMO-4434
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4434
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.1.3
>            Reporter: ganesh
>            Priority: Blocker
>
> Websphere Application Server has a concept of shared library which can point to external folder (containing configuraition files)....How to achieve the same functionality in geronimo.....Do we need to copy all the files to geronimo shared repository ? If yes, this doesnt work if we have different web application with same configuration file with different parameter values...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4434) Folder classpath cannot be added in geronimo

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-4434:
-----------------------------------

         Priority: Minor  (was: Blocker)
    Fix Version/s: Verification Required

moving to verification required, as the SharedLib function should solve this

> Folder classpath cannot be added in geronimo
> --------------------------------------------
>
>                 Key: GERONIMO-4434
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4434
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.1.3
>            Reporter: ganesh
>            Priority: Minor
>             Fix For: Verification Required
>
>
> Websphere Application Server has a concept of shared library which can point to external folder (containing configuraition files)....How to achieve the same functionality in geronimo.....Do we need to copy all the files to geronimo shared repository ? If yes, this doesnt work if we have different web application with same configuration file with different parameter values...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.