You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Eric Charles (JIRA)" <se...@james.apache.org> on 2010/05/17 19:25:43 UTC

[jira] Created: (JAMES-1003) ClassLoader with External libs

ClassLoader with External libs
------------------------------

                 Key: JAMES-1003
                 URL: https://issues.apache.org/jira/browse/JAMES-1003
             Project: JAMES Server
          Issue Type: New Feature
          Components: Deployment Modules
    Affects Versions: Trunk
            Reporter: Eric Charles
            Priority: Minor
         Attachments: jamesclassloader.patch

Allow james to automatically add jars from /conf/libs to classloader.
This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-1003) ClassLoader with External libs

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved JAMES-1003.
----------------------------------

    Fix Version/s: 3.0-M1
       Resolution: Fixed

committed. Thx for the patch mate..

> ClassLoader with External libs
> ------------------------------
>
>                 Key: JAMES-1003
>                 URL: https://issues.apache.org/jira/browse/JAMES-1003
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: Deployment Modules
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Assignee: Norman Maurer
>            Priority: Minor
>             Fix For: 3.0-M1
>
>         Attachments: jamesclassloader-via-property.patch, jamesclassloader.patch
>
>
> Allow james to automatically add jars from /conf/libs to classloader.
> This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-1003) ClassLoader with External libs

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles updated JAMES-1003:
--------------------------------

    Attachment: jamesclassloader.patch

Patch proposal is attached.

> ClassLoader with External libs
> ------------------------------
>
>                 Key: JAMES-1003
>                 URL: https://issues.apache.org/jira/browse/JAMES-1003
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: Deployment Modules
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Priority: Minor
>         Attachments: jamesclassloader.patch
>
>
> Allow james to automatically add jars from /conf/libs to classloader.
> This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-1003) ClassLoader with External libs

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer reassigned JAMES-1003:
------------------------------------

    Assignee: Norman Maurer

> ClassLoader with External libs
> ------------------------------
>
>                 Key: JAMES-1003
>                 URL: https://issues.apache.org/jira/browse/JAMES-1003
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: Deployment Modules
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Assignee: Norman Maurer
>            Priority: Minor
>         Attachments: jamesclassloader.patch
>
>
> Allow james to automatically add jars from /conf/libs to classloader.
> This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-1003) ClassLoader with External libs

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles updated JAMES-1003:
--------------------------------

    Attachment: jamesclassloader-via-property.patch

Forget the first one jamesclassloader.patch that only worked with classes loaded via spring.

Attached a second patch jamesclassloader-via-property.patch.
Now works for all classes via -Djava.system.class.loader=org.apache.james.container.spring.JamesClassLoader

Tested on linux and windows (no mac available)
Works via startup script and wrapper.


> ClassLoader with External libs
> ------------------------------
>
>                 Key: JAMES-1003
>                 URL: https://issues.apache.org/jira/browse/JAMES-1003
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: Deployment Modules
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Assignee: Norman Maurer
>            Priority: Minor
>         Attachments: jamesclassloader-via-property.patch, jamesclassloader.patch
>
>
> Allow james to automatically add jars from /conf/libs to classloader.
> This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-1003) ClassLoader with External libs

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles updated JAMES-1003:
--------------------------------

    Attachment: commons-dbcp.patch

When setting classlader via java.system.class.loader property, we still have ClassNotFoundException for Class.forName(name).
Class.forName(name, initialize, loader) should give no problem if providing the current classloader.

commons-dbcp.patch sets commons-dbcp dependency to 1.4. (instead of 1.2.1)
The 1.4 does not use Class.forName(name) to load the jdbc driver class.




> ClassLoader with External libs
> ------------------------------
>
>                 Key: JAMES-1003
>                 URL: https://issues.apache.org/jira/browse/JAMES-1003
>             Project: JAMES Server
>          Issue Type: New Feature
>          Components: Deployment Modules
>    Affects Versions: Trunk
>            Reporter: Eric Charles
>            Assignee: Norman Maurer
>            Priority: Minor
>             Fix For: 3.0-M1
>
>         Attachments: commons-dbcp.patch, jamesclassloader-via-property.patch, jamesclassloader.patch
>
>
> Allow james to automatically add jars from /conf/libs to classloader.
> This way, user mailets and their dependencies are taken into account without configuring the classpath. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org