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 "Michael Davis (JIRA)" <ji...@apache.org> on 2007/05/11 22:29:15 UTC

[jira] Updated: (AXIS2-2656) Deployment Engine throws a ClassCastException when reading operation module refs

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

Michael Davis updated AXIS2-2656:
---------------------------------

    Attachment: services.xml

This services.xml file contains an operation that has a module tag. This causes the error to happen.


> Deployment Engine throws a ClassCastException when reading operation module refs
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-2656
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2656
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.2
>         Environment: Win 2000, jdk1.4, Tomcat 5.5.23
>            Reporter: Michael Davis
>         Attachments: services.xml
>
>
> org.apache.axis2.deployment.DeploymentEngine has this code:
> 496: ArrayList modules = opDesc.getModuleRefs();
> 497: for (int i = 0; i < modules.size(); i++) {
> 498: String moduleName = (String) modules.get(i);
> But the modules list contains QNames, not Strings. This causes the ClassCastException.
> The QNames are added to the list in org.apache.axis2.deployment.DescriptionBuilder near line 477:
> operation.addModule(new QName(refName));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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