This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199621

Summary: Log4j class loading conflict on NB startup
Product: serverplugins Reporter: lucabur <lucabur>
Component: JBossAssignee: Petr Hejl <phejl>
Status: RESOLVED WONTFIX    
Severity: normal CC: mfukala, pjiricka
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP x64   
Issue Type: DEFECT Exception Reporter:
Attachments: The ide log file

Description lucabur 2011-06-22 13:49:26 UTC
Created attachment 109054 [details]
The ide log file

Every time NB starts I find this message in the ide log file:
---
log4j:ERROR A "org.apache.log4j.RollingFileAppender" 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.netbeans.modules.j2ee.jboss4.JBDeploymentFactory$JBClassLoader@5183093c] whereas object of type 
log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [ModuleCL@3bfc47[org.netbeans.modules.html.validation]].
log4j:ERROR Could not instantiate appender named "default".
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.netbeans.modules.j2ee.jboss4.JBDeploymentFactory$JBClassLoader@5183093c] whereas object of type 
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [ModuleCL@3bfc47[org.netbeans.modules.html.validation]].
log4j:ERROR Could not instantiate appender named "stdout".
log4j:WARN No appenders could be found for logger (org.jboss.deployment.spi.factories.DeploymentFactoryImpl).
log4j:WARN Please initialize the log4j system properly.
---
Comment 1 Petr Jiricka 2011-10-05 13:15:52 UTC
Looks like some kind of a conflict between the HTML functionality and the JBoss plugin - although I can not reproduce on my machine. Petr and Marek, can you please investigate?
Comment 2 Martin Balin 2015-09-17 13:09:55 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.