15. Juni 2007

Deployment von WAR-Files unter Tomcat 6

Problem: Reploy oder Undeploy von per WAR-Files deployten Applikationen unter Tomcat funktioniert nicht:

Ursache: Es werden manche jar gesperrt, so dass sie nicht mehr gelöscht werden können.

Lösung: In das WAR-File muss im META-INF Ordner die Datei context.xml sein.

Diese muss den Eintrag antiResourceLocking="true" haben.

Beispiel:


<Context path="/guardian" crossContext="true" debug="0" reloadable="true"
antiResourceLocking="true"
>
>
</Context>

Keine Kommentare: