struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3958) Struts2 OSGi plugin does not work with GlassFish
Date Tue, 21 May 2013 17:39:17 GMT

    [ https://issues.apache.org/jira/browse/WW-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663163#comment-13663163
] 

Hudson commented on WW-3958:
----------------------------

Integrated in Struts2-JDK6 #707 (See [https://builds.apache.org/job/Struts2-JDK6/707/])
    WW-3958 Updates Apache Felix and adds option to cooperate with Felix integrated in Glassfish
(Revision 1484815)

     Result = SUCCESS
lukaszlenart : 
Files : 
* /struts/struts2/trunk/bundles/admin/src/main/java/org/apache/struts2/osgi/admin/actions/BundlesAction.java
* /struts/struts2/trunk/plugins/osgi/pom.xml
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/BundleAccessor.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/BundleClassLoaderInterface.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/BundlePackageLoader.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/DefaultBundleAccessor.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/DelegatingObjectFactory.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/FelixOsgiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/OsgiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/OsgiHostFactory.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/OsgiUtil.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/PackageLoader.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/SpringOsgiObjectFactory.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/StrutsOsgiListener.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/host
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/host/BaseOsgiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/host/FelixOsgiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/host/GlassfishOSGiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/host/OsgiHost.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/interceptor/BundleContextAware.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/interceptor/OsgiInterceptor.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/interceptor/ServiceAware.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/loaders/StaticContentBundleResourceLoader.java
* /struts/struts2/trunk/plugins/osgi/src/main/java/org/apache/struts2/osgi/loaders/VelocityBundleResourceLoader.java
* /struts/struts2/trunk/plugins/osgi/src/test/java/org/apache/struts2/osgi/FelixOsgiHostTest.java
* /struts/struts2/trunk/plugins/osgi/src/test/java/org/apache/struts2/osgi/host
* /struts/struts2/trunk/plugins/osgi/src/test/java/org/apache/struts2/osgi/host/FelixOsgiHostTest.java
* /struts/struts2/trunk/plugins/osgi/src/test/java/org/apache/struts2/osgi/interceptor/OsgiInterceptorTest.java
* /struts/struts2/trunk/pom.xml

                
> Struts2 OSGi plugin does not work with GlassFish
> ------------------------------------------------
>
>                 Key: WW-3958
>                 URL: https://issues.apache.org/jira/browse/WW-3958
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.3.1
>         Environment: GlassFish 3.1.2.2
>            Reporter: Christina Kaskoura
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.15
>
>         Attachments: 2.3.8-error.txt, Struts2OSGi.zip
>
>
> 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
occurs:
> 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|http://stackoverflow.com/questions/14200300/using-struts2-osgi-plugin-with-glassfish]

--
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: http://www.atlassian.com/software/jira

Mime
View raw message