Jenny Qiu created SOLR-14236:
--------------------------------

             Summary: 【solr】 A "org.apache.log4j.ConsoleAppender" object is not 
assignable to a "org.apache.log4j.Appender" variable.
                 Key: SOLR-14236
                 URL: https://issues.apache.org/jira/browse/SOLR-14236
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Server, SolrJ
    Affects Versions: 4.10.1
            Reporter: Jenny Qiu
         Attachments: 微信截图_20200203224606.png

 

I have built the solr project through tomcat, but when I run the startup.bat it 
tells me this: 
{code:java}
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a 
"org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [org.powermock.core.classloader.MockClassLoader@16a40b2] whereas 
object of type
{code}
I searched for many solutions online, but none works.

 

Then I thought maybe things went wrong with the files related to log4j, then I 
deleted the *log4j-1.2.17.jar* in 
_D:\FSP_20160630\apache-tomcat-8_0_9-solr4_10_1\webapps\solr\WEB-INF\lib_ 
because I can find exact {color:#FF0000}same{color} ones in 
_D:\FSP_20160630\apache-tomcat-8_0_9-solr4_10_1\lib_

_!微信截图_20200203224606.png!_

But I need to mention that i have also deleted the other 3 files, or I will get 
another error:

 
{code:java}
ContextListenerjava.lang.LinkageError: loader constraint violation: when 
resolving method
"org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;"
 the class loader 'org.apache.catalina.loader.WebappClassLoader@4d1cc3c3 (urls: 
['], parents: [)'java.net.URLClassLoader@4fccd51b']) of the current class, 
org/slf4j/LoggerFactory, and the class loader ...{code}
 

In conclusion, I have deleted all these 4 files, then the startup.bat can run 
properly.

I don't know whether things will go south in the future...Are these files 
useful in the solr\WEB-INF\lib? Can they be deleted like this?

Hope I can get some instructions, thx for your time!

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to