#309 Unable to deploy sphinx4 app in JBoss because of sphinx4 logging configuration

next release
closed
None
1
2014-06-18
2013-05-03
No

Trying to deploy an application which uses sphinx4.jar in JBoss EAP 6.1.0.Beta1, the exception below is thrown.

This is because of the way the logging is configured in sphinx4 programmatically.

Removing static (configureLogger) methods in ConfigurationManagerUtils.java and their invocation in ConfigurationManer.java solves the problem (patch attached).
After applying the patch it's up to the user to provide correct logging configuration via property file.

See also: https://issues.jboss.org/browse/AS7-5744


[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)
21:35:43,402 ERROR [stderr] (http-/0.0.0.0:8080-1) java.lang.IllegalArgumentException: className is null
21:35:43,403 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.AbstractPropertyConfiguration.<init>(AbstractPropertyConfiguration.java:59)
21:35:43,404 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.HandlerConfigurationImpl.<init>(HandlerConfigurationImpl.java:54)
21:35:43,405 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.config.LogContextConfigurationImpl.addHandlerConfiguration(LogContextConfigurationImpl.java:144)
21:35:43,406 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:606)
21:35:43,406 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:487)
21:35:43,407 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:96)
21:35:43,408 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.as.logging.logmanager.ConfigurationPersistence.configure(ConfigurationPersistence.java:128)
21:35:43,408 ERROR [stderr] (http-/0.0.0.0:8080-1) at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:300)
21:35:43,409 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.configureLogger(ConfigurationManagerUtils.java:195)
21:35:43,409 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManagerUtils.configureLogger(ConfigurationManagerUtils.java:165)
21:35:43,410 ERROR [stderr] (http-/0.0.0.0:8080-1) at edu.cmu.sphinx.util.props.ConfigurationManager.<init>(ConfigurationManager.java:64)

1 Attachments

Discussion

  • Nickolay V. Shmyrev

    Hello

    Thanks for the patch.

    I had to apply a slighlty different patch keeping configuration part but making it more flexible. Please test.

     
  • Nickolay V. Shmyrev

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks