J'ai fait quelques modifs mineures dans mon appli. Elle fonctionne avec Tomcat mais avec Weblogic 8.1 sp5. J'ai le problème suivant dès le démarrage du serveur :
Code : 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
####<26 janv. 2007 06 h 52 CET> <Notice> <WebLogicServer> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode> 
####<26 janv. 2007 06 h 52 CET> <Notice> <WebLogicServer> <t2ktesr02> <myserver> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default" listening on port 7015, ip address *.*> 
####<26 janv. 2007 09 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '3' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 09 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '3' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 09 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <inout> <> <BEA-101247> <: Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 09 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.admin.HTTP'> <inout> <> <BEA-101248> <[null]: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 13 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 13 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 28 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 28 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 31 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '3' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 31 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '3' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 32 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 32 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 34 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 34 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 37 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 37 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 52 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 52 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 57 CET> <Notice> <Security> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.> 
####<26 janv. 2007 15 h 57 CET> <Notice> <WebLogicServer> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "inoutrecette"> 
####<26 janv. 2007 15 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 15 h 57 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 15 h 58 CET> <Notice> <WebLogicServer> <t2ktesr02> <myserver> <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode> 
####<26 janv. 2007 15 h 58 CET> <Notice> <WebLogicServer> <t2ktesr02> <myserver> <ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default" listening on port 7015, ip address *.*> 
####<26 janv. 2007 16 h 02 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '4' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101247> <Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE': Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 16 h 02 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '4' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-101248> <[Application: 'D:\Applis\BEA\user_projects\domains\inoutrecette\applications', Module: 'INOUT-RECETTE']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).> 
####<26 janv. 2007 16 h 02 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.admin.HTTP'> <inout> <> <BEA-101247> <: Public ID references the old version of the Servlet DTD. You must change the public ID in web.xml file to "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN".> 
####<26 janv. 2007 16 h 02 CET> <Warning> <HTTP> <t2ktesr02> <myserver> <ExecuteThread: '1' for queue: 'weblogic.admin.HTTP'> <inout> <> <BEA-101248> <[null]: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'weblogic-web-app'. (line 1, column 19).>
Comme le weblogic.xml n'est pas reconnu, mon appli plante rapidement.
Bien sûr, je n'ai pas touché au web.xml ni au weblogic.xml, ce serait trop simple. Et ni la config ni la version de Weblogic n'a changé.
J'ai essayé en mettant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 
  "http://java.sun.com/dtd/web-app_2_3.dtd">
dans le web.xml mais j'ai le même message.

Mon weblogic.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
<weblogic-web-app>
	<container-descriptor>
		<prefer-web-inf-classes>true</prefer-web-inf-classes>
	</container-descriptor>
</weblogic-web-app>
Ajouter ce qui suit au début du weblogic.xml n'a rien changé :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE weblogic-web-app
PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
J'ai redémarré le service et redéployé l'application, ça n'a rien changé.
J'ai l'impression que le message d'erreur n'a rien à voir avec le vrai problème mais je ne connais pas assez Weblogic pour trouver d'où ça peut venir.