- 
        1. Re: Porting ColoredConsole from JBoss4 to JBoss6 (Win)jaikiran Sep 12, 2011 2:08 AM (in response to n0cturne)Please post the entire exception stacktrace and also your logging configuration. 
- 
        2. Re: Porting ColoredConsole from JBoss4 to JBoss6 (Win)n0cturne Sep 12, 2011 4:57 AM (in response to jaikiran)There is not much i can post. Console Calling C:\jboss-6.1.0.Final\bin\run.conf.bat JAVA_HOME is not set. Unexpected results may occur. Set JAVA_HOME to the directory of your local JDK to avoid this message. =============================================================================== JBoss Bootstrap Environment JBOSS_HOME: C:\jboss-6.1.0.Final JAVA: java JAVA_OPTS: -Dprogram.name=run.bat -Dlogging.configuration=file:logging.properties -Dlogging.configuration=file:/jboss-6.1.0.Final/bin/logging.properties -server CLASSPATH: C:\jboss-6.1.0.Final\bin\run.jar =============================================================================== Failed to configure handler CONSOLE on Logger '' in context org.jboss.logmanager.LogContext@66edc3a2: Handler CONSOLE could not be instantiated And this is my boot-log: server/default/log/boot.log 10:44:11,060 INFO [AbstractJBossASServerBase] Server Configuration: JBOSS_HOME URL: file:/C:/jboss-6.1.0.Final/ Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml Common Base: $JBOSS_HOME\common/ Common Library: $JBOSS_HOME\common/lib/ Server Name: default Server Base: $JBOSS_HOME\server/ Server Library: $JBOSS_HOME\server/default/lib/ Server Config: $JBOSS_HOME\server/default/conf/ Server Home: $JBOSS_HOME\server/default/ Server Data: $JBOSS_HOME\server/default/data/ Server Log: $JBOSS_HOME\server/default/log/ Server Temp: $JBOSS_HOME\server/default/tmp/ 10:44:11,063 INFO [AbstractServer] Starting: JBossAS [6.1.0.Final "Neo"] 10:44:12,532 INFO [ServerInfo] Java version: 1.6.0_25,Sun Microsystems Inc. 10:44:12,533 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_25-b06) 10:44:12,533 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.0-b11,Sun Microsystems Inc. 10:44:12,533 INFO [ServerInfo] OS-System: Windows Vista 6.0,amd64 10:44:12,533 INFO [ServerInfo] VM arguments: -Dprogram.name=run.bat -Dlogging.configuration=file:logging.properties -Dlogging.configuration=file:/jboss-6.1.0.Final/bin/logging.properties -Djava.endorsed.dirs=C:\jboss-6.1.0.Final\lib\endorsed 10:44:12,533 DEBUG [ServerInfo] Full System Properties Dump 10:44:12,534 DEBUG [ServerInfo] awt.toolkit: sun.awt.windows.WToolkit 10:44:12,534 DEBUG [ServerInfo] file.encoding: Cp1252 10:44:12,534 DEBUG [ServerInfo] file.encoding.pkg: sun.io 10:44:12,534 DEBUG [ServerInfo] file.separator: \ 10:44:12,534 DEBUG [ServerInfo] java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment 10:44:12,534 DEBUG [ServerInfo] java.awt.printerjob: sun.awt.windows.WPrinterJob 10:44:12,535 DEBUG [ServerInfo] java.class.path: C:\jboss-6.1.0.Final\bin\run.jar 10:44:12,535 DEBUG [ServerInfo] java.class.version: 50.0 10:44:12,535 DEBUG [ServerInfo] java.endorsed.dirs: C:\jboss-6.1.0.Final\lib\endorsed 10:44:12,535 DEBUG [ServerInfo] java.ext.dirs: C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext 10:44:12,535 DEBUG [ServerInfo] java.home: C:\Program Files\Java\jre6 10:44:12,535 DEBUG [ServerInfo] java.io.tmpdir: C:\Users\Peter\AppData\Local\Temp\ 10:44:12,535 DEBUG [ServerInfo] java.library.path: C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\BxxxxxxxxxCVSNT\ 10:44:12,535 DEBUG [ServerInfo] java.protocol.handler.pkgs: org.jboss.net.protocol|org.jboss.vfs.protocol 10:44:12,536 DEBUG [ServerInfo] java.rmi.server.RMIClassLoaderSpi: org.jboss.system.JBossRMIClassLoader 10:44:12,536 DEBUG [ServerInfo] java.rmi.server.hostname: 127.0.0.1 10:44:12,536 DEBUG [ServerInfo] java.runtime.name: Java(TM) SE Runtime Environment 10:44:12,536 DEBUG [ServerInfo] java.runtime.version: 1.6.0_25-b06 10:44:12,536 DEBUG [ServerInfo] java.specification.name: Java Platform API Specification 10:44:12,536 DEBUG [ServerInfo] java.specification.vendor: Sun Microsystems Inc. 10:44:12,536 DEBUG [ServerInfo] java.specification.version: 1.6 10:44:12,537 DEBUG [ServerInfo] java.util.logging.manager: org.jboss.logmanager.LogManager 10:44:12,537 DEBUG [ServerInfo] java.vendor: Sun Microsystems Inc. 10:44:12,537 DEBUG [ServerInfo] java.vendor.url: http://java.sun.com/ 10:44:12,537 DEBUG [ServerInfo] java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi 10:44:12,537 DEBUG [ServerInfo] java.version: 1.6.0_25 10:44:12,537 DEBUG [ServerInfo] java.vm.info: mixed mode 10:44:12,537 DEBUG [ServerInfo] java.vm.name: Java HotSpot(TM) 64-Bit Server VM 10:44:12,537 DEBUG [ServerInfo] java.vm.specification.name: Java Virtual Machine Specification 10:44:12,538 DEBUG [ServerInfo] java.vm.specification.vendor: Sun Microsystems Inc. 10:44:12,538 DEBUG [ServerInfo] java.vm.specification.version: 1.0 10:44:12,538 DEBUG [ServerInfo] java.vm.vendor: Sun Microsystems Inc. 10:44:12,538 DEBUG [ServerInfo] java.vm.version: 20.0-b11 10:44:12,538 DEBUG [ServerInfo] javax.management.builder.initial: org.jboss.mx.server.MBeanServerBuilderImpl 10:44:12,538 DEBUG [ServerInfo] jboss.bind.address: 127.0.0.1 10:44:12,538 DEBUG [ServerInfo] jboss.boot.server.log.dir: C:\jboss-6.1.0.Final\server\default\log 10:44:12,538 DEBUG [ServerInfo] jboss.bootstrap.home.url: file:/C:/jboss-6.1.0.Final/server/default/conf/ 10:44:12,539 DEBUG [ServerInfo] jboss.bootstrap.name: bootstrap.xml 10:44:12,539 DEBUG [ServerInfo] jboss.bootstrap.url: file:/C:/jboss-6.1.0.Final/server/default/conf/bootstrap.xml 10:44:12,539 DEBUG [ServerInfo] jboss.common.base.url: file:/C:/jboss-6.1.0.Final/common/ 10:44:12,539 DEBUG [ServerInfo] jboss.common.lib.url: file:/C:/jboss-6.1.0.Final/common/lib/ 10:44:12,539 DEBUG [ServerInfo] jboss.home: C:\jboss-6.1.0.Final 10:44:12,539 DEBUG [ServerInfo] jboss.home.dir: C:\jboss-6.1.0.Final 10:44:12,539 DEBUG [ServerInfo] jboss.home.url: file:/C:/jboss-6.1.0.Final/ 10:44:12,540 DEBUG [ServerInfo] jboss.host.name: peter-pc 10:44:12,540 DEBUG [ServerInfo] jboss.lib.url: file:/C:/jboss-6.1.0.Final/lib/ 10:44:12,540 DEBUG [ServerInfo] jboss.native.dir: C:\jboss-6.1.0.Final\server\default\tmp\native 10:44:12,540 DEBUG [ServerInfo] jboss.native.load: false 10:44:12,540 DEBUG [ServerInfo] jboss.node.name: peter-pc 10:44:12,540 DEBUG [ServerInfo] jboss.partition.name: DefaultPartition 10:44:12,540 DEBUG [ServerInfo] jboss.platform.mbeanserver: true 10:44:12,540 DEBUG [ServerInfo] jboss.qualified.host.name: peter-pc 10:44:12,541 DEBUG [ServerInfo] jboss.server.base.dir: C:\jboss-6.1.0.Final\server 10:44:12,541 DEBUG [ServerInfo] jboss.server.base.url: file:/C:/jboss-6.1.0.Final/server/ 10:44:12,541 DEBUG [ServerInfo] jboss.server.config.url: file:/C:/jboss-6.1.0.Final/server/default/conf/ 10:44:12,541 DEBUG [ServerInfo] jboss.server.data.dir: C:\jboss-6.1.0.Final\server\default\data 10:44:12,541 DEBUG [ServerInfo] jboss.server.home.dir: C:\jboss-6.1.0.Final\server\default 10:44:12,541 DEBUG [ServerInfo] jboss.server.home.url: file:/C:/jboss-6.1.0.Final/server/default/ 10:44:12,541 DEBUG [ServerInfo] jboss.server.lib.url: file:/C:/jboss-6.1.0.Final/server/default/lib/ 10:44:12,541 DEBUG [ServerInfo] jboss.server.log.dir: C:\jboss-6.1.0.Final\server\default\log 10:44:12,542 DEBUG [ServerInfo] jboss.server.name: default 10:44:12,542 DEBUG [ServerInfo] jboss.server.temp.dir: C:\jboss-6.1.0.Final\server\default\tmp 10:44:12,542 DEBUG [ServerInfo] jboss.vfs.forceCopy: true 10:44:12,542 DEBUG [ServerInfo] jbossmx.loader.repository.class: org.jboss.mx.loading.UnifiedLoaderRepository3 10:44:12,542 DEBUG [ServerInfo] jgroups.bind_addr: 127.0.0.1 10:44:12,542 DEBUG [ServerInfo] line.separator: 10:44:12,542 DEBUG [ServerInfo] log4j.defaultInitOverride: true 10:44:12,542 DEBUG [ServerInfo] logging.configuration: file:/jboss-6.1.0.Final/bin/logging.properties 10:44:12,543 DEBUG [ServerInfo] org.jboss.deployers.spi.deployer.matchers.NameIgnoreMechanism: org.jboss.deployers.spi.deployer.helpers.DummyNameIgnoreMechanism 10:44:12,543 DEBUG [ServerInfo] org.jboss.logging.Logger.pluginClass: org.jboss.logging.logmanager.LoggerPluginImpl 10:44:12,543 DEBUG [ServerInfo] org.jboss.reflect.spi.TypeInfoFactory: org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory 10:44:12,543 DEBUG [ServerInfo] os.arch: amd64 10:44:12,543 DEBUG [ServerInfo] os.name: Windows Vista 10:44:12,543 DEBUG [ServerInfo] os.version: 6.0 10:44:12,543 DEBUG [ServerInfo] path.separator: ; 10:44:12,543 DEBUG [ServerInfo] program.name: run.bat 10:44:12,544 DEBUG [ServerInfo] sun.arch.data.model: 64 10:44:12,544 DEBUG [ServerInfo] sun.boot.class.path: C:\jboss-6.1.0.Final\xxxxxxxxk.boot.jar;C:\Program Files\Java\jre6\classes 10:44:12,544 DEBUG [ServerInfo] sun.boot.library.path: C:\Program Files\Java\jre6\bin 10:44:12,544 DEBUG [ServerInfo] sun.cpu.endian: little 10:44:12,544 DEBUG [ServerInfo] sun.cpu.isalist: amd64 10:44:12,544 DEBUG [ServerInfo] sun.desktop: windows 10:44:12,544 DEBUG [ServerInfo] sun.io.unicode.encoding: UnicodeLittle 10:44:12,545 DEBUG [ServerInfo] sun.java.command: org.jboss.Main 10:44:12,545 DEBUG [ServerInfo] sun.java.launcher: SUN_STANDARD 10:44:12,545 DEBUG [ServerInfo] sun.jnu.encoding: Cp1252 10:44:12,545 DEBUG [ServerInfo] sun.management.compiler: HotSpot 64-Bit Tiered Compilers 10:44:12,545 DEBUG [ServerInfo] sun.os.patch.level: Service Pack 1 10:44:12,545 DEBUG [ServerInfo] user.country: DE 10:44:12,545 DEBUG [ServerInfo] user.dir: C:\jboss-6.1.0.Final\bin 10:44:12,546 DEBUG [ServerInfo] user.home: C:\Users\Peter 10:44:12,546 DEBUG [ServerInfo] user.language: de 10:44:12,546 DEBUG [ServerInfo] user.name: Peter 10:44:12,546 DEBUG [ServerInfo] user.timezone: Europe/Berlin 10:44:12,546 DEBUG [ServerInfo] user.variant: 10:44:12,546 DEBUG [ServerInfo] xb.builder.repeatableParticleHandlers: false 10:44:12,547 DEBUG [ServerInfo] xb.builder.useUnorderedSequence: true 10:44:12,575 INFO [JMXKernel] Legacy JMX core initialized Thats all logging. my logging-configuration: bin/logging.properties # # JBoss, Home of Professional Open Source. # Copyright 2009, Red Hat Middleware LLC, and individual contributors # as indicated by the @author tags. See the copyright.txt file in the # distribution for a full listing of individual contributors. # # This is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of # the License, or (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this software; if not, write to the Free # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301 USA, or see the FSF site: http://www.fsf.org. # ### $Id: $ ### # Additional logger names to configure (root logger is always configured) #loggers=org.jboss.whatever,org.jboss.foo loggers=org.jboss.system.server.ServerInfo # Root logger level logger.level=${jboss.boot.server.log.level:INFO} # Root logger handlers #logger.handlers=CONSOLE, FILE, ABD logger.handlers=CONSOLE, FILE # Allow debug logging from ServerInfo to get the system properties dump logger.org.jboss.system.server.ServerInfo.level=${jboss.boot.server.log.serverinfo.level:DEBUG} # Console handler configuration #handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler handler.CONSOLE=org.denkweise.coloredconsole.writer.ColoredConsoleHandler handler.CONSOLE.properties=autoFlush handler.CONSOLE.level=${jboss.boot.server.log.console.level:INFO} handler.CONSOLE.autoFlush=true handler.CONSOLE.formatter=PATTERN handler.ABD=org.denkweise.coloredconsole.writer.ColoredConsoleHandler # Boot log file handler configuration handler.FILE=org.jboss.logmanager.handlers.FileHandler handler.FILE.level=${jboss.boot.server.log.file.level:DEBUG} handler.FILE.properties=autoFlush,fileName handler.FILE.autoFlush=true handler.FILE.fileName=${jboss.boot.server.log.dir}/boot.log handler.FILE.formatter=PATTERN # Formatter pattern configuration formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter formatter.PATTERN.properties=pattern formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c{1}] %s%E%n For peoplez and installation-handbook-preview: installation.txt Congratz, you successfully downloaded ColoredConsole. So the rest might be easy. Ensure that you deploy the containing src/ColoredConsole.dll in any java-related-classpath. Typicaly the same path as java.exe or the system32-folder. For jboss 5, you need to place the colored-console-xx.jar to common\lib and add the following line to run.conf.bat or run.bat: set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration=logging.properties For jboss 6, you need to place the colored-console-xx.jar to common\lib and add the following line to run.conf.bat or run.bat: set JAVA_OPTS=%JAVA_OPTS% -Dlogging.configuration=logging.properties and place the logging.properties to bin .... 
 
    