tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: My deployed war file has servlet-api-2.5.jar in its WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning during deployment
Date Thu, 18 Dec 2008 18:59:11 GMT
Then change your pom.xml so the servlet-api is in scope "provided". 
This will allow the build, but not include the jar.

--David

Jeff Walker wrote:
> Ok,
> thanks Charles.
> Maven requires it for build purposes, but I can instruct Maven to remove it
> from the war file.
> Thanks again,
> -jeff
>
>
>
> On Thu, Dec 18, 2008 at 1:49 PM, Caldarale, Charles R <
> Chuck.Caldarale@unisys.com> wrote:
>
>   
>>> From: Jeff Walker [mailto:webservices.architect@gmail.com]
>>> Subject: My deployed war file has servlet-api-2.5.jar in its
>>> WEB-INF/lib folder, but Tomcat 6.0.18 displays a warning
>>> during deployment
>>>
>>> But it seems to me that Maven is correct here in
>>> leaving it in the war, while Tomcat should realize
>>> that many deployed war files may include this common jar?
>>>       
>> Under no circumstances should a .war file include that .jar or any other
>> that is the responsibility of the container to provide.  Your usage of Maven
>> is in error.
>>
>>  - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
>> MATERIAL and is thus for use only by the intended recipient. If you received
>> this in error, please contact the sender and delete the e-mail and its
>> attachments from all computers.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>     
>
>   


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


Mime
View raw message