deploying multiple struts apps in jboss problem

若如初见. 提交于 2019-12-13 04:41:30

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/4783252/deploying-multiple-struts-apps-in-jboss-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!