You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2008/12/18 19:49:05 UTC
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
> 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
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
Posted by Jeff Walker <we...@gmail.com>.
I'm certain it does, too.
I'm just relatively new to Maven. I will investigate.
Thanks again!
-jeff
On Thu, Dec 18, 2008 at 1:56 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:
> > From: Jeff Walker [mailto:webservices.architect@gmail.com]
> > 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
> >
> > Maven requires it for build purposes, but I can instruct
>
> Most build mechanisms allow the specification of locations for additional
> class files needed for compilation, but not to be included in the resulting
> package. I would be surprised if this wasn't available with Maven.
>
> - 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
>
>
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
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jeff Walker [mailto:webservices.architect@gmail.com]
> 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
>
> Maven requires it for build purposes, but I can instruct
Most build mechanisms allow the specification of locations for additional class files needed for compilation, but not to be included in the resulting package. I would be surprised if this wasn't available with Maven.
- 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
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
Posted by Jeff Walker <we...@gmail.com>.
Ok,
this is new to me. I can see I have a lot of reading about Maven to do!
Thanks David.
-jeff
On Thu, Dec 18, 2008 at 1:59 PM, David Smith <dn...@cornell.edu> wrote:
> 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
>
>
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
Posted by David Smith <dn...@cornell.edu>.
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
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
Posted by Jeff Walker <we...@gmail.com>.
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
>
>