首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Spring BlazeDS flex.messaging.endpoints.AMFEndpoint

Spring BlazeDS flex.messaging.endpoints.AMFEndpoint
EN

Stack Overflow用户
提问于 2009-06-07 16:44:09
回答 2查看 9.1K关注 0票数 4

今天我已经在这个问题上挣扎了很长一段时间,为了让它继续运行,我删除了除了默认通道之外的所有东西。我已经解决了我所有的库问题(我希望如此),现在收到下面的错误。我还包含了我的配置文件,以防任何人都能看一看。谢谢!

代码语言:javascript
复制
03:19:51,945 INFO  [STDOUT] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
    with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; 
    nested exception is org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name '_messageBroker': Invocation of init method failed; 
    nested exception is flex.messaging.MessageException: An unknown exception occurred
    while creating an instance of type 'flex.messaging.endpoints.AMFEndpoint'.
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)

我的配置文件在这里:

消息传递-配置:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service" 
class="flex.messaging.services.MessageService">

<adapters>
    <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
    <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->
</adapters>

<default-channels>
    <channel ref="my-amf"/>
</default-channels>
</service>

proxy-config:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<service id="proxy-service" 
class="flex.messaging.services.HTTPProxyService"
messageTypes="flex.messaging.messages.HTTPMessage,flex.messaging.messages.SOAPMessage">

<properties>
    <connection-manager>
        <max-total-connections>100</max-total-connections>
        <default-max-connections-per-host>2</default-max-connections-per-host>
    </connection-manager>
    <allow-lax-ssl>true</allow-lax-ssl>
</properties>

<adapters>
    <adapter-definition id="http-proxy" class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/>
    <adapter-definition id="soap-proxy" class="flex.messaging.services.http.SOAPProxyAdapter"/>
</adapters>

<default-channels>
    <channel ref="my-amf"/>
    <!-- <channel ref="java-amf"/> -->
</default-channels>

</service>

远程处理-配置:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service" 
class="flex.messaging.services.RemotingService">

<adapters>
            <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
</adapters>

<default-channels>
    <channel ref="my-amf"/>
</default-channels>

</service>

services-config:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<services-config>

<services>
    <service-include file-path="spring-remoting-config.xml" />
    <service-include file-path="spring-proxy-config.xml" />
    <service-include file-path="spring-messaging-config.xml" />        
</services>

<security>
    <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>

</security>

<channels>

    <!-- Java -->
    <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="flex.messaging.log.ConsoleTarget" level="Error">
        <properties>
            <prefix>[BlazeDS] </prefix>
            <includeDate>false</includeDate>
            <includeTime>false</includeTime>
            <includeLevel>false</includeLevel>
            <includeCategory>false</includeCategory>
        </properties>
        <filters>
            <pattern>Endpoint.*</pattern>
            <pattern>Service.*</pattern>
            <pattern>Configuration</pattern>
        </filters>
    </target>
</logging>

<system>
    <redeploy>
        <enabled>false</enabled>
        <!-- 
        <watch-interval>20</watch-interval>
        <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
        <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
        <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
        <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
        <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
        <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
         -->
    </redeploy>
</system>

</services-config>
EN

回答 2

Stack Overflow用户

发布于 2010-01-06 22:46:56

你有没有...

代码语言:javascript
复制
<flex:message-broker />

你的spring-context-configuration.xml文件中有没有...entry?我有一个类似的错误,如果不是相同的,直到我添加它...

票数 0
EN

Stack Overflow用户

发布于 2010-07-01 22:17:36

您的WEB-INF/lib中是否有xalan.jar - folder..issue与丢失的jar文件相关。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/961523

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档