You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Eichler, Wolfgang" <WO...@ca.com> on 2007/09/04 19:36:14 UTC

get hotupdate not to work (Windows)

I set in config/axis2.xml:
<parameter name="hotupdate" >true</parameter>

http://localhost:8080/axis2/axis2-admin/upload shows:
Hot update of existing service archives is enabled

But if I copy a new *.aar file, the service is not updated
automatically. I have to use
http://localhost:8080/manager/html/reload?path=/axis2
to reload.

This is on Windows using Tomcat 6.0.14,  Axis2-1.3
Any hints?

Thanks and apologize for the newbee question ...

Wolfgang Eichler

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: get hotupdate not to work (Windows)

Posted by Deepal jayasinghe <de...@gmail.com>.

Eichler, Wolfgang wrote:
> Hello Charitha,
>
> I could verify the update of service.xml as you described.
>
> I tried to get an update of some *.class file inside the *.aar,
> realizing the service:
> ...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
> s
> This is probably beyond the "Hotupdate" feature?
>   
no it is not , if you do any changes to services archive file that can
be consider as hotupdate.

Thanks
Deepal
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: get hotupdate not to work (Windows)

Posted by Deepal Jayasinghe <de...@opensource.lk>.
What is the application sever you are using ?

Thanks
Deepal

Eichler, Wolfgang wrote:
> Hi Charitha,
>
> I could also see such changes in effect as you describe. 
>
> What I did more precisely:
>
> 1. Change in StockQuoteService.java:
>
> public class StockQuoteService {
>     private HashMap map = new HashMap();
>
>     public double getPrice(String symbol) {
>         Double price = (Double) map.get(symbol);
>         if(price != null){
>             return price.doubleValue();
>         }
>         return 42.00;
>     }
>
>       to 
>
> ...
>         return 43.00;
>     }
>
> 2. Compile to *.class
>
> 3. modify *.aar (using 7-zip) : replace the StockQuoteService.class
>
> So I don't change the name of some method but only the code. This does
> not work in my environment, unless restart of axis2.
>
> Thanks and regards
> Wolfgang
>
> -----Original Message-----
> From: Charitha Kankanamge [mailto:charitha@wso2.com] 
> Sent: Wednesday, September 05, 2007 09:34
> To: axis-user@ws.apache.org
> Subject: Re: get hotupdate not to work (Windows)
>
> Hi Eicher,
> You should be able to add an updated *.class in to *.aar and see the 
> update through Axis2 administration page. I updated a method name in a 
> service implementation class, added the updated class in to service 
> archive, and observed the updated method name through Axis2 admin page 
> without restarting tomcat. Hence," Hotupdate" feature suppots these 
> modifications.
>
> regards
> Charitha
>
> Eichler, Wolfgang wrote:
>
>   
>> Hello Charitha,
>>
>> I could verify the update of service.xml as you described.
>>
>> I tried to get an update of some *.class file inside the *.aar,
>> realizing the service:
>> ...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
>>     
> s
>   
>> s
>> This is probably beyond the "Hotupdate" feature?
>>
>> Thanks and regards
>> Wolfgang
>>
>>
>> -----Original Message-----
>> From: Charitha Kankanamge [mailto:charitha@wso2.com] 
>> Sent: Wednesday, September 05, 2007 03:40
>> To: axis-user@ws.apache.org
>> Subject: Re: get hotupdate not to work (Windows)
>>
>> Hello Eicher,
>> Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
>> installed on tomcat 6.0.10/Windows XP. Please go through the following 
>> steps to identify your problem and let us know if you experience the 
>> same issue again.
>>
>> - Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
>>     
>>> true</parameter>
>>>       
>> - Restart tomcat
>> - Deploy a service
>> - Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
>> can see the deployed service there
>> - Now update some property in services.xml in your service archive. 
>> (Update a service level parameter in the services.xml, if you are using
>>     
>
>   
>> winrar, you can update the files inside *.aar without extracting the 
>> archive)
>> - Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
>> page, select your service from the drop down
>> - You should be able to see the updated parameters
>>
>> Thanks and regards
>> Charitha
>>
>> Eichler, Wolfgang wrote:
>>
>>  
>>
>>     
>>> I set in config/axis2.xml:
>>> <parameter name="hotupdate" >true</parameter>
>>>
>>> http://localhost:8080/axis2/axis2-admin/upload shows:
>>> Hot update of existing service archives is enabled
>>>
>>> But if I copy a new *.aar file, the service is not updated
>>> automatically. I have to use
>>> http://localhost:8080/manager/html/reload?path=/axis2
>>> to reload.
>>>
>>> This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>>> Any hints?
>>>
>>> Thanks and apologize for the newbee question ...
>>>
>>> Wolfgang Eichler
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>
>>>
>>>
>>>    
>>>
>>>       
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>  
>>
>>     
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: get hotupdate not to work (Windows)

Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi Eicher,
Yes. I observed the same issue with the scenario you mentioned. However, 
I'm not sure about the scope of "Hotupdate". Anyway it will be great if 
you can report an issue in Axis2 bugs tracking system [1], so that the 
developers will resolve if there is a bug in hotupdate feature.

[1]http://issues.apache.org/jira/browse/AXIS2

regards
Charitha

Eichler, Wolfgang wrote:

>Hi Charitha,
>
>I could also see such changes in effect as you describe. 
>
>What I did more precisely:
>
>1. Change in StockQuoteService.java:
>
>public class StockQuoteService {
>    private HashMap map = new HashMap();
>
>    public double getPrice(String symbol) {
>        Double price = (Double) map.get(symbol);
>        if(price != null){
>            return price.doubleValue();
>        }
>        return 42.00;
>    }
>
>      to 
>
>...
>        return 43.00;
>    }
>
>2. Compile to *.class
>
>3. modify *.aar (using 7-zip) : replace the StockQuoteService.class
>
>So I don't change the name of some method but only the code. This does
>not work in my environment, unless restart of axis2.
>
>Thanks and regards
>Wolfgang
>
>-----Original Message-----
>From: Charitha Kankanamge [mailto:charitha@wso2.com] 
>Sent: Wednesday, September 05, 2007 09:34
>To: axis-user@ws.apache.org
>Subject: Re: get hotupdate not to work (Windows)
>
>Hi Eicher,
>You should be able to add an updated *.class in to *.aar and see the 
>update through Axis2 administration page. I updated a method name in a 
>service implementation class, added the updated class in to service 
>archive, and observed the updated method name through Axis2 admin page 
>without restarting tomcat. Hence," Hotupdate" feature suppots these 
>modifications.
>
>regards
>Charitha
>
>Eichler, Wolfgang wrote:
>
>  
>
>>Hello Charitha,
>>
>>I could verify the update of service.xml as you described.
>>
>>I tried to get an update of some *.class file inside the *.aar,
>>realizing the service:
>>...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
>>    
>>
>s
>  
>
>>s
>>This is probably beyond the "Hotupdate" feature?
>>
>>Thanks and regards
>>Wolfgang
>>
>>
>>-----Original Message-----
>>From: Charitha Kankanamge [mailto:charitha@wso2.com] 
>>Sent: Wednesday, September 05, 2007 03:40
>>To: axis-user@ws.apache.org
>>Subject: Re: get hotupdate not to work (Windows)
>>
>>Hello Eicher,
>>Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
>>installed on tomcat 6.0.10/Windows XP. Please go through the following 
>>steps to identify your problem and let us know if you experience the 
>>same issue again.
>>
>>- Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
>>    
>>
>>>true</parameter>
>>>      
>>>
>>- Restart tomcat
>>- Deploy a service
>>- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
>>can see the deployed service there
>>- Now update some property in services.xml in your service archive. 
>>(Update a service level parameter in the services.xml, if you are using
>>    
>>
>
>  
>
>>winrar, you can update the files inside *.aar without extracting the 
>>archive)
>>- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
>>page, select your service from the drop down
>>- You should be able to see the updated parameters
>>
>>Thanks and regards
>>Charitha
>>
>>Eichler, Wolfgang wrote:
>>
>> 
>>
>>    
>>
>>>I set in config/axis2.xml:
>>><parameter name="hotupdate" >true</parameter>
>>>
>>>http://localhost:8080/axis2/axis2-admin/upload shows:
>>>Hot update of existing service archives is enabled
>>>
>>>But if I copy a new *.aar file, the service is not updated
>>>automatically. I have to use
>>>http://localhost:8080/manager/html/reload?path=/axis2
>>>to reload.
>>>
>>>This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>>>Any hints?
>>>
>>>Thanks and apologize for the newbee question ...
>>>
>>>Wolfgang Eichler
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: get hotupdate not to work (Windows)

Posted by "Eichler, Wolfgang" <WO...@ca.com>.
Hi Charitha,

I could also see such changes in effect as you describe. 

What I did more precisely:

1. Change in StockQuoteService.java:

public class StockQuoteService {
    private HashMap map = new HashMap();

    public double getPrice(String symbol) {
        Double price = (Double) map.get(symbol);
        if(price != null){
            return price.doubleValue();
        }
        return 42.00;
    }

      to 

...
        return 43.00;
    }

2. Compile to *.class

3. modify *.aar (using 7-zip) : replace the StockQuoteService.class

So I don't change the name of some method but only the code. This does
not work in my environment, unless restart of axis2.

Thanks and regards
Wolfgang

-----Original Message-----
From: Charitha Kankanamge [mailto:charitha@wso2.com] 
Sent: Wednesday, September 05, 2007 09:34
To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hi Eicher,
You should be able to add an updated *.class in to *.aar and see the 
update through Axis2 administration page. I updated a method name in a 
service implementation class, added the updated class in to service 
archive, and observed the updated method name through Axis2 admin page 
without restarting tomcat. Hence," Hotupdate" feature suppots these 
modifications.

regards
Charitha

Eichler, Wolfgang wrote:

>Hello Charitha,
>
>I could verify the update of service.xml as you described.
>
>I tried to get an update of some *.class file inside the *.aar,
>realizing the service:
>...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
s
>s
>This is probably beyond the "Hotupdate" feature?
>
>Thanks and regards
>Wolfgang
>
>
>-----Original Message-----
>From: Charitha Kankanamge [mailto:charitha@wso2.com] 
>Sent: Wednesday, September 05, 2007 03:40
>To: axis-user@ws.apache.org
>Subject: Re: get hotupdate not to work (Windows)
>
>Hello Eicher,
>Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
>installed on tomcat 6.0.10/Windows XP. Please go through the following 
>steps to identify your problem and let us know if you experience the 
>same issue again.
>
>- Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
> >true</parameter>
>- Restart tomcat
>- Deploy a service
>- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
>can see the deployed service there
>- Now update some property in services.xml in your service archive. 
>(Update a service level parameter in the services.xml, if you are using

>winrar, you can update the files inside *.aar without extracting the 
>archive)
>- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
>page, select your service from the drop down
>- You should be able to see the updated parameters
>
>Thanks and regards
>Charitha
>
>Eichler, Wolfgang wrote:
>
>  
>
>>I set in config/axis2.xml:
>><parameter name="hotupdate" >true</parameter>
>>
>>http://localhost:8080/axis2/axis2-admin/upload shows:
>>Hot update of existing service archives is enabled
>>
>>But if I copy a new *.aar file, the service is not updated
>>automatically. I have to use
>>http://localhost:8080/manager/html/reload?path=/axis2
>>to reload.
>>
>>This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>>Any hints?
>>
>>Thanks and apologize for the newbee question ...
>>
>>Wolfgang Eichler
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: get hotupdate not to work (Windows)

Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi Eicher,
You should be able to add an updated *.class in to *.aar and see the 
update through Axis2 administration page. I updated a method name in a 
service implementation class, added the updated class in to service 
archive, and observed the updated method name through Axis2 admin page 
without restarting tomcat. Hence," Hotupdate" feature suppots these 
modifications.

regards
Charitha

Eichler, Wolfgang wrote:

>Hello Charitha,
>
>I could verify the update of service.xml as you described.
>
>I tried to get an update of some *.class file inside the *.aar,
>realizing the service:
>...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
>s
>This is probably beyond the "Hotupdate" feature?
>
>Thanks and regards
>Wolfgang
>
>
>-----Original Message-----
>From: Charitha Kankanamge [mailto:charitha@wso2.com] 
>Sent: Wednesday, September 05, 2007 03:40
>To: axis-user@ws.apache.org
>Subject: Re: get hotupdate not to work (Windows)
>
>Hello Eicher,
>Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
>installed on tomcat 6.0.10/Windows XP. Please go through the following 
>steps to identify your problem and let us know if you experience the 
>same issue again.
>
>- Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
> >true</parameter>
>- Restart tomcat
>- Deploy a service
>- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
>can see the deployed service there
>- Now update some property in services.xml in your service archive. 
>(Update a service level parameter in the services.xml, if you are using 
>winrar, you can update the files inside *.aar without extracting the 
>archive)
>- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
>page, select your service from the drop down
>- You should be able to see the updated parameters
>
>Thanks and regards
>Charitha
>
>Eichler, Wolfgang wrote:
>
>  
>
>>I set in config/axis2.xml:
>><parameter name="hotupdate" >true</parameter>
>>
>>http://localhost:8080/axis2/axis2-admin/upload shows:
>>Hot update of existing service archives is enabled
>>
>>But if I copy a new *.aar file, the service is not updated
>>automatically. I have to use
>>http://localhost:8080/manager/html/reload?path=/axis2
>>to reload.
>>
>>This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>>Any hints?
>>
>>Thanks and apologize for the newbee question ...
>>
>>Wolfgang Eichler
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>> 
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: get hotupdate not to work (Windows)

Posted by "Eichler, Wolfgang" <WO...@ca.com>.
Hello Charitha,

I could verify the update of service.xml as you described.

I tried to get an update of some *.class file inside the *.aar,
realizing the service:
...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
s
This is probably beyond the "Hotupdate" feature?

Thanks and regards
Wolfgang


-----Original Message-----
From: Charitha Kankanamge [mailto:charitha@wso2.com] 
Sent: Wednesday, September 05, 2007 03:40
To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.

- Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
 >true</parameter>
- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using 
winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down
- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:

>I set in config/axis2.xml:
><parameter name="hotupdate" >true</parameter>
>
>http://localhost:8080/axis2/axis2-admin/upload shows:
>Hot update of existing service archives is enabled
>
>But if I copy a new *.aar file, the service is not updated
>automatically. I have to use
>http://localhost:8080/manager/html/reload?path=/axis2
>to reload.
>
>This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>Any hints?
>
>Thanks and apologize for the newbee question ...
>
>Wolfgang Eichler
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: get hotupdate not to work (Windows)

Posted by Charitha Kankanamge <ch...@wso2.com>.
Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.

- Edit /conf/axis2.xml by setting <parameter name="hotupdate" 
 >true</parameter>
- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using 
winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down
- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:

>I set in config/axis2.xml:
><parameter name="hotupdate" >true</parameter>
>
>http://localhost:8080/axis2/axis2-admin/upload shows:
>Hot update of existing service archives is enabled
>
>But if I copy a new *.aar file, the service is not updated
>automatically. I have to use
>http://localhost:8080/manager/html/reload?path=/axis2
>to reload.
>
>This is on Windows using Tomcat 6.0.14,  Axis2-1.3
>Any hints?
>
>Thanks and apologize for the newbee question ...
>
>Wolfgang Eichler
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org