cancel
Showing results for 
Search instead for 
Did you mean: 

Error during deploying *.ear to sap using ant

Former Member
0 Kudos

I want to deploy ear to sap with ant script,but it can not work.The error information as follows,can anybody give me some advice if you had the similar error,thanks.

C:\usr\sap\LJ1\J00\j2ee\deployment\ant>ant -f example_build.xml deploy -v

Apache Ant version 1.7.0 compiled on December 13 2006

Buildfile: example_build.xml

Detected Java version: 1.6 in: D:\Java\jdk1.6.0_18\jre

Detected OS: Windows 2003

parsing buildfile C:\usr\sap\LJ1\J00\j2ee\deployment\ant\example_build.xml with

URI = file:/C:/usr/sap/LJ1/J00/j2ee/deployment/ant/example_build.xml

Project base dir set to: C:\usr\sap\LJ1\J00\j2ee\deployment\ant

parsing buildfile jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!/org/apache/t

ools/ant/antlib.xml with URI = jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!

/org/apache/tools/ant/antlib.xml

[property] Loading C:\usr\sap\LJ1\J00\j2ee\deployment\ant\cfg\ant.properties

Build sequence for target(s) `deploy' is [deploy]

Complete build sequence is [deploy, import_ear, undeploy, params, ]

deploy:

[sapdeploy] Starting deployment with the following properties:

[sapdeploy] Version Handling Rule: all

[sapdeploy] Error Handling Strategies: [error action: 'prerequisites', error str

ategy: 'stop', error action: 'deploy', error strategy: 'stop']

[sapdeploy] The targeted SAP J2EE Engines are: [server host: 'localhost', server

port '50004', user name 'Administrator'.]

[sapdeploy] Deploy timeout: null

[sapdeploy] Starting to validate the data...

[sapdeploy] Validation ended

[sapdeploy] root dir c:\temp

[sapdeploy] Selected archives for deployment:

[sapdeploy] 1: 'c:\temp\dataservices-samples.war'

[sapdeploy] 2: 'c:\temp\test.ear'

[sapdeploy] Starting validation for the engine 'server host: 'localhost', server

port '50004', user name 'Administrator'.'

[sapdeploy] Engine data validated successfully

[sapdeploy] Starting deployment for the engine 'server host: 'localhost', server

port '50004', user name 'Administrator'.'

[sapdeploy] An error occured during the deployment.

[sapdeploy] The result of the deployment is: Error

[sapdeploy] Deployment ended

BUILD SUCCESSFUL

Total time: 0 seconds

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The problem has been resolved,I make a stupid mistake.The reason caused the error is that the user of server was locked.I hope these will be helpful for people troubled by the same mistake.