<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆:15 文章:2 評(píng)論:14 引用:0
    BlogJava 首頁 發(fā)新隨筆
    發(fā)新文章 聯(lián)系 聚合管理

    roller4.0 安裝小記
    roller4.0 安裝總體感覺很方便。有安裝向?qū)ы撁妫詣?dòng)建立數(shù)據(jù)庫表。
    但也有一點(diǎn)小問題,install-guide 上沒有寫得太詳細(xì),也可能我看得不夠仔細(xì),呵呵
    。一個(gè)是沒有說配置連接池配置文件,另一個(gè)是中文有點(diǎn)問題。

    總結(jié)如下:
    安裝環(huán)境


    JDK 1.5.05
    tomcat-5.5.17
    mysql-5.0.27
    apache-roller-4.0

    安裝使用的是 msyql 數(shù)據(jù)庫,現(xiàn)建立數(shù)據(jù)庫和用戶

    mysql> create database rollerdb default charset utf8  collate utf8_general_ci;  
     
    文檔install-guide 上 create database rollerdb ; 建立的數(shù)據(jù)庫默認(rèn)是 lat1 字符  
    編碼,中文會(huì)有問題所以使用 utf8 編碼  
     
    給用戶授權(quán)  
     
    mysql> grant all on rollerdb.* to scott@'%' identified by 'tiger';  
    mysql> grant all on rollerdb.* to scott@localhost identified by 'tiger'; 

    mysql> create database rollerdb default charset utf8  collate utf8_general_ci;

    文檔install-guide 上 create database rollerdb ; 建立的數(shù)據(jù)庫默認(rèn)是 lat1 字符
    編碼,中文會(huì)有問題所以使用 utf8 編碼

    給用戶授權(quán)

    mysql> grant all on rollerdb.* to scott@'%' identified by 'tiger';
    mysql> grant all on rollerdb.* to scott@localhost identified by 'tiger';

     

    為了使用java mail 發(fā)送郵件,tomcat 的 common/lib 文件夾中放入 activation.jar,
    javamail.jar


    困了,先睡了回頭再寫...
    各位新年快樂!

    在 conf/server.xml 文件中的connector加入 URIEncoding=”UTF-8”, 為了I18N
    例如:
    <Connector port="8080"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" debug="0"
    acceptCount="100" connectionTimeout="20000"
    disableUploadTimeout="true"
    URIEncoding="UTF-8" />

    將roller 發(fā)行包的 roller 文件夾copy 到tomcat 的 webapps 下。

    關(guān)于JDBC 驅(qū)動(dòng) install-guiade 上說
    For MySQL 4.1.x 使用 the J/Connector 3.0.X JDBC
    For MySQL 5.X use the J/Connector 3.1.X JDBC drivers

    拷貝到 tomcat/common/lib 下

    建立一個(gè) roller-custom.properties 文件內(nèi)容如下:
    installation.type=auto
    database.configurationType=jdbc
    database.jdbc.driverClass=com.mysql.jdbc.Driver
    database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8
    database.jdbc.username=scott
    database.jdbc.password=tiger
    mail.configurationType=properties
    mail.hostname=smtp-server.example.com
    mail.username=scott
    mail.password=tiger

    roller-custom.properties 放到 tomcat/common/classes 下

    (這里有一個(gè)問題我不大明白,在roller-custom.properties
    文件里指定了數(shù)據(jù)庫連接,但是還需要制定一個(gè)數(shù)據(jù)庫的連接池
    給roller 才能正常工作,而且注意 database.jdbc.connectionURL=jdbc:mysql://localhost:3306/
    rollerdb?autoReconnect=true&useUnicode
    =true&characterEncoding=utf-8&mysqlEncoding=utf8
    屬性,如果按install-guide 的 database.jdbc.connectionURL=jdbc:mysql://localhost:3306/
    rollerdb 中文是會(huì)亂碼的)

    在\tomcat-5.5.17\conf\Catalina\localhost放入一個(gè) roller.xml
    文件,內(nèi)容如下:
    Java代碼
    <Context path="/roller" 
    docBase="roller" debug="0">  
    <Resource name="jdbc/rollerdb" auth="Container" 
    type="javax.sql.DataSource" 
    driverClassName="com.mysql.jdbc.Driver" 
    url="jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8" 
    username="root" 
    password="mysql" 
    maxActive="20" 
    maxIdle="3" 
    removeAbandoned="true" 
    maxWait="3000" />  
    <!-- If you want e-mail features, un-comment the section below -->  
    <!--  
    <Resource name="mail/Session" auth="Container" 
    type="javax.mail.Session" 
    mail.smtp.host="mailhost.example.com" />  
    -->  
    </Context> 

    <Context path="/roller"
    docBase="roller" debug="0">
    <Resource name="jdbc/rollerdb" auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8"
    username="root"
    password="mysql"
    maxActive="20"
    maxIdle="3"
    removeAbandoned="true"
    maxWait="3000" />
    <!-- If you want e-mail features, un-comment the section below -->
    <!--
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"
    mail.smtp.host="mailhost.example.com" />
    -->
    </Context>


    其實(shí)就是指定了一個(gè) jdbc/rollerdb 的 jndi datasource,
    如果沒有的話,會(huì)發(fā)現(xiàn)每次見了用戶,登陸時(shí)就登陸不了。提示
    密碼或用戶錯(cuò),但是用戶確實(shí)在數(shù)據(jù)庫表中了,我覺得
    roller-custom.properties
    和roller.xml 中的數(shù)據(jù)源配置都用到了,有點(diǎn)奇怪。
    回頭看看源碼可能就知道是怎么回事了。

    啟動(dòng)tomcat ,就可以正常安裝roller 了

    posted @ 2008-02-03 15:39 小Q 閱讀(1290) | 評(píng)論 (0)編輯 收藏
     
         摘要: Spket Eclipse Plugin & IDE
    The Spket IDE has by far the most superior code assist for Ext 2.0. It uses the Ext .jsb project file and embedded script doc to build code assist that includes options inherited from base classes and full documentation.

    It doesn’t have much for editing other types of files though (e.g. CSS), so my preference is to install it as an Eclipse plugin in Aptana. To install the plugin in Aptana:

      閱讀全文
    posted @ 2008-02-02 16:38 小Q 閱讀(14654) | 評(píng)論 (2)編輯 收藏
     
         摘要: 沒有注冊(cè)的版本,用的不爽。
    居然沒有混淆,反編譯了下,修改里面的一個(gè)Class文件,就ok了。
    com.spket.ui_1.6.6.jar --》\com\spket\ui\internal\License.class  閱讀全文
    posted @ 2008-02-02 16:21 小Q 閱讀(5108) | 評(píng)論 (4)編輯 收藏
     
         摘要: 最近在研究Roller源代碼.發(fā)現(xiàn)Roller文檔和源代碼中有一些容易讓人混淆和模糊的概念(至少對(duì)我來說),在這里記下來.


    Roller: 博客服務(wù)器, 能夠同時(shí)支持多個(gè)用戶(博客)的服務(wù)器軟件,同時(shí)可以支持組網(wǎng)志(Group Weblog,意思是多個(gè)用戶共同編輯的網(wǎng)志)

      閱讀全文
    posted @ 2008-01-21 22:49 小Q 閱讀(2370) | 評(píng)論 (0)編輯 收藏
     
         摘要:       最近研究Roller,一直手癢,想搞個(gè)Java 的博客玩玩,網(wǎng)上查了下,Roller像是比較出名,所以就選擇他了。      可惜網(wǎng)上中文的文檔不多,官方e文的文檔也不多,連API也沒有提供,所以,我覺得,先把他的三個(gè)文檔翻譯下,一來方便我學(xué)習(xí),二來,給同時(shí)給感興趣的又不敢冒e文同志的一些方便(聲明下,我...  閱讀全文
    posted @ 2008-01-20 22:46 小Q 閱讀(4030) | 評(píng)論 (0)編輯 收藏
     
         摘要:     簡單講述下發(fā)送和接受郵件的協(xié)議: SMTP     簡單郵件傳輸協(xié)議(Simple Mail Transfer Protocol,SMTP)由 RFC 821 定義。它定義了發(fā)送電子郵件的機(jī)制。在 JavaMail API 環(huán)境中,您基于 JavaMail 的程序?qū)⒑湍墓净蛞蛱鼐W(wǎng)服務(wù)供應(yīng)商的(Internet Serv...  閱讀全文
    posted @ 2007-12-31 21:19 小Q 閱讀(2854) | 評(píng)論 (1)編輯 收藏
     

        本沒有什么追求,吃飽了,穿暖了。發(fā)現(xiàn)寫寫,更健康哦。
        扯哪里去了,有什么新的想法就大家看看,人多力量大的。

    posted @ 2007-12-31 18:15 小Q 閱讀(177) | 評(píng)論 (0)編輯 收藏
    僅列出標(biāo)題
    共2頁: 上一頁 1 2 
    CALENDER
    <2025年7月>
    293012345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    常用鏈接

    留言簿(4)

    隨筆分類

    隨筆檔案

    文章分類

    新聞分類

    新聞檔案

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜


    Powered By: 博客園
    模板提供滬江博客

    主站蜘蛛池模板: 亚洲精品自拍视频| 日韩成人毛片高清视频免费看| 中文精品人人永久免费| 特级毛片全部免费播放a一级| 国产情侣久久久久aⅴ免费| 亚洲AV无码一区二区乱子伦| 99视频免费观看| 亚洲欧洲精品久久| 在线观看免费宅男视频| 久9热免费精品视频在线观看| 97在线观免费视频观看| 国产亚洲精品精品国产亚洲综合| 亚洲精品成人无限看| 男女一边桶一边摸一边脱视频免费 | 亚洲无人区午夜福利码高清完整版 | 国产乱色精品成人免费视频| 亚洲日韩看片无码电影| 毛片a级毛片免费播放下载| 亚洲永久网址在线观看| 国产极品美女高潮抽搐免费网站| 看亚洲a级一级毛片| 亚洲一级特黄大片无码毛片 | 亚洲国产综合无码一区二区二三区| 免费看一级一级人妻片| 亚洲人色婷婷成人网站在线观看| 秋霞人成在线观看免费视频| 18禁超污无遮挡无码免费网站国产 | 国产亚洲Av综合人人澡精品| 亚洲无码视频在线| 无码人妻久久一区二区三区免费| 久久亚洲精品无码aⅴ大香| 日韩免费a级毛片无码a∨| 亚洲av中文无码乱人伦在线观看| 亚洲精品综合久久| 麻花传媒剧在线mv免费观看| 亚洲国产精品日韩av不卡在线| 久久久亚洲精品蜜桃臀| 最近中文字幕高清免费中文字幕mv | 16女性下面无遮挡免费| 爱情岛亚洲论坛在线观看| 亚洲精品乱码久久久久久自慰|