You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2010/10/15 23:00:35 UTC
[jira] Created: (OWB-473) bundles that use javasissist to proxy
their contents need to import some javassist packages
bundles that use javasissist to proxy their contents need to import some javassist packages
-------------------------------------------------------------------------------------------
Key: OWB-473
URL: https://issues.apache.org/jira/browse/OWB-473
Project: OpenWebBeans
Issue Type: Bug
Components: Core
Affects Versions: 1.1.0
Reporter: David Jencks
Assignee: Gurkan Erdogdu
Running in osgi, i'm running into a problem where javassist can't create a proxy for org.apache.webbeans.jsf.scopes.Jsf2ScopesExtension because javassist.util.proxy.ProxyObject can't be loaded from the bundle classloader for webbeans-jsf. Adding the javassist Import-Package seems to fix the problem.
Out of curiousity, when does it ever make sense to replace the default javassist ProxyFactory.classLoaderProvider? In geronimo the OWB replacement of using the context classloader worked for the OWB class above but failed miserably for application classes. With my patch OWB appears to never replace the default, which now seems to work fine always.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OWB-473) bundles that use javasissist to proxy
their contents need to import some javassist packages
Posted by "David Jencks (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Jencks updated OWB-473:
-----------------------------
Attachment: OWB-473.patch
Patch to add the javassist import-package. There may be a less repetitious way to configure this, but I'm a little confused by your maven-bundle-plugin configuration.
BTW the class that replaces the javassist ProxyFactory.classLoaderProvider is JavassistProxyFactory near line 283
> bundles that use javasissist to proxy their contents need to import some javassist packages
> -------------------------------------------------------------------------------------------
>
> Key: OWB-473
> URL: https://issues.apache.org/jira/browse/OWB-473
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Reporter: David Jencks
> Assignee: Gurkan Erdogdu
> Attachments: OWB-473.patch
>
>
> Running in osgi, i'm running into a problem where javassist can't create a proxy for org.apache.webbeans.jsf.scopes.Jsf2ScopesExtension because javassist.util.proxy.ProxyObject can't be loaded from the bundle classloader for webbeans-jsf. Adding the javassist Import-Package seems to fix the problem.
> Out of curiousity, when does it ever make sense to replace the default javassist ProxyFactory.classLoaderProvider? In geronimo the OWB replacement of using the context classloader worked for the OWB class above but failed miserably for application classes. With my patch OWB appears to never replace the default, which now seems to work fine always.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (OWB-473) bundles that use javasissist to proxy
their contents need to import some javassist packages
Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gurkan Erdogdu closed OWB-473.
------------------------------
Resolution: Fixed
Fix Version/s: 1.1.0
> bundles that use javasissist to proxy their contents need to import some javassist packages
> -------------------------------------------------------------------------------------------
>
> Key: OWB-473
> URL: https://issues.apache.org/jira/browse/OWB-473
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Reporter: David Jencks
> Assignee: Gurkan Erdogdu
> Fix For: 1.1.0
>
> Attachments: OWB-473.patch
>
>
> Running in osgi, i'm running into a problem where javassist can't create a proxy for org.apache.webbeans.jsf.scopes.Jsf2ScopesExtension because javassist.util.proxy.ProxyObject can't be loaded from the bundle classloader for webbeans-jsf. Adding the javassist Import-Package seems to fix the problem.
> Out of curiousity, when does it ever make sense to replace the default javassist ProxyFactory.classLoaderProvider? In geronimo the OWB replacement of using the context classloader worked for the OWB class above but failed miserably for application classes. With my patch OWB appears to never replace the default, which now seems to work fine always.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.