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

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

问题描述



我试图使用Spring + BlazeDS集成设置一个Flex项目,通过refcards.dzone.com上的James Ward发布的refcard。一些问题/挑战正在困扰着他们。 Tomcat部署进行得很顺利,所有的文件都在服务器上,我可以通过浏览器来调用main.swf。

在尝试创建时会出现下面的ActionScript异常
$ b


RPC故障faultString =发送失败
faultCode =Client.Error.MessageSend
faultDetail =Channel.Connect.Failed
错误NetConnection.Call.Failed:HTTP:
失败:url:
' http:// localhost:8080 / blazeds / spring / messagebroker / amf ' b $ b

在浏览器中直接放置Failed:url:URL时,Tomcat会显示以下错误消息:

lockquote

HTTP Status 404 - Servlet Spring MVC
Dispatcher Servlet不可用

我设置了所有像詹姆斯·沃德(James Ward)这样的文件在他的refcard,applicati指示on-config.xml,web.xml和services-config.xml都是我所能看到的。



任何关于我在搞什么的想法PS:我注意到詹姆斯的refcard和整合的稳定版本的小变化。有没有什么改变后的M2版本,可能会咬我在后面?

解决方案

我要回答我的自己的问题,这一切都归结为我是虚拟的。在那里有一些.jars,我没有包含在我的WEB-INF / lib文件夹中。我从blazeds + spring integration testdrive中复制了它们,并修复了我的问题!


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.

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.

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

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'"

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

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

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

解决方案

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天全站免登陆