Mark Struberg created MEECROWAVE-130:
----------------------------------------

             Summary: 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
             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)

Reply via email to