You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sanjay Vivek <Sa...@newcastle.ac.uk> on 2008/01/08 14:12:02 UTC

NoSuchMethodError when engaging Rampart.

Hi everyone,

I'm attempting to call a simple Web Service (an Echo Service) that is
protected by WS-Security UsernameToken. I'm using Axis2-1.3 and Rampart
1.3. However, I'm getting the following exceptions when I try to run the
client service:

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.axis2.description.PolicyInclude.getEffectivePolicy()Lorg/apac
he/ws/policy/Policy;
	at org.apache.rampart.Rampart.engageNotify(Rampart.java:48)
	at
org.apache.axis2.description.AxisDescription.engageModule(AxisDescriptio
n.java:454)
	at
org.apache.axis2.description.AxisDescription.engageModule(AxisDescriptio
n.java:421)
	at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
.java:438)
	at
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig
uration.java:567)
	at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
ine.java:589)
	at
org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
ileSystemConfigurator.java:141)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:77)
	at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
ContextFromFileSystem(ConfigurationContextFactory.java:180)
	at
org.apache.rampart.samples.EchoServiceClient.main(EchoServiceClient.java
:17)


I've looked around and it seems to be an exception thrown when engaging
the Sandesha module. However, I'm not using Sandesha at all so I'm
rather puzzled by this. Does anyone have any idea what's going on? I'm
guessing it's something to do with libraries but I've all the required
jars on my classpath (I hope so anyway). Any help would be greatly
appreciated.

Regards
--------------
Sanjay Vivek
Web Analyst
Middleware Team
ISS
University of Newcastle Upon Tyne


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


Re: NoSuchMethodError when engaging Rampart.

Posted by Ruchith Fernando <ru...@gmail.com>.
Which version of Sandesha2 are you using?

Thanks,
Ruchith

On Jan 8, 2008 6:42 PM, Sanjay Vivek <Sa...@newcastle.ac.uk> wrote:
> Hi everyone,
>
> I'm attempting to call a simple Web Service (an Echo Service) that is
> protected by WS-Security UsernameToken. I'm using Axis2-1.3 and Rampart
> 1.3. However, I'm getting the following exceptions when I try to run the
> client service:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.axis2.description.PolicyInclude.getEffectivePolicy()Lorg/apac
> he/ws/policy/Policy;
>         at org.apache.rampart.Rampart.engageNotify(Rampart.java:48)
>         at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescriptio
> n.java:454)
>         at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescriptio
> n.java:421)
>         at
> org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration
> .java:438)
>         at
> org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfig
> uration.java:567)
>         at
> org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEng
> ine.java:589)
>         at
> org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(F
> ileSystemConfigurator.java:141)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
> Context(ConfigurationContextFactory.java:77)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
> ContextFromFileSystem(ConfigurationContextFactory.java:180)
>         at
> org.apache.rampart.samples.EchoServiceClient.main(EchoServiceClient.java
> :17)
>
>
> I've looked around and it seems to be an exception thrown when engaging
> the Sandesha module. However, I'm not using Sandesha at all so I'm
> rather puzzled by this. Does anyone have any idea what's going on? I'm
> guessing it's something to do with libraries but I've all the required
> jars on my classpath (I hope so anyway). Any help would be greatly
> appreciated.
>
> Regards
> --------------
> Sanjay Vivek
> Web Analyst
> Middleware Team
> ISS
> University of Newcastle Upon Tyne
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>



-- 
http://blog.ruchith.org
http://wso2.org

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