farhad
Sep 10th, 2009, 06:18 PM
Hi,
Im using GAE SDK 1.2.5 and spring 2.5.6 plus SpringBlazeDS
I can run my app on local but when I update my application on Google and
call nameService through a Flex client I get this exception:
org.springframework.web.servlet.FrameworkServlet initServletBean: Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: 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 java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
here is my flex-servlet.xml
...
<bean id="nameService" class="test.blazeds.SampleService">
<flex:message-broker>
<flex:message-service
default-channels="my-amf"/>
</flex:message-broker>
<flex:remoting-destination ref="nameService"/>
and this is services-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<channels>
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
<logging>
<target class="com.adstrim.JavaUtilLogTarget" level="Debug"/>
</logging>
<system>
<manageable>false</manageable>
<redeploy>
<enabled>false</enabled>
</redeploy>
</system>
</services-config>
Im using GAE SDK 1.2.5 and spring 2.5.6 plus SpringBlazeDS
I can run my app on local but when I update my application on Google and
call nameService through a Flex client I get this exception:
org.springframework.web.servlet.FrameworkServlet initServletBean: Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: 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 java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
here is my flex-servlet.xml
...
<bean id="nameService" class="test.blazeds.SampleService">
<flex:message-broker>
<flex:message-service
default-channels="my-amf"/>
</flex:message-broker>
<flex:remoting-destination ref="nameService"/>
and this is services-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<channels>
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
<logging>
<target class="com.adstrim.JavaUtilLogTarget" level="Debug"/>
</logging>
<system>
<manageable>false</manageable>
<redeploy>
<enabled>false</enabled>
</redeploy>
</system>
</services-config>