Spring WebApplicationInitializer在Wildfly 8.2.0 EAR部署中不起作用 [英] Spring WebApplicationInitializer not working in wildfly 8.2.0 EAR Deployment

查看:116
本文介绍了Spring WebApplicationInitializer在Wildfly 8.2.0 EAR部署中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的EAR,带有一个spring mvc Web应用程序(war),所有的spring库都位于myear.ear/lib文件夹中.

I have very simple EAR with one spring mvc web app (war), all spring libraries are in myear.ear/lib folder.

我不是在使用web.xml,而是在尝试使用WebApplicationInitializer,但Wildfly服务器未检测到该错误,并且我正在获取404页面.但是,如果我在WEB-INF/lib中有spring-mvc库,则它可以正常工作.

I'm not using web.xml instead i'm trying to use WebApplicationInitializer but Wildfly server is not detecting this and i'm getting 404 page. But if i have spring-mvc libs inside WEB-INF/lib then its working.

即使我已经在我的WebApplicationInitializer实现中放置了调试指针,但它似乎并未调用onStartup方法本身(并且未记录任何错误).有人遇到过同样的问题吗?有人可以帮忙吗?

Even I have put debug pointer at my WebApplicationInitializer implementation but it doesn't seem calling the onStartup method itself (and No error logged). Has anybody faced the same issue? Can anyone help?

推荐答案

此问题已在Wildfly 9.0.0 beta版中得到解决

This got fixed in Wildfly 9.0.0 beta WFLY-4205

这篇关于Spring WebApplicationInitializer在Wildfly 8.2.0 EAR部署中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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