我用 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来添加一些与数据相关的上下文。我不想从战争到耳朵进行任何手动打包