spring 项目tomcat 8.0.2 发布报错:Could not initialize class org.hibernate.validator.engine.ConfigurationImpl

tomcat 8 项目发布遇到的错

 1 [ERROR] 2015-05-22 22:51:38,683 org.springframework.web.servlet.DispatcherServlet     - Context initialization failed
 2 org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0‘: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl
 3         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
 4         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
 5         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
 6         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
 7         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
 8         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
 9         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
10         at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
11         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
12         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
13         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)
14         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)
15         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)
16         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)
17         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)
18         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
19         at javax.servlet.GenericServlet.init(GenericServlet.java:158)
20         at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)
21         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)
22         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:817)
23         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
24         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
25         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
26         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
27         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
28         at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
29         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
30         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
31         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
32         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
33         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
34         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1478)
35         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
36         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
37         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
38         at java.lang.Thread.run(Thread.java:745)
39 Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.engine.ConfigurationImpl
40         at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:43)
41         at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:269)

查阅网上资料说是 slf4j-log4j12-1.6.1.jar的版本不对,这个项目当时是从别的项目上复制过来的,在lib项目下存在两个 slf4j-log4j12.jar,我删除了 slf4j-log4j12-1.5.0.jar,重新启动项目后一切正常。

时间: 2024-11-08 07:35:14

spring 项目tomcat 8.0.2 发布报错:Could not initialize class org.hibernate.validator.engine.ConfigurationImpl的相关文章

Tomcat 7.0.63启动报错

安装Tomcat 7.0.63后,没有加载任何项目.直接启动就报错,报错日志有: 严重: Error deploying web application directory D:\tomcat7.0.30\webapps\docs java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catal ina.LifecycleException: Failed to start component [St

关于使用Xshell远程连接启动tomcat导致图片不显示,报错Could not initialize class sun.awt.X11GraphicsEnvironment解决方案

如果您是使用xshell远程启动tomcat,导致二维码.验证码,头像等各种图片不显示,并且打开图片链接报错Could not initialize class sun.awt.X11GraphicsEnvironment的话,那么问题原因很可能是Xshell使用x11转发连接到某个地址了. 那么原因找到了,解决方案就出来了--关闭x11转发功能. 对于xshell4或者xshell5的话就是在当前链接的"属性"-->"隧道"-->"x11转移

【重磅】Spring Boot 2.1.0 权威发布

如果这两天登录 https://start.spring.io/ 就会发现,Spring Boot 默认版本已经升到了 2.1.0.这是因为 Spring Boot 刚刚发布了 2.1.0 版本,我们来看下 Spring Boot 2 发布以来第一个子版本都发布了哪些内容? 2.1 中的新特性 将spring-boot-starter-oauth2-oidc-client重命名为spring-boot-starter-oauth2-client命名更简洁 添加 OAuth2 资源服务 start

Spring Session 1.3.0 M2 发布

Spring Session 1.3.0 M2 发布了,本次发布主要更新如下: 首个支持Hazelcast的类(基础教程qkxue.net) Spring Security并发会话管理的首个类 使用GenericJackson2JsonRedisSerializer的Redis例子 spring.session.cleanup.cron.expression 可用于覆盖清理任务的cron表达式 大量的性能提升和Bug修复(腾云科技ty300.com) 下载地址: http://projects.

发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store

发布报错:Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store 昨晚上传项目到AppStore,报了这个错,纳尼!?我早上还能成功上传的,当时判断是晚上网速问题导致的,早上再次试了下,还是一样报错,因为CocoPods导入的框架bitCode不一致导致的,解决方案是在Podfile后面加上 post_install do |installer| installer.pods_project.targets.ea

关于cocos2dx 3.0升级崩溃报错(unable to load native library) 和(Fatal signal 11 (SIGSEGV) at 0x00000000)

最近一直在Windows平台开发cocos-2dx游戏,期间做了一次引擎升级,升级到了3.0正式版本.Windows平台上表现很正常,没有出现什么问题. 上周五准备发布一个安卓包,编译很轻松的就过了,没有花费多少时间,但是安装到手机后,发现运行就崩溃了.没办法只好用模拟机调试,再次吐槽Android的模拟器,真的太他妈慢了,不到万不得已我真的不想再去用它,google真的应该好好整一下了. 好不容易运行起来了,看到崩溃的时候logcat的报错是"unable to load native lib

.NET Ccore2.2升级.NET Core 3.1发布报错

.NET Ccore2.2升级.NET Core 3.1发布报错 前言 .NET Core 3.1是长期维护版本,所以将老版本的项目从2.2升级至3.1,修改了许多地方后,在发布时遇到 资产文件"\obj\project.assets.json"没有".NETCoreApp,Version=v2.2"的目标.确保已运行还原,且"netcoreapp2.2"已包含在项目的 TargetFrameworks 中. 的错误 错误提示 资产文件"

在VMware里克隆出来的redhat linux 6.0,重启网卡报错

在VMware里克隆出来的redhat linux 6.0,重启网卡报错,无法ping通eth0的IP地址. 故障现象: service network restartShutting down loopback insterface:                                                                                                     [  OK  ]Bringing up loopback in

SSAS 发布报错处理方法 Login failed for user 'NT Service\MSSQLServerOLAPService' 28000

Create login and grant access: Open up SQL Server Management Studio [login to the database engine]> Security > Login (Right click) > New Login >add user: "NT Service\MSSQLServerOLAPService">select the database being analyzed in th