Using springloaded with multi-module Maven project

As springloaded only reload class files, in a multi module project it will only reload the main module i.e. website

I propose a workaround if you are using a Linux machine:
i.e. if you have two modules core and website

you can run

lsyncd -delay 0 -rsync /path-to-core/target/classes /path-to-website/target/website-extracted/WEB-INF/classes

This will keep syncing your class files from core to website.

Next thing you can add below line to /path-to-tomcat/bin/setenv.sh


rm /path-to-website/target/website-extracted/WEB-INF/lib/core-BUILD-0.1.jar

This would remove the jar file before apache tomcat starts.

Hope this helps.

emails to gmail undelivered from mail server

error
host gmail-smtp-in.l.google.com[74.125.67.27]
said: 550-5.7.1 [*********] The IP you're using to send mail is not
authorized to 550-5.7.1 send email directly to our servers. Please use the
SMTP relay at your 550-5.7.1 service provider instead. Learn more at
550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336
s36si7540679anh.100 (in reply to end of DATA command)

Well the Hosting company used are assigned IP to be used for Dynamic end users e.g. ADSL. and are Reverse DNS of the mail server was to a different host. not one from which email were being sent.

actions taken to fix the issue.
1. fix the reverse DNS
2. check http://www.spamhaus.org/lookup.lasso for your IP and if listed request removal.

job done.

make ssh secure

source:
http://thinkhole.org/wp/2006/10/30/five-steps-to-a-more-secure-ssh/

edit /etc/ssh/sshd_config to add following lines:

PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
Port 4958