程序错误|flex4+spring整合有关问题,Unexpected child element 'factory' found in 'destination' from

flex4+spring整合问题, 程序错误,Unexpected child element 'factory' found in 'destination' from file: remoting-config.xml.
我在services-config.xml文件中也配置了



SpringFactory这个类是网上找的。但是我一启动Tomcat就报这个错误,忘高手给予指点。
**** MessageBrokerServlet failed to initialize due to runtime exception: flex.messaging.config. ConfigurationException: Unexpected child element 'factory' found in 'destination' from file: remoting-config.xml.
at flex.messaging.config.AbstractConfigurationParser.allowedChildElements(AbstractConfigurationParser.java:269)
at flex.messaging.config.ServerConfigurationParser.destination(ServerConfigurationParser.java:816)
at flex.messaging.config.ServerConfigurationParser.service(ServerConfigurationParser.java:626)
at flex.messaging.config.ServerConfigurationParser.serviceInclude(ServerConfigurationParser.java:493)
at flex.messaging.config.ServerConfigurationParser.services(ServerConfigurationParser.java:466)
at flex.messaging.config.ServerConfigurationParser.parseTopLevelConfig(ServerConfigurationParser.java:62)
at flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:68)
at flex.messaging.config.FlexConfigurationManager.getMessagingConfiguration(FlexConfigurationManager.java:79)
at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:100)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

------解决方案--------------------------------------------------------
这问题怎么问到这里来了……自己找找blazeDS的相关资料吧
------解决方案--------------------------------------------------------
可参考:
Element 有关问题, java环境变量设置。 多谢http://www.myexception.cn/j2ee/3247.html


相关的主题文章:

  • ibatis关联查询后,将结果转换为xml解决方案
  • spring3 RequestMapping 路径的有关问题
  • incompatible character encodings

    推荐阅读