应用程序的部署已在tomcat中完成,但实际上尚未部署



Catalina.out:

[2020-04-10 11:48:26] [info] Manager: list: Listing contexts for virtual host 'localhost'
[2020-04-10 11:48:26] [info] Manager: install: Installing web application '/api#v1' from 'file:/home/kos/RPServers/available_webapps/reaper-webapp.war'
[2020-04-10 11:48:26] [info] **Deploying web application archive [/var/lib/tomcat8/webapps/reaper-app/api#v1.war]**
[2020-04-10 11:48:27] [info] 2020/04/10 11:48:27.897 - #2 - 4973/4193 - MemoryShield:  totalMemory = 3871.45 [MB] resMemory = 1311.47 [MB] shrMemory = 63.6523 [MB]
[2020-04-10 11:48:28] [info] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[2020-04-10 11:48:28] [info] **Deployment of web application archive [/var/lib/tomcat8/webapps/reaper-app/api#v1.war] has finished in [2,345] ms**

问题:catalina.out日志告诉应用程序的部署已完成,但应用程序无法访问(404错误(

  1. 以前看到过类似于这种类型的问题吗
  2. 或者是配置问题
  3. 或者应该在logging.properties中启用更多的日志记录,以便更好地理解流

注意:这是使用Tomcat8

谢谢,

我遇到了同样的问题,发现主类需要从SpringBootServletInitializer扩展。请检查下面的代码。

@SpringBootApplication
public class MyApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(MyApplication.class, args);
}
}

我遇到了与您描述的完全相同的问题,我也在tomcat 8上部署了它。事实证明,我的问题是pom.xml中定义的java版本不正确

将版本更改为1.8,重建并部署它,它在中工作

相关内容

  • 没有找到相关文章

最新更新