Theres only two jars and their not used.

jar -tf ROOT.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/icarus/
WEB-INF/lib/
index.jsp
WEB-INF/classes/com/icarus/Test.java
WEB-INF/lib/jstl-1.2.jar
WEB-INF/lib/mysql-connector-java-5.1.6.jar
WEB-INF/web.xml
META-INF/maven/
META-INF/maven/com.icarus/
META-INF/maven/com.icarus/ROOT/
META-INF/maven/com.icarus/ROOT/pom.xml
META-INF/maven/com.icarus/ROOT/pom.properties

As you can see there is only one jsp and one class and two external jars.

The jsp only contains the following (no dynamic content):
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>

The web.xml only contains.
<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd"; >

<web-app>
  <display-name>Archetype Created Web Application</display-name>
  <servlet>
      <servlet-name>Test</servlet-name>
      <display-name>Test</display-name>
      <description></description>
      <servlet-class>
      com.icarus.Test</servlet-class>
  </servlet>
  <servlet-mapping>
      <servlet-name>Test</servlet-name>
      <url-pattern>/test</url-pattern>
  </servlet-mapping>
</web-app>

The test servlet just does a System.out.println("GOT"); when the get method
is called.

Thats it thats the entire contents of the war file.  Tomcat is on its
standard configuration except I've uncommented the  <Valve
className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common"
resolveHosts="true"/> .  Its the only deployed war to the tomcat instance
appart from the default webapps.

If I deploy ROOT.war then undeploy it all is good. The application is gone.

If I deploy Root.war stop tomcat, start tomcat and try to undeploy it. I get
the following message.
*Message:*

OK - Undeployed application at context path /

however the ROOT folder still exists in my webapps directory.  The contents
of the folder are WEB-INF/lib/mysql-connector-java-5.1.6.jar trying to
redeploy the war file gives the following message.
*Message:*

OK

However the webapp isn't deployed correctly it still only contains
WEB-INF/lib/mysql-connector-java-5.1.6.jar

This is still true when I turned on antijar locking in context.xml

Regards,

Wesley Acheson

On Thu, Jul 16, 2009 at 11:01 AM, Mark Thomas <ma...@apache.org> wrote:

> Wesley Acheson wrote:
> > In that it includes root.war and it undeploying it. yes.  Jar locking I
> > don't know about. How do I prevent that?
>
> Jar locking very unlikely to be a Tomcat bug. So, one or both of:
>  - fix the bug in your application
>  - work around the bug in a third party library you are using
>
> Which JARs are left?
>
> Mark
>
> >
> > On Thu, Jul 16, 2009 at 1:08 AM, Pid <p...@pidster.com> wrote:
> >
> >> On 15/7/09 23:58, Wesley Acheson wrote:
> >>
> >>> Tomcat 6.0.18
> >>> windows vista professional 32 bit.
> >>>
> >>> Although I seem to have seen a related issue on tomcat 5.5 here
> >>>
> >> In that it appears to involve ROOT.war?
> >>
> >>  https://issues.apache.org/bugzilla/show_bug.cgi?id=36990
> >> Sounds like you have a jar locking issue.
> >>
> >>
> >> p
> >>
> >>
> >>  On Thu, Jul 16, 2009 at 12:52 AM, Konstantin Kolinko<
> >>> knst.koli...@gmail.com
> >>>
> >>>> wrote:
> >>>>
> >>>  Usual questions:
> >>>> 1. Your exact Tomcat version.
> >>>> 2. Your OS and configuration.
> >>>>
> >>>>
> >>>>  If I try to deploy ROOT.war via the manager It just deletes the
> contents
> >>>> of
> >>>>
> >>>>> the ROOT expanded directory minus the web-inf and meta-inf folders.
> >>>>>
> >>>> Maybe the following will help you:
> >>>> http://wiki.apache.org/tomcat/FAQ/Windows
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >>>> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>>>
> >>>>
> >>>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to