2009-06-07 5 views
3

나는 오늘 이걸로 꽤 오랫동안 고민하고있다.하지만 기본 채널을 제외한 모든 것을 제거하기 만하면된다. 나는 나의 모든 도서관 문제를 해결했으며 (나는 희망한다.) 이제 아래 오류를 얻고있다. 나는 또한 누군가가 이것을 볼 수 있도록 나의 설정 파일을 포함시켰다. 감사!!! 봄 BlazeDS flex.messaging.endpoints.AMFEndpoint

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) 

내 설정 파일

현재 위치 :

메시징 설정 :

<?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> 

프록시 설정 :

<?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> 

원격-설정 :

<?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> 

서비스 - 구성 :

<?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> 
+1

어떤 버전의 BlazeDS 및 Spring-Flex를 사용하고 있습니까? –

답변

0

당신이 가지고 ... 당신의 spring-context-configuration.xml 파일 중 하나에

<flex:message-broker /> 

... 항목을합니까? 나는 그것을 추가 할 때까지 나는 똑같은 오류가 있었다. ...

0

WEB-INF/lib 폴더에 xalan.jar가있다. 누락 된 jar 파일과 관련이있다.