开发者社区> 问答> 正文

struts2注解部署到jboss时找不到action?报错

把原来部署在weblogic上的项目往JBoss Developer Studio 8.0上迁移,开始报了很多错,一一解决了不少,启动没报错了,能打开首页,但是点击链接时不能跳转,页面报错,后台不报错。

JBWEB000065: HTTP Status 404 - There is no Action mapped for namespace [/index] and action name [login!mainview] associated with context path [/AcctMgr].


JBWEB000309: type JBWEB000067: Status report

JBWEB000068: message There is no Action mapped for namespace [/index] and action name [login!mainview] associated with context path [/AcctMgr].

JBWEB000069: description JBWEB000124: The requested resource is not available.


JBoss Web/7.4.8.Final-redhat-4

action使用的是注解的,spring用的是4.0 ;struts用的是2.3.16.

有大神们知道怎么解决么,求解决方法!!

展开
收起
爱吃鱼的程序员 2020-06-14 19:12:18 800 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    从开始报的错误慢慢解决呗.就是应该是注解路径访问错误。你可以尝试先用xml配置一个简单的action看能不能访问。然后一步一步排除问题应该是jbossvfs的问题,在5.0上遇到这个问题,需要修改个源码<arel="nofollow">http://blog.csdn.net/zgmzyr/article/details/6902611 或许能解决

    2020-06-14 19:12:36
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载