<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Deploy EAR using Ant in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711418#M2115422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that last post looks horrid, but none of the formatting options in the SAP forum post editor are working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2009 09:09:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-01T09:09:27Z</dc:date>
    <item>
      <title>Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaq-p/5711416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found some useful documentation on deploying EAR files to SAP using the sapdeploy Ant task, and would like to start using it. Unfortunately the docs don't specify where the Ant task can be located, and what its dependencies are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could someone help point me in the right direction with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a link to the docs I'm referring to.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nwce711/helpdata/EN/3c/52413e7bcd561ee10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nwce711/helpdata/EN/3c/52413e7bcd561ee10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 15:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaq-p/5711416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711417#M2115421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to find the Ant task jar, and related dependencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try execute the sapimportear task, it fails with a NoClassDefFoundError. I've copied all required jars (as documented on SAP Help) and have searched everywhere for the missing class - but I can't find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could someone help with this. And could someone from SAP please update the documentation, if required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nwce711/helpdata/EN/46/150746f21914dce10000000a155369/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;
C:\SAP Deployment&amp;gt;c:\apache-ant-1.7.1\bin\ant -f build.xml createsda
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
Buildfile: build.xml

createsda:
[sapimportear] root dir C:\SAP Deployment\archives

BUILD FAILED
java.lang.NoClassDefFoundError: com/sap/engine/deployment/PropertiesHolder
        at com.sap.engine.services.dc.ant.convert.SAPImportEAR.execute(SAPImportEAR.java:26)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: com.sap.engine.deployment.PropertiesHolder
        at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 18 more

Total time: 0 seconds
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Stuart Gunter on Jun 1, 2009 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 09:06:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711417#M2115421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-01T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711418#M2115422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that last post looks horrid, but none of the formatting options in the SAP forum post editor are working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 09:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711418#M2115422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-01T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711419#M2115423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart, sorry for warming up this old thread,&lt;/P&gt;&lt;P&gt;but I'm facing the same issues here. Could you post a list of the dependencies&lt;/P&gt;&lt;P&gt;that are needed to execute the ant task? Unfortunately, the SAP docs were&lt;/P&gt;&lt;P&gt;not updated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 07:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711419#M2115423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711420#M2115424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried copying the other jar files from the &lt;EM&gt;deployment\lib&lt;/EM&gt; folder? That might help. The &lt;STRONG&gt;com.sap.engine.deployment.PropertiesHolder&lt;/STRONG&gt; class is in the &lt;STRONG&gt;sap.com&lt;SUB&gt;tc&lt;/SUB&gt;je&lt;SUB&gt;deployment14&lt;/SUB&gt;impl.jar&lt;/STRONG&gt; file, but I'm not sure if that has further dependencies that are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually just run the Ant tasks from the deployment folder, just to be sure they work ok. In the &lt;EM&gt;deployment\scripts&lt;/EM&gt; folder, there is an example_build.xml that shows a whole bunch of references to other jar files that should be in the classpath. The only other suggestion I would make is for you to try copying all of those files to the location where you're running from (or simply reference them if you're on the same server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 15:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711420#M2115424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy EAR using Ant</title>
      <link>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711421#M2115425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens (again)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just in case you're still battling with this, I've just written a blog post about how to use the SAP Ant task for deployment. There's a sample build.xml that you can download and work with, which makes it so much easier!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any suggestions for improvement, they would be most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.g3it.com/technical/java/sap-deployment-with-ant/" target="test_blank"&gt;http://www.g3it.com/technical/java/sap-deployment-with-ant/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 13:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deploy-ear-using-ant/qaa-p/5711421#M2115425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-23T13:06:13Z</dc:date>
    </item>
  </channel>
</rss>

