日本語の入るパスになるRESTful Webサービスはダメ?

View: New views
2 Messages — Rating Filter:   Alert me  

日本語の入るパスになるRESTful Webサービスはダメ?

by harada :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

原田です

 JAX-WSより早いかと思って、RESTful Webサービス
試そうとしたんですが、テーブル名も項目もすべて日本語で
作成しているので、データベースからのエンティティクラス作成
でメソッド名に日本語がはいって、
 get出荷日()
なんて関数ができてしまいます。(クラス名は適当に変更しましたが)
 動けばいいやという感じで、Restful Web Service from Entity class
でサービス作って、Test RESTful WebServiceしたら、

 スクリプト プロンプト:
 Cannot access WADL: Please restart your RESTful application, and
refresh this page.

ってのが出てきて、うまくいきませんでした。
 これってテーブルの項目名が日本語だからなんですよね?

[出力Windowのログ]
...
Deploying application in domain completed successfully
Trying to create reference for application in target server  completed
successfully
Trying to start application in target server  completed successfully
Error occurred during application loading phase. The application will not
run properly. Please fix your application and redeploy.
WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException:
ContainerBase.addChild: start: LifecycleException:
java.util.regex.PatternSyntaxException: Illegal repetition near index 0
/{%E5%86%85%E9%83%A8id}/
^
run-deploy:
test-restbeans:
Browsing: file:/[省略]/build/generated/rest-test/test-resbeans.html
構築成功 (合計時間: 44 秒)

以上



---------------------------------------------------------------------
To unsubscribe, e-mail: nbdiscuss_ja-unsubscribe@...
For additional commands, e-mail: nbdiscuss_ja-help@...


Re: 日本語の入るパスになるRESTful Webサービスはダメ?

by Kenji Tachibana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

こんにちは、原田さん、

橘です。
返事が遅くなってしまい、申し訳ありません...

RESTful Webサービスの件、試してみました。

テーブル名が日本語だと全然だめですね。

項目名のみ日本語、というケースも試してみましたが、
かろうじて、動いていますが (google Map 登録データ通りに表示される)、
http monitor を見ると、

HTTP Status 406 - type Status report

message
descriptionThe resource identified by this request is only
capable of generating responses with characteristics not acceptable
according to the request "accept" headers ().
Sun Java System Application Server 9.1_01

なんて表示されています。

NetBeans 側の問題というよりは、Jersey の問題だと
思うので、GlassFish のチームと問題を検討してみます。

ご報告、ありがとうございました。

tkenji

---------------------------------------------------------------------
 To unsubscribe, e-mail: nbdiscuss_ja-unsubscribe@...
 For additional commands, e-mail: nbdiscuss_ja-help@...

---------------------------------------------------------------------
To unsubscribe, e-mail: nbdiscuss_ja-unsubscribe@...
For additional commands, e-mail: nbdiscuss_ja-help@...

LightInTheBox - Buy quality products at wholesale price!