Tomcat Remote debugging in linuxStartup script with logging:
Put the below in catalina.sh
JPDA_TRANSPORT=dt_socket
JPDA_ADDRESS=5005
$./catalina.sh jpda start
Create a file with the following and change the mode to executable under $catalina_home/bin
./startup.sh;tail -f ../logs/catalina.out
For shutdown create as below:
./shutdown.sh;tail -f ../logs/catalina.out
Restart script for linux:
./shutdown.sh
echo "shutdown.sh executed"
echo "Sleeping for 5 seconds after shutdown"
sleep 5
./startup.sh
echo "starting up"
echo "Sleeping for 1 second"
tail -f ../logs/catalina.out
Jar usage
$cd portal-impl
$jar xvf portal-impl.jar :extracts the jar file into portal-impl dir.
$jar cvf portal-impl-patched.jar portal-impl/ :make jar file from portal-impl dir contents the jar will be having portal-impl as the root dir.
To change ownership:
$chown tomcat:tomcat FILE_NAME
To change group:
$chgrp tomcat FILE_NAME
To Switch user:
$su USER_NAME
Clear all unwanted .SVN files
find . -name ".svn"-exec rm -rf {} \;
0 comments:
Post a Comment