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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/09/13 07:48:22 UTC

[jira] Commented: (AXIS2-934) createConfigurationContextFromURIs re-engages modules

    [ http://issues.apache.org/jira/browse/AXIS2-934?page=comments#action_12434363 ] 
            
Deepal Jayasinghe commented on AXIS2-934:
-----------------------------------------

I tested this in current SVN and I was unable to regenerate the issue , so can you please check whether it is working for you.



> createConfigurationContextFromURIs re-engages modules
> -----------------------------------------------------
>
>                 Key: AXIS2-934
>                 URL: http://issues.apache.org/jira/browse/AXIS2-934
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.0
>         Environment: MacOSX 10.4.7 (Intel), JRE 1.5.0_06-112, Axis2-1.0
>            Reporter: Richard Loreaux
>         Assigned To: Deepal Jayasinghe
>
> Using the factory to create a configuration context from URIs causes an "attempt to engage an already engaged module" error.
> Context: I am attempting to use the axis.xml in my jar file.  The modules are co-located with the axis2-kernel-1.0.jar (addressing-1.0.mar in this case).
>         URL axis2URL = this.getClass().getResource("/conf/axis2.xml");
>         configContext = ConfigurationContextFactory.createConfigurationContextFromURIs(axis2URL , null);
> Error!
> org.apache.axis2.AxisFault: Attempt to engage an already engaged module addressing-1.0
>         at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:322)
>         at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:289)
>         at org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:743)
>         at org.apache.axis2.deployment.URLBasedAxisConfigurator.engageGlobalModules(URLBasedAxisConfigurator.java:111)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:41)
>         at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(ConfigurationContextFactory.java:95)
> ...
> The following work-around was successful:
>         URL axis2URL = this.getClass().getResource("/conf/axis2.xml");
>         AxisConfigurator cfg8r = new URLBasedAxisConfigurator(axis2URL , null);
>         AxisConfiguration cfg = cfg8r.getAxisConfiguration();
>         configContext = new ConfigurationContext(cfg);
> --
> RHL

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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