07 October 2015

Tomcat Console --> File

Running  Liferay eclipse on 4 GB ram  makes my system slow or eclipse will in hanged state

So thought of running  tomcat through cmd prompt. to search errors in tomcat console i find difficult

so i have thought of redirecting the  tomcat output console to a file

the first step is to open the startup.bat file in editor and search for following command

call "%EXECUTABLE%"  start %CMD_LINE_ARGS% 

replace that line with following line 

call "%EXECUTABLE%" run >..\logs\outputfile.log 2>&1 start %CMD_LINE_ARGS% run >..\logs\outputfile.log 2>&1 

now all the tomcat console will be redirected to a file

1 comment:

Srikanth Arroju said...

compileInclude group: 'org.apache.poi', name: 'poi', version: '4.1.2'
compileInclude group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.2'
compileInclude group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: '4.1.2'
compileInclude group: 'org.apache.xmlbeans', name: 'xmlbeans', version: '3.1.0'



Import-Package: \
!com.sun.*,\
!junit.*,\
!org.apache.*,\
!org.apache.crimson.jaxp,\
!org.apache.jcp.xml.dsig.internal.dom,\
!org.apache.poi.hdgf.extractor,\
!org.apache.poi.hpbf.extractor,\
!org.apache.poi.hslf.extractor,\
!org.apache.poi.hslf.*,\
!org.apache.poi.hsmf.*,\
!org.apache.poi.hwpf.*,\
!org.apache.poi.hwpf.extractor,\
!org.apache.xml.*,\
!org.apache.poi.generator,\
!org.bouncycastle.*,\
!org.junit.*,\
!org.openxmlformats.schemas.officeDocument.x2006.math,\
!org.openxmlformats.schemas.schemaLibrary.x2006.main,\
!schemasMicrosoftComOfficePowerpoint,\
!schemasMicrosoftComOfficeWord,\
!org.etsi.uri.x01903.v14,\
!com.github.luben.zstd,\
!com.microsoft.schemas.office.powerpoint,\
!com.microsoft.schemas.office.word,\
!net.sf.saxon,\
!net.sf.saxon.*,\
!org.brotli.dec,\
!org.tukaani.xz,\
*