문제

We have a web app with a .jar in our WEB-INF/lib that contains some annotated Web Services. JBoss try to deploy the Web Services defined in the .jar but we want only to use the classes as normal java API.

There is a way to prevent JBoss to deploy the Web Services?

We cannot modify the .jar and we have some RESTful services in our web app.

도움이 되었습니까?

해결책

In general the shared libs folder of your application should contain only utility classes without any component-declaring annotations (such EJB3 or JAX-RS), as it can have unintended and undesirable consequences on the deployment process.

To sort this problem out in jboss 7.x you have to remove the jars from WEB-INF/lib (or lib if you have an EAR). Third party libraries have to be installed as modules https://docs.jboss.org/author/display/MODULES/Defining+a+module.

Then you have to declare the module in the MANIFEST of your war in the Dependencies list.

Hope it helps, Fabrizio

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top