在jboss问题中部署多个struts应用程序 [英] deploying multiple struts apps in jboss problem

查看:117
本文介绍了在jboss问题中部署多个struts应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在jboss 4.2.2GA中部署两个struts2项目(耳机文件)。当我们单独部署它们时,它们工作正常,但是如果我将它们部署在一起,我会收到以下错误



无法加载配置。 - action -file:/ C:/ jboss ......... struts.xml:60:109



但是一个项目工作正常。对于另一个,欢迎页面加载,但没有一个操作被执行。它显示这个错误



HTTP状态404 - 没有动作映射为命名空间和操作名称loginAction



我尝试更改在struts.xml中定义的包名称,但没有运气



可能是什么原因?我需要更改jboss或struts.xml中的任何配置

解决方案

好的,我终于做到了。这个帖子帮助了我。我在我的应用程序中添加了jboss-app.xml文件以下内容

 < jboss-app> 
< loader-repository>
com.adc.advertiser:loader = application1.ear
< / loader-repository>
< / jboss-app>

application2.ear
同样在部署目录中的jboss-servie.xml中将Java2ClassLoadingCompliance和UseJBossWebLoader更改为false


I m trying to deploy two struts2 projects(ear files) in jboss 4.2.2GA.When i deploy them seperately they work fine, but if i deploy them together i get the following error

Unable to load configuration. - action -file:/C:/jboss.........struts.xml:60:109

however one of the project works fine.For the other one, welcome page is loaded but none of the actions are performed.It shows this error

HTTP Status 404 - There is no Action mapped for namespace / and action name loginAction

I tried changing package name defined in struts.xml, but no luck

what could be th reason?Do i need to change any configuration in jboss or struts.xml

解决方案

Ok,finally i made it to work. This post helped me.I added jboss-app.xml file in both of my applications with following content

<jboss-app>
  <loader-repository> 
    com.adc.advertiser:loader=application1.ear 
  </loader-repository>
</jboss-app>

same for application2.ear Also in jboss-servie.xml present in deploy directory i changed Java2ClassLoadingCompliance and UseJBossWebLoader to false

这篇关于在jboss问题中部署多个struts应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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