[Installation, Configuration & Deployment] - JBoss 5.1.0 and JDK14LoggerPlugin
by ToeCheez
Hi.
We have written several apps that run on JBoss. We are using java.util.logging in the code we have writtten. We are currently using JBoss 4.2.3 and everything is fine. We are in the process of porting it to JBoss 5.1.0 and we cannot get the java.util.logging statements to log to our log file. Here is the run.bat statements:
| set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.config.file="%JBOSS_HOME%\bin\terradatum-logging.properties"
| set JAVA_OPTS=%JAVA_OPTS% "-Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.jdk.JDK14LoggerPlugin"
|
Here is the terradatum-logging.properties:
| # To also add the FileHandler, use the following line instead.
| handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler
|
| # setting to limit messages printed to the console.
| .level=INFO
| com.terradatum.metrics.level=FINEST
| com.terradatum.data.level=FINEST
| com.terradatum.common.level=FINEST
| com.terradatum.menu.level=FINEST
| com.terradatum.mlsupdate.level=FINEST
| com.terradatum.www.level=FINEST
| com.terradatum.agentmetricsonline.level=FINEST
|
| # default file output is in user's home directory.
| java.util.logging.FileHandler.level=FINEST
|
| java.util.logging.FileHandler.pattern=C:/jboss-5.1.0.GA/server/all/log/MetricsServer%u.%g.log
| java.util.logging.FileHandler.limit=1000000
| java.util.logging.FileHandler.count=5
| java.util.logging.FileHandler.formatter=com.terradatum.common.logging.LogFormatter
|
Another thing that happens on start-up is we get this message in the server log:
| AbstractVFSDeploymentContext@31578074{vfsfile:/C:/jboss-5.1.0.GA/server/all/deploy/profileservice-secured.jar/}
| 2009-12-02 09:13:43,009 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=CorbaORB state=Create mode=Manual requiredState=Installed
| java.lang.NullPointerException
| at org.apache.avalon.framework.logger.Log4JLogger.isDebugEnabled(Log4JLogger.java:115)
| at org.jacorb.orb.ORBSingleton.configure(Unknown Source)
| at org.jacorb.orb.ORB.configure(Unknown Source)
| at org.jacorb.orb.ORB.set_parameters(Unknown Source)
| at org.omg.CORBA.ORB.init(ORB.java:337)
| at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:297)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| 2009-12-02 09:13:43,040 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/jboss-5.1.0.GA/server/all/deploy/iiop-service.xml state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=CorbaORB
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
| at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
| at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
| at org.jboss.Main.boot(Main.java:221)
| at org.jboss.Main$1.run(Main.java:556)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.NullPointerException
| at org.apache.avalon.framework.logger.Log4JLogger.isDebugEnabled(Log4JLogger.java:115)
| at org.jacorb.orb.ORBSingleton.configure(Unknown Source)
| at org.jacorb.orb.ORB.configure(Unknown Source)
| at org.jacorb.orb.ORB.set_parameters(Unknown Source)
| at org.omg.CORBA.ORB.init(ORB.java:337)
| at org.jboss.iiop.CorbaORBService.startService(CorbaORBService.java:297)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy38.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
| at org.jboss.system.ServiceController.start(ServiceController.java:460)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
| ... 34 more
|
Anyone have any ideas? Thanks for any help.
-ToeCheez
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268654#4268654
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268654
14 years, 7 months
[JBoss Tools Users] - Re: Web Resources folder is empty
by htfv
To have clean results, I decided to make a completely new installation of Eclipse. So I re-downloaded everything and unpacked into a new folder and... it worked. I compared contents of the new Eclipse folder with my usual environment and it turned out that I was using Eclipse 3.5.0 with JBoss Tools 3.1.0.M4 by mistake and not Eclipse 3.5.1. Silly me, I screwed up.
If you are still interested in steps to reproduce, here they are:
| * Download Eclipse 3.5.1 (Galileo SR1) for Java EE from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downlo....
|
| * Unpack eclipse-jee-galileo-SR1-win32.zip to C:\Test-3.5.1.
|
| * Add the following parameter to C:\Test-3.5.1\eclipse\eclipse.ini (required for m2eclipse):
| -vm
| | C:/Program Files (x86)/Java/jdk1.6.0_13/bin/javaw.exe
|
| * Run Eclipse by executing C:\Test-3.5.1\eclipse\eclipse.exe
|
| * Use C:\Test-3.5.1\workspace as workspace.
|
| * Install all components from http://download.eclipse.org/birt/update-site/2.5/.
|
| * Restart Eclipse when requested.
|
| * Install the following components from http://m2eclipse.sonatype.org/update-dev:
|
| | * Maven Integration/*
| | * Maven Projects Configurators/Maven Integration for WTP (Optional)
| | * Maven Projects Configurators/Project configurators for commonly used maven plugins (temporary)
| |
|
| * Restart Eclipse when requested.
|
| * Install all components from http://download.jboss.org/jbosstools/updates/JBossTools-3.1.0.M4/.
|
| * Restart Eclipse when requested.
|
| * Create C:\Test-3.5.1\project\pom.xml with the following content:
| <project xmlns="http://maven.apache.org/POM/4.0.0"
| | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
| |
| | <modelVersion>4.0.0</modelVersion>
| |
| | <groupId>org.htfv.test</groupId>
| | <artifactId>web-resources-test</artifactId>
| | <version>0.0.1-SNAPSHOT</version>
| | <packaging>war</packaging>
| |
| | <build>
| | <plugins>
| | <plugin>
| | <groupId>org.apache.maven.plugins</groupId>
| | <artifactId>maven-compiler-plugin</artifactId>
| | <configuration>
| | <source>1.6</source>
| | <target>1.6</target>
| | </configuration>
| | </plugin>
| | </plugins>
| | </build>
| | </project>
|
| * Select File/Import...
|
| * Select Maven/Existing Maven Projects in the Import dialog, click Next.
|
| * Specify C:\Test-3.5.1\project as root directory (/pom.xml shall be selected automatically) and click Finish.
|
After the last point I wanted to make the first screenshot, but it did work. The Web Resources node in Project Explorer may be expanded and contains files from src/main/webapp (the files are generated when the project is imported).
Sorry for taking your time and... thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268645#4268645
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268645
14 years, 7 months