Deploying .ear files
The standard deployment tool JSPM does not have an option to deploy a .ear file. The requirements to deploy ear files on SAP NetWeaver JAVA can be met using alternative tools:
Using Telnet
- Call the telnet tool using the following command
telnet localhost 5NN08 (Replace NN with the instance number. Example if your instance number is 00, the telnet port will be 50008) - You will be prompted for username/password, logon with a J2EE admin user (ex: J2EE_ADMIN or Administrator)
- List down the server nodes using the following
lsc - Take note of a server node and jump to any server node using the following
jump <server node> (Usually jump 0) - Go to deploy application
add deploy - Deploy the ear file
deploy <full path to ear file> on_deploy_error=stop
Using Deploy Script
- Change your directory to the location where deploy scripts are available
cd /usr/sap/<SID>/J<nr>/j2ee/deployment/scripts - Run the deploy command
deploy.sh <user>:<password>@<host>:<P4 port> <full path to ear file> (Ex: deploy.sh j2ee_admin:password@saphost:50004 /usr/sap/myapp.ear)
Comments
Post a Comment