axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loreaux, Richard H. (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-934) createConfigurationContextFromURIs re-engages modules
Date Tue, 07 Nov 2006 06:23:40 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-934?page=comments#action_12447671 ] 
            
Loreaux, Richard H. commented on AXIS2-934:
-------------------------------------------


   [[ Old comment, sent by email on Wed, 13 Sep 2006 21:32:10 -0700 ]]

I am unable to confirm this.  Using the current snapshot (dated today), I
get the following error:

     [java] INFO: Deploying module : addressing-1.0
     [java] Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis2.description.HandlerDescription.<init>(Ljavax/xml/namespace/
QName;)V
     [java]     at
org.apache.axis2.security.handler.WSDoAllHandler.<clinit>(WSDoAllHandler.jav
a:38)
     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:242)
     [java]     at
org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:199)
     [java]     at
org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:59)
     [java]     at
org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.j
ava:311)
     [java]     at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:
597)
     [java]     at
org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(Reposito
ryListener.java:122)
     [java]     at
org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.jav
a:61)
     [java]     at
org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEng
ine.java:116)
     [java]     at
org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(UR
LBasedAxisConfigurator.java:68)
     [java]     at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:61)
     [java]     at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
extFromURIs(ConfigurationContextFactory.java:176)

--
RHL




> 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


Mime
View raw message