3 Replies Latest reply on Jul 2, 2012 8:21 PM by Brian Wallis

    Disabling scanning for log4j.properties in AS 7.2

    Brian Wallis Master

      I'm porting an older app from JBoss AS 6 to 7.2.0.Alpha1 (I'm running a snapshot from a week or so ago) and have come across a problem with a few old legacy jar files. These files have old log4j.properties files in them that should be ignored. I would just remove them but for various reasons this is a bit difficult to do in our environment.

       

      Is there a way to tell JBoss to not look for these? I expect I may find other nastyness in some of these files so what other control can I have over this scanning for various things in the loaded jar files.

       

      thanks

       

       

       

      {noformat}

      11:27:37,759 DEBUG [org.jboss.as.logging] (MSC service thread 1-2) Found logging configuration file: "/Users/bwallis/InfoMedix/Hg-Infomedix/Workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_7.1_UDR/deploy/udr-ear.ear/udr-app-1.0-SNAPSHOT.war/WEB-INF/lib/quantum-accelerator-reports-gui-0.39.1.jar/log4j.properties"

      11:27:37,805 ERROR [stderr] (MSC service thread 1-2) log4j:ERROR Could not instantiate class [net.opensourcesoft.objectvisualizer.gui.util.Log4jGUIAppender].

      11:27:37,805 ERROR [stderr] (MSC service thread 1-2) java.lang.ClassNotFoundException: net.opensourcesoft.objectvisualizer.gui.util.Log4jGUIAppender from [Module "org.jboss.log4j.logmanager:main" from local module loader @4476128 (roots: /Users/bwallis/InfoMedix/JBoss/UDR/jboss-as-7.2.0.Alpha1-SNAPSHOT/modules)]

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      11:27:37,806 ERROR [stderr] (MSC service thread 1-2)           at java.lang.Class.forName0(Native Method)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at java.lang.Class.forName(Class.java:169)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.helpers.Loader.loadClass(Loader.java:198)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:326)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:123)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:752)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)

      11:27:37,807 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.as.logging.LoggingConfigurationProcessor.deploy(LoggingConfigurationProcessor.java:115)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      11:27:37,808 ERROR [stderr] (MSC service thread 1-2)           at java.lang.Thread.run(Thread.java:680)

      11:27:37,809 ERROR [stderr] (MSC service thread 1-2) log4j:ERROR Could not instantiate appender named "gui".

      {noformat}