﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-逝者如斯夫-随笔分类-Configuration</title><link>http://www.blogjava.net/ideame/category/36842.html</link><description>静而思之</description><language>zh-cn</language><lastBuildDate>Fri, 28 Feb 2014 06:46:31 GMT</lastBuildDate><pubDate>Fri, 28 Feb 2014 06:46:31 GMT</pubDate><ttl>60</ttl><item><title>如何将 SVN 源码库转换为 Mercurial</title><link>http://www.blogjava.net/ideame/archive/2014/02/28/410445.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Fri, 28 Feb 2014 03:25:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2014/02/28/410445.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/410445.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2014/02/28/410445.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/410445.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/410445.html</trackback:ping><description><![CDATA[
		<h2 id="svnmercurialgooglecode:movingaprojectfromusingsubversionforcodehostingtomercurialgooglesupport">如何将 SVN 源码库转换为 Mercurial <a href="#fn:1" id="fnref:1" title="see footnote" class="footnote">[1]</a></h2>
		<p>首先得安装 Subversion 库函数</p>
		<pre>
				<code>    wget http://mirrors.hust.edu.cn/apache/subversion/subversion-1.8.8.tar.gz

    tar xzf subversion-1.8.8.tar.bz2 

    cd subversion-1.8.8

    subversion-1.8.8 aliang$ ./autogen.sh 
        buildcheck: checking installation...
        buildcheck: autoconf not found.
                    You need autoconf version 2.59 or newer installed.

    brew install autoconf
        ==&gt; Downloading https://downloads.sf.net/project/machomebrew/Bottles/autoconf-2.69.mavericks.bottle.tar.gz
        #################################################### 100.0%
        ==&gt; Pouring autoconf-2.69.mavericks.bottle.tar.gz
        🍺 /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M

    ./autogen.sh 
        buildcheck: checking installation...
        buildcheck: autoconf version 2.69 (ok)
        buildcheck: autoheader version 2.69 (ok)
        buildcheck: libtool not found.
        You need libtool version 1.4 or newer installed

    brew install libtool
        Warning: A newer Command Line Tools release is available
        Update them from Software Update in the App Store.
        ==&gt; Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-2.4.2.mavericks.bottle.2.tar.gz
        ##################################################### 100.0%
        ==&gt; Pouring libtool-2.4.2.mavericks.bottle.2.tar.gz
        ==&gt; Caveats
        In order to prevent conflicts with Apple''s own libtool we have prepended a "g"
        so, you have instead: glibtool and glibtoolize.
        ==&gt; Summary
        🍺  /usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M

    ./autogen.sh 
        buildcheck: checking installation...
        buildcheck: autoconf version 2.69 (ok)
        buildcheck: autoheader version 2.69 (ok)
        buildcheck: libtool version 2.4.2 (ok)
        Copying libtool helper: /usr/local/share/aclocal/libtool.m4
        Copying libtool helper: /usr/local/share/aclocal/ltoptions.m4
        Copying libtool helper: /usr/local/share/aclocal/ltsugar.m4
        Copying libtool helper: /usr/local/share/aclocal/ltversion.m4
        Copying libtool helper: /usr/local/share/aclocal/lt~obsolete.m4
        Creating build-outputs.mk...
        Creating svn_private_config.h.in...
        Creating configure...

        You can run ./configure now.

        Running autogen.sh implies you are a maintainer.  You may prefer
        to run configure in one of the following ways:

        ./configure --enable-maintainer-mode
        ./configure --disable-shared
        ./configure --enable-maintainer-mode --disable-shared
        ./configure --disable-optimize --enable-debug
        ./configure CUSERFLAGS='--flags-for-C' CXXUSERFLAGS='--flags-for-C++'

        Note:  If you wish to run a Subversion HTTP server, you will need
        Apache 2.x.  See the INSTALL file for details.

    brew install swig
        ==&gt; Downloading http://downloads.sourceforge.net/project/swig/swig/swig-2.0.11/swig-2.0.11.tar.gz
        ######################################################################## 100.0%
        ==&gt; ./configure --prefix=/usr/local/Cellar/swig/2.0.11
        ==&gt; make
        ==&gt; make install
        🍺  /usr/local/Cellar/swig/2.0.11: 597 files, 6.2M, built in 10.1 minutes 

    ./configure --with-swig=/usr/local/bin/swig
        configure: Configuring Subversion 1.8.8
        ... ...
        ==================================================================
        WARNING: You have chosen to compile Subversion with a different
                 compiler than the one used to compile Apache.

            Current compiler:  gcc
           Apache's compiler:  /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc

        This could cause some problems.
        ==================================================================
        ... ...

    make swig-py
    make install
    make check-swig-py        
    sudo make install-swig-py

    sudo cp -r /usr/local/lib/svn-python/ /Library/Python/2.7/site-packages/
</code>
		</pre>
		<p>执行转换命令 </p>
		<pre>
				<code>    mkdir hgpath

    cd hgpath

    hg init

    hg convert -s svn -d hg ${local_path} ./hgpath
</code>
		</pre>
		<p>注意，这里转换的 SVN 目录只能是仓库目录而不是工作目录</p>
		<div class="footnotes">
				<hr />
				<ol>
						<li id="fn:1">
								<p>
										<a href="http://code.google.com/p/support/wiki/ConvertingSvnToHg">Google Code: Moving a project from using Subversion for code hosting to Mercurial</a>
										<a href="#fnref:1" title="return to article" class="reversefootnote"> ↩</a>
								</p>
						</li>
				</ol>
		</div>
<img src ="http://www.blogjava.net/ideame/aggbug/410445.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2014-02-28 11:25 <a href="http://www.blogjava.net/ideame/archive/2014/02/28/410445.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Git on Windows</title><link>http://www.blogjava.net/ideame/archive/2011/11/12/363571.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Sat, 12 Nov 2011 03:27:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2011/11/12/363571.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/363571.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2011/11/12/363571.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/363571.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/363571.html</trackback:ping><description><![CDATA[
		<p>下载文件 <a href="http://msysgit.googlecode.com/files/PortableGit-1.7.7.1-preview20111027.7z" target="_self">http://msysgit.googlecode.com/files/PortableGit-1.7.7.1-preview20111027.7z</a></p>
		<p>解压至 D:\JavaSoft\git-1.7.7.1</p>
		<p>增加系统环境路径：D:\JavaSoft\git-1.7.7.1\bin;D:\JavaSoft\git-1.7.7.1\cmd;</p>
		<pre>设置系统属性：<br />git config --global user.name "your.name"
git config --global user.email git.mail.name@gmail.com</pre>
		<p>创建密钥：</p>
		<p>mkdir /.ssh</p>
		<p>ssh-keygen -f D:\JavaSoft\git-1.7.7.1\.ssh\id_rsa -t rsa -C 'git.mail.name@gmail.com' -t rsa</p>
		<p>复制 id_rsa.pub 的内容，到github.com增加公钥，然后粘贴保存。</p>
		<p>测试：git -v -T git@github.com</p>
		<p>Hi your.name! You've successfully authenticated, but GitHub does not provide shell access.</p>
<img src ="http://www.blogjava.net/ideame/aggbug/363571.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2011-11-12 11:27 <a href="http://www.blogjava.net/ideame/archive/2011/11/12/363571.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>yum 上海交通大学 Repository</title><link>http://www.blogjava.net/ideame/archive/2011/05/18/350516.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Wed, 18 May 2011 09:36:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2011/05/18/350516.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/350516.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2011/05/18/350516.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/350516.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/350516.html</trackback:ping><description><![CDATA[/etc/yum.repos.d/CentOS-Base.repo<br /><br /><div style="background-color:#eeeeee;font-size:13px;BORDER:1px solid #CCCCCC;PADDING-RIGHT: 5px;PADDING-BOTTOM: 4px;PADDING-left: 4px;PADDING-TOP: 4px;WIDTH: 98%;word-break:break-all"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">base</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Base</span><span style="color: #000000; "><br />repo</span><span style="color: #000000; ">=</span><span style="color: #000000; ">os</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/os/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5<br /><br />#released updates<br /></span><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">update</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Updates</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/updates/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5</span><span style="color: #000000; "><br /><br />#packages used/produced in the build but not released<br /></span><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">addons</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Addons</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/addons/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5<br /><br />#additional packages that may be useful<br /></span><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">extras</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Extras</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/extras/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5</span><span style="color: #000000; "><br /><br />#additional packages that extend functionality of existing packages<br /></span><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">centosplus</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Plus</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/centosplus/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />enabled</span><span style="color: #000000; ">=</span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5<br /><br />#contrib - packages by Centos Users<br /></span><span style="color: #800000; font-weight: bold; ">[</span><span style="color: #800000; ">contrib</span><span style="color: #800000; font-weight: bold; ">]</span><span style="color: #000000; "><br />name</span><span style="color: #000000; ">=</span><span style="color: #000000; ">CentOS-</span><span style="color: #000000; ">5</span><span style="color: #000000; "> - Contrib</span><span style="color: #000000; "><br />baseurl</span><span style="color: #000000; ">=</span><span style="color: #000000; ">http://ftp.sjtu.edu.cn/centos/</span><span style="color: #000000; ">5</span><span style="color: #000000; ">/contrib/$basearch/<br />gpgcheck</span><span style="color: #000000; ">=</span><span style="color: #000000; ">1</span><span style="color: #000000; "><br />enabled</span><span style="color: #000000; ">=</span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />gpgkey</span><span style="color: #000000; ">=http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-5</span><span style="color: #000000; "></span></div><br /><img src ="http://www.blogjava.net/ideame/aggbug/350516.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2011-05-18 17:36 <a href="http://www.blogjava.net/ideame/archive/2011/05/18/350516.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Building CouchDB 1.0.2 from source (CentOS/RHEL 5)</title><link>http://www.blogjava.net/ideame/archive/2011/05/10/349912.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Tue, 10 May 2011 06:05:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2011/05/10/349912.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/349912.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2011/05/10/349912.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/349912.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/349912.html</trackback:ping><description><![CDATA[
		<!--[if gte mso 9]><xml><w:WordDocument><w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel><w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery><w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery><w:DocumentKind>DocumentNotSpecified</w:DocumentKind><w:DrawingGridVerticalSpacing>7.8</w:DrawingGridVerticalSpacing><w:View>Normal</w:View><w:Compatibility></w:Compatibility><w:Zoom>0</w:Zoom></w:WordDocument></xml><![endif]-->
		<div class="Section0" style="layout-grid:15.6000pt;">
				<h2 style="margin-bottom:0pt; margin-top:0pt; ">
						<span style="mso-spacerun:'yes'; font-weight:bold; font-size:16.0000pt; font-family:'Arial'; ">Dependencies</span>
						<span style="mso-spacerun:'yes'; font-weight:bold; font-size:16.0000pt; font-family:'Arial'; ">
						</span>
				</h2>
				<table style="border-collapse: collapse; padding: 0pt 5.4pt;" height="119" width="623">
						<tbody>
								<tr>
										<td rowspan="2" style="width:55.0500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="73">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; text-align:center; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">CouchDB</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td colspan="4" style="width:225.7500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="301">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-style:italic; font-size:10.5000pt; font-family:'Times New Roman'; ">Runtime</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td colspan="2" style="width:110.6500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="147">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-style:italic; font-size:10.5000pt; font-family:'Times New Roman'; ">Build</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
								<tr>
										<td style="width:90.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="120">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">Spidermonkey</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:44.1500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="58">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">Erlang</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:38.9000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="51">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">ICU</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.0000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="69">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">cURL</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:57.9500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="77">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">Automake</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="70">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-weight:bold; font-size:10.5000pt; font-family:'Times New Roman'; ">Autoconf</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
								<tr>
										<td style="width:55.0500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="73">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">0.9.x</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:90.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="120">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">==1.7</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:44.1500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="58">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=5.6.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:38.9000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="51">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 3.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.0000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="69">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 7.15.5</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:57.9500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="77">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 1.6.3</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="70">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 2.59</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
								<tr>
										<td style="width:55.0500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="73">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">0.10.x</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:90.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="120">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=1.7 &amp;&amp; &lt;=1.8.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:44.1500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="58">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=5.6.5</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:38.9000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="51">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 3.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.0000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="69">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 7.18.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:57.9500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="77">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 1.6.3</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="70">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 2.59</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
								<tr>
										<td style="width:55.0500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="73">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">0.11.x</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:90.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="120">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=1.7</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:44.1500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="58">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=5.6.5</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:38.9000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="51">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 3.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.0000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="69">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 7.18.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:57.9500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="77">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 1.6.3</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="70">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 2.59</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
								<tr>
										<td style="width:55.0500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="73">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">1.0.2</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:90.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="120">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=1.7</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:44.1500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="58">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;=5.6.5</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:38.9000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="51">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 3.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.0000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="69">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 7.18.0</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:57.9500pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="77">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 1.6.3</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
										<td style="width:52.7000pt; padding:0.0000pt 5.4000pt 0.0000pt 5.4000pt ; " valign="center" width="70">
												<p class="p0" style="margin-bottom:0pt; margin-top:0pt; text-autospace:ideograph-other; ">
														<span style="mso-spacerun:'yes'; font-size:10.5000pt; font-family:'Times New Roman'; ">&gt;= 2.59</span>
														<span style="font-size:10.5000pt; font-family:'Times New Roman'; ">
														</span>
												</p>
										</td>
								</tr>
						</tbody>
				</table>
				<p class="p0" style="margin-bottom: 0pt; margin-top: 0pt;">
						<br />
						<a href="http://mirror.centos.org/centos/5/os/SRPMS/icu-3.6-5.16.src.rpm">
								<span style="font-size: 10.5pt; font-family: 'Times New Roman';">
								</span>
						</a>
				</p>
		</div>
		<br />
		<div style="background-color:#eeeeee;font-size:13px;BORDER:1px solid #CCCCCC;PADDING-RIGHT: 5px;PADDING-BOTTOM: 4px;PADDING-left: 4px;PADDING-TOP: 4px;WIDTH: 98%;word-break:break-all">
				<!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
				<span style="color: #000000; ">
				</span>
				<span style="color: #000000; ">wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libicu-3.6-5.16.x86_64.rpm<br />wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/libicu-devel-3.6-5.16.x86_64.rpm<br />wget http://download.fedora.redhat.com/pub/epel/5/x86_64/js-1.70-8.el5.x86_64.rpm<br />wget http://download.fedora.redhat.com/pub/epel/5/SRPMS/js-1.70-8.el5.src.rpm<br />wget http://download.fedora.redhat.com/pub/epel/5/x86_64/js-devel-1.70-8.el5.x86_64.rpm<br /><br />wget http://curl.haxx.se/download/curl-7.21.6.tar.gz<br />wget http://labs.renren.com/apache-mirror/couchdb/1.0.2/apache-couchdb-1.0.2.tar.gz<br /><br />tar -xzf curl-7.21.6.tar.gz<br />cd curl-7.21.6<br />./configure --prefix=/usr/local<br />make<br />make install<br />cd ..<br /><br />rpm -ivh *.rpm<br /><br />tar -xzf apache-couchdb-1.0.2.tar.gz<br />cd apache-couchdb-1.0.2<br />./configure --prefix=/usr/local/couchdb --with-erlang=/usr/lib64/erlang/usr/include<br />make<br />make install<br />cd ..<br /><br /><br />rm -rf apache-couchdb-1.0.2 curl-7.21.6<br /><br />/usr/sbin/useradd -r --home /usr/local/couchdb/var/lib/couchdb -M --shell /bin/bash --comment "CouchDB Administrator" couchdb<br /><br />mkdir -p /var/www/apps/couchdb/data<br />mkdir -p /var/www/apps/couchdb/view<br />mkdir -p /usr/local/var/lib/couchdb<br />mkdir -p /usr/local/var/log<br /><br />chown -R couchdb: /usr/local/couchdb/var/lib/couchdb /usr/local/couchdb/var/log/couchdb /var/www/apps/couchdb<br /><br /><br /># [httpd]<br /># port = 5984<br /># bind_address = 127.0.0.1 (your binding ip address here)<br />vi /usr/local/couchdb/etc/couchdb/default.ini<br /><br /># -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5984 -j ACCEPT <br />vi /etc/sysconfig/iptables<br />/sbin/service iptables restart<br /><br />ln -s /usr/local/couchdb/etc/rc.d/couchdb /etc/init.d/couchdb<br /><br />/sbin/chkconfig --add couchdb<br />/sbin/service couchdb start<br /><br />curl http://localhost{IP}:5984{PORT}/  <br />{"couchdb":"Welcome","version":"1.0.2"}</span>
				<br />
		</div>
		<br />
<img src ="http://www.blogjava.net/ideame/aggbug/349912.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2011-05-10 14:05 <a href="http://www.blogjava.net/ideame/archive/2011/05/10/349912.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>No more 'unable to find valid certification path to requested target'</title><link>http://www.blogjava.net/ideame/archive/2010/02/09/312414.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Tue, 09 Feb 2010 06:55:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2010/02/09/312414.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/312414.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2010/02/09/312414.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/312414.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/312414.html</trackback:ping><description><![CDATA[
		<a target="_blank" title="原文地址" href="http://blogs.sun.com/andreas/entry/no_more_unable_to_find">From: http://blogs.sun.com/andreas/entry/no_more_unable_to_find</a>
		<br />
		<p class="entryContent">
		</p>
		<p align="justify">
Some of you may be familiar with the (not very user friendly) exception 
message <br /><code>javax.net.ssl.SSLHandshakeException:<br /> 
sun.security.validator.ValidatorException:<br /> PKIX path building failed:<br /> 
sun.security.provider.certpath.SunCertPathBuilderException:<br /> unable to 
find valid certification path to requested target</code></p>
		<p align="justify">when trying to open an SSL connection to a host using JSSE.
What this usually means is that the server is using a test certificate 
(possibly generated using keytool) rather than a certificate from a well
 known commercial Certification Authority such as
<a href="http://www.verisign.com/">Verisign</a> or
<a href="http://www.godaddyssl.com/">GoDaddy</a>. Web browsers display 
warning dialogs in this case, but since JSSE cannot assume an 
interactive user is present it just throws an exception by default.

</p>
		<p align="justify">
Certificate validation is a very important part of SSL security, but I 
am not writing this entry to explain the details. If you are interested,
 you can start by reading the 
<a href="http://en.wikipedia.org/wiki/Public_key_certificate">Wikipedia 
blurb</a>. I am writing this entry to show a simple way to talk to that 
host with the test certificate, <em>if you really want to</em>.

</p>
		<p align="justify">
Basically, you want to add the server's certificate to the KeyStore with
 your trusted certificates. There are any number of ways to achieve 
that, but a simple solution is to compile and run the 
<a href="http://blogs.sun.com/andreas/resource/InstallCert.java">attached
 program</a> as
<code>java InstallCert hostname</code>, for example <br /></p>
		<div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;">
				<!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>-->
				<font face="Courier New">
						<span style="color: rgb(0, 0, 0);">% java InstallCert ecc.fedora.redhat.com<br />Loading KeyStore /usr/jdk/instances/jdk1</span>
						<span style="color: rgb(0, 0, 0);">.5.0</span>
						<span style="color: rgb(0, 0, 0);">/jre/lib/security/cacerts<img src="../../Images/dot.gif" /><br />Opening connection to ecc.fedora.redhat.com:</span>
						<span style="color: rgb(0, 0, 0);">443</span>
						<span style="color: rgb(0, 0, 0);">
								<img src="../../Images/dot.gif" />
								<br />Starting SSL handshake<img src="../../Images/dot.gif" /><br /><br />javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: <br />sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target<br />    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:</span>
						<span style="color: rgb(0, 0, 0);">150</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">1476</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">174</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">168</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">846</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">106</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">495</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">433</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">815</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">1025</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">1038</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at InstallCert.main(InstallCert.java:</span>
						<span style="color: rgb(0, 0, 0);">63</span>
						<span style="color: rgb(0, 0, 0);">)<br />Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: <br />unable to find valid certification path to requested target<br />    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:</span>
						<span style="color: rgb(0, 0, 0);">221</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:</span>
						<span style="color: rgb(0, 0, 0);">145</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at sun.security.validator.Validator.validate(Validator.java:</span>
						<span style="color: rgb(0, 0, 0);">203</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">172</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at InstallCert$SavingTrustManager.checkServerTrusted(InstallCert.java:</span>
						<span style="color: rgb(0, 0, 0);">158</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:</span>
						<span style="color: rgb(0, 0, 0);">320</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:</span>
						<span style="color: rgb(0, 0, 0);">839</span>
						<span style="color: rgb(0, 0, 0);">)<br />    <img src="../../Images/dot.gif" /> </span>
						<span style="color: rgb(0, 0, 0);">7</span>
						<span style="color: rgb(0, 0, 0);"> more<br />Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target<br />    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:</span>
						<span style="color: rgb(0, 0, 0);">236</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:</span>
						<span style="color: rgb(0, 0, 0);">194</span>
						<span style="color: rgb(0, 0, 0);">)<br />    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:</span>
						<span style="color: rgb(0, 0, 0);">216</span>
						<span style="color: rgb(0, 0, 0);">)<br />    <img src="../../Images/dot.gif" /> </span>
						<span style="color: rgb(0, 0, 0);">13</span>
						<span style="color: rgb(0, 0, 0);"> more<br /><br />Server sent </span>
						<span style="color: rgb(0, 0, 0);">2</span>
						<span style="color: rgb(0, 0, 0);"> certificate(s):<br /><br /> </span>
						<span style="color: rgb(0, 0, 0);">1</span>
						<span style="color: rgb(0, 0, 0);"> Subject CN</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">ecc.fedora.redhat.com</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> O</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">example.com</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> C</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">US<br />   Issuer  CN</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">Certificate Shack</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> O</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">example.com</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> C</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">US<br />   sha1    2e 7f </span>
						<span style="color: rgb(0, 0, 0);">76</span>
						<span style="color: rgb(0, 0, 0);"> 9b </span>
						<span style="color: rgb(0, 0, 0);">52</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">91</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">09</span>
						<span style="color: rgb(0, 0, 0);"> 2e 5d 8f 6b </span>
						<span style="color: rgb(0, 0, 0);">61</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">39</span>
						<span style="color: rgb(0, 0, 0);"> 2d 5e </span>
						<span style="color: rgb(0, 0, 0);">06</span>
						<span style="color: rgb(0, 0, 0);"> e4 d8 e9 c7 <br />   md5     dd d1 a8 </span>
						<span style="color: rgb(0, 0, 0);">03</span>
						<span style="color: rgb(0, 0, 0);"> d7 6c 4b </span>
						<span style="color: rgb(0, 0, 0);">11</span>
						<span style="color: rgb(0, 0, 0);"> a7 3d </span>
						<span style="color: rgb(0, 0, 0);">74</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">28</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">89</span>
						<span style="color: rgb(0, 0, 0);"> d0 </span>
						<span style="color: rgb(0, 0, 0);">67</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">54</span>
						<span style="color: rgb(0, 0, 0);"> <br /><br /> </span>
						<span style="color: rgb(0, 0, 0);">2</span>
						<span style="color: rgb(0, 0, 0);"> Subject CN</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">Certificate Shack</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> O</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">example.com</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> C</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">US<br />   Issuer  CN</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">Certificate Shack</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> O</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">example.com</span>
						<span style="color: rgb(0, 0, 0);">,</span>
						<span style="color: rgb(0, 0, 0);"> C</span>
						<span style="color: rgb(0, 0, 0);">=</span>
						<span style="color: rgb(0, 0, 0);">US<br />   sha1    fb </span>
						<span style="color: rgb(0, 0, 0);">58</span>
						<span style="color: rgb(0, 0, 0);"> a7 </span>
						<span style="color: rgb(0, 0, 0);">03</span>
						<span style="color: rgb(0, 0, 0);"> c4 4e 3b 0e e3 2c </span>
						<span style="color: rgb(0, 0, 0);">40</span>
						<span style="color: rgb(0, 0, 0);"> 2f </span>
						<span style="color: rgb(0, 0, 0);">87</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">64</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">13</span>
						<span style="color: rgb(0, 0, 0);"> 4d df e1 a1 a6 <br />   md5     </span>
						<span style="color: rgb(0, 0, 0);">72</span>
						<span style="color: rgb(0, 0, 0);"> a0 </span>
						<span style="color: rgb(0, 0, 0);">95</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">43</span>
						<span style="color: rgb(0, 0, 0);"> 7e </span>
						<span style="color: rgb(0, 0, 0);">41</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">88</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">18</span>
						<span style="color: rgb(0, 0, 0);"> ae 2f 6d </span>
						<span style="color: rgb(0, 0, 0);">98</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">01</span>
						<span style="color: rgb(0, 0, 0);"> 2c </span>
						<span style="color: rgb(0, 0, 0);">89</span>
						<span style="color: rgb(0, 0, 0);"> </span>
						<span style="color: rgb(0, 0, 0);">68</span>
						<span style="color: rgb(0, 0, 0);"> <br /><br />Enter certificate to add to trusted keystore or 'q' to quit: </span>
						<span style="color: rgb(128, 0, 0); font-weight: bold;">[</span>
						<span style="color: rgb(128, 0, 0);">1</span>
						<span style="color: rgb(128, 0, 0); font-weight: bold;">]</span>
				</font>
				<span style="color: rgb(0, 0, 0);">
						<br />
				</span>
		</div>
		<p>
What happened was that the program opened a connection to the specified 
host and started an SSL handshake. It printed the exception stack trace 
of the error that occured and shows you the certificates used by the 
server. Now it prompts you for the certificate you want to add to your 
trusted KeyStore. <strong>You should only do this if you are sure that 
this is the certificate of the trusted host you want to connect to.</strong>
 You may want to check the MD5 and SHA1 certificate fingerprints against
 a fingerprint generated on the server (e.g. using keytool) to make sure
 it is the correct certificate.

</p>
		<p>
If you've changed your mind, enter 'q'. If you really want to add the 
certificate, enter '1'. (You could also add a CA certificate by entering
 a different certificate, but you usually don't want to do that'). Once 
you have made your choice, the program will print the following:

</p>...<br /><br />Added certificate to keystore 'jssecacerts' using alias 'ecc.fedora.redhat.com-1'


<p>
It displayed the complete certificate and then added it to a Java 
KeyStore 'jssecacerts' in the current directory. To use it in your 
program, either configure JSSE to use it as its trust store (as 
explained in the
<a href="http://download.java.net/jdk6/docs/technotes/guides/security/jsse/JSSERefGuide.html">documentation</a>)
 or copy it into your <code>$JAVA_HOME/jre/lib/security</code> 
directory. If you want all Java applications to recognize the 
certificate as trusted and not just JSSE, you could also overwrite the <code>cacerts</code>
 file in that directory.

</p><p>
After all that, JSSE will be able to complete a handshake with the host,
 which you can verify by running the program again:

</p><div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);"> java InstallCert ecc.fedora.redhat.com Loading KeyStore jssecacerts<img src="http://www.blogjava.net/images/dot.gif" /><br /> Opening connection to ecc.fedora.redhat.com:</span><span style="color: rgb(0, 0, 0);">443</span><span style="color: rgb(0, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /><br /> Starting SSL handshake<img src="http://www.blogjava.net/images/dot.gif" /><br /> No errors, certificate is already trusted Server sent </span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);"> certificate(s): </span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);"> [<img src="http://www.blogjava.net/images/dot.gif" />] <br /><br />Enter certificate to add to trusted keystore or 'q' to quit: [</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">] q KeyStore not changed </span></div><br /><img src ="http://www.blogjava.net/ideame/aggbug/312414.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2010-02-09 14:55 <a href="http://www.blogjava.net/ideame/archive/2010/02/09/312414.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于 Maven + Proguard</title><link>http://www.blogjava.net/ideame/archive/2010/02/01/311486.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Mon, 01 Feb 2010 03:53:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2010/02/01/311486.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/311486.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2010/02/01/311486.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/311486.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/311486.html</trackback:ping><description><![CDATA[    以前试过在Ant下使用Proguard，感觉挺简单的，使用Maven后，明显复杂多了，复杂不在Proguard，而在proguard-maven-plugin。<br />    配置如下：<br /><br /><div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">plugin</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">groupId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">com.pyx4me</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">groupId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">artifactId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">proguard-maven-plugin</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">artifactId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">executions</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">execution</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">phase</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">package</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">phase</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">goals</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />                </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">goal</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">proguard</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">goal</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">goals</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">execution</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">executions</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">obfuscate</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">true</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">obfuscate</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">proguardInclude</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">${basedir}/proguard.pro</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">proguardInclude</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">libs</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">${java.home}/lib/rt.jar</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">${java.home}/lib/jsse.jar</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />            </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">${java.home}/lib/jce.jar</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">lib</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">libs</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">plugin</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span></div><br />出现异常：<br /><br /><div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /><img src="http://www.blogjava.net/images/dot.gif" /><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> Obfuscating<img src="http://www.blogjava.net/images/dot.gif" /><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> Printing mapping to </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">D:\cces\linker\target\proguard_map.txt</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><img src="http://www.blogjava.net/images/dot.gif" /><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> Preverifying<img src="http://www.blogjava.net/images/dot.gif" /><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> Unexpected error while performing partial evaluation:<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Class </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">net/sicross/tms/service/cces/SearchFlightOrderDetailService</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Method </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">getRouteDetail(Ljava/util/Map;)Ljava/util/List;</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Exception </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java.lang.IllegalArgumentException</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> (Can't find common super class of </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/util/List</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> and </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/lang/StringBuffer</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> Unexpected error while preverifying:<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Class  </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">net/sicross/tms/service/cces/SearchFlightOrderDetailService</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Method </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">getRouteDetail(Ljava/util/Map;)Ljava/util/List;</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">   Exception </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java.lang.IllegalArgumentException</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> (Can't find common super class of </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/util/List</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> and </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/lang/StringBuffer</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> java.lang.IllegalArgumentException: Can't find common super class of </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/util/List</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"> and </span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">java/lang/StringBuffer</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">     at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:</span><span style="color: rgb(0, 0, 0);">330</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">     at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:</span><span style="color: rgb(0, 0, 0);">467</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">     at proguard.evaluation.Variables.generalize(Variables.java:</span><span style="color: rgb(0, 0, 0);">137</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">     at proguard.evaluation.TracedVariables.generalize(TracedVariables.java:</span><span style="color: rgb(0, 0, 0);">140</span><span style="color: rgb(0, 0, 0);">)<br /></span><span style="color: rgb(128, 0, 0); font-weight: bold;">[</span><span style="color: rgb(128, 0, 0);">proguard</span><span style="color: rgb(128, 0, 0); font-weight: bold;">]</span><span style="color: rgb(0, 0, 0);">     at proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlock(PartialEvaluator.java:</span><span style="color: rgb(0, 0, 0);">637</span><span style="color: rgb(0, 0, 0);">)<br /><img src="http://www.blogjava.net/images/dot.gif" /><img src="http://www.blogjava.net/images/dot.gif" /></span></div><br />    根据异常，先是怀疑有什么jre的包没有导入，增加了另外几个也不行。在怀疑是jdk编译版本的问题，因为输出目标jdk版本是1.6的，在proguard-maven-plugin的configuration中增加下面的配置也没有。<br /><br /><div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">options</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">option</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">-target 1.6</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">option</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">options</span><span style="color: rgb(0, 0, 255);">&gt;</span></div><br />    最后，将maven的target=1.6改为1.5后，异常消失。<br /><br /><div style="background-color: rgb(238, 238, 238); font-size: 13px; border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">plugin</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">groupId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">org.apache.maven.plugins</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">groupId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">version</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">2.0.2</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">version</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">artifactId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">maven-compiler-plugin</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">artifactId</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">source</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">1.5</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">source</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">target</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">1.6</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">target</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">encoding</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">UTF-8</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">encoding</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">configuration</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">plugin</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br /></span></div><br /><br />Powered by ScribeFire.<br /><img src ="http://www.blogjava.net/ideame/aggbug/311486.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2010-02-01 11:53 <a href="http://www.blogjava.net/ideame/archive/2010/02/01/311486.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>PowerCenter 安装数据库配置的问题</title><link>http://www.blogjava.net/ideame/archive/2008/05/30/208107.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Fri, 30 May 2008 08:20:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2008/05/30/208107.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/208107.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2008/05/30/208107.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/208107.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/208107.html</trackback:ping><description><![CDATA[安装了几次老是启动有问题：<br /><div class="InfFailedMsg" id="repoServiceStatusMsgId"><font size="2" color="#ff0000" face="Arial"><strong>The service did not start due to the following error: Unable to connect to the repository isaservice on database jamax.. Check the </strong></font><a href="javascript:acServiceActions.showlog()"><font size="2" color="#ff0000" face="Arial"><strong>log</strong></font></a><font size="2" color="#ff0000" face="Arial"><strong> for more information. </strong></font></div><div class="InfNodeStatusMsg" id="repoServiceStatusMsgId"><font size="2" color="#ff0000" face="Arial"><strong><img alt="node01" src="http://jamax:6001/adminconsole/images/circleRed.gif" /> node01<br /></strong></font></div>或者<br /><a href="javascript:acServiceActions.showlog()"><font size="2" color="#ff0000" face="Arial"><strong></strong></font></a><font size="2" color="#ff0000" face="Arial"><strong>The service did not start due to the following error: DataBase error: [IBM][CLI Driver][LU62SPM] SQL30070N 不支持 "Unsupported function for SPMDB connect" 命令。 SQLSTATE=58014 sqlstate = 40003 Database driver error... Function Name : Execute SQL Stmt : VALUES CURRENT TIMESTAMP DB2 Fatal Error.. Check the log for more information.<br />node01 node01 <br /><br /></strong></font>日志：<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; font-family: Tahoma; background-color: rgb(238, 238, 238);"><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">DOM_10079 Unable to start service </span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">isaservice</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);"> on any node specified for the service.<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />DOM_10055 Unable to start service process </span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">isaservice</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);"> on node </span><span style="font-weight: bold; color: rgb(128, 0, 0);">[</span><span style="color: rgb(128, 0, 0);">node01</span><span style="font-weight: bold; color: rgb(128, 0, 0);">]</span><span style="color: rgb(0, 0, 0);">.<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />SPC_10013 Process for service isaservice failed to start.</span></div><br />原来怀疑是安装的问题，后来才发现是因为元数据库和源数据的连接错误地设置成同一个数据库，造成元数据库损坏造成的。出错后试了几种办法都不行，只能重新再装，原来的元数据就没法用了，这是一个很严重的后果！正确的做法应该如下（本机）：<br /><br />1. 设置元数据仓库：<br /><br /><img style="max-width: 800px;" alt="" src="http://www.blogjava.net/images/blogjava_net/ideame/powercenter.setup.GIF" /><br /><br />Database URL 格式是HOST_NAME:PORT_NAME，如果用的是默认端口那么只需要填HOST_NAME就可以了。<br />Database user ID: 填一个有管理员权限的用户（sys好像不行，可以用system）<br />Database service name: 填全局数据库名, 对应下面的SERVICE_NAME<br /><br /><font face="Courier New"><small><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><font style="background-color: rgb(225, 225, 225);">file：tnsnames.ora<br /></font><br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">INFORMAT </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  (DESCRIPTION </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    (ADDRESS </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> (PROTOCOL </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> TCP)(HOST </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> jamax)(PORT </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">1521</span><span style="color: rgb(0, 0, 0);">))<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    (CONNECT_DATA </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      (SERVER </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> DEDICATED)<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />      (SERVICE_NAME </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> informatic.jamax)<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    )<br /><img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />  )</span></div></small></font><br />2. 新建源数据库的知识库（Repository ）配置。<br /><br /><img alt="" src="http://www.blogjava.net/images/blogjava_net/ideame/powercenter.setup.2.gif" border="0" /><br /><br />这里2的数据库配置应该是连接源数据库的，如果设置为1的配置就会出错。<br /><br /><br /><img src ="http://www.blogjava.net/ideame/aggbug/208107.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2008-05-30 16:20 <a href="http://www.blogjava.net/ideame/archive/2008/05/30/208107.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jre 1.6 的 webstart 自动安装参考</title><link>http://www.blogjava.net/ideame/archive/2007/11/27/163537.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Tue, 27 Nov 2007 12:15:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2007/11/27/163537.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/163537.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2007/11/27/163537.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/163537.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/163537.html</trackback:ping><description><![CDATA[
		<p> </p>
		<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
				<span style="color: rgb(0, 0, 255);">&lt;?</span>
				<span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="utf-8"</span>
				<span style="color: rgb(0, 0, 255);">?&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">jnlp </span>
				<span style="color: rgb(255, 0, 0);">codebase</span>
				<span style="color: rgb(0, 0, 255);">="http://javadl.sun.com/webapps/jawsautodl/AutoDL/j2se"</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">information</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">title</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">J2RE 1.6.0 Installer</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">title</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">vendor</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">Sun Microsystems, Inc.</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">vendor</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">information</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">security</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />      </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">all-permissions</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">security</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">resources</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">j2se </span>
				<span style="color: rgb(255, 0, 0);">version</span>
				<span style="color: rgb(0, 0, 255);">="1.3+"</span>
				<span style="color: rgb(255, 0, 0);"> href</span>
				<span style="color: rgb(0, 0, 255);">="http://java.sun.com/products/autodl/j2se"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">jar </span>
				<span style="color: rgb(255, 0, 0);">href</span>
				<span style="color: rgb(0, 0, 255);">="javaws-1_0_1-j2re-1_6_0-inst-windows-i586.jar"</span>
				<span style="color: rgb(255, 0, 0);"> download</span>
				<span style="color: rgb(0, 0, 255);">="lazy"</span>
				<span style="color: rgb(255, 0, 0);"> size</span>
				<span style="color: rgb(0, 0, 255);">="40719"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">jar </span>
				<span style="color: rgb(255, 0, 0);">href</span>
				<span style="color: rgb(0, 0, 255);">="javaws-1_0_1-j2re-1_6_0-data-windows-i586.jar"</span>
				<span style="color: rgb(255, 0, 0);"> download</span>
				<span style="color: rgb(0, 0, 255);">="lazy"</span>
				<span style="color: rgb(255, 0, 0);"> size</span>
				<span style="color: rgb(0, 0, 255);">="12263551"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="javaVersion"</span>
				<span style="color: rgb(255, 0, 0);">       value</span>
				<span style="color: rgb(0, 0, 255);">="1.6.0"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="platformVersion"</span>
				<span style="color: rgb(255, 0, 0);">   value</span>
				<span style="color: rgb(0, 0, 255);">="1.6"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="installerLocation"</span>
				<span style="color: rgb(255, 0, 0);"> value</span>
				<span style="color: rgb(0, 0, 255);">="javaws-1_0_1-j2re-1_6_0-data-windows-i586.jar"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="installerEntry"</span>
				<span style="color: rgb(255, 0, 0);">    value</span>
				<span style="color: rgb(0, 0, 255);">="jre.dat"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="licenseEntry"</span>
				<span style="color: rgb(255, 0, 0);">         value</span>
				<span style="color: rgb(0, 0, 255);">="LICENSE"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="lib"</span>
				<span style="color: rgb(255, 0, 0);">               value</span>
				<span style="color: rgb(0, 0, 255);">="j2re-installer"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="msvcrt.versionMS"</span>
				<span style="color: rgb(255, 0, 0);">  value</span>
				<span style="color: rgb(0, 0, 255);">="60000"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="msvcrt.versionLS"</span>
				<span style="color: rgb(255, 0, 0);">  value</span>
				<span style="color: rgb(0, 0, 255);">="20910000"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="execString"</span>
				<span style="color: rgb(255, 0, 0);">        value</span>
				<span style="color: rgb(0, 0, 255);">="{0} {1}"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="javaPath"</span>
				<span style="color: rgb(255, 0, 0);">          value</span>
				<span style="color: rgb(0, 0, 255);">="bin\javaw.exe"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="verbose"</span>
				<span style="color: rgb(255, 0, 0);">           value</span>
				<span style="color: rgb(0, 0, 255);">="true"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="hopper"</span>
				<span style="color: rgb(255, 0, 0);">            value</span>
				<span style="color: rgb(0, 0, 255);">="true"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">property </span>
				<span style="color: rgb(255, 0, 0);">name</span>
				<span style="color: rgb(0, 0, 255);">="isWindowsInstall"</span>
				<span style="color: rgb(255, 0, 0);">  value</span>
				<span style="color: rgb(0, 0, 255);">="true"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />    </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">nativelib </span>
				<span style="color: rgb(255, 0, 0);">href</span>
				<span style="color: rgb(0, 0, 255);">="javaws-1_0_1-j2re-1_6_0-native-windows-i586.jar"</span>
				<span style="color: rgb(255, 0, 0);"> size</span>
				<span style="color: rgb(0, 0, 255);">="13932"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">resources</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />  </span>
				<span style="color: rgb(0, 0, 255);">&lt;</span>
				<span style="color: rgb(128, 0, 0);">installer-desc </span>
				<span style="color: rgb(255, 0, 0);">main-class</span>
				<span style="color: rgb(0, 0, 255);">="com.sun.webstart.installers.Main"</span>
				<span style="color: rgb(0, 0, 255);">/&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
				</span>
				<span style="color: rgb(0, 0, 255);">&lt;/</span>
				<span style="color: rgb(128, 0, 0);">jnlp</span>
				<span style="color: rgb(0, 0, 255);">&gt;</span>
				<span style="color: rgb(0, 0, 0);">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" />Powered by ScribeFire.<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" align="top" /></span>
		</div>
<img src ="http://www.blogjava.net/ideame/aggbug/163537.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2007-11-27 20:15 <a href="http://www.blogjava.net/ideame/archive/2007/11/27/163537.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JVM参数优化</title><link>http://www.blogjava.net/ideame/archive/2007/04/13/110343.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Fri, 13 Apr 2007 01:05:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2007/04/13/110343.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/110343.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2007/04/13/110343.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/110343.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/110343.html</trackback:ping><description><![CDATA[
		<p>来源: <a href="http://tech.163.com/07/0309/14/395C0EHQ0009159F.html#" target="_blank">网奇</a></p>
		<p>设置服务器端的 JVM:JAVA_OPTS="-server -Xms3000m -Xmx3000m -Xss512k"</p>
		<p style="text-indent: 2em;">-server:一定要作为第一个参数，在多个CPU时性能佳</p>
		<p style="text-indent: 2em;">-Xms：初始Heap大小，使用的最小内存</p>
		<p style="text-indent: 2em;">-Xmx：java heap最大值，使用的最大内存</p>
		<p style="text-indent: 2em;">上面两个值一般设置为同样的大小。</p>
		<p style="text-indent: 2em;">-Xss：每个线程的Stack大小</p>
		<p style="text-indent: 2em;">-verbose:gc 现实垃圾收集信息</p>
		<p style="text-indent: 2em;">-Xloggc:gc.log 指定垃圾收集日志文件</p>
		<p style="text-indent: 2em;">刚刚了解到的一些参数（待实践测试）</p>
		<p style="text-indent: 2em;">-Xmn：young generation的heap大小，一般设置为Xmx的3、4分之一</p>
		<p style="text-indent: 2em;">-XX:+UseParNewGC ：缩短minor收集的时间</p>
		<p style="text-indent: 2em;">-XX:+UseConcMarkSweepGC ：缩短major收集的时间</p>
		<p style="text-indent: 2em;">提示：此选项在Heap Size 比较大而且Major收集时间较长的情况下使用更合适</p>
<img src ="http://www.blogjava.net/ideame/aggbug/110343.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2007-04-13 09:05 <a href="http://www.blogjava.net/ideame/archive/2007/04/13/110343.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SVN WEB 安装：“mod_dav_svn.so is garbled”</title><link>http://www.blogjava.net/ideame/archive/2007/03/28/106911.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Wed, 28 Mar 2007 03:58:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2007/03/28/106911.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/106911.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2007/03/28/106911.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/106911.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/106911.html</trackback:ping><description><![CDATA[
		<p>根据网上的一些资料，按照如下步骤</p>
		<ol>
				<li>首先将<span style="font-family: Times New Roman,serif;">Subversion</span>安装目录<span style="font-family: Times New Roman,serif;">bin\</span>下面的两个文件：<span style="font-family: Times New Roman,serif;"><strong>mod_authz_svn.so</strong></span>和<span style="font-family: Times New Roman,serif;"><strong>mod_dav_svn.so</strong></span>复制到<span style="font-family: Times New Roman,serif;">Apache</span>安装目录<span style="font-family: Times New Roman,serif;">modules\</span>目录下。<br /></li>
				<li>找到Apache安装目录下的conf目录，用文本编辑器打开httpd.conf，找到一下两行：<br /><br />#LoadModule dav_module modules/mod_dav.so<br />#LoadModule dav_fs_module modules/mod_dav_fs.so<br /><br />将每行前面的注释符"#"去掉。再在所有LoadModule语句的最后添加一下几行：<br /><br /><code>#SVN<br />LoadModule dav_svn_module modules/mod_dav_svn.so<br />LoadModule authz_svn_module modules/mod_authz_svn.so<br />&lt;Location /svn&gt;<br />DAV svn<br />SVNParentPath "E:/svnrepos"<br />&lt;/Location&gt;</code><br /></li>
		</ol>
		<p>但是使用启动测试一直有错，返回</p>
		<p>
				<strong>
						<span style="color: rgb(255, 0, 0);">Syntax error on line 143 of C:\apache\conf\httpd.conf: API module structure 'dav_svn_module' in file C:\apache\modules\mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO?<br />Apache could not be started</span>
						<br />
				</strong>
				<br />后来再看资料，好像是SVN1.4.3提供的so文件只支持APACHE2.0，并不支持2.2版本的，除非重新编译。好在已经有人解决了，<a title="下载" href="http://www.tomdonovan.net/download/mod_dav_svn-1.3.2.x-w32.zip">下载</a>了一个支持APACHE2.2的，但却是SVN1.3.2的，死马当活马医了，放到SVN1.4中居然也可以，hoho~~。我是把所有和SVN有关的文件（含动态连接库文件）全部放在了APACHE安装目录的svn目录里，配置文件如下：</p>
		<p>
				<code>LoadModule dav_svn_module svn/mod_dav_svn_1.3.so<br />LoadModule authz_svn_module svn/mod_authz_svn_1.3.so<br />&lt;Location /svn&gt;<br />DAV svn<br />SVNParentPath "E:/svnrepos"<br />&lt;/Location&gt;</code>
				<br />
		</p>
		<p class="zoundry_bw_tags">
				<!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com -->
				<span class="ztags">
						<span class="ztagspace">Technorati</span> : <a class="ztag" href="http://technorati.com/tag/SVN%20APACHE" rel="tag">SVN APACHE</a></span>
		</p>
<img src ="http://www.blogjava.net/ideame/aggbug/106911.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2007-03-28 11:58 <a href="http://www.blogjava.net/ideame/archive/2007/03/28/106911.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>离线发布</title><link>http://www.blogjava.net/ideame/archive/2007/03/23/105832.html</link><dc:creator>ideame</dc:creator><author>ideame</author><pubDate>Fri, 23 Mar 2007 06:45:00 GMT</pubDate><guid>http://www.blogjava.net/ideame/archive/2007/03/23/105832.html</guid><wfw:comment>http://www.blogjava.net/ideame/comments/105832.html</wfw:comment><comments>http://www.blogjava.net/ideame/archive/2007/03/23/105832.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ideame/comments/commentRss/105832.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ideame/services/trackbacks/105832.html</trackback:ping><description><![CDATA[
		<p>测试一下是否可以用离线工具zoundry。</p>
		<p>API地址： <a id="Edit_lnkMetaWeblog" href="/ideame/services/metaweblog.aspx" name="Edit_lnkMetaWeblog">http://www.blogjava.net/ideame/services/metaweblog.aspx</a><br /><br /><br />isOK。wonderful !</p>
<img src ="http://www.blogjava.net/ideame/aggbug/105832.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ideame/" target="_blank">ideame</a> 2007-03-23 14:45 <a href="http://www.blogjava.net/ideame/archive/2007/03/23/105832.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>