Tomcat 7.0.25 SessionIdGenerator异常 [英] Tomcat 7.0.25 SessionIdGenerator exception

查看:186
本文介绍了Tomcat 7.0.25 SessionIdGenerator异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用tomcat 7.0.70部署spring-boot应用程序并且工作正常。我的问题是我需要它运行tomcat 7.0.25,当我更改依赖项时我甚至无法运行应用程序,例外情况是:

I'm deploying a spring-boot application with tomcat 7.0.70 and works fine. My problem is that I need it running with tomcat 7.0.25, and when I change the dependency I can't even run the application, the exceptions are:

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: org/apache/catalina/SessionIdGenerator
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/SessionIdGenerator
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.SessionIdGenerator

我已经尝试了所有,我几乎浏览了所有Google和StackOverflow,但我可以找不到在我的应用程序中包含它的方法。

I have try all, I surfed nearly all Google and StackOverflow but I can't find a way to include this in my application.

问题是使用7.0.25是必须的,我想如果使用embed 7.0。 25不起作用,在制作中我会遇到问题。

The problem is that working with 7.0.25 is a must, and I guess that if with the embed 7.0.25 doesn't work, in production I will have a problem.

任何有关如何解决该错误的提示都会非常感激。

Any tip on how to solve that error would be VERY appreciated.

非常感谢!

推荐答案

看起来像 Spring Boot 取决于异常中提到的类( org.apache.catalina.SessionIdGenerator )。

It looks like Spring Boot depends on the class that is mentioned in the exception (org.apache.catalina.SessionIdGenerator).

根据 Apache Tomcat的MCAT_7_0_58 / java / org / apache / catalina /rel =nofollow>来源此类可从7.0.58版本获得,所以你不能使用旧版本。

According to the sources of Apache Tomcat this class is available from 7.0.58 version, so you can't use older version.

您没有提供您正在使用的 Spring Boot 版本的信息,但是您可以尝试使用旧版本。

You did not provide information which version of Spring Boot you are using, but you can try using older version.

这篇关于Tomcat 7.0.25 SessionIdGenerator异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆