You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2018/07/24 10:32:00 UTC
[jira] [Comment Edited] (MEECROWAVE-130) IOException if
MEECROWAVE_OUT is different than MEECROWAVE_HOME
[ https://issues.apache.org/jira/browse/MEECROWAVE-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554067#comment-16554067 ]
Mark Struberg edited comment on MEECROWAVE-130 at 7/24/18 10:31 AM:
--------------------------------------------------------------------
Hi Romain! Well, we use a custom log4j2.xml which uses the Console logger plus syslogd.
But yes, it looks like we need a 3rd path.
* MEECROWAVE_HOME -> location of the Meecrowave binaries. with ./bin/, ./lib/
* MEECROWAVE_BASE -> location of the application. Basically only contains ./conf/. Probably ./webapps for WAR?
* MEECROWAVE_WORK -> location of anything which is to be written. like ./logs/, ./work/, ./temp/
was (Author: struberg):
Hi Romain! Well, we use a custom log4j2.xml which uses the Console logger plus syslogd.
But yes, it looks like we need a 3rd path.
* MEECROWAVE_HOME -> location of the Meecrowave binaries. with ./bin/, ./lib/
* MEECROWAVE_HOME -> location of the application. Basically only contains ./conf/. Probably ./webapps for WAR?
* MEECROWAVE_WORK -> location of anything which is to be written. like ./logs/, ./work/, ./temp/
> IOException if MEECROWAVE_OUT is different than MEECROWAVE_HOME
> ---------------------------------------------------------------
>
> Key: MEECROWAVE-130
> URL: https://issues.apache.org/jira/browse/MEECROWAVE-130
> Project: Meecrowave
> Issue Type: Bug
> Affects Versions: 1.2.3
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Priority: Major
> Fix For: 1.2.4
>
>
> In my project I have the MEECROWAVE_OUT and MEECROWAVE_BASE is set to separated places.
> MEECROWAVE_BASE is in /opt/myapp
> and
> MEECROWAVE_OUT is in /var/log/myapp.log
> Since mw-1.2.2 I now get the following Exception:
> {noformat}
> Exception in thread "main" java.lang.IllegalStateException: /opt/myapp/logs can't be created
> at org.apache.meecrowave.io.IO.mkdirs(IO.java:89)
> at org.apache.meecrowave.Meecrowave.createDirectory(Meecrowave.java:1047)
> at org.apache.meecrowave.Meecrowave.start(Meecrowave.java:469)
> at org.apache.meecrowave.runner.Cli.run(Cli.java:80)
> at org.apache.meecrowave.runner.Cli.main(Cli.java:109)
> Suppressed: java.lang.IllegalStateException: Unable to create the directory [/tomcat.8080] to use as the base directory
> at org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:725)
> at org.apache.catalina.startup.Tomcat.getServer(Tomcat.java:540)
> at org.apache.meecrowave.Meecrowave.close(Meecrowave.java:941)
> at org.apache.meecrowave.runner.Cli.run(Cli.java:87)
> {noformat}
> Likely due to /opt/myapp is mounted as readonly filesystem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)