0

私は現在、開発環境をオープンソースのグラスフィッシュ v3.1 からオープンソースのグラスフィッシュ 3.1.2 にアップグレードするように構成していて、asadmin コマンドを使用してバージョン間のこの違いに気付きました。

v3.1

deploy --name test:beta-1.0 "c:\tmp\my-long-test-app-war-name.war"

これは http:\\localhost:8080\test からアクセスできます

v3.1.2

deploy --name test:beta-1.0 "c:\tmp\my-long-test-app-war-name.war"

これは http:\\localhost:8080\my-long-test-app-war-name からのみアクセスできます

次のように説明されている新しいバージョンの --contextroot に気付きました。

 --contextroot
      Valid only if the  archive  is  a  web  module.  It  is
      ignored  for  other archive types; defaults to filename
      without extension.

--name は次のようになります。

 --name
      Name of the deployable component.

      The name can include an  optional  version  identifier,
      which  follows  the name and is separated from the name
      by a colon (:). The version identifier must begin  with
      a letter or number. It can contain alphanumeric charac-
      ters plus underscore (_),  dash  (-),  and  period  (.)
      characters.  For  more  information  about  module  and
      application versions, see "Module and Application  Ver-
      sions"  in  Oracle GlassFish Server Application Deploy-
      ment Guide.

したがって、新しいバージョン (または 3.1 以降で変更された場合) の場合、デプロイ コマンドは次のようになります。

deploy --name test:beta-1.0 --contextroot test "c:\tmp\my-long-test-app-war-name.war"

乾杯、クレイグ

PSは現在v3.1.2.2をダウンさせてテストしようとしていますが、企業のファイアウォールは残忍です

4

1 に答える 1