Je vous explique mon problème: je déploie une application sur un serveur JBoss 4.2.2 sous forme d'un EAR.
Dans cet EAR, il y a:
- un JAR avec les interfaces de mes services Spring (myapp-common.jar)
- un JAR avec les implémentations de mes services Spring et les fichiers de configurations dont applicationContext.xml à la racine (myapp-core.jar)
- un WAR avec un webservice Spring-WS qui va appeler mes services Spring (myapp-ws.war)
Dans le war du webservice, j'ai le fichier web.xml suivant:
Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>My App</display-name> <servlet> <servlet-name>spring-ws</servlet-name> <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>spring-ws</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:applicationContext.xml classpath:applicationContext-dataSource.xml classpath:applicationContext-mail.xml </param-value> </context-param> </web-app>
Et donc les trois applicationContext-*.xml sont à la racine de myapp-core.jar
Maintenant quand je démarre le serveur et qu'il charge l'application, il me dit qu'il ne trouve pas applicationContext.xml, comme s'il n'était pas sur le classpath.
Quelqu'un a une idée d'où ça peut merder dans ma config?
Partager