|
Hi again and sorry for the SPAM :/ If I change the repo variable like: String repo ="C:\\tungsten-1.0-beta\\tungsten-1.0-beta\\repository\\services"; I get the error: [JAM] Warning: You are running under a
pre-1.5 JDK. JSR175-style source annotations will not be available java.lang.AbstractMethodError:
org.apache.sandesha2.SandeshaModule.engageNotify(Lorg/apache/axis2/description/AxisDescription;)V at
org.apache.axis2.description.AxisService.engageModule(AxisService.java:313) at
org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:207) at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:418) at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:195) at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:145) at
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:550) at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:59) at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:33) at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:82) at
calculator2.EchoBlockingClient.main(EchoBlockingClient.java:53) Exception in thread "main" Cheers, Nuno From: Nuno Rodrigues
[mailto:[EMAIL PROTECTED] Now I’ve changed my code turning it
similar to the Tungsten SimpleTrader client. The code now is: --------------------------------
ConfigurationContext configurationContext = null;
EndpointReference targetEPR = new EndpointReference(
"http://localhost:9762/axis2/services/calculator2"); String repo
=
"C:\\tungsten-1.0-beta\\tungsten-1.0-beta\\repository\\services"; String
axis2_xml =
"C:\\tungsten-1.0-beta\\tungsten-1.0-beta\\conf\\axis2.xml";
configurationContext = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, axis2_xml);
ServiceClient sender = new ServiceClient(configurationContext,new
AxisService("calculator2"));
sender.getOptions().setTo(targetEPR);
sender.engageModule(new QName("sandesha2")); Options
options = new Options();
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
sender.setOptions(options); OMElement
payload = ClientUtil.getCalculator2OMElement(); OMElement
result = sender.sendReceive(payload);
StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance()
.createXMLStreamWriter(writer));
writer.flush();
System.out.println(writer.toString()); -------------------------------- And I always get: org.apache.axis2.AxisFault: Module not
found
at org.apache.axis2.description.AxisService.engageModule(AxisService.java:295)
at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:284)
at calculator2.EchoBlockingClient.main(EchoBlockingClient.java:61) … The error is when he is engaging the
modules but I really don’t know what’s happening here since I have
sandesha2.mar in \repository\modules. This is really strange and I’m
getting out of ideas :( Cheers, Nuno From: Paul Fremantle
[mailto:[EMAIL PROTECTED] Hi On 4/13/06, confusionvalley
< [EMAIL PROTECTED]>
wrote:
|
- Sandesha2 Client confusionvalley
- Re: Sandesha2 Client Paul Fremantle
- RE: Sandesha2 Client Nuno Rodrigues
- RE: Sandesha2 Client Nuno Rodrigues
- RE: Sandesha2 Client Nuno Rodrigues
- Re: Sandesha2 Client Chamikara Jayalath
- Re: Sandesha2 Client Chamikara Jayalath
- RE: Sandesha2 Client Nuno Rodrigues
- Re: Sandesha2 Client Chamikara Jayalath
