[
https://issues.jboss.org/browse/JBAS-8312?page=com.atlassian.jira.plugin....
]
David Lloyd updated JBAS-8312:
------------------------------
Assignee: (was: David Lloyd)
Exception when trying to specify ear-specific log
-------------------------------------------------
Key: JBAS-8312
URL:
https://issues.jboss.org/browse/JBAS-8312
Project: Application Server 3 4 5 and 6
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Logging
Affects Versions: 6.0.0.M3
Environment: Windows, JDK 1.6
Reporter: Greg Zoller
Fix For: No Release
I get the exception below when trying to specify my own log file for my trivial EJB EAR.
My jboss-logging.jar is provided below.
The exception happens while the server is coming up and the EAR is loaded, but before any
attempt to access or use the log occurs.
<?xml version="1.0" encoding="UTF-8"?>
<!-- My application jboss-logging.xml -->
<logging xmlns="urn:jboss:logging:6.0"
context="com.myco.apps">
<!--
~ This element, in conjunction with the "context" attribute above, tells
the
~ logging system that I want my own separate logging environment.
-->
<define-context name="com.myco.apps"/>
<!-- Just an example handler. -->
<file-handler file-name="/logs/constellation/foo.log"
name="FILE" autoflush="true" append="true">
<formatter>
<pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/>
</formatter>
<!--
<properties>
<property name="encoding">UTF-8</property>
</properties>
-->
</file-handler>
<!-- Configure the root logger with my handler from above -->
<root-logger>
<level name="INFO"/>
<handlers>
<handler-ref name="FILE"/>
</handlers>
</root-logger>
</logging>
13:05:56,284 ERROR [AbstractKernelController] Error installing to Instantiated:
name=Logging:CONTEXT:com.aviall.apps state=Described: java.lang.IllegalAccessException:
Class org.jboss.reflect.plugins.introspection.ReflectionUtils can not access a member of
class org.jboss.logmanager.LogContext with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) [:1.6.0_20]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_20]
at
org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:149)
[jboss-reflect.jar:2.2.0.Alpha4]
at
org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:107)
[jboss-reflect.jar:2.2.0.Alpha4]
at
org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:81)
[jboss-reflect.jar:2.2.0.Alpha4]
at
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:109)
[jboss-aop-mc-int.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:67)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
[jboss-kernel.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:892)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:180)
[:2.2.0.Alpha4]
at
org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58)
[:2.2.0.Alpha4]
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
[:2.2.0.Alpha4]
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1857)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1575)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1596)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1516)
[:2.2.0.Alpha4]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:937)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:652)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:2008)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1101)
[:2.2.0.Alpha4]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.Alpha4]
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
[:6.0.0.20100429-M3]
at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
[:6.0.0.20100429-M3]
at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
[:6.0.0.20100429-M3]
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
[:6.0.0.20100429-M3]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:892)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639)
[jboss-dependency.jar:2.2.0.Alpha9]
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
[:6.0.0.20100429-M3]
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
[:6.0.0.20100429-M3]
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:97)
[:6.0.0.20100429-M3]
at
org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at
org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
[jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Unknown Source) [:1.6.0_20]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira