简体   繁体   中英

How to create war file if project doesn't have entry point?

There is a project in github: https://github.com/chexagon/redis-session-manager

I downloaded and created jar file via maven. But I must use war file for deploying it to Tomcat and use it in our own application. Because of this project doesn't have web.xml file or any entry point (at least I couldn't find it) I couldn't create war file properly. Can anyone help me to solve this issue. Thanks in advance

The software you downloaded is not a web application. It is a component that can be used as part of a web application.

Correction - Actually it is an add-on component / plugin for Tomcat itself ... that allows the session state of web applications to be persisted in Redis.

Turning it into a WAR file won't help.

Even putting it into your application's WAR file won't help.

The JAR file needs to be copied to the tomcat/lib directory. Then you add aa <Manager> element to the conf/server.xml file. The README.md file describes the attributes of <Manager> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM