Forum Discussion

hyde's avatar
hyde
New Contributor
8 years ago

Disable logging on mockservice war deployment

Hi.

 

Is there a way to disable logging on .war deployments of SoapUI mockservices?

Im getting following errors and would rather not spend time trying to configure log4j.


log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: soapui-errors.log (Access is denied)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(FileOutputStream.java:270)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
    at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)
    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
    at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
    at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
    at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
    at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
    at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
    at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
    at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743)
    at com.eviware.soapui.DefaultSoapUICore.initLog(DefaultSoapUICore.java:475)
    at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:120)
    at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:110)
    at com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.<init>(MockAsWarServlet.java:317)
    at com.eviware.soapui.mockaswar.MockAsWarServlet.init(MockAsWarServlet.java:71)
...