Comment empêcher JBoss AS 7.x pour déployer des services Web contenus dans une dépendance de l'application Web

StackOverflow https://stackoverflow.com/questions/9332018

Question

Nous avons une application web avec un .jar dans notre WEB-INF / lib qui contient certains services Web annotée. JBoss essayer de déployer les services Web définis dans le .jar, mais nous voulons seulement utiliser les classes comme API java normal.

Il existe un moyen d'empêcher JBoss pour déployer les services Web?

Nous ne pouvons pas modifier le .jar et nous avons des services RESTful dans notre application web.

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top