Create .EAR with Spring Boot application to deploy in websphere 9.0.0.7

2.1k views Asked by At

I have developed a Spring Boot application with jpa. First I used in built tomcat server, its working fine. Now I want it to deploy in websphere 9.0.0.7. I have tried to deploy WAR into websphere by using deploy. I am getting following error

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

From above exception, I have added server.servlet.context-path=/test, but there is no use, same issue coming again.

In my application I don't have any sub modules any thing. What are the changes I need to do , to deploy in websphere ? As I need to package as .ear or I need to add ibm....web.xml which adds some data related context.I don't want to any manual packaging from war to ear

0

There are 0 answers