You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andun Sameera Liyanagunawardana (JIRA)" <ji...@apache.org> on 2012/07/07 19:16:33 UTC

[jira] [Updated] (AXIS2-5361) Hot Undeployment feature doesn't work due to false ServiceGroup name assignment

     [ https://issues.apache.org/jira/browse/AXIS2-5361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andun Sameera Liyanagunawardana updated AXIS2-5361:
---------------------------------------------------

    Attachment: ArchiveReader.patch

I have debugged the code and analyzed it with the released version of the code. This happens because the way of setting the ServiceGroup name of the service is false in the current trunk. The error exists in the org.apache.axis2.deployment.repository.util.ArchiveReader class. It reads service group name like this,

                if(extractService){
                    axisServiceGroup.setServiceGroupName(
                            DescriptionBuilder.getShortFileName(currentFile.getName()));                    
                } else {
                    axisServiceGroup.setServiceGroupName(currentFile.getName());                    
                }

But according to the logic it have to corrected like this,

                if(!extractService){
                    axisServiceGroup.setServiceGroupName(
                            DescriptionBuilder.getShortFileName(currentFile.getName()));                    
                } else {
                    axisServiceGroup.setServiceGroupName(currentFile.getName());                    
                }

So here is the patch to correct it.
                
> Hot Undeployment feature doesn't work due to false ServiceGroup name assignment 
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-5361
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5361
>             Project: Axis2
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.7.0
>         Environment: Ubuntu 12.04
>            Reporter: Andun Sameera Liyanagunawardana
>             Fix For: 1.7.0
>
>         Attachments: ArchiveReader.patch
>
>
> While we are running the axis2server, when we try to undeploy a service(Here SimpleService) by deleting it from the repository/service directory, following exception shows in the console.
> [INFO] org.apache.axis2.deployment.DeploymentException: The SimpleService service group name is not valid.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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