Home > Back-end >  Tomcat deployed solr in Java. Lang. LinkageError: loader constraint violation how to solve
Tomcat deployed solr in Java. Lang. LinkageError: loader constraint violation how to solve

Time:10-31

I am on a project to do secondary development, tomcat8 + solr4
Run times wrong is as follows:

Severe: Exception starting filter SolrRequestFilter
Java. Lang. LinkageError: loader constraint violation: when resolving method "org. Slf4j. Impl. StaticLoggerBinder. GetLoggerFactory (Lorg)/slf4j/ILoggerFactory;" (the instance of the class loader org/apache/catalina/loader/WebappClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (the instance of the Java/net/URLClassLoader) for the method 's defining class, org/slf4j/impl/StaticLoggerBinder, have the company class objects for type org/slf4j ILoggerFactory informs in the signature

The search on the net, the main solutions are two:
1. Maven pom in the configuration. The XML file to add provided
2. Maven find the dependency files and delete duplicate
But I'm not deploy the project on the Maven ah, also don't know...
Do you have any other solutions? What can write a file, for example, to achieve the same effect? Or how do I know what file conflict?

Thank you very much!

CodePudding user response:

Look from you paste the error message: have the company Class objects for type org/slf4j ILoggerFactory informs in the signature
If two packages loaded slf4j version conflict? Can you make an error the context of the complete log to see,
  • Related