1. Using command
Add option -Djetty.port=9090 on command.
example:
mvn -Djetty.port=9090 jetty:run
2. pom.xml
Change/add jetty.port system property on pom.xml.
example:
org.mortbay.jetty maven-jetty-plugin jetty.port 9090
mvn -Djetty.port=9090 jetty:run
org.mortbay.jetty maven-jetty-plugin jetty.port 9090
![]() |
| Derived attibute on foder properties |
![]() | |
| access to Open Resource's menu |
git diff on xterm, the displayed result showing ESC[ characters instead of colored line.-R options since i only want to clear ESC[ characters and colored diffs. So i add this line on my ~/.bashrc :
LESS="-R"; export LESS
Update: April 1, 2011
ieh: Trojan.Perl.Shellbot-2
.X-un1x: Trojan.Perl.Shellbot-2
xh: Linux.Rst
/tmp and removing some suspicious files/folders which is owned by jboss and nothing to do with currently deployed legit applications (i.e: hibernate cache files). netstat (i use -p option to show pid).netstat to make sure there are no more unwanted connections.
#!/bin/bash
#
# WAR File Deployer Script
# description: Its simply stop service, backup file, replace file, and start the service again.
#
WAR_FILE="erp.war"
DIST_DIR="/erp/readyToDeploy"
DEPLOY_DIR="/usr/jboss/server/default/deploy"
# stop jboss server
/sbin/service jbossd stop
# backup
BACKUP_FILE="/erp/backup/$WAR_FILE-"`date +%F_%H-%M`".bak"
echo "Creating backup file $BACKUP_FILE ..."
/bin/cp "$DEPLOY_DIR/$WAR_FILE" "$BACKUP_FILE"
# replace
echo "Replacing $DIST_DIR/$WAR_FILE with $DEPLOY_DIR/$WAR_FILE"
/bin/cp "$DIST_DIR/$WAR_FILE" "$DEPLOY_DIR/$WAR_FILE"
# start jboss server
/sbin/service jbossd start
crontab -e to insert job to be executed tonight into crontab. Then add following line:
05 22 7 3 * /erp/scripts/war-deployer.sh
update[March 26, 2011]
- fixed script (variable $DIST_FILE -> $DIST_DIR).
- crontab entry (year removed, and change ? with *).
<property name="hibernate.connection.zeroDateTimeBehavior">convertToNull</property>hibernate.connection.zeroDateTimeBehavior=convertToNull<connection-property name="zeroDateTimeBehavior">convertToNull</connection-property>jdbc:mysql://yourserver:3306/yourdatabase?zeroDateTimeBehavior=convertToNull