Thanks, this is very detailed help. Yes I am implementing a servlet engine.
The engine is not broken, but because all other engines extract the war
file, people begin to assume war files will be extracted and use
FileInputStreams directly. Then I got complains about some war files works
on all other engines but fails on mine. Write a tool for the enigne will
increase the server by another 15-20k, and I want to keep the size as small
as possible. I will just add extract war option to the server so people
don't need to change their code for their stuff to work. Since most other
servlet enignes extract the war file, this will proboly became a standard
anyway.
Gang
----- Original Message -----
From: "Christopher K. St. John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 4:45 PM
Subject: Re: Servlet Engine on .war file (EXTRACT OR NOT EXTRACT)
> Gary z wrote:
> >
> > However some of the users got a problem because they
> > can't modify the WAR easily
> >
>
> In theory, servlet-containers are supposed to provide
> tools to help users manipulate WAR files, something along
> the lines of the J2EE reference implementation's
> deploytool.
>
>
> > the simple modification became a pain.
> >
>
> Yes. If you look in the archives there should be a
> thread about where to put config files. Do you put
> them in the WAR? But then the users have to modify
> the WAR. Somewhere else? But where? Use the J2EE-like
> ejb-ref/env-entry/resource-ref? But those are only
> required for servlet containers running inside a full
> J2EE container. Etc, etc.
>
>
> > Also on all other engines they can use a FileInputStream
> > to open the content of .war file, while if it is not
> > extracted, that simply won't work.
> >
>
> Hmmm, they should be able to use ServletContext
> getResource() and friends to read files inside the
> WAR, even on un-expanded WAR. If they can't, then
> the engine is broken.
>
>
> > So is the extract of .war file a standard set by sun or
> > something that servlet developers should not assume?
> >
>
> Developers should not assume that WARs are expanded.
>
>
> Did I read right? Are you implementing a servlet
> container? Or did you mean that you're implementing
> a web-application that will be deployed in someone
> else's container?
>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html