You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org> on 2008/04/07 10:34:24 UTC
[jira] Commented: (RAMPART-23) problem setting OutflowSecurity
configuration parameter in runtime
[ https://issues.apache.org/jira/browse/RAMPART-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586274#action_12586274 ]
Nandana Mihindukulasooriya commented on RAMPART-23:
---------------------------------------------------
Hi Ayondeep,
What is the Axis2 version you are using ?
> problem setting OutflowSecurity configuration parameter in runtime
> ------------------------------------------------------------------
>
> Key: RAMPART-23
> URL: https://issues.apache.org/jira/browse/RAMPART-23
> Project: Rampart
> Issue Type: Bug
> Environment: JDK1.4.2, Tomcat 5.0.28, axis2.1.0
> Reporter: Ayondeep Datta
>
> I am setting the OutflowSecurity configuration parameter in runtime on the client side but I am getting a NoSuchMethodError <init> in org.apache.axis2.description.HandlerDescription. class when the FileSystemConfigurator tries to return an instance of AxisConfiguration.
> This is my code
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> OutflowConfiguration ofc=new OutflowConfiguration();
> ofc.setActionItems("UsernameToken");
> ofc.setUser("bob");
> ofc.setPasswordCallbackClass("webserviceclient.AmsWSPWCBHandler");
> Parameter outFlowSecurityParam=ofc.getProperty();
> FileSystemConfigurator fsc=new FileSystemConfigurator("build/client_repositories/", "build/client_repositories/conf/axis2.xml");
> AxisConfiguration ac=fsc.getAxisConfiguration();
> ac.addParameter(outFlowSecurityParam);
> ConfigurationContext ctx=new ConfigurationContext(ac);
> stub = new ProfileManagerStub(ctx,
> "http://localhost:8082/axis2/services/ProfileManager");
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> This is the error I get
> java.lang.NoSuchMethodError: org.apache.axis2.description.HandlerDescription.<init>(Ljava/lang/String;)V
> at org.apache.rampart.handler.WSDoAllHandler.<clinit>(WSDoAllHandler.java:37)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:219)
> at org.apache.axis2.deployment.util.Utils.getHandlerClass(Utils.java:182)
> at org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:60)
> at org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:337)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:690)
> at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:165)
> at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:53)
> at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:107)
> at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:120)
> at webserviceclient.WebServiceClient.main(WebServiceClient.java:41)
> Exception in thread "main"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.