Personal tools
You are here: Home Lights on Zope tugboat.GTD(with PostgreSQL)インストールその2
« February 2012 »
Su Mo Tu We Th Fr Sa
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
Recent entries
ニワトリ 愛を独り占めにした鳥 (光文社新書) 遠藤秀紀 (著) seko 2012-02-12
考える身体 [単行本] 三浦 雅士 (著) seko 2012-02-12
身体化された心―仏教思想からのエナクティブ・アプローチ フランシスコ ヴァレラ (著) seko 2012-02-12
メガネのくもり99%カット  seko 2012-02-12
Windows7にpython,numpy,matplotlib,IPythonをインストール seko 2012-02-11
吉本隆明が語る親鸞 [単行本] 吉本隆明 (著) seko 2012-02-11
リア王 シェイクスピア【著】 seko 2012-02-11
ふたたびの虹 柴田 よしき【著】 seko 2012-02-11
http://papasan.mydns.jp/ の飛び先がマシンによって異なる seko 2012-02-10
PythonでExcelファイルを読む seko 2012-02-09
すこやかな生き方のすすめ 桜井 章一 (著), よしもとばなな (著) seko 2012-02-05
運を超えた本当の強さ 自分を研ぎ澄ます56の法則 桜井 章一 (著) seko 2012-02-05
そんなこと、気にするな 桜井 章一 (著) seko 2012-02-05
負けない技術──20年間無敗、伝説の雀鬼の「逆境突破力」 桜井 章一 (著) seko 2012-02-05
Recent comments
Re:荒俣 宏 (著) 「歌枕」謎ときの旅 通りすがり 2012-02-11
Re:http://papasan.mydns.jp/ の飛び先がマシンによって異なる seko 2012-02-11
Re:http://papasan.mydns.jp/ の飛び先がマシンによって異なる Papasan 2012-02-10
Re:フェルデンクライスメソッド 107回目 アスリートの脚になる seko 2012-01-29
Re:フェルデンクライスメソッド 107回目 アスリートの脚になる Reiko 2012-01-29
Re:フェルデンクライスメソッド 107回目 アスリートの脚になる seko 2012-01-25
Re:フェルデンクライスメソッド 107回目 アスリートの脚になる Reiko 2012-01-23
Re:zopeでオブジェクト名を指定してレンダリング Papasan 2011-12-25
Re:zopeでオブジェクト名を指定してレンダリング seko 2011-12-24
Re:zopeでオブジェクト名を指定してレンダリング Papasan 2011-12-18
Re:javascriptにwait関数がない Papasan 2011-12-11
Re:今週の縄跳び seko 2011-12-09
Re:今週の縄跳び Reiko 2011-12-09
Re:ノート・手帳・メモが変わる「絵文字」の技術 永田 豊志 (著) Reiko 2011-12-04
Recent trackbacks
ぼくはお金を使わずに生きることにした 紹介 感想 わかめになりたい 2011-12-02
au の HTC EVO がなかなか良かった話 tdtshのブログ 2011-05-25
逆転経済の反響 世界一のバイヤーになってみろ!!坂口孝則の本棚と雑文 2010-12-27
Who Moved My Cheese? 大学生の気ままな書評 おすすめ和書・洋書! 2010-10-30
sekoさんちからPOSTがあったけど・・・ PapaBlog 2010-09-12
Squid(キャッシュサーバーモード)を試してみる PapaBlog 2010-08-25
Apache 2.2のキャッシュ機能を使ってみる PapaBlog 2010-08-08
愛と資本主義 中村うさぎ ばみの乱読日記 と猫雑貨。 2010-08-07
自転車用鞄(かばん)通販 鞄専門【かばん通販】 2010-06-09
Flowplayerがバージョンアップしてスッキリしていた PapaBlog 2010-06-06
荻原規子 「レッドデータガール はじめてのお化粧」 ゼロから 2010-06-01
加納朋子「モノレールねこ」 ご本といえばblog 2010-04-29
武蔵境でWiMAX電波を追ってみる においの事件簿 2010-04-19
荻原規子 「レッドデータガール はじめてのお使い」 ゼロから 2010-04-18
 
Document Actions

tugboat.GTD(with PostgreSQL)インストールその2

by seko posted at 2008-09-14 18:22 last modified 2008-09-14 18:22

Ant1.7.0のインストール

 # mkdir /usr/local/ant
# cd /usr/local/ant/
# mv ~/Desktop/apache-ant-1.7.1-bin.tar.gz .
# tar zxvf apache-ant-1.7.1-bin.tar.gz
# mv apache-ant-1.7.1/* .

vi /root/.bash_profileで次の二行を追加して、適用する

   export ANT_HOME=/usr/local/ant
   export PATH=$ANT_HOME/bin:$PATH
# source /root/.bash_profile

tugboat.GTDのインストール

 # mkdir /usr/local/tugboat
[root@localhost ant]# cd /usr/local/tugboat/
[root@localhost tugboat]# mv ~/Desktop/tugboat-gtd-src-0.9.3-4.tar.gz .
# tar zxvf tugboat-gtd-src-0.9.3-4.tar.gz

設定ファイルの修正

]# vi /usr/local/tugboat/src/main/resources/tugboat_gtd_default.propertiesで次のように修正

 
# -----------------------------------------------
# Properties definining the tugboat.GTD.
#
# -----------------------------------------------

# mode {dev,test,'product'} tugboat.gtd.mode = product

# system locale default.tugboat.gtd.locale = JP

# system language default.tugboat.gtd.language = JA

# system timezone default.tugboat.gtd.timezone = 9

# context URL product.tugboat.gtd.context_path=http://localhost:8080/tugboat

product.tugboat.gtd.batch.schedule_hour = 4 product.tugboat.gtd.batch.schedule_min = 0

# ----------------------------------------------- # tugboat search engine related # ----------------------------------------------- # search index folder #product.tugboat.gtd.search.searchIndexFolder = ./searchIndex product.tugboat.gtd.search.searchIndexFolder =/usr/local/tugboat/searchIndex

# search dictionary's sen home directory #product.tugboat.gtd.search.sen.home_dir = ./sen product.tugboat.gtd.search.sen.home_dir = /usr/local/tomcat/webapps/tugboat/WEB-INF/sen

# search result summary length default.tugboat.gtd.search.sen.summary_byte_length = 200

# ----------------------------------------------- # timeline related # ----------------------------------------------- product.tugboat.gtd.activity_icon_path = images/default/palette/plbg

product.tugboat.gtd.timeline_icon_path = images/default/timeline/

# SMTP server host(OPTION) #product.tugboat.gtd.mail.smtp = localhost

# email's From header(REQUIRE if you use SMTP option) product.tugboat.gtd.mail.from = tugboat@localhost

# email's Return-Path header(REQUIRE if you use SMTP option) product.tugboat.gtd.mail.return_path = tugboat@localhost

# rss lang. product.tugboat.gtd.rss.lang = ja-jp

# rss publishment rows. product.tugboat.gtd.rss.pub_rows = 50

# rss retroactive date. product.tugboat.gtd.rss.retroactive_date = 21

データベースの作成

データベースは、postgresユーザでないと作れません。

 # sudo -u postgres sh  /usr/local/tugboat/ddl/postgresql/createTugboatDatabase.sh
 中略
 INSERT 0 1
 INSERT 0 1
 Create Table and Database User.

 # sudo -u postgres psql -l
         List of databases
    Name     |  Owner   | Encoding
 -------------+----------+----------
 postgres    | postgres | UTF8
 template0   | postgres | UTF8
 template1   | postgres | UTF8
 tugboat_gtd | postgres | UTF8
 (4 rows)

PostgreSQLの接続設定

  • /usr/local/tugboat/src/main/resources/jdbc.dicon を必要があればPostgreSQLの環境に合わせて編集する。
         <component name="xaDataSource"
             class="org.seasar.extension.dbcp.impl.XADataSourceImpl">
             <property name="driverClassName">"org.postgresql.Driver"</property>
             <property name="URL">"jdbc:postgresql://localhost:5432/tugboat_gtd?charSet=utf8"</property>
             <property name="user">"ユーザID"</property>
             <property name="password">"パスワード"</property>
         </component>

build.propertiesファイルの編集

# vi /usr/local/tugboat/build.propertiesで、頭の方の二行を治す。

 ####################
 # Build information
 ####################

 #war.name               = tugboat-gtd
 war.name               = tugboat

 #tomcat.home            = /Users/yousuke/development/java/tomcat-6.0.16
 tomcat.home            = /usr/local/tomcat
 webapp.home            = ${tomcat.home}/webapps

warファイルの生成:

   # cd /usr/local/tugboat/
   # ant
   Buildfile: build.xml

   clean:
      [delete] Deleting directory /usr/local/tugboat/src/main/webapp/WEB-INF/classes
      [delete] Deleting directory /usr/local/tugboat/target

   _init:
       [mkdir] Created dir: /usr/local/tugboat/target
       [mkdir] Created dir: /usr/local/tugboat/src/main/webapp/WEB-INF/classes

   途中省略

   BUILD SUCCESSFUL
   Total time: 3 minutes 16 seconds

warファイルの取り出しと配置

 # /etc/init.d/jsvc stop
 # cd /usr/local/tugboat/target/
 # unzip tugboat-0.9.3-4.zip
 # cd tugboat-0.9.3-4
 # mv tugboat-0.9.3-4.war tugboat.war <--tugboat.warに改名
 # chown tomcat:tomcat tugboat.war
 # cp tugboat.war /usr/local/tomcat/webapps/

searchIndex フォルダの作成:

 # cd /usr/local/tugboat/
 # mkdir searchIndex
 # chown tomcat:tomcat searchIndex

Tomcatの起動

 # /etc/init.d/jsvc start

ブラウザでhttp://localhost:8080/manager/html にアクセス 一番下にtugboatがあるので、実行中になっていなければ、起動をクリック

 FAIL - コンテキストパス /tugboat のアプリケーションが起動できません

というエラーがでる。JDK1.5に切り替えてみたが、同じ症状。。。。。。

Category(s)
linux
tools
The URL to Trackback this entry is:
http://lightson.dip.jp/blog/seko/1743/tbping

Re:tugboat.GTD(with PostgreSQL)インストールその2

Posted by yousukehara at 2008-09-16 22:07
はじめまして、Tugboat.GTDの開発者のはらです。下記の通り設定すれば動作すると思います。参考にしてください。

<説明>
Tomcatフォルダの中のconfフォルダに、Catalinaフォルダ、更にlocalhostフォルダを作成し、下記のxmlファイルを配備し、tomcatを起動すれば動作します。

1. '$CATALINA_HOME/conf/Catalina/localhost/tugboat.xml'を作成
2. tugboat.xmlの例:
<Context path="/tugboat" reloadable="false"
docBase="/Users/yousuke/development/project/tugboat/src/main/webapp"
workDir="/Users/yousuke/development/tomcat6/work"
/>

Re:tugboat.GTD(with PostgreSQL)インストールその2

Posted by nayuta at 2010-03-06 14:55
ここの記事が参考になり、動かせるようになりました。ありがとうございました。
同じエラーが出ましたが、ログを見るとpostgreSQLに関するエラーだったのでソースから最新版(8.4)を作ってみたところ無事動きました。(Vine Linux 4.2だったので古いバージョン(8.1)しかありませんでした。)

Re:tugboat.GTD(with PostgreSQL)インストールその2

Posted by seko at 2010-03-09 22:20
nayutaさん、少しはお役に立てたようで幸いです。
Add comment

You can add a comment by filling out the form below. Plain text formatting.

(Required)
(Required)
(Required)


Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: