[ http://issues.apache.org/jira/browse/AXIS2-934?page=all ]
Deepal Jayasinghe resolved AXIS2-934.
-------------------------------------
Resolution: Fixed
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]