jpaでSpring Bootアプリケーションを開発しました。最初に、ビルドされたTomcatサーバーで使用しましたが、正常に動作しています。今、私はそれを websphere 9.0.0.7 にデプロイしたいと考えています。deploy を使用して WAR を websphere にデプロイしようとしました。次のエラーが表示されます
Username: Password: WASX7209I: Connected to process "dmgr" on node dmgr using SOAP connector; The type of process is: DeploymentManager
WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable:
"[/app/dmgr/xxx/deploy.py, /app/wam/test/testa.xml, /opt/app/ibm-ucd/agent/var/work/xxx/test-0.0.1-SNAPSHOT.war]"
War files must have a context-root specified in the deployment xml
WASX7017E: Exception received while running file "/app/dmgr/xxxxx//deploy.py"; exception information: com.ibm.bsf.BSFException:
exception from Jython:
Traceback (most recent call last):
File "<string>", line 37, in <module>
File "/app/dmgr/xxxx/was/deploy.py", line 129, in deploy
sys.exit(1)
SystemExit: 1
上記の例外から、追加server.servlet.context-path=/test
しましたが、使用できず、同じ問題が再び発生します。
私のアプリケーションでは、サブモジュールは何もありません。websphere にデプロイするには、どのような変更を行う必要がありますか? .earとしてパッケージ化する必要があるか、データ関連のコンテキストを追加するibm....web.xmlを追加する必要があるため、戦争から耳まで手動でパッケージ化したくありません。