PDA

View Full Version : Where are my System.outs going?


laredotornado
10-06-2009, 03:27 PM
Hi,

I'm using Resin 3.0.19 on Mac OS X. I am running a unit test within my test folder and have several System.out statements. Despite the fact I know they are executed, I can't find them in my stdout file. How can I figure out where they are getting written to?

Below are the contents of my resin.conf file ...

===============Begin resin.conf ==================
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="http://caucho.com/ns/resin/core">

<log path="stdout:" timestamp="[%H:%M:%S.%s]" >
<logger name="" level="config"/>
<!--
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<logger name="com.caucho.server" level="config"/>
-->
<logger name="com.caucho.bytecode.ByteCodeClassScanner"
level="off" use-parent-handlers="false"/>
</log>

<dependency-check-interval>1s</dependency-check-interval>

<javac compiler="internal" args=""/>

<thread-pool>
<thread-max>128</thread-max>
<spare-thread-min>25</spare-thread-min>
</thread-pool>

<min-free-memory>1M</min-free-memory>

<server>

<class-loader>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${server.root}/lib"/>
</class-loader>

<keepalive-max>500</keepalive-max>
<keepalive-timeout>60s</keepalive-timeout>

<http host="*" port="8000"/>

<http host="*" port="8080">
<!-- SSL Configuration -->
<!-- <openssl>
<certificate-file>conf/duffman.crt</certificate-file>
<certificate-key-file>conf/duffman.key</certificate-key-file>
<password>duffman</password>
</openssl> -->
</http>

<http host="*" port="8082" />

<system-property log4j.configuration="file://${server.root}/conf/log4j.xml"/>
<system-property org.apache.commons.logging.LogFactory="org.apache.commons.logging.impl.Log4jFactory"/>

<cluster>
<srun server-id="" host="127.0.0.1" port="6803"/>
</cluster>

<!--
<resin:if test="${resin.isProfessional()}">
<persistent-store type="cluster">
<init path="session"/>
</persistent-store>
</resin:if>
-->

<ignore-client-disconnect>true</ignore-client-disconnect>

<resin:if test="${isResinProfessional}">
<cache path="cache" memory-size="8M"/>
</resin:if>

<!--
<resin:if test="${isResinProfessional}">
<ping><url>http://localhost:8080/test-ping.jsp</url></ping>
</resin:if>
-->

<web-app-default>
<class-loader>
<tree-loader path="${server.root}/ext-webapp"/>
</class-loader>

<cache-mapping url-pattern="/" expires="1s"/>
<cache-mapping url-pattern="*.gif" expires="60s"/>
<cache-mapping url-pattern="*.jpg" expires="60s"/>

<!--
<servlet servlet-name="directory"
servlet-class="com.caucho.servlets.DirectoryServlet"/>
-->

<allow-servlet-el/>

<session-config>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>

<!--
<cookie-http-only/>
-->
</web-app-default>

<!-- Start Checkout Configuration -->
<system-property cmbs.host="localhost" />
<system-property cmbs.port="8889" />
<system-property GatewayContext.host="test-j2ee-app" />
<system-property GatewayContext.port="4430" />
<system-property TPEPaymentProcessor.OrderNotes.AttributePrefix="NON_COFRS,COFRS,ATTR" />
<system-property java.protocol.handler.pkgs="com.sun.net.ssl.internal.www.protocol" />

<system-property javax.net.ssl.trustStore="/opt/containers/resin/dev-resin/conf/cacerts" />
<system-property javax.net.ssl.keyStore="/opt/containers/resin/dev-resin/conf/cacerts" />
<system-property javax.net.ssl.keyStorePassword="changeit" />

<!-- End Checkout Configuration -->

<host-default>
<class-loader>
<compiling-loader path="webapps/WEB-INF/classes"/>
<library-loader path="webapps/WEB-INF/lib"/>
</class-loader>
</host-default>

<resin:import path="${resinHome}/conf/app-default.xml"/>

<resource jndi-name="mail/org/ai/mail" type="javax.mail.Session">
<init>
<mail.transport.protocol>smtp</mail.transport.protocol>
<mail.host>localhost</mail.host>
<mail.from>dev@www.myco.gov</mail.from>
</init>
</resource>

<access-log path="/opt/var/logs/resin/dev-resin/access.log">
<rollover-period>1D</rollover-period>
<rollover-size>1024mb</rollover-size>
</access-log>

<!-- Web Tier :8000 -->
<!-- Static Content -->
<host id="ocho:8000">
<host-alias>localhost:8000</host-alias>
<web-app id="/">
<document-directory>/opt/htdocs</document-directory>
</web-app>
</host>

<!-- Web Tier :8080 -->
<host id="ocho:8080">
<host-alias>duffman:8080</host-alias>
<host-alias>localhost:8080</host-alias>
<web-app-deploy path="webapps/web" expand-path="tmp/web" />
<resin:import>
<fileset dir="conf/web">
<include>*.conf</include>
</fileset>
</resin:import>
</host>

<!-- App Tier :8082 -->
<host id="ocho:8082">
<host-alias>duffman:8082</host-alias>
<host-alias>localhost:8082</host-alias>
<web-app-deploy path="webapps/app" expand-path="tmp/app" />
<resin:import>
<fileset dir="conf/app">
<include>*.conf</include>
</fileset>
</resin:import>
</host>

</server>
</resin>
===============End resin.conf ===================

Thanks, - Dave