AnsweredAssumed Answered

AMP deploy - missing jar in SDK?

Question asked by talija83 on Feb 14, 2013
Latest reply on Feb 27, 2013 by talija83
I'm trying to deploy AMP file using ANT build file. AMP is properly built, and can be deployed using command line tools. Is it possible that Alfresco4.2c SDK is missing truezip library? I'm getting the following error while deploying in Eclipse:

        Caused by: java.lang.ClassNotFoundException: de.schlichtherle.truezip.socket.IOPoolProvider
       at$ Source)
        at Method)
         at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
      Could not find the main class: org.alfresco.repo.module.tool.ModuleManagementTool.  Program will exit.</blockcode>

And the same code in built file was used while deploying project with Alfresco 3.3g SDK, which had truezip.jar inside.

Ant-build file excerpt:

    <target name="deploy-alfresco-amp" depends="clean-reset-war, package-alfresco-amp">
        <echo>Merges extension AMP file into build/webapps/alfresco.war</echo>
        <java dir="." fork="true" classname="org.alfresco.repo.module.tool.ModuleManagementTool">
            <classpath refid="src.classpath"/>
            <arg line="install ${alfresco.amp.file} ${alfresco.war.file} -force -verbose -nobackup"/>

Thanks in advance. :)