You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2007/07/20 02:45:10 UTC

[jira] Created: (TUSCANY-1460) SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)

SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-1460
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1460
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Data Binding Runtime
    Affects Versions: Java-SCA-Next
            Reporter: Raymond Feng


The embedded Tomcat creates web app classloader for the thread handling the incoming HTTP requests. As a result, the scope for SDO HelperContext is different from the classloader when the SDO metadata is introspected during the contribution processing.

We probably need a better scoping for SDO metadata than the classloader. Contribution might be used as the key (we can even support import/export).

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1460) SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520721 ] 

Jean-Sebastien Delfino commented on TUSCANY-1460:
-------------------------------------------------

The problem is that our embedded Tomcat server does not set the correct classloader on the Tomcat StandardContexts it creates. I am fixing it.

> SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1460
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1460
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Raymond Feng
>            Assignee: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>
> The embedded Tomcat creates web app classloader for the thread handling the incoming HTTP requests. As a result, the scope for SDO HelperContext is different from the classloader when the SDO metadata is introspected during the contribution processing.
> We probably need a better scoping for SDO metadata than the classloader. Contribution might be used as the key (we can even support import/export).

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1460) SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino resolved TUSCANY-1460.
---------------------------------------------

    Resolution: Fixed

Fixed now.

> SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1460
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1460
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Raymond Feng
>            Assignee: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>
> The embedded Tomcat creates web app classloader for the thread handling the incoming HTTP requests. As a result, the scope for SDO HelperContext is different from the classloader when the SDO metadata is introspected during the contribution processing.
> We probably need a better scoping for SDO metadata than the classloader. Contribution might be used as the key (we can even support import/export).

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-1460) SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino reassigned TUSCANY-1460:
-----------------------------------------------

    Assignee: Jean-Sebastien Delfino  (was: Luciano Resende)

> SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1460
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1460
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Raymond Feng
>            Assignee: Jean-Sebastien Delfino
>             Fix For: Java-SCA-Next
>
>
> The embedded Tomcat creates web app classloader for the thread handling the incoming HTTP requests. As a result, the scope for SDO HelperContext is different from the classloader when the SDO metadata is introspected during the contribution processing.
> We probably need a better scoping for SDO metadata than the classloader. Contribution might be used as the key (we can even support import/export).

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1460) SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende updated TUSCANY-1460:
-------------------------------------

    Fix Version/s: Java-SCA-Next
         Assignee: Luciano Resende

I'll take a look at this, as I'm working on related area.

> SDO databinding's SDO metadata is scoped in a classloader different from the webapp classloader created by the embedded tomcat (ClassCastException w/ sample-helloworld-sdo)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1460
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1460
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Data Binding Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Raymond Feng
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-Next
>
>
> The embedded Tomcat creates web app classloader for the thread handling the incoming HTTP requests. As a result, the scope for SDO HelperContext is different from the classloader when the SDO metadata is introspected during the contribution processing.
> We probably need a better scoping for SDO metadata than the classloader. Contribution might be used as the key (we can even support import/export).

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org