system.out.println(xxxx)
的内容不会输出到控制台和日志文件里了。不知道为啥?

解决方案 »

  1.   

    System.out.println("...");大小写,输出重定向…
      

  2.   

    你用 tomcat 的吧?tomcat 会将 System.out 的输出重定向到 tomcat/logs/catalina.out 文件中去。
      

  3.   


    不是吧,通过tomcat.exe启动还是可以看到的,同事catalina.out也会有。
      

  4.   

       控制台肯定是有的   可是tomcat/logs/catalina.out   这个到没有啊
       
      

  5.   

     <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
          name="jboss:service=invoker,type=pooled">
          <attribute name="NumAcceptThreads">1</attribute>
          <attribute name="MaxPoolSize">30</attribute>
          <attribute name="ClientMaxPoolSize">200</attribute>
          <attribute name="SocketTimeout">6000</attribute>
          <attribute name="ServerBindAddress">${jboss.bind.address}</attribute>
          <attribute name="ServerBindPort">5555</attribute>
          <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>
          <attribute name="ClientConnectPort">0</attribute>
          <attribute name="EnableTcpNoDelay">false</attribute>      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
       </mbean>
          <!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
          in seconds.
          If you want to disable caching of security credentials, set this to 0 to
          force authentication to occur every time. This has no affect if the
          AuthenticationCacheJndiName has been changed from the default value.
          -->
          <attribute name="DefaultCacheTimeout">1800</attribute>
     <attribute name="ThreadGroupName">System Threads</attribute>
          <!-- How long a thread will live without any tasks in MS -->
          <attribute name="KeepAliveTime">60000</attribute>
          <!-- The min number of threads in the pool -->
          <attribute name="MinimumPoolSize">1</attribute>
          <!-- The max number of threads in the pool -->
          <attribute name="MaximumPoolSize">10</attribute>
          <!-- The max number of tasks before the queue is full -->
          <attribute name="MaximumQueueSize">1000</attribute>
          <!-- The behavior of the pool when a task is added and the 以及这些都是具体干啥的啊?
      

  6.   

     <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
          name="jboss:service=invoker,type=pooled">
          <attribute name="NumAcceptThreads">1</attribute>
          <attribute name="MaxPoolSize">30</attribute>
          <attribute name="ClientMaxPoolSize">200</attribute>
          <attribute name="SocketTimeout">6000</attribute>
          <attribute name="ServerBindAddress">${jboss.bind.address}</attribute>
          <attribute name="ServerBindPort">5555</attribute>
          <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>
          <attribute name="ClientConnectPort">0</attribute>
          <attribute name="EnableTcpNoDelay">false</attribute>      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
       </mbean>
          <!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
          in seconds.
          If you want to disable caching of security credentials, set this to 0 to
          force authentication to occur every time. This has no affect if the
          AuthenticationCacheJndiName has been changed from the default value.
          -->
          <attribute name="DefaultCacheTimeout">1800</attribute>
     <attribute name="ThreadGroupName">System Threads</attribute>
          <!-- How long a thread will live without any tasks in MS -->
          <attribute name="KeepAliveTime">60000</attribute>
          <!-- The min number of threads in the pool -->
          <attribute name="MinimumPoolSize">1</attribute>
          <!-- The max number of threads in the pool -->
          <attribute name="MaximumPoolSize">10</attribute>
          <!-- The max number of tasks before the queue is full -->
          <attribute name="MaximumQueueSize">1000</attribute>
          <!-- The behavior of the pool when a task is added and the 以及这些都是具体干啥的啊?
      

  7.   

    我的问题就是想知道怎么配置可能造成
    在代码里写的system.out.println(xxxx)
    的内容不会输出到控制台和日志文件里了。
    我不知道我们现在系统怎么配置的实现了这个效果所以想咨询一下。
      

  8.   

    我的问题就是想知道怎么配置可能造成
    在代码里写的system.out.println(xxxx)
    的内容不会输出到控制台和日志文件里了。
    我不知道我们现在系统怎么配置的实现了这个效果所以想咨询一下。