[jboss-jira] [JBoss JIRA] (AS7-5744) JRE logging.properties file in a jar fails the deployment of an application
Florian Beckamann (JIRA)
jira-events at lists.jboss.org
Tue Apr 30 16:19:53 EDT 2013
[ https://issues.jboss.org/browse/AS7-5744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771172#comment-12771172 ]
Florian Beckamann commented on AS7-5744:
----------------------------------------
I get the same error with JBoss EAP 6.1.0.Beta1 (linux kernel 3.8). The -Dorg.jboss.as.logging.per-deployment=false workaround seems to be ignored.
[0m[0m21:35:06,238 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.1.0.Beta1 (AS 7.2.0.Final-redhat-4) started in 4889ms - Started 170 of 227 services (56 services are passive or on-demand)
[0m[31m21:35:43,402 ERROR [stderr] (http-/0.0.0.0:8080-1) java.lang.IllegalArgumentException: className is null
[0m[31m21:35:43,403 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.AbstractPropertyConfiguration.<init>(AbstractPropertyConfiguration.java:59)
[0m[31m21:35:43,404 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.HandlerConfigurationImpl.<init>(HandlerConfigurationImpl.java:54)
[0m[31m21:35:43,405 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.LogContextConfigurationImpl.addHandlerConfiguration(LogContextConfigurationImpl.java:144)
[0m[31m21:35:43,406 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:606)
[0m[31m21:35:43,406 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:487)
[0m[31m21:35:43,407 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:96)
[0m[31m21:35:43,408 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.as.logging.logmanager.ConfigurationPersistence.configure(ConfigurationPersistence.java:128)
[0m[31m21:35:43,408 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:300)
[0m[31m21:35:43,409 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.configureLogger(ConfigurationManagerUtils.java:195)
[0m[31m21:35:43,409 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.configureLogger(ConfigurationManagerUtils.java:165)
[0m[31m21:35:43,410 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManager.<init>(ConfigurationManager.java:64)
So I guess the bug has to be re-opened!?
> JRE logging.properties file in a jar fails the deployment of an application
> ---------------------------------------------------------------------------
>
> Key: AS7-5744
> URL: https://issues.jboss.org/browse/AS7-5744
> Project: Application Server 7
> Issue Type: Bug
> Components: EE, Logging
> Affects Versions: 7.1.3.Final (EAP)
> Environment: Windows 7 pro
> JBoss 7.1.3
> Reporter: Francois MESSIAEN
> Assignee: James Perkins
> Fix For: EAP 6.1.0.Alpha (7.2.0.Final)
>
> Attachments: logging.properties
>
>
> If a logging.properties file, as described in the java.util.logging.LogManager, is in a jar file of the ear, the application fails to be deployed. An Exception is thrown:
> {noformat}
> 11:38:03,842 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."fullear.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."fullear.ear".POST_MODULE: JBAS018733: N'a pas pu traiter la phase POST_MODULE de deployment "fullear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011555: N'a pas pu configurer la connexion par le fichier de configuration 'logging.properties'
> at org.jboss.as.logging.LoggingConfigurationProcessor.deploy(LoggingConfigurationProcessor.java:125)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final]
> ... 5 more
> Caused by: java.lang.IllegalArgumentException: className is null
> at org.jboss.logmanager.config.AbstractPropertyConfiguration.<init>(AbstractPropertyConfiguration.java:52) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.logmanager.config.HandlerConfigurationImpl.<init>(HandlerConfigurationImpl.java:54) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.logmanager.config.LogContextConfigurationImpl.addHandlerConfiguration(LogContextConfigurationImpl.java:138) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:477) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:379) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:92) [jboss-logmanager-1.3.2.Final.jar:1.3.2.Final]
> at org.jboss.as.logging.LoggingConfigurationProcessor.deploy(LoggingConfigurationProcessor.java:122)
> ... 6 more
> 11:38:03,845 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Rapport de statut de service
> JBAS014777: Services qui n'ont pas pu démarrer : service jboss.deployment.unit."fullear.ear".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."fullear.ear".POST_MODULE: JBAS018733: N'a pas pu traiter la phase POST_MODULE de deployment "fullear.ear"
> {noformat}
> The content of the fullear.ear I use for this test is:
> * lib
> ** myejbClient.jar
> * META-INF
> ** application.xml
> ** jboss-app.xml
> ** jboss-deployment-structure.xml
> ** jboss-ejb-client.xml
> ** management-trackfolder-hornetq-jms.xml
> ** MANIFEST.MF
> * myejb.jar
> * web.war
> I put the logging.properties files in myejbclient.jar file. The content of that jar file is :
> * org
> ** mapp
> *** ejb
> **** logging.properties
> **** Greeter.class
> * META-INF
> ** MANIFEST.MF
> The logging.properties file is a copy of the [JRE_HOME]/lib/logging.properties
--
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
More information about the jboss-jira
mailing list