You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adlet Azhibek <ad...@gmail.com> on 2018/12/13 04:51:22 UTC

Spring+Tomcat

*Hi all!*
how should download a new version of tomcat with *necessary (.jar) files in
a "lib" directory? I need, for example, "**spring-websocket-5. 1.3. RELEASE
.jar" in "lib". What should I do? I've downloaded necessary jar files from *
https://mvnrepository.com, *but it doesn't work**.*



*best regards, Adlet Azhibek*

*A.Azhibek@cloudmaker.kz <A....@cloudmaker.kz>*

*Adl.csse@gmail.com <Ad...@gmail.com>*
*+77474821894*

Re: Spring+Tomcat

Posted by Olaf Kock <to...@olafkock.de>.
On 13.12.18 05:51, Adlet Azhibek wrote:
> *Hi all!*
> how should download a new version of tomcat with *necessary (.jar) files in
> a "lib" directory? I need, for example, "**spring-websocket-5. 1.3. RELEASE
> .jar" in "lib". What should I do? I've downloaded necessary jar files from *
> https://mvnrepository.com, *but it doesn't work**.*

Define "necessary": No Spring library is necessary for tomcat, so most
likely you can't download Tomcat anywhere *with* all the libraries that
you need for an arbitrary application.

If you have the libraries, you can copy them to tomcat's lib directory
yourself. Or better, bundle them in the webapp's WEB-INF/lib directory
for any webapp that requires them.

If you're a developer/vendor of an application that runs on Tomcat, your
installation instructions (and ideally the delivery package) should
include the libraries that your application requires (and that you're
willing to support). To equip your development environment with the
necessary dependencies, you'll need to use the appropriate way
prescribed by your build tool. E.g. if you use Maven, and you declare a
dependency as "provided", you better make sure that it is provided.

But ideally, have everything that you need in your webapp bundled in
WEB-INF/lib, rather than in tomcat's global lib/ directory.

Does that help, or did I miss an obvious aspect?

Olaf



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


Re: Spring+Tomcat

Posted by Adlet Azhibek <ad...@gmail.com>.
>
> thanks a lot for your help! I got project with .jars in "lib" from
> previous developer. And I should update version of my spring, so I thought
> that there is a way to download tomcat with all libs in it. Now I inserted
> all neccessary libs manually one-by-one, and it works.
>
>

Re: Spring+Tomcat

Posted by Luis Rodríguez Fernández <uo...@gmail.com>.
Hello Adlet,

Regarding the deployment of spring in tomcat: I would recommend  you to
keep the application libraries (spring and others) in your WEB-INF/lib. You
can have a look at this fantastic tutorial [1].

About websockets: keep in mind that tomcat has out-of-the-box websocket
support. Nevertheless should not be a problem if you choose to use another
implementation that integrates better in your app. Me in the past I did
deploy some websockets [2] applications in tomcat and they worked.

Hope it helps,

Luis

[1] https://www.baeldung.com/spring-boot-war-tomcat-deploy
[2] https://github.com/Atmosphere/atmosphere



El jue., 13 dic. 2018 a las 5:51, Adlet Azhibek (<ad...@gmail.com>)
escribió:

> *Hi all!*
> how should download a new version of tomcat with *necessary (.jar) files in
> a "lib" directory? I need, for example, "**spring-websocket-5. 1.3. RELEASE
> .jar" in "lib". What should I do? I've downloaded necessary jar files from
> *
> https://mvnrepository.com, *but it doesn't work**.*
>
>
>
> *best regards, Adlet Azhibek*
>
> *A.Azhibek@cloudmaker.kz <A....@cloudmaker.kz>*
>
> *Adl.csse@gmail.com <Ad...@gmail.com>*
> *+77474821894*
>


-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett