cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Zięba <t.a.zi...@gmail.com>
Subject Re: applying patch - manually change jar file
Date Mon, 24 Mar 2014 09:27:54 GMT
Hello,

after running:   jar -uvf .................

I have information:
adding:
apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.class(in
= 238178) (out= 104028)(deflated 56%)

New file size increases:

ls -la
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-xen-4.2.1*
-rw-r--r-- 1 root root 366550 Mar 24 09:55
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-xen-4.2.1-SNAPSHOT.jar

Original file looks as follows:

ls -la
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/__cloud-plugin-hypervisor-xen-4.2.1-SNAPSHOT.jar__
-rw-r--r-- 1 root root 261682 Mar 20 14:02
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/__cloud-plugin-hypervisor-xen-4.2.1-SNAPSHOT.jar__

I'm using ACS from (cloudstack-*-SNAPSHOT.el6.x86_64.rpm) rpms na centos.


PS: I'm not "java master" :-)


Best Regards,


2014-03-24 10:15 GMT+01:00 Wido den Hollander <wido@widodh.nl>:

> On 03/24/2014 10:12 AM, Tomasz Zięba wrote:
>
>> Hello,
>>
>> How do I apply a patch to the ACS 4.2.1 ?
>>
>> I have fixed file:
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
>>
>> and would like to make apply this changes to cloudstack-management
>>
>> After performing the following commands:
>>
>> /usr/bin/javac -cp
>> /usr/share/java/commons-collections.jar:/usr/share/
>> java/commons-dbcp.jar:/usr/share/java/commons-logging.
>> jar:/usr/share/java/commons-logging-api.jar:/usr/share/
>> java/commons-pool.jar:/usr/share/java/commons-httpclient.
>> jar:/usr/share/java/ws-commons-util.jar:/usr/share/
>> java/jnetpcap.jar:/usr/share/cloudstack-agent/lib/*:/usr/
>> share/cloudstack-management/lib/*:/usr/share/cloudstack-
>> common/lib/*:/usr/share/cloudstack-management/webapps/
>> client/WEB-INF/lib/*
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
>>
>> #find /usr/ -name "*.jar" -exec grep -Hls "xen.resource" {} \;
>>
>> /usr/bin/jar -uvf
>> /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>> hypervisor-xen-4.2.1-SNAPSHOT.jar
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase.class
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase$SRType.class
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase$XsHost.class
>> apache-cloudstack-4.2.1-src/plugins/hypervisors/xen/src/
>> com/cloud/hypervisor/xen/resource/CitrixResourceBase$XsLocalNetwork.class
>>
>>
>> and restart cloudstack-management, unfortunately, still uses the old
>> classes.
>>
>>
> You should remove the same file without the -SNAPSHOT in the name. It's
> probably reading that file on boot.
>
> Wido
>
>  Thank you.
>>
>>
>


-- 
Regards,
Tomasz Zięba
Twitter: @TZieba
LinkedIn: pl.linkedin.com/pub/tomasz-zięba-ph-d/3b/7a8/ab6/<http://pl.linkedin.com/pub/tomasz-zi%C4%99ba-ph-d/3b/7a8/ab6/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message