ファイルの階層化でエラーになります

16 views
Skip to first unread message

shuwat

unread,
Dec 20, 2007, 7:39:20 AM12/20/07
to Piece Framework Users (ja)
こんばんは、渡辺です。

http://trac.piece-framework.com/piece-doc/wiki/ja/users/piece-unity/HOWTO/HowToRunExampleApplications
こちらの記事を参考に、piece-unity-config.yamlの設定を使ってファイルを階層化しようとしていますが、エラーになりうまくいき
ません。

現在のディレクトリ構成は以下のとおりです。
/usr/home/shun/ (ドキュメントルート)
/usr/home/shun/test/htdocs/login.php (エントリポイント)
/usr/home/shun/test/webapp/config/flows/Blog/Login.flow (フロー定義)

長くなりますが、以下にエラーメッセージをペーストします。

・piece-unity-config.yamlにて、appRootPathに/testを設定した場合
array(8) {
["code"]=>
int(-7)
["params"]=>
array(0) {
}
["package"]=>
string(11) "Piece_Unity"
["level"]=>
string(9) "exception"
["time"]=>
float(1198154467.2605)
["context"]=>
array(4) {
["file"]=>
string(79) "/usr/home/shun/test/imports/pear/Piece/Unity/Plugin/
Dispatcher/Continuation.php"
["line"]=>
int(130)
["function"]=>
string(6) "invoke"
["class"]=>
string(42) "Piece_Unity_Plugin_Dispatcher_Continuation"
}
["message"]=>
string(72) "Failed to invoke the plugin [ dispatcher_continuation ]
for any reasons."
["repackage"]=>
array(7) {
["code"]=>
int(-1)
["params"]=>
array(0) {
}
["package"]=>
string(10) "Piece_Flow"
["level"]=>
string(9) "exception"
["time"]=>
float(1198154467.2602)
["context"]=>
array(4) {
["file"]=>
string(67) "/usr/home/shun/test/imports/pear/Piece/Flow/
ConfigReader/Common.php"
["line"]=>
int(113)
["function"]=>
string(4) "read"
["class"]=>
string(30) "Piece_Flow_ConfigReader_Common"
}
["message"]=>
string(75) "The configuration file [ ./webapp/config/flows/Blog/
Login.flow ] not found."
}
}

・piece-unity-config.yamlにて、appRootに/testを設定した場合
array(7) {
["code"]=>
int(-7)
["params"]=>
array(0) {
}
["package"]=>
string(11) "Piece_Unity"
["level"]=>
string(9) "exception"
["time"]=>
float(1198152999.8996)
["context"]=>
array(4) {
["file"]=>
string(76) "/usr/home/shun/test/imports/pear/Piece/Unity/Plugin/
Configurator/AppRoot.php"
["line"]=>
int(90)
["function"]=>
string(6) "invoke"
["class"]=>
string(39) "Piece_Unity_Plugin_Configurator_AppRoot"
}
["message"]=>
string(102) "Failed calling chdir() for the configuration point
[ appRoot ] on the plugin [ configurator_approot ]."
}

どなたか原因がお分かりでしたらご教授ください。
よろしくお願いします。

shuwat

unread,
Dec 20, 2007, 8:41:20 AM12/20/07
to Piece Framework Users (ja)
自己レスです。

appRootにファイルシステムのルートからのフルパスを指定すると動くようになりました。

- name: Configurator_AppRoot
point:
- name: appRoot
type: configuration
value: /usr/home/shun/test

どうもお騒がせしました。
Reply all
Reply to author
Forward
0 new messages