You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wendy Smoak <We...@asu.edu> on 2003/02/18 18:44:29 UTC

4.1.18 won't unpack my .war file

First let me say that it _does_ properly deploy and unpack the
'struts-example.war' file, so I know there must be something wrong with
mine.

I'm using this to build the .war file:

<target name="war" depends="compile">
    <war destfile="${dist}/${context}.war"
         webxml="config/web.xml">
      <lib dir="lib"/>
      <classes dir="classes"/>
      <fileset dir="web"/>
      <zipfileset dir="config"  prefix="WEB-INF"/>
      <zipfileset dir="jsp"     prefix="WEB-INF/jsp"/>
      <zipfileset dir="tld"     prefix="WEB-INF/tld"/>
  </war>
</target>

If I put the resulting .war file into 'webapps' and start Tomcat, nothing
happens.  I see this in the log:
2003-02-18 10:38:37 StandardContext[/bendev]: Starting
2003-02-18 10:38:37 StandardContext[/bendev]: Processing start(), current
available=false
2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default Resources
2003-02-18 10:38:37 StandardContext[/bendev]: Resources start failed:
2003-02-18 10:38:37 StandardContext[/bendev]: Configuring non-privileged
default Loader
2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default Manager
2003-02-18 10:38:37 StandardContext[/bendev]: Processing standard container
startup
2003-02-18 10:38:37 StandardContext[/bendev]: Context startup failed due to
previous errors
2003-02-18 10:38:37 StandardContext[/bendev]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/bendev] has not been started

If I create the webapps/bendev directory and use WinZip to unzip the .war
file into it, then everything works fine.  From this I infer that all the
parts of my .war file are in the right place.

What could be stopping it from unpacking just this one .war file?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Re: 4.1.18 won't unpack my .war file

Posted by Sean Dockery <se...@sbdconsultants.com>.
Doh!  Forget what I said about Context.unpackWARs--unpackWARs is a Host
thing.  If struts-example.war unpacked successfully under the same Host,
this isn't the problem.

"Sean Dockery" <se...@sbdconsultants.com> wrote in message
news:b2ts7v$arm$1@main.gmane.org...
> Hello, Wendy.
>
> What happens if you don't use zipfileset?
>
> Also, confirm that you have unpackWARs set on your Context in
> $CATALINA_HOME/conf/server.xml.  Like this:
>
> <Context path="/bendev" docBase="bendev" unpackWARs="true" ... />
>   ...
> </Context>
>
> What does zipfileset do?  If it compresses the targets, you can't use
> it--WAR files are not compressed archives.
>
>
> --
> Sean Dockery
> sean@sbdconsultants.com
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
> "Wendy Smoak" <We...@asu.edu> wrote in message
> news:A7AF1AE70A8C124593A1AC831EFE46FE0EEFE3@ex3.asurite.ad.asu.edu...
> >
> > First let me say that it _does_ properly deploy and unpack the
> > 'struts-example.war' file, so I know there must be something wrong with
> > mine.
> >
> > I'm using this to build the .war file:
> >
> > <target name="war" depends="compile">
> >     <war destfile="${dist}/${context}.war"
> >          webxml="config/web.xml">
> >       <lib dir="lib"/>
> >       <classes dir="classes"/>
> >       <fileset dir="web"/>
> >       <zipfileset dir="config"  prefix="WEB-INF"/>
> >       <zipfileset dir="jsp"     prefix="WEB-INF/jsp"/>
> >       <zipfileset dir="tld"     prefix="WEB-INF/tld"/>
> >   </war>
> > </target>
> >
> > If I put the resulting .war file into 'webapps' and start Tomcat,
nothing
> > happens.  I see this in the log:
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Starting
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Processing start(),
current
> > available=false
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
> Resources
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Resources start failed:
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring non-privileged
> > default Loader
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
Manager
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Processing standard
> container
> > startup
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Context startup failed due
> to
> > previous errors
> > 2003-02-18 10:38:37 StandardContext[/bendev]: Exception during cleanup
> after
> > start failed
> > LifecycleException:  Container StandardContext[/bendev] has not been
> started
> >
> > If I create the webapps/bendev directory and use WinZip to unzip the
.war
> > file into it, then everything works fine.  From this I infer that all
the
> > parts of my .war file are in the right place.
> >
> > What could be stopping it from unpacking just this one .war file?
> >
> > --
> > Wendy Smoak
> > Applications Systems Analyst, Sr.
> > Arizona State University PA Information Resources Management
> >




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: 4.1.18 won't unpack my .war file

Posted by Sean Dockery <se...@sbdconsultants.com>.
Hello, Wendy.

What happens if you don't use zipfileset?

Also, confirm that you have unpackWARs set on your Context in
$CATALINA_HOME/conf/server.xml.  Like this:

<Context path="/bendev" docBase="bendev" unpackWARs="true" ... />
  ...
</Context>

What does zipfileset do?  If it compresses the targets, you can't use
it--WAR files are not compressed archives.


--
Sean Dockery
sean@sbdconsultants.com
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Wendy Smoak" <We...@asu.edu> wrote in message
news:A7AF1AE70A8C124593A1AC831EFE46FE0EEFE3@ex3.asurite.ad.asu.edu...
>
> First let me say that it _does_ properly deploy and unpack the
> 'struts-example.war' file, so I know there must be something wrong with
> mine.
>
> I'm using this to build the .war file:
>
> <target name="war" depends="compile">
>     <war destfile="${dist}/${context}.war"
>          webxml="config/web.xml">
>       <lib dir="lib"/>
>       <classes dir="classes"/>
>       <fileset dir="web"/>
>       <zipfileset dir="config"  prefix="WEB-INF"/>
>       <zipfileset dir="jsp"     prefix="WEB-INF/jsp"/>
>       <zipfileset dir="tld"     prefix="WEB-INF/tld"/>
>   </war>
> </target>
>
> If I put the resulting .war file into 'webapps' and start Tomcat, nothing
> happens.  I see this in the log:
> 2003-02-18 10:38:37 StandardContext[/bendev]: Starting
> 2003-02-18 10:38:37 StandardContext[/bendev]: Processing start(), current
> available=false
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default
Resources
> 2003-02-18 10:38:37 StandardContext[/bendev]: Resources start failed:
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring non-privileged
> default Loader
> 2003-02-18 10:38:37 StandardContext[/bendev]: Configuring default Manager
> 2003-02-18 10:38:37 StandardContext[/bendev]: Processing standard
container
> startup
> 2003-02-18 10:38:37 StandardContext[/bendev]: Context startup failed due
to
> previous errors
> 2003-02-18 10:38:37 StandardContext[/bendev]: Exception during cleanup
after
> start failed
> LifecycleException:  Container StandardContext[/bendev] has not been
started
>
> If I create the webapps/bendev directory and use WinZip to unzip the .war
> file into it, then everything works fine.  From this I infer that all the
> parts of my .war file are in the right place.
>
> What could be stopping it from unpacking just this one .war file?
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org