Servlet spring-servlet 不可用(Spring+BlazeDS 集成) [英] Servlet spring-servlet is not available (Spring+BlazeDS Integration)

查看:25
本文介绍了Servlet spring-servlet 不可用(Spring+BlazeDS 集成)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 James Ward 在 refcards.dzone.com 上发布的 refcard 使用 Spring + BlazeDS 集成来设置 Flex 项目.

I'm trying to setup a Flex project using the Spring + BlazeDS integration by working through the refcard kindly posted by James Ward on refcards.dzone.com.

一些问题/挑战令人头疼.Tomcat部署进展顺利,所有文件都在服务器上,我可以通过浏览器调用main.swf.

Some problems/challenges are sticking their heads out. The Tomcat deployment is going well, all the files are on the server and I can summon main.swf through the browser.

我在尝试向 Spring/BlazeDS 发出 AMF 请求时收到以下 ActionScript 异常:

I get the following ActionScript exception when trying to make the AMF request to Spring/BlazeDS:

RPC Fault faultString="发送失败"faultCode="Client.Error.MessageSend"faultDetail="Channel.Connect.Failed错误 NetConnection.Call.Failed: HTTP:失败:网址:'http://localhost:8080/blazeds/spring/messagebroker/amf'"

RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/blazeds/spring/messagebroker/amf'"

在浏览器中直接放置Failed: url:"URL时,Tomcat显示如下错误信息:

When placing the "Failed: url:" URL directly in the browser, Tomcat displays the following error message:

HTTP 状态 404 - Servlet Spring MVCDispatcher Servlet 不可用

HTTP Status 404 - Servlet Spring MVC Dispatcher Servlet is not available

我已经设置了像 James Ward 在他的 refcard 上指示的所有文件,application-config.xml、web.xml 和 services-config.xml 在我看来都是有序的.

I've setup all the files like James Ward instructed on his refcard, application-config.xml, web.xml and services-config.xml are all in order as far as I can see.

对我搞砸的事情有什么想法吗?

Any ideas as to what I'm messing up?

PS:我注意到 James 的 refcard 和集成的稳定版本方面的细微变化.M2 发布后有什么变化可能会在背后咬我吗?

PS: I'm noticing small changes in terms of James' refcard and the stable release of the integration. Is there something that changed after the M2 release that might be biting me in the behind?

推荐答案

我要回答我自己的问题,这一切都归结为我是个傻瓜.在那里我没有包含在我的 WEB-INF/lib 文件夹中的一些 .jars.我从 blazeds+spring 集成测试驱动器中复制了它们,这解决了我的问题!

I'm going to answer my own question, it all boils down to me being the dummy. There where some .jars that I did not include in my WEB-INF/lib folder. I copied them accross from the blazeds+spring integration testdrive and that fixed my problem!

这篇关于Servlet spring-servlet 不可用(Spring+BlazeDS 集成)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆