我用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 ,它添加了一些与数据相关的上下文。我不需要任何手册从战争到耳朵的包装