简体   繁体   English

如果项目没有入口点,如何创建war文件?

[英]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 github中有一个项目: https : //github.com/chexagon/redis-session-manager

I downloaded and created jar file via maven. 我通过maven下载并创建了jar文件。 But I must use war file for deploying it to Tomcat and use it in our own application. 但是我必须使用war文件将其部署到Tomcat,并在我们自己的应用程序中使用它。 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. 由于该项目没有web.xml文件或任何入口点(至少我找不到它),因此无法正确创建war文件。 Can anyone help me to solve this issue. 谁能帮我解决这个问题。 Thanks in advance 提前致谢

The software you downloaded is not a web application. 您下载的软件不是Web应用程序。 It is a component that can be used as part of a web application. 它是可以用作Web应用程序一部分的组件。

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. 更正 -实际上,它是Tomcat本身的附加组件/插件...允许Web应用程序的会话状态保留在Redis中。

Turning it into a WAR file won't help. 将其转换为WAR文件无济于事。

Even putting it into your application's WAR file won't help. 即使将其放入应用程序的WAR文件中也无济于事。

The JAR file needs to be copied to the tomcat/lib directory. JAR文件需要复制到tomcat / lib目录。 Then you add aa <Manager> element to the conf/server.xml file. 然后,将<Manager>元素添加到conf/server.xml文件。 The README.md file describes the attributes of <Manager> . README.md文件描述了<Manager>的属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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