[
https://issues.apache.org/jira/browse/MEECROWAVE-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555288#comment-16555288
]
Romain Manni-Bucau commented on MEECROWAVE-130:
-----------------------------------------------
[~struberg] we need none of them now (see the thread I sent on the list about
that) so we can surely clean it up. Note that you forget the access log case
for logs folder, it doesnt use any logger if the right valve is set and is by
default relative to base dir. For temp, we should create it and set it if
MEECROWAVE_TMPDIR is not set at all to not use /tmp by default (which,
depending on the system can just breaks the instance by a "too often happening"
eviction). Work is used by some features and we must ensure we work if needed.
We already test if jsp is here to activate it if present, we can surely do ~the
same to create this folder conditionally. Webapps was checked in old versions
of tomcat but as mentionned now it is really more tolerant.
ccl: let's drop them all by default except temp maybe, ensure work is created
if jsp support is here and we should be good. We should also override
Tomcat#initBaseDir to not create the base dir by default at the same time. Wdyt?
> 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)