解决Subclipse导致Eclipse崩溃问题

几天安装了新版svn,版本是1.4.4.结果导致使用Eclipse的Subclipse去获取SVN资源库内容时,Eclipse 就屡次崩溃。先还找不到原因。放狗搜了下。结果是环境变量APR_ICONV1_PATH惹的祸,修改这个变量名为APR_ICONV1_PATH1,哦也,重启Eclipse使用Subclipse已经没问题了。哈哈

参考:

http://subclipse.tigris.org/servlets/ReadMsg?listName=users&msgNo=10234

在Linux下配置Tomcat自动启动的简单方法

1.安装好JDK和Tomcat, 测试可以正常运行Tomcat.

2.在/etc/init.d 目录下创建名为tomcat的文件(如该目录下已经有同名文件, 则改成其他名字), 该文件内容如下:

#!/bin/sh

# chkconfig: 345 88 14# description: Tomcat Daemon

#Change to your Jdk directoryJAVA_HOME=/opt/jdkexport JAVA_HOME

#Change to your Tomcat directoryCATALINA_HOME=/opt/tomcatexport CATALINA_HOME

# Determine and execute action based on command line parameter

case "$1" instart)echo "Starting Tomcat..."sleep 2$CATALINA_HOME/bin/startup.sh;;stop)echo "Shutting down Tomcat..."sleep 2$CATALINA_HOME/bin/shutdown.sh;;*)echo "Usage: $1 {start|stop}";;esacexit 0

其中以下两行必须要出现在文件中:

# chkconfig: 345 88 14                     ---表示该脚本应该在运行级 3, 4, 5 启动,启动优先权为88,停止优先权为 14。这3组值可以根据自己的情况调节

# description: Tomcat Daemon               ---?

3.在命令行输入以下命令修改文件tomcat的运行级别

chmod a+x /opt/init.d/tomcat

4.在命令行输入以下命令以测试服务可以正常启动

service tomcat start
servive tomcat stop

5.然后将tomcat加入到系统服务中,以便可以自动启动

cd /opt/init.dchkconfig --add tomcat

6.可以通过以下命令查看tomcat服务的详情. 具体的chkconfig命令详情请查看网上资料

chkconfig --list

Maven2 and CruiseControl SubversionTips

  1. If you use maven2 as a tool in Cruisecontrol ‘s build process you must use this command : svn update to update the workcopy of your project from svn repository in the Cruisecontrol’s project folder to get the entire svn information .If you don’t do that the cruisecontrol will never build as you want.
  2. At firest time if you add the ‘target’ folder to svn repository then after  the maven2 build phase the .svn folder(svn info.) were deleted  and sometime you update or commit resources there could arise error like this:working copy admin area missing.You need to set a    svn:ignore  property to svn for it to ignore the miss entry .command like ‘svn propset svn:ignore target https//somehost.com/someproject/trunk ‘

Warning

少喝奶茶,不吃刚烤的面包,远离充电电源,白天多喝水晚上少喝,一天不喝多于两杯咖啡,少吃油多的食物,最佳睡眠为晚上十点至早上六点,晚上五点后少吃大餐,每天喝酒不多过一杯,不用冷水服胶囊,睡前半小时服药忌立刻躺下。睡眠不足八小时人会变笨,有午睡的习惯人不易老。手机电池剩一格时不要打电话,剩一格时辐射是平时的一千倍,还要记得用左耳接电话,用右耳会直接伤害到大脑,请转发给每一个你珍惜的朋友!