[
https://issues.apache.org/jira/browse/RAMPART-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ayondeep Datta updated RAMPART-23:
----------------------------------
Description:
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();
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
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"
was:
I am setting the OutflowSecurity configuration parameter in runtime on the
client side but I am getting a NoSuchMethodError <init> in WSDoAllHandler class
when the FileSystemConfigurator tries to return an instance of
AxisConfiguration.
I guess the problem is, somehow the WSDoAllHandler class in the
axis2-security-1.1.jar is invoked which does not has a init() method in place
of the WSDoAllHandler class in wss4j-1.5.1.jar. Now I need the
axis2-security-1.1.jar for the OutflowConfiguration. Please tell me what to do.
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();
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
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"
> 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();
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 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.