Forum Discussion

tslosar's avatar
tslosar
Contributor
13 years ago

Mockservice crashing tomcat

I am having trouble with my mockservices crashing tomcat. I am not seeing anything in catalina.out that would indicate a resource issue (DEBUG level is selected) however I am not able to isolate the logs from caalina.out even though I have log4j.xml in WEB-INF/classes (exactly like the sample file).
Using SoapUI 4.6.2 Released 2013-12-02. MaxPermSize=1024m.

Any help would be greatly appreciated!

Kind regards,

3 Replies

  • <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
    <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
    <param name="File" value="${soapui.logroot}soapui.log"/>
    <!-- <param name="Threshold" value="INFO"/> -->
    <param name="Append" value="false"/>
    <param name="MaxFileSize" value="5000KB"/>
    <param name="MaxBackupIndex" value="50"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/>
    </layout>
    </appender>

    <appender name="ERRORFILE" class="org.apache.log4j.RollingFileAppender">
    <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
    <param name="File" value="${soapui.logroot}soapui-errors.log"/>
    <!-- <param name="Threshold" value="INFO"/> -->
    <param name="Append" value="true"/>
    <param name="MaxFileSize" value="5000KB"/>
    <param name="MaxBackupIndex" value="50"/>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/>
    </layout>
    </appender>
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    if the "soapui.logroot" java system property is not define, the soapui log files should be generated in the working directory set by tomcat
    otherwise, you can set this property when starting tomcat to configure the directory where the soapui log files will be generated
  • Thank you. Yes I have added that definition in the tomcat startup script and have been able to redirect the logs.