<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wd and cc &#187; resin</title>
	<atom:link href="http://wdicc.com/tag/resin/feed/" rel="self" type="application/rss+xml" />
	<link>http://wdicc.com</link>
	<description>Happy every day...</description>
	<lastBuildDate>Wed, 01 Feb 2012 03:27:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>为resin配置oracle连接池</title>
		<link>http://wdicc.com/resin-and-oracle/</link>
		<comments>http://wdicc.com/resin-and-oracle/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 06:44:36 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[resin]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/resin-and-oracle/</guid>
		<description><![CDATA[resin 2.x 的配置方法和 3.x 的方法有区别。按照官方文档，做下面的配置。 &#60;database&#62; &#60;jndi-name&#62;oraPool&#60;/jndi-name&#62; &#60;driver&#62; &#60;type&#62;oracle.jdbc.pool.OracleConnectionPoolDataSource&#60;/type&#62; &#60;url&#62;jdbc:oracle:thin:@localhost:1521:dbname&#60;/url&#62; &#60;user&#62;username&#60;/user&#62; &#60;password&#62;password&#60;/password&#62; &#60;/driver&#62; #.... &#60;/database&#62; &#160;在上面的 &#8230;. 这里还可以添加其他的配置信息。配置好之后启动resin，会发现提示类似下面的信息。 conf/resin.conf:218: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleConnectionPoolDataSource 提示没有找到连接oracle数据库的jdbc驱动。这个驱动在oracle的安装目录里面有。比如我这里是在 /db/oracle/10.1.0/product/10g/jdbc/lib/ 。里面好多文件，具体都什么作用可以看这里。 复制这个目录里面的 classes12.jar 和 nls_charset12.jar 到resin的 lib 目录下面，重新启动 resin 就可以了。本文完成过程中参考了这篇文章。如何使用这个pool，官方文档也有说明。]]></description>
			<content:encoded><![CDATA[<p>resin 2.x 的配置方法和 3.x 的方法有区别。按照<a href="http://www.caucho.com/resin-3.1/doc/db-thirdparty.xtp">官方文档</a>，做下面的配置。</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="txt">&lt;database&gt;
  &lt;jndi-name&gt;oraPool&lt;/jndi-name&gt;
  &lt;driver&gt;
    &lt;type&gt;oracle.jdbc.pool.OracleConnectionPoolDataSource&lt;/type&gt;
    &lt;url&gt;jdbc:oracle:thin:@localhost:1521:dbname&lt;/url&gt;
    &lt;user&gt;username&lt;/user&gt;
    &lt;password&gt;password&lt;/password&gt;
  &lt;/driver&gt;
#....
&lt;/database&gt;</pre></div></div>

<p>&nbsp;在上面的 <font color="#ff0000">&#8230;. </font>这里还可以添加<a href="http://www.caucho.com/resin-3.1/doc/database-tags.xtp">其他的</a>配置信息。配置好之后启动resin，会发现提示类似下面的信息。</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="txt">conf/resin.conf:218: java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleConnectionPoolDataSource</pre></div></div>

<p>提示没有找到连接oracle数据库的jdbc驱动。这个驱动在oracle的安装目录里面有。比如我这里是在 /db/oracle/10.1.0/product/10g/jdbc/lib/ 。里面好多文件，具体都什么作用可以看<a href="http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_07">这里</a>。</p>
<p>复制这个目录里面的 classes12.jar 和 nls_charset12.jar 到resin的 lib 目录下面，重新启动 resin 就可以了。本文完成过程中参考了<a href="http://dev.csdn.net/article/29/29762.shtm">这篇</a>文章。如何使用这个pool，官方文档也有<a href="http://www.caucho.com/resin-3.1/doc/config-database.xtp#usage/lookup">说明</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/resin-and-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>resin 的安装步骤</title>
		<link>http://wdicc.com/install-resin/</link>
		<comments>http://wdicc.com/install-resin/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 08:15:46 +0000</pubDate>
		<dc:creator>wd</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[resin]]></category>

		<guid isPermaLink="false">http://blog.wdicc.com/wordpress/install-resin/</guid>
		<description><![CDATA[resin目前已经到了3.1版本，从resin网站上面下载的resin不带jdk，需要自己去下载。resin的下载页面在这里。下载最新的 Resin Pro 3.1.1 版本。 jdk的下载地址在 这里&#160;，resin 3.1需要1.5及以上版本的jdk。 先来安装resin： tar zxvf resin-pro-3.1.1 cd resin-pro-3.1.1 ./configure --prefix=/usr/local/resin #安装的目的地址 make &#38;amp;&#38;amp; make install 安装完resin之后，安装jdk： cd /usr/local chmod +x /root/jdk-6u1-linux-i586.bin /root/jdk-6u1-linux-i586.bin 此后会在/usr/local/下面建立一个jdk1.6.0_01目录，jdk就安装完毕了。 resin 的配置文件在 /usr/loca/resin/conf 下面，主要是 resin.conf 。默认的端口是8080。 &#60;http port=&#34;8080&#34; address=&#34;*&#34;&#62; 然后就是添加自己的应用地址了。 &#60;host id=&#34;&#34; root-directory=&#34;.&#34;&#62; &#60;web-app id=&#34;/&#34; root-directory=&#34;webapps/ROOT&#34;&#62; 在这下面添加一行 &#60;web-app id=&#34;/test&#34; root-directory=&#34;/www/test/&#34;&#62; 此后呢，访问 http://ip:8080/test 就可以访问到你的应用了。]]></description>
			<content:encoded><![CDATA[<p>resin目前已经到了3.1版本，从resin网站上面下载的resin不带jdk，需要自己去下载。resin的下载页面在<a href="http://www.caucho.com/download/index.xtp">这里</a>。下载最新的 Resin Pro 3.1.1 版本。</p>
<p>jdk的下载地址在 <a href="http://java.sun.com/javase/downloads/index.jsp">这里</a>&nbsp;，resin 3.1需要1.5及以上版本的jdk。</p>
<p>先来安装resin：</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="bash"><span class="kw2">tar</span> zxvf resin-pro-3.1.1
<span class="kw3">cd</span> resin-pro-3.1.1
.<span class="sy0">/</span>configure <span class="re5">--prefix</span>=<span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>resin <span class="co0">#安装的目的地址</span>
<span class="kw2">make</span> <span class="sy0">&amp;</span>amp;<span class="sy0">&amp;</span>amp; <span class="kw2">make</span> <span class="kw2">install</span></pre></div></div>

<p>安装完resin之后，安装jdk：</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="bash"><span class="kw3">cd</span> <span class="sy0">/</span>usr<span class="sy0">/</span><span class="kw3">local</span>
<span class="kw2">chmod</span> +x <span class="sy0">/</span>root<span class="sy0">/</span>jdk-6u1-linux-i586.bin
<span class="sy0">/</span>root<span class="sy0">/</span>jdk-6u1-linux-i586.bin</pre></div></div>

<p>此后会在/usr/local/下面建立一个jdk1.6.0_01目录，jdk就安装完毕了。</p>
<p>resin 的配置文件在 /usr/loca/resin/conf 下面，主要是 resin.conf 。默认的端口是8080。</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="txt">&lt;http port=&quot;8080&quot; address=&quot;*&quot;&gt;</pre></div></div>

</p>
<p>然后就是添加自己的应用地址了。</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="txt">&lt;host id=&quot;&quot; root-directory=&quot;.&quot;&gt;
      &lt;web-app id=&quot;/&quot; root-directory=&quot;webapps/ROOT&quot;&gt;</pre></div></div>

</p>
<p>在这下面添加一行</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="txt">&lt;web-app id=&quot;/test&quot; root-directory=&quot;/www/test/&quot;&gt;</pre></div></div>

</p>
<p>此后呢，访问 http://ip:8080/test 就可以访问到你的应用了。 </p>
]]></content:encoded>
			<wfw:commentRss>http://wdicc.com/install-resin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

