You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org> on 2009/09/03 23:40:57 UTC
[jira] Commented: (UIMA-1328) deployAsyncService.sh causes Log4j
FileNotFoundException
[ https://issues.apache.org/jira/browse/UIMA-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751179#action_12751179 ]
Jerry Cwiklik commented on UIMA-1328:
-------------------------------------
Jorn, there is a bug in our scripts that causes your problem. In UIMA_HOME/config directory there are two config files
log4j.properties and activemq-nojournal.xml that should not be there. The reason why is because this directory is added to the classpath by setUimaClasspath.sh script. If you have a component that is dependent on log4j, it will try to initialize it from log4j.properties it finds in the classpath. It finds one loaded from UIMA_HOME/config directory. The problem is, that this file is ActiveMQ specific and leads to an error on this line:
log4j.appender.out.file=${activemq.base}/activemq-data/activemq.log
{activemq.base} is not initialized and this is why you get the error you describe in the initial comment in this jira.
The only reason why the two files are in UIMA_HOME/config is so that we can copy them somewhere else. This copying is done by the UIMA_HOME/bin/startBroker.sh script.
The fix for this is to keep the two files in a directory that is not on the classpath. We will fix our build assembly to place the two files in a new directory in the UIMA AS distribution.
Thank you for finding this.
> deployAsyncService.sh causes Log4j FileNotFoundException
> --------------------------------------------------------
>
> Key: UIMA-1328
> URL: https://issues.apache.org/jira/browse/UIMA-1328
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Affects Versions: 2.3AS
> Environment: Ubuntu 8.10
> Reporter: Jörn Kottmann
> Assignee: Jerry Cwiklik
>
> The following exception is printed to the console during startup:
> bin/deployAsyncService.sh tagger/desc/Deploy_TextAnalysis.xml
> >>> Setting defaultBrokerURL to:
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /activemq-data/activemq.log (No such file or directory)
> at java.io.FileOutputStream.openAppend(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
> at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
> at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
> at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
> at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
> at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
> at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
> at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
> at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
> at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
> at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
> at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
> at org.apache.log4j.Category.getInstance(Category.java:514)
> at org.apache.commons.logging.impl.Log4JCategoryLog.<init>(Log4JCategoryLog.java:100)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:502)
> at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
> at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at org.springframework.util.ClassUtils.<clinit>(ClassUtils.java:67)
> at org.springframework.core.io.DefaultResourceLoader.<init>(DefaultResourceLoader.java:52)
> at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:184)
> at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:80)
> at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:58)
> at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:91)
> at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:77)
> at org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy(SpringContainerDeployer.java:370)
> at org.apache.uima.adapter.jms.service.UIMA_Service.deploy(UIMA_Service.java:170)
> at org.apache.uima.adapter.jms.service.UIMA_Service.main(UIMA_Service.java:406)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.