You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Marc-Andre Houle (JIRA)" <ji...@apache.org> on 2009/10/18 01:41:31 UTC
[jira] Created: (WICKET-2530) Class not found when using OSGI class
loader
Class not found when using OSGI class loader
--------------------------------------------
Key: WICKET-2530
URL: https://issues.apache.org/jira/browse/WICKET-2530
Project: Wicket
Issue Type: Bug
Components: wicket-guice
Affects Versions: 1.4.2
Reporter: Marc-Andre Houle
Fix For: 1.4.3
I am presently using Guice and OSGi. Our OSGi platform is used as a plugin platform for our web application. We load the OSGi framework and load it into Guice as a service provider. The plugins can be used to return panel or other wicket components that are then used in the pages.
When one of the plugins components have a Guice injection, there is a class not found problem that is seen when trying to use injected stuff :
org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget(GuiceProxyTargetLocator.java:79)
This class not found is because the Guice injector is trying to access the class directly by making a Class.forName. Since using an OSGi framework, the classloader is not capable of returning the class correctly.
To solve this issue, the wicket-guice integration should use the wicket Classes.resolveClass static method that is using a class resolver that can be changed and check for class in other class loader.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2530) Class not found when using OSGI
class loader
Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juergen Donnerstag resolved WICKET-2530.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-M1
Assignee: Juergen Donnerstag
thanks
> Class not found when using OSGI class loader
> --------------------------------------------
>
> Key: WICKET-2530
> URL: https://issues.apache.org/jira/browse/WICKET-2530
> Project: Wicket
> Issue Type: Bug
> Components: wicket-guice
> Affects Versions: 1.4.2
> Reporter: Marc-Andre Houle
> Assignee: Juergen Donnerstag
> Fix For: 1.4.3, 1.5-M1
>
> Attachments: wicket-guice-patch.txt
>
>
> I am presently using Guice and OSGi. Our OSGi platform is used as a plugin platform for our web application. We load the OSGi framework and load it into Guice as a service provider. The plugins can be used to return panel or other wicket components that are then used in the pages.
> When one of the plugins components have a Guice injection, there is a class not found problem that is seen when trying to use injected stuff :
> org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget(GuiceProxyTargetLocator.java:79)
> This class not found is because the Guice injector is trying to access the class directly by making a Class.forName. Since using an OSGi framework, the classloader is not capable of returning the class correctly.
> To solve this issue, the wicket-guice integration should use the wicket Classes.resolveClass static method that is using a class resolver that can be changed and check for class in other class loader.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2530) Class not found when using OSGI class
loader
Posted by "Marc-Andre Houle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marc-Andre Houle updated WICKET-2530:
-------------------------------------
Attachment: wicket-guice-patch.txt
Inserting subversion patch for the problem to be resolved. Tested locally with our OSGi class resolver and everything works fine afterward.
> Class not found when using OSGI class loader
> --------------------------------------------
>
> Key: WICKET-2530
> URL: https://issues.apache.org/jira/browse/WICKET-2530
> Project: Wicket
> Issue Type: Bug
> Components: wicket-guice
> Affects Versions: 1.4.2
> Reporter: Marc-Andre Houle
> Fix For: 1.4.3
>
> Attachments: wicket-guice-patch.txt
>
>
> I am presently using Guice and OSGi. Our OSGi platform is used as a plugin platform for our web application. We load the OSGi framework and load it into Guice as a service provider. The plugins can be used to return panel or other wicket components that are then used in the pages.
> When one of the plugins components have a Guice injection, there is a class not found problem that is seen when trying to use injected stuff :
> org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget(GuiceProxyTargetLocator.java:79)
> This class not found is because the Guice injector is trying to access the class directly by making a Class.forName. Since using an OSGi framework, the classloader is not capable of returning the class correctly.
> To solve this issue, the wicket-guice integration should use the wicket Classes.resolveClass static method that is using a class resolver that can be changed and check for class in other class loader.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.