[opencms-dev] Insight about upload.jar - httpclient files ...
John Bieling
info at jobisoft.de
Fri Sep 29 09:35:04 CEST 2006
Hi Shi Yusen,
When I compiled the upload.jar "by hand" I first got an error that the
httpclient files are missing. However, I downloaded them and copied them
into
\opencms\src-components\org\apache\commons\httpclient\
which resolved my problem. I could than compile the upload.jar by hand.
Now, after I inserted your uploadjar-target into my build.xml, and try
to do an
ant uploadjar
I get those errors again... where do I have to copy the files? I tried
\opencms\src\org\apache\commons\httpclient\
as well.. Thanks for your help
John B..
Shi Yusen schrieb:
> Hi John,
>
> As there's a font display problem in OpenCms 6.0.3 for Simplified
> Chinese (this problem has been removed in OpenCms 6.2.x and later), I
> recompiled the upload.jar by adding a target in /opencms/build.xml, I
> think it should also work for OpenCms 6.2.x.
>
> <target name="uploadjar"
> depends="checklibs" if="libsAvailable" description="Build the
> upload.jar">
> <delete dir="${opencms.output}/upload/" />
> <mkdir
> dir="${opencms.output}/upload/org/opencms/applet/" />
> <unjar dest="${opencms.output}/upload/">
> <fileset dir="${opencms.input.externlibs}"
> includes="**/upload.jar" />
> </unjar>
>
> <javac
> srcdir="${opencms.input}/src-components/org/opencms/applet"
> destdir="${opencms.output}/upload"
> excludes="${build.excludes}"
> debug="on"
> optimize="on"
> deprecation="on">
> </javac>
>
> <jar
> jarfile="${opencms.output}/upload/uploadtemp.jar"
> basedir="${opencms.output}/upload/"
> includes="org/**" >
> </jar>
>
> <genkey keystore="${opencms.output}/upload/your-keystore"
> validity="3650"
> dname="CN=your-organization-shortname,OU=your-department,O=your-organization-fullname,L=address,S=city,C=ZH" alias="your-alias-name" keypass="your-key-password" storepass="your-store-password" />
>
> <signjar signedjar="${opencms.output}/upload/upload.jar"
> alias="alias" jar="${opencms.output}/upload/uploadtemp.jar"
> storepass="your-store-password"
> keystore="${opencms.output}/upload/your-keystore" />
> <delete file="${opencms.output}/upload/uploadtemp.jar" />
>
> <copyfile
> dest="${opencms.input}\modules\org.opencms.workplace.explorer
> \resources\system\workplace\resources\components\upload_applet
> \upload.jar"
> src="${opencms.output}/upload/upload.jar" />
>
> </target>
>
>
>
> I read your signature. It's interesting. Hope you can contribute this
> part to the community when you success.
>
>
> Good luck,
>
> Shi Yusen/Beijing Langhua Ltd.
>
>
>
> 在 2006-09-28四的 20:10 +0200,John Bieling写道:
>
>> Ok, I messed up my upload.jar, this is what happend:
>>
>> I am trying to anderstand the sourcode of opencms and want to make
>> changes to upload.jar. I am able to compile "normal" classes for my
>> modules and that works fine. Now I tried to compile the upload.jar from
>> source, uploaded it and looked what happend. It did not work, the jar
>> does not load. So I restored the original upload.jar (which i backuped)
>> and thought everything is fine - but noooo, the original one does not
>> work now as well.
>>
>> 1) What happend, why does the original does not work? It says something
>> about MagicalNumber does not match or so
>> 2) Is there any chance that someone can give me a step by step guide how
>> to compile the upload jar from the opencms-sources and sucessfully plug
>> the self-compiled one into my running opencms?
>>
>> Luckily this is all done on my testsystem, which is 6.2.2, but I
>> compiled the latest opencms and will do my further testing with 6.2.5
>> (which I guess is the latest)
>>
>> Thanks
>> John Bieling
>>
>>
>> (I do not know how many years I need, but I want to teach the upload jar
>> to do image scaling BEFORE uploading images, so that my customers stop
>> complaining about the "images from my camera take so long to upload"-bug)
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list