Debian5-lenny 配置Hudson时遇到的问题
来源:互联网 发布:linux系统移植 刘刚 编辑:程序博客网 时间:2024/05/21 12:44
在Hudson上配置Email时,总是提示“Must issue a STARTTLS command first”,Google了一下,需要在启动时加上参数‘-Dmail.smtp.starttls.enable="true"’,由于我的Hudson是通过apt-get install hudson下载下来的,所以在/etc/default/hudson下配置,输入命令:#vim /etc/default/hudson,然后加上JAVA_ARGS='-Dmail.smtp.starttls.enable="true"',保存,重启Hudson,命令:#/etc/init.d/hudson restart,试着发一下邮件,结果还是不行,不过这次是提示“Can't send command to SMTP host ....... Case By : trustAnchors parameter must be non-empty ......”,无奈,再次Google,最后终于看到某篇文章,在此贴出原文:
How to fix Java on Debian Lenny
This post was previously about getting Amazon ec2 API tools working on Debian Lenny when seeing something like this:
Unexpected error:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
After number of comments it looked as a generic solution to java related problems so I’ve change the title.
Here is how to fix it Java on Lenny:
mkdir /tmp/java
cd /tmp/java
wget http://ftp.de.debian.org/debian/pool/main/c/ca-certificates-java/ca-certificates-java_20100412_all.deb
ar xf ca-certificates-java_20100412_all.deb
tar -zxvf data.tar.gz
cd /usr/lib/jvm/java-6-openjdk/jre/lib/security/
mv cacerts cacerts.PREVIOUS
cp /tmp/java/usr/share/ca-certificates-java/cacerts /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts
If you get 404 when running wget go here and download latest package.
http://www.krzywanski.net/archives/546
按照上面的做法,终于解决了问题!
- Debian5-lenny 配置Hudson时遇到的问题
- Debian5-lenny配置Redmine时遇到的问题
- debian5安装firefox的问题
- redhat配置hudson遇到的maven版本太高报错
- Debian5.0.3启动X-Window的问题
- 关于hudson的问题
- Debian5.03(lenny)下自动挂载ntfs分区
- hudson的安装及配置
- myeclise 配置tomcat6时遇到的问题
- 配置symfony时,遇到的问题
- 配置Android环境时遇到的问题
- myeclipse配置tomcat时遇到的问题
- 配置点云库PCL时遇到的问题
- npm配置时遇到的两个问题
- 配置spring 项目时遇到的问题
- eclipse配置weblogic时遇到的问题
- 再次时配置jdk遇到的问题
- 配置tomcat时遇到的一些问题
- android创建文件夹和文件的一些经验教训
- SetWindowPos的坐标
- 水晶易表 Xcelsius 2008 安装指南 完美支持office2010(亲手体验)
- PHP 符号大全
- IPC--信号(1)--基本知识
- Debian5-lenny 配置Hudson时遇到的问题
- hdu1384&&poj1364差分约束
- FreeBSD8.2安装
- 第一章:【UCHome二次开发】uchome文件体系介绍
- android 官网
- linux C 开发到发布全过程
- WFLoader、Module和RemoteObject失效原因
- 排序算法及实现(2)
- 指针数组、数组指针与指针函数、函数指针