You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Арсений Зинченко <se...@gmail.com> on 2014/07/23 16:14:08 UTC

Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

Hi.

We have Tomcat with:

        <Host
          name="localhost"
          appBase="webapps"
          unpackWARs="false"
          autoDeploy="false"
          deployOnStartup="true" >

While startup I got ERROR in log:

14-07-22 15:13:01,551+0100 > 289   INFO
 [com.***.listener.PropertiesConfigListener] (main:) Adapter is a log4j
adapter ?org.slf4j.impl.Log4jLoggerAdapter
14-07-22 15:13:01,552+0100 > 290   ERROR
[com.***.listener.PropertiesConfigListener] (main:) Exception getting
codebase versionjava.io.FileNotFoundException: META-INF/MANIFEST.MF (No
such file or directory)

I understood, that PropertiesConfigListener can't find path to this file,
but - it can't get MANIFEST.MF from inside WAR-file?

Any tips - how it can be fixed?

Thanks.

Re: Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Арсений,

On 7/23/14, 10:43 AM, Арсений Зинченко wrote:
> Hi, Chris. Thanks for replay.
> 
> Biggest problem is that I'm not our application  developer >.<

Okay, well then tell the developer to fix it so it works in an
unexpanded WAR file. If they don't know how to do that, send them here.

- -chris

> 2014-07-23 17:26 GMT+03:00 Christopher Schultz
> <chris@christopherschultz.net
>> :
> 
> Арсений,
> 
> On 7/23/14, 10:14 AM, Арсений Зинченко wrote:
>>>> We have Tomcat with:
>>>> 
>>>> <Host name="localhost" appBase="webapps" unpackWARs="false" 
>>>> autoDeploy="false" deployOnStartup="true" >
>>>> 
>>>> While startup I got ERROR in log:
>>>> 
>>>> 14-07-22 15:13:01,551+0100 > 289   INFO 
>>>> [com.***.listener.PropertiesConfigListener] (main:) Adapter
>>>> is a log4j adapter ?org.slf4j.impl.Log4jLoggerAdapter
>>>> 14-07-22 15:13:01,552+0100 > 290   ERROR 
>>>> [com.***.listener.PropertiesConfigListener] (main:)
>>>> Exception getting codebase
>>>> versionjava.io.FileNotFoundException: META-INF/MANIFEST.MF
>>>> (No such file or directory)
>>>> 
>>>> I understood, that PropertiesConfigListener can't find path
>>>> to this file, but - it can't get MANIFEST.MF from inside
>>>> WAR-file?
>>>> 
>>>> Any tips - how it can be fixed?
> 
> Your com.***.listener.PropertiesConfigListener needs to know how
> to load files from inside WAR files if you don't want to expand the
> WAR file.
> 
> How does your code currently attempt to load the file? You are 
> probably using a FileInputStream or something like that, which
> can't operate within a JAR/WAR file.
> 
> -chris
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJT0QP0AAoJEBzwKT+lPKRYWlwP/iyEq+anmYEj/roFYYNV05ci
yQPq8l7shC99Gx6bp2puw4puAHL1oU5gX1WyWx915Fqi5Eyj8yMQDNpQ2DfrYI8G
ezeCaMhkyl2aHou0Tf1GJdoJT806ob3204Riw8TnagBltkJhIBhhcQF2TOz0aEQW
K/LQ+CII5w2MLI5SqhxT2/SWdZogS4YXK9Jy+RB6jfkrXkv1/p4b0y4SPoFl/rcK
JwRRsg+H4pcVM+fQMaWLse5pzqSFCc6ASLTfN4ERlxu/y2JhKAn3/hGG20HHTPs1
gFTzOnGch1jWBnm/XY9o1nmcxVLmpvgcCOKCSkJGNCLMZoPnR140x+7tQpcXgJEz
irMbdSTQokqy5bFniOr1QBw74l9DGl2CIgReoGDCkXS34qxJ1SbPJXO+a2L0K/g/
Abl2m1S0wz0BEPM9IoZFPp98+g9v00CRo4YnaE1zzL25vF034/EkTHUpmfdOjsXf
WOeYfTVdV10t31bQf2YRCz50QzxpZdQwVp5LLIa57QdW4UP7HVhXN5AXb/gF8kVp
2C18D9hXGmj/GLl08j9ZSomwyh3tr+hCFNDaINx+i1BzkCv13DBnsUdAvqXjNElW
SSTqjKGv1dBAH/ct74qC15IlkmzqGFfIg9IyfWWXP4neqrasrevxsxh0jgtFhxn8
LWDZzi/ofi5IobCGnrIr
=ipWB
-----END PGP SIGNATURE-----

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


Re: Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

Posted by Арсений Зинченко <se...@gmail.com>.
Hi, Chris. Thanks for replay.

Biggest problem is that I'm not our application  developer >.<


2014-07-23 17:26 GMT+03:00 Christopher Schultz <chris@christopherschultz.net
>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Арсений,
>
> On 7/23/14, 10:14 AM, Арсений Зинченко wrote:
> > We have Tomcat with:
> >
> > <Host name="localhost" appBase="webapps" unpackWARs="false"
> > autoDeploy="false" deployOnStartup="true" >
> >
> > While startup I got ERROR in log:
> >
> > 14-07-22 15:13:01,551+0100 > 289   INFO
> > [com.***.listener.PropertiesConfigListener] (main:) Adapter is a
> > log4j adapter ?org.slf4j.impl.Log4jLoggerAdapter 14-07-22
> > 15:13:01,552+0100 > 290   ERROR
> > [com.***.listener.PropertiesConfigListener] (main:) Exception
> > getting codebase versionjava.io.FileNotFoundException:
> > META-INF/MANIFEST.MF (No such file or directory)
> >
> > I understood, that PropertiesConfigListener can't find path to this
> > file, but - it can't get MANIFEST.MF from inside WAR-file?
> >
> > Any tips - how it can be fixed?
>
> Your com.***.listener.PropertiesConfigListener needs to know how to
> load files from inside WAR files if you don't want to expand the WAR file.
>
> How does your code currently attempt to load the file? You are
> probably using a FileInputStream or something like that, which can't
> operate within a JAR/WAR file.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJTz8YJAAoJEBzwKT+lPKRYuaAQAKO7Ck6MIVnT672vX1ZzY41Z
> HKgg+Dk/sjVdZXh+fXWTTyAD9FeG5hN7eEkd95LuO5RApmwj03EU8AsHs8drGQX9
> rOdkpc0ucrgxP0KCQ7VlJ7n3SPZ64ASQ8PPMbs0VpkdWFueMz53GjL6hAkEi5p4f
> 5xK1NJK95e50AokMElbi4YBienZYCDWKV1/0Wh9FfhVnaBWqwFKfiBxoePpHsr18
> m8Xh9I27Q+4HPP+34AOGpDSSN2LIl9VFa1suBsgEjdlKvN3HAjQfFee2dAgvUj64
> lDGCJbzUD+HriQeNqXjUSDYqsLsfn2Wd/cA6HgP2tTvt3AFciDFqON6nyWC9Cl22
> 3W+8L5rKmzIYP/Se2084VB8TOEKBg2D9T8Am0FDyKExwvJNY/l8Hxc7IPbZw5aWE
> /cwTIvO2u9M4lPzDx5RUrhy8VlZSIubAr41P1vgO58BPKLM8vSJsqE/SNMKuoZ+c
> 3TgqiYyUwlGRQV0JsCNARQw2haDq1YLfGfpsnt0/wWh1LJ9caD8S2d++6IT56x66
> oCmIwZvTI9lmBzIqA8ZGifIyzuiVut79Xcg/CL8Pvje5uZhRXkRw8yIuAp86ymH5
> S2setIwthjGBKsEOnPMGXjQDePIA83Xa220jQpxyfnUXWb3xXZSb1OGb3IeZepM9
> 2QXHx/ouQpeV7dsXrjLi
> =WKOD
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Арсений,

On 7/23/14, 10:14 AM, Арсений Зинченко wrote:
> We have Tomcat with:
> 
> <Host name="localhost" appBase="webapps" unpackWARs="false" 
> autoDeploy="false" deployOnStartup="true" >
> 
> While startup I got ERROR in log:
> 
> 14-07-22 15:13:01,551+0100 > 289   INFO 
> [com.***.listener.PropertiesConfigListener] (main:) Adapter is a
> log4j adapter ?org.slf4j.impl.Log4jLoggerAdapter 14-07-22
> 15:13:01,552+0100 > 290   ERROR 
> [com.***.listener.PropertiesConfigListener] (main:) Exception
> getting codebase versionjava.io.FileNotFoundException:
> META-INF/MANIFEST.MF (No such file or directory)
> 
> I understood, that PropertiesConfigListener can't find path to this
> file, but - it can't get MANIFEST.MF from inside WAR-file?
> 
> Any tips - how it can be fixed?

Your com.***.listener.PropertiesConfigListener needs to know how to
load files from inside WAR files if you don't want to expand the WAR file.

How does your code currently attempt to load the file? You are
probably using a FileInputStream or something like that, which can't
operate within a JAR/WAR file.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTz8YJAAoJEBzwKT+lPKRYuaAQAKO7Ck6MIVnT672vX1ZzY41Z
HKgg+Dk/sjVdZXh+fXWTTyAD9FeG5hN7eEkd95LuO5RApmwj03EU8AsHs8drGQX9
rOdkpc0ucrgxP0KCQ7VlJ7n3SPZ64ASQ8PPMbs0VpkdWFueMz53GjL6hAkEi5p4f
5xK1NJK95e50AokMElbi4YBienZYCDWKV1/0Wh9FfhVnaBWqwFKfiBxoePpHsr18
m8Xh9I27Q+4HPP+34AOGpDSSN2LIl9VFa1suBsgEjdlKvN3HAjQfFee2dAgvUj64
lDGCJbzUD+HriQeNqXjUSDYqsLsfn2Wd/cA6HgP2tTvt3AFciDFqON6nyWC9Cl22
3W+8L5rKmzIYP/Se2084VB8TOEKBg2D9T8Am0FDyKExwvJNY/l8Hxc7IPbZw5aWE
/cwTIvO2u9M4lPzDx5RUrhy8VlZSIubAr41P1vgO58BPKLM8vSJsqE/SNMKuoZ+c
3TgqiYyUwlGRQV0JsCNARQw2haDq1YLfGfpsnt0/wWh1LJ9caD8S2d++6IT56x66
oCmIwZvTI9lmBzIqA8ZGifIyzuiVut79Xcg/CL8Pvje5uZhRXkRw8yIuAp86ymH5
S2setIwthjGBKsEOnPMGXjQDePIA83Xa220jQpxyfnUXWb3xXZSb1OGb3IeZepM9
2QXHx/ouQpeV7dsXrjLi
=WKOD
-----END PGP SIGNATURE-----

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