Foros: 設定や使い方のQ&A (Thread #26798)

実行しました、が。 (2010-07-11 14:33 by 美希 #51895)

下記のメッセージが出て、いつもと違う文章でした。
これは成功したかなと思い、一覧を表示する、
IPアドレスにアクセスしましたが表示されませんでした。
アンドロイド端末には

・端末を圏内で使用していてデーター接続がアクティブだということを確認します。
・しばらくしてからページをリロードします。
・Googleでキャッシュされたページを表示します。

と書かれています。こればかりが表示され、一覧が開けません。
IPも間違ってないしどうしてでしょうか。
周りに成功者がいないのでわかりません。。。
何度も質問ばかりして申し訳ないです。

C:\Documents and Settings\cubic>grails run-spp -https
Welcome to Grails 1.3.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\grails-1.3.1

Base Directory: C:\Documents and Settings\cubic
Resolving dependencies...
Dependencies resolved in 2735ms.
Running pre-compiled script
Script not found: RunSpp
C:\Documents and Settings\cubic>grails run-app -https
Welcome to Grails 1.3.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\grails-1.3.1

Base Directory: C:\Documents and Settings\cubic
Resolving dependencies...
Dependencies resolved in 1937ms.
Running script C:\grails-1.3.1\scripts\RunApp.groovy
Environment set to development
[copy] Copied 3 empty directories to 1 empty directory under C:\Documents a
nd Settings\cubic\.grails\1.3.1\projects\cubic\resources
[mkdir] Created dir: C:\Documents and Settings\cubic\.grails\1.3.1\projects\
cubic\plugin-classes
[groovyc] Compiling 2 source files to C:\Documents and Settings\cubic\.grails\
1.3.1\projects\cubic\plugin-classes
[mkdir] Created dir: C:\Documents and Settings\cubic\target\classes
[groovyc] Compiling 7 source files to C:\Documents and Settings\cubic\target\c
lasses
[mkdir] Created dir: C:\Documents and Settings\cubic\.grails\1.3.1\projects\
cubic\resources\grails-app\i18n
[native2ascii] Converting 13 files from C:\Documents and Settings\cubic\grails-a
pp\i18n to C:\Documents and Settings\cubic\.grails\1.3.1\projects\cubic\resource
s\grails-app\i18n
[copy] Copying 1 file to C:\Documents and Settings\cubic\target\classes
[copy] Copied 2 empty directories to 2 empty directories under C:\Documents
and Settings\cubic\.grails\1.3.1\projects\cubic\resources
[delete] Deleting directory C:\Documents and Settings\cubic\.grails\1.3.1\pro
jects\cubic\tomcat
Running Grails application..
Creating SSL Certificate...
Created SSL Certificate.
Server running. Browse to http://localhost:8080/cubic or https://localhost:8443/
cubic

Responder al #51895×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

RE: 実行しました、が。 (2010-07-11 15:36 by yukihane #51899)

アプリケーションは正常に起動しているように見えます。が、もう少し原因を切り分けた方が良さそうですね。

1.coroidが正常起動しているかどうかの確認

coroidを起動したPCでWebブラウザを立ち上げ、http://localhost:8080/cubic へアクセスすると
coroidのログイン画面が表示されるでしょうか。(途中で証明書エラーの警告が出ると思いますが、続行してください)
ログイン画面が表示されるのであれば、アプリケーションの起動自体はうまくいっています。

2.Androidからの接続確認
LANの中から接続するのか、外から接続するのかでIPアドレスの指定が変わるのですが、
とりあえずWifi接続でLAN内からアクセスする方が簡単なのでこちらで試してみてください。

2.1 LAN内からのアクセス確認
1.Android端末を自宅のルータへWifi接続します。
2.coroidを動かしているWindows PCのコマンドプロンプトで ipconfig コマンドを実行します。
出力に
> IPv4 アドレス . . . . . . . . . . : 192.168.11.2
のようなメッセージが含まれていると思いますが、これがPCのプライベートIPアドレスです。
3.Android端末のWebブラウザでcoroidへアクセスします。
http://localhost:8080/cubic のlocalhostの部分を、上記IPアドレスに置き換えてアクセスしてください。
つまり、今回の例ですと http://192.168.11.2:8080/cubic になります。
これでログインページが表示されるでしょうか。

2.2 LAN外からのアクセス確認
基本的にはLAN内からのアクセスと同様なのですが、
ルータのポートフォワーディングの設定を行い、
Android端末のWifi接続を切って(3G接続にして)、
http://[グローバルIPアドレス]:[フォワーディング元ポート番号]/cubic
へアクセスしてログイン画面が表示されるか確認することになります。

・ポートフォワーディング設定方法
・グローバルIPアドレスの確認方法
については、ルータによって異なりますので、私が詳細を述べることはできませんが…



> ・端末を圏内で使用していてデーター接続がアクティブだということを確認します。
> ・しばらくしてからページをリロードします。
> ・Googleでキャッシュされたページを表示します。
というメッセージから推測するに、
・LAN外からプライベートIPアドレスを指定してアクセスしようとしている
あるいは
・LAN内からグローバルIPアドレスを指定してアクセスしようとしている
のいずれかではないかと思うのですが。

ちなみに、上記は一般的な家庭向けインターネット接続環境の前提での説明になりまして、
ルータを経由しないでインターネット接続している場合などはまた話は変わってくる可能性があるのですが…
Responder al #51895

Responder al #51899×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

RE: 実行しました、が。 (2010-07-11 20:02 by 美希 #51906)

こんばんは、お世話になってます。
実はWIFIで接続しておりませんでした・・・。
申し訳ありません。
接続の設定をしたらhttp://localhost:8080/cubic
接続したときと同じ画面が出てきました。
画像はこちら http://img-up.com/f/7443345/ です。
grailsを起動した際に出る画面もこれです。
ログイン画面というのに出くわしたことがありません・・・。
ちゃんとインストールされてないんでしょうか?
何度も何度も申し訳ありません。
Responder al #51895

Responder al #51906×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

RE: 実行しました、が。 (2010-07-11 22:09 by 美希 #51914)

こんばんは、美希です。
先程、言われた通りにしたら出来ました。
ここまで長かったです~;
本当にありがとうございました!!!
Responder al #51895

Responder al #51914×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

RE: 実行しました、が。 (2010-07-12 04:24 by yukihane #51918)

うまく動作してなりよりです。
使ってみてご意見ありましたらまたお寄せください。
Responder al #51914

Responder al #51918×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar