Igor Bobko
Igor Bobko

Reputation: 342

Deploy project without /WEB-INF/lib by placing libs in Tomcat's common.loader

I would like to deploy my project without /WEB-INF/lib.

I created a folder /usr/share/tomcat7/mylib and move all the files from /WEB-INF/lib. I ordered this directory for common.loader, but the application has stopped running.

java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
    ...

Upvotes: 0

Views: 336

Answers (1)

Abhijith Nagarajan
Abhijith Nagarajan

Reputation: 4030

The error is due to org.hibernate.validator.internal.engine.ConfigurationImpl not spring libraries. Check for hibernate-validator jar

Upvotes: 2

Related Questions