marshallmccain
May 11th, 2009, 04:16 PM
I am attempting to setup a flex remoting destination in a Spring dm Web bundle. The error is displayed during PAR deployment. It appears that the spring-flex integration is trying to create a bean and proxy an amf channel class instance. Has anybody else seen this. For reference, I've included the relevant parts of my web context and services-config files below.
BTW, I'm using the Spring Enterprise Repository bundles for BlazeDS. I manually copied the org.springframework.flex RC1 jar into the usr repository in Spring dm server.
Thanks,
Marshall
Error
---------------------------------------
...org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBroker': Invocation of init method 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 net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null...
web-context (spring app context)
-----------------------------------------
<flex:message-broker>
<flex:mapping pattern="/messagebroker/*" />
<flex:remoting-service default-channels="news" />
</flex:message-broker>
<bean id="newsService" class="net.fractech.blazeds.news.NewsService" />
<flex:remoting-destination ref="newsService" />
services-config
-----------------------------------------------
<services>
<default-channels>
<channel ref="news"/>
</default-channels>
</services>
<channels>
<channel-definition id="news" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
BTW, I'm using the Spring Enterprise Repository bundles for BlazeDS. I manually copied the org.springframework.flex RC1 jar into the usr repository in Spring dm server.
Thanks,
Marshall
Error
---------------------------------------
...org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBroker': Invocation of init method 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 net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null...
web-context (spring app context)
-----------------------------------------
<flex:message-broker>
<flex:mapping pattern="/messagebroker/*" />
<flex:remoting-service default-channels="news" />
</flex:message-broker>
<bean id="newsService" class="net.fractech.blazeds.news.NewsService" />
<flex:remoting-destination ref="newsService" />
services-config
-----------------------------------------------
<services>
<default-channels>
<channel ref="news"/>
</default-channels>
</services>
<channels>
<channel-definition id="news" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>