struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christina Kaskoura (JIRA)" <>
Subject [jira] [Updated] (WW-3958) Struts2 OSGi plugin does not work with GlassFish
Date Tue, 22 Jan 2013 09:46:13 GMT


Christina Kaskoura updated WW-3958:

    Attachment: 2.3.8-error.txt

As a temporary workaround I managed to deploy the sample application in GlassFish by using
the GlasssFish_Platform=Static option which starts GlassFish without OSGi. However, when attempting
to use Struts version 2.3.8 instead of 2.3.1 I get the attached errors, which seem to be due
to the fact that the XWork file manager is null. I get the same errors also when deploying
in Tomcat instead of GlassFish.
> Struts2 OSGi plugin does not work with GlassFish
> ------------------------------------------------
>                 Key: WW-3958
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.3.1
>         Environment: GlassFish
>            Reporter: Christina Kaskoura
>             Fix For: 2.3.9
>         Attachments: 2.3.8-error.txt,
> The OSGi plugin does not work with GlassFish where Felix is already included. When including
in the Struts web application a bundle containing an activator class the following exception
> java.lang.ClassCastException: myosgi.Activator cannot be cast to org.osgi.framework.BundleActivator
> while when including a bundle with a class which implements BundleContextAware the following
exception occurs:
> Exception starting filter struts2 java.lang.LinkageError: loader constraint violation:
loader (instance of org/apache/felix/framework/searchpolicy/ContentClassLoader) previously
initiated loading for a different type with name "org/osgi/framework/BundleContext"
> It also seems that the plugin uses an old version of Felix which could be (at least partly)
responsible for the errors since GlassFish uses a newer one.
> More details on the errors also available in [this stackoverflow post|]

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message