You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andoni <an...@indigo.ie> on 2002/11/26 13:46:14 UTC

WAR files not expanding.

When I put a .war file over to my tomcat server it doesn't work.
- It only creates an empty directory in webapps.

If I put over the war and unzip the file, it works fine.

If I put over the .war file and set unpackWARs="false" it does not work.
- The unpack command is understood though as it does not create the
directory in webapps

I am using Tomcat 4.0.4.  Has anyone come across anything similar?

Thanks in advance,

Andoni.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re[2]: WAR files not expanding.

Posted by Jacob Kjome <ho...@visi.com>.
Hello David,

If you define a <Context ...> for a particular app where the path
matches the name of the .war file, the .war will not be unpacked by
Tomcat under any circumstances.  I imagine you have something like
this in server.xml or in a context configuration file:

<Context docBase="myapp" path="/myapp" />

in this case a .war file named "myapp.war" will *not* be unpacked.
You  have to do it yourself or change the docBase to point to the .war
file directory such as:

<Context docBase="myapp.war" path="/myapp" />

In this case, Tomcat still won't unpack the .war file, but that
doesn't matter because it is serving the app from the unpacked .war
file.

Jake

Tuesday, November 26, 2002, 9:16:10 AM, you wrote:

DB> Andoni writes: 

>> When I put a .war file over to my tomcat server it doesn't work.
>> - It only creates an empty directory in webapps. 
>> 
>> If I put over the war and unzip the file, it works fine. 
>> 
>> If I put over the .war file and set unpackWARs="false" it does not work.
>> - The unpack command is understood though as it does not create the
>> directory in webapps 
>> 
>> I am using Tomcat 4.0.4.  Has anyone come across anything similar? 
>> 
>> Thanks in advance, 
>> 
>> Andoni. 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>> For additional commands, e-mail: <ma...@jakarta.apache.org> 
>> 
 


DB> Hello Andoni, have u tried to build and deploy using ant? david. 

DB> --
DB> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
DB> For additional commands, e-mail: <ma...@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: WAR files not expanding.

Posted by David Brown <dw...@webitplanet.com>.
Andoni writes: 

> When I put a .war file over to my tomcat server it doesn't work.
> - It only creates an empty directory in webapps. 
> 
> If I put over the war and unzip the file, it works fine. 
> 
> If I put over the .war file and set unpackWARs="false" it does not work.
> - The unpack command is understood though as it does not create the
> directory in webapps 
> 
> I am using Tomcat 4.0.4.  Has anyone come across anything similar? 
> 
> Thanks in advance, 
> 
> Andoni. 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org> 
> 
 


Hello Andoni, have u tried to build and deploy using ant? david. 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Netscape 6.2.x problem

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Richard Heath wrote:

> I wondered about that chunked header myself, but don't really know what that
> means.

It means that the object being transfered isn't... ?raw, but compressed? I'm not 
sure...

> I've been doing some more investigation. It appears to only happen when
> Tomcat is running on our Solaris box. It works fine on Windows XP and NT.

Try to capture raw HTTP packets, or just simply telnet to both Tomcat's ports 
and issue a HTTP request. You should see what's going on.

> I was wondering if the 1's had something to do with MBCS or unicode
> characters?

??? Dunno...


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Netscape 6.2.x problem

Posted by Richard Heath <ri...@fdgroup.com>.
> Richard Heath wrote:
> > I am developing a servlet on Apache Tomcat 4.0.
> > On Netscape 6.2.x occasionally it displays the raw http, rather than the
> > html. See this image for an
> > example. http://www.c-o-g-s.org.uk/work/netscape623.jpg
> >
> > Any idea why this is? It doesn't do it on any other browsers that I have
> > found or on earlier versions of netscape.
>
> The only potentially problematic thing might be that "chunked" HTTP
header.
> Maybe Netscape doesn't like it. Anyway, what is displayed is not a raw
HTTP
> otuput, those "1"s are not there when you telnet to a web server and pass
a
> valid HTTP request.

I wondered about that chunked header myself, but don't really know what that
means.

I've been doing some more investigation. It appears to only happen when
Tomcat is running on our Solaris box. It works fine on Windows XP and NT.

I was wondering if the 1's had something to do with MBCS or unicode
characters?


Thanks for the help,

Richard.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Netscape 6.2.x problem

Posted by Nikola Milutinovic <Ni...@ev.co.yu>.
Richard Heath wrote:
> I am developing a servlet on Apache Tomcat 4.0.
> On Netscape 6.2.x occasionally it displays the raw http, rather than the
> html. See this image for an
> example. http://www.c-o-g-s.org.uk/work/netscape623.jpg
> 
> Any idea why this is? It doesn't do it on any other browsers that I have
> found or on earlier versions of netscape.

The only potentially problematic thing might be that "chunked" HTTP header. 
Maybe Netscape doesn't like it. Anyway, what is displayed is not a raw HTTP 
otuput, those "1"s are not there when you telnet to a web server and pass a 
valid HTTP request.

Nix.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Netscape 6.2.x problem

Posted by Richard Heath <ri...@fdgroup.com>.
I am developing a servlet on Apache Tomcat 4.0.
On Netscape 6.2.x occasionally it displays the raw http, rather than the
html. See this image for an
example. http://www.c-o-g-s.org.uk/work/netscape623.jpg

Any idea why this is? It doesn't do it on any other browsers that I have
found or on earlier versions of netscape.

Thanks


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>