How to convert Maven War project to an EAR project in Openshift?

女生的网名这么多〃 提交于 2020-01-05 08:56:44

问题


I have created an JEE application in Openshift using the JBOSS AS 7.1 cartridge a Maven project have been generated with the War deployment format.

I need to use EJBs into the application but the War format cannot hold EJB so I changed the from War to Ear, the problem is that when I deploy the Ear the application does not Work(404 Error when I access the home page).

Is there any simple solution in order to make this work?
Or Should I create two seperate projects(one EJB project and another JSF project) and a parent POM?


回答1:


Actually it is possible to package EJBs inside a WAR archive : JEE6 Tutorial, so I decided to stick with that.

Alternatively it is also possible to convert a project from WAR to EAR by using Maven's project composition (useful link).



来源:https://stackoverflow.com/questions/22560293/how-to-convert-maven-war-project-to-an-ear-project-in-openshift

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