Results 1 to 4 of 4

Thread: Spring Blazeds Integration + OSGI (Virgo) : CGLIB problem

Threaded View

  1. #1

    Default Spring Blazeds Integration + OSGI (Virgo) : CGLIB problem

    Hi all,

    We've encountered a problem using Spring Blazeds with Virgo Environment.
    You can find a summary of config files below.
    Thanks a lot for your help.
    Vince


    Web.xml:
    Code:
    <web-app>
    	<display-name>Kplus UI</display-name>
    	<context-param>
    		<param-name>contextClass</param-name>
    		<param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext
    		</param-value>
    	</context-param>
    
    	<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener
    		</listener-class>
    	</listener>
        <servlet>
            <servlet-name>SpringBlazeds</servlet-name>
            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <!-- map all the /messagebroker requests to the DispatcherServlet.-->
        <servlet-mapping>
            <servlet-name>SpringBlazeds</servlet-name>
            <url-pattern>/messagebroker/*</url-pattern>
        </servlet-mapping>
    </web-app>
    applicationContext.xml:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:flex="http://www.springframework.org/schema/flex"
    	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    		http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
            http://www.springframework.org/schema/flex http://www.springframework.org/schema/flex/spring-flex-1.5.xsd"
    	xmlns:osgi="http://www.springframework.org/schema/osgi">
    	
        <osgi:reference id="loginService" interface="user.ILoginService"/>
    	
        <flex:message-broker>
            <flex:message-service default-channels="main-amf" />
        </flex:message-broker>
    	
        <flex:remoting-destination ref="loginService"/>
    </beans>
    pom.xml:

    Code:
    (...)
    <dependency>
    	<groupId>org.springframework</groupId>
    	<artifactId>org.springframework.spring-library</artifactId>
    	<type>libd</type>
    </dependency>
    <dependency>
             <groupId>org.springframework.flex</groupId>
             <artifactId>spring-flex-core</artifactId>
    </dependency>
    Virgo ext directory:

    The bundle cglib has been added: com.springsource.net.sf.cglib-2.1.3.jar

    Error:

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializati onException: MessageBroker initialization failed; nested exception is org.springframework.aop.framework.AopConfigExcepti on: Could not generate CGLIB subclass of class [class flex.messaging.endpoints.AMFEndpoint]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: class flex.messaging.endpoints.AMFEndpoint$$EnhancerByCG LIB$$8d1825bb is not an enhanced class


    Full Stack
    You can find the full stack in attachment
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •