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
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

"Wendy Smoak" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to