2016-07-22 16 views
0

私は、wildfly-maven-pluginを使用してサンプルサービスを構築しようとしています。 ソースコードは次のとおりです。wildfly-maven-pluginによるWildFlyサーバでサービスを実行するには?

https://github.com/wildfly/quickstart/tree/10.x/helloworld-html5

私は、単純な使用にMavenののpom.xmlでwildfly-のmaven-pluginのが欲しい:

  <plugin> 
      <groupId>org.wildfly.plugins</groupId> 
      <artifactId>wildfly-maven-plugin</artifactId> 
      <version>1.1.0.Alpha10</version> 
     </plugin> 

コマンドのようなテストサーバーを構築するには:

mvn wildfly:run 

サーバーを実行する。

README.md が見つかりましたが、書き込まれたURLが間違っています。

私はリンクテスト:すべての

http://localhost:8080/jboss-helloworld-html5/hello/json/YOUR_NAME

http://localhost:8080/hello/json/YOUR_NAME

は私に404エラーを与えます。

何が問題なのですか?

mvn wildflyを作成する方法:このプロジェクトを実行できますか?

+1

pomは戦争名が* jboss-helloworld-html5 *ではなく* wildfly-helloworld-html5 *になることを示しています。 – Gimby

答えて

0

Gimbyと言うと、あなたのコンテキストパスはwildfly-helloworld-html5であるはずです。 READMEが間違っているようです。 URLはhttp://localhost:8080/wildfly-helloworld-html5/hello/xml/YOUR_NAMEhttp://localhost:8080/wildfly-helloworld-html5/hello/json/YOUR_NAMEである必要があります。

また、起動時にコンソールに次のようなログメッセージが表示されるはずです。

08:22:18,281 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 58) WFLYUT0021: Registered web context: /wildfly-helloworld-html5 

これは、登録されたコンテキストを提供します。

関連する問題