RE: Transport out has not been set error

2009-05-12 Thread Aneel.Murari
I faced the exact same issue. The way I resolved was by adding the following 
code ...


TransportOutDescription transOut = new TransportOutDescription("http");
TransportSender sender = (TransportSender) new 
CommonsHTTPTransportSender();
  transOut.setSender(sender);
  Parameter param1 = new Parameter();
  param1.setName("PROTOCOL");
  param1.setValue("HTTP/1.1");

  Parameter param2 = new Parameter();
  param2.setName("Transfer-Encoding");
  param2.setValue("chunked");

  transOut.addParameter(param1);
  transOut.addParameter(param2);

  
stub._getServiceClient().getOptions().setTransportOut(transOut);


I still don't know the root cause of the issue. This is just a work around.

Regards,
Aneel


From: Claire Loto [mailto:l...@taosolutions.biz]
Sent: Tuesday, May 12, 2009 4:23 AM
To: axis-user@ws.apache.org
Subject: Re: Transport out has not been set error

Yes, this is my first client. I got it from an Axis2 tutorial site.
I got the same error after commenting out the line:



options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
-Claire
Paul Fremantle wrote:

Is that your first client!? Its a little more complex than the average

- have you looked at the samples?



I think the problem is that you've set the InProtocol but not the out

protocol. What happens if you simple comment out the line:



   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);





Paul



On Tue, May 12, 2009 at 8:53 AM, Claire Loto 
<mailto:l...@taosolutions.biz> wrote:



Hi Paul,

I have attached the files I am using.

thanks a lot



Regards,

Claire



Paul Fremantle wrote:



It looks like your sample code is wrong. Can you post it so we can see?



Thanks!

Paul



On Tue, May 12, 2009 at 8:05 AM, Claire Loto 
<mailto:l...@taosolutions.biz> wrote:





Hi,

I am trying to run a test client in Axis2 but i got this error:

log4j:WARN No appenders could be found for logger

(org.apache.axis2.util.Loader).

log4j:WARN Please initialize the log4j system properly.

org.apache.axis2.AxisFault: Transport out has not been set

  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)

  at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)

  at

org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)

  at

org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)

  at

org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)

  at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)



can anyone please help me?



thanks,



Claire











package org.example.www.helloaxis2;



/**

 * Created by IntelliJ IDEA.

 * User: Sajal Dutta

 * Date: May 7, 2009

 * Time: 5:04:00 PM

 * To change this template use File | Settings | File Templates.

 */

import java.io.StringWriter;

import javax.xml.stream.*;

import org.apache.axiom.om.*;

import org.apache.axis2.*;

import org.apache.axis2.addressing.EndpointReference;

import org.apache.axis2.client.ServiceClient;

import org.apache.axis2.client.Options;



public class helloClient {

   //specify the endpoint reference

   private static EndpointReference targetEPR = new EndpointReference(

   
"http://localhost:8080/axis2/services/helloAxis2";<http://localhost:8080/axis2/services/helloAxis2>);

   public static void main(String[] args) {

   try {

   OMFactory fac = OMAbstractFactory.getOMFactory();

   OMNamespace omNs = fac.createOMNamespace(

   
"http://www.example.org/helloAxis2/";<http://www.example.org/helloAxis2/>, 
"helloAxis2");

   //compose the request element

   OMElement request = fac.createOMElement("Request", omNs);

   request.addChild(fac.createOMText("MADMUC"));

   Options options = new Options();

   //specify sender options: target, transport protocol, and soap

action

   options.setTo(targetEPR);

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);



 
options.setAction("http://localhost:8080/axis2/services/helloAxis2";<http://localhost:8080/axis2/services/helloAxis2>);

   ServiceClient sender = new ServiceClient();

   sender.setOptions(options);

   OMElement result = sender.sendReceive(request)

Re: Transport out has not been set error

2009-05-12 Thread Paul Fremantle
Ok I guess you should try adding:
 options.setTransportOutProtocol(Constants.TRANSPORT_HTTP);

It looks like our tutorial code is too complex!

Paul

On Tue, May 12, 2009 at 9:13 AM, Paul Fremantle  wrote:
> Is that your first client!? Its a little more complex than the average
> - have you looked at the samples?
>
> I think the problem is that you've set the InProtocol but not the out
> protocol. What happens if you simple comment out the line:
>>            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
> Paul
>
> On Tue, May 12, 2009 at 8:53 AM, Claire Loto  wrote:
>> Hi Paul,
>> I have attached the files I am using.
>> thanks a lot
>>
>> Regards,
>> Claire
>>
>> Paul Fremantle wrote:
>>
>> It looks like your sample code is wrong. Can you post it so we can see?
>>
>> Thanks!
>> Paul
>>
>> On Tue, May 12, 2009 at 8:05 AM, Claire Loto  wrote:
>>
>>
>> Hi,
>> I am trying to run a test client in Axis2 but i got this error:
>> log4j:WARN No appenders could be found for logger
>> (org.apache.axis2.util.Loader).
>> log4j:WARN Please initialize the log4j system properly.
>> org.apache.axis2.AxisFault: Transport out has not been set
>>   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
>>   at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>>   at
>> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>>   at
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
>>   at
>> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
>>   at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)
>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>   at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>   at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>>
>> can anyone please help me?
>>
>> thanks,
>>
>> Claire
>>
>>
>>
>>
>>
>> package org.example.www.helloaxis2;
>>
>> /**
>>  * Created by IntelliJ IDEA.
>>  * User: Sajal Dutta
>>  * Date: May 7, 2009
>>  * Time: 5:04:00 PM
>>  * To change this template use File | Settings | File Templates.
>>  */
>> import java.io.StringWriter;
>> import javax.xml.stream.*;
>> import org.apache.axiom.om.*;
>> import org.apache.axis2.*;
>> import org.apache.axis2.addressing.EndpointReference;
>> import org.apache.axis2.client.ServiceClient;
>> import org.apache.axis2.client.Options;
>>
>> public class helloClient {
>>    //specify the endpoint reference
>>    private static EndpointReference targetEPR = new EndpointReference(
>>    "http://localhost:8080/axis2/services/helloAxis2";);
>>    public static void main(String[] args) {
>>        try {
>>            OMFactory fac = OMAbstractFactory.getOMFactory();
>>            OMNamespace omNs = fac.createOMNamespace(
>>            "http://www.example.org/helloAxis2/";, "helloAxis2");
>>            //compose the request element
>>            OMElement request = fac.createOMElement("Request", omNs);
>>            request.addChild(fac.createOMText("MADMUC"));
>>            Options options = new Options();
>>            //specify sender options: target, transport protocol, and soap
>> action
>>            options.setTo(targetEPR);
>>            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>>
>>  options.setAction("http://localhost:8080/axis2/services/helloAxis2";);
>>            ServiceClient sender = new ServiceClient();
>>            sender.setOptions(options);
>>            OMElement result = sender.sendReceive(request);
>>            //print out the response
>>            StringWriter writer = new StringWriter();
>>            result.serialize(XMLOutputFactory.newInstance()
>>            .createXMLStreamWriter(writer));
>>            writer.flush();
>>            System.out.println(writer.toString());
>>        } catch (AxisFault axisFault) {
>>            axisFault.printStackTrace();
>>        } catch (XMLStreamException e) {
>>            e.printStackTrace();
>>        }
>>    }
>> }
>>
>>        /**
>>        * HelloAxis2MessageReceiverInOut.java
>>        *
>>        * This file was auto-generated from WSDL
>>        * by the Apache Axis2 version: 1.2 Apr 27, 2007 (04:14:19 IST)
>>        */
>>        package org.example.www.helloaxis2;
>>
>>        /**
>>        *  HelloAxis2MessageReceiverInOut message receiver
>>        */
>>
>>        public class HelloAxis2MessageReceiverInOut extends
>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{
>>
>>
>>        public void
>> invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext,
>> org.apache.axis2.context.MessageContext newMsgContext)
>>        throws org.apache.axis2.AxisFault{
>>
>>        try {
>>
>>        // get the implementation class for the Web Servic

Re: Transport out has not been set error

2009-05-12 Thread Claire Loto

Yes, this is my first client. I got it from an Axis2 tutorial site.
I got the same error after commenting out the line:
  


options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

-Claire
Paul Fremantle wrote:

Is that your first client!? Its a little more complex than the average
- have you looked at the samples?

I think the problem is that you've set the InProtocol but not the out
protocol. What happens if you simple comment out the line:
  

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);



Paul

On Tue, May 12, 2009 at 8:53 AM, Claire Loto  wrote:
  

Hi Paul,
I have attached the files I am using.
thanks a lot

Regards,
Claire

Paul Fremantle wrote:

It looks like your sample code is wrong. Can you post it so we can see?

Thanks!
Paul

On Tue, May 12, 2009 at 8:05 AM, Claire Loto  wrote:


Hi,
I am trying to run a test client in Axis2 but i got this error:
log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: Transport out has not been set
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
  at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
  at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
  at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

can anyone please help me?

thanks,

Claire





package org.example.www.helloaxis2;

/**
 * Created by IntelliJ IDEA.
 * User: Sajal Dutta
 * Date: May 7, 2009
 * Time: 5:04:00 PM
 * To change this template use File | Settings | File Templates.
 */
import java.io.StringWriter;
import javax.xml.stream.*;
import org.apache.axiom.om.*;
import org.apache.axis2.*;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.client.Options;

public class helloClient {
   //specify the endpoint reference
   private static EndpointReference targetEPR = new EndpointReference(
   "http://localhost:8080/axis2/services/helloAxis2";);
   public static void main(String[] args) {
   try {
   OMFactory fac = OMAbstractFactory.getOMFactory();
   OMNamespace omNs = fac.createOMNamespace(
   "http://www.example.org/helloAxis2/";, "helloAxis2");
   //compose the request element
   OMElement request = fac.createOMElement("Request", omNs);
   request.addChild(fac.createOMText("MADMUC"));
   Options options = new Options();
   //specify sender options: target, transport protocol, and soap
action
   options.setTo(targetEPR);
   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

 options.setAction("http://localhost:8080/axis2/services/helloAxis2";);
   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);
   OMElement result = sender.sendReceive(request);
   //print out the response
   StringWriter writer = new StringWriter();
   result.serialize(XMLOutputFactory.newInstance()
   .createXMLStreamWriter(writer));
   writer.flush();
   System.out.println(writer.toString());
   } catch (AxisFault axisFault) {
   axisFault.printStackTrace();
   } catch (XMLStreamException e) {
   e.printStackTrace();
   }
   }
}

   /**
   * HelloAxis2MessageReceiverInOut.java
   *
   * This file was auto-generated from WSDL
   * by the Apache Axis2 version: 1.2 Apr 27, 2007 (04:14:19 IST)
   */
   package org.example.www.helloaxis2;

   /**
   *  HelloAxis2MessageReceiverInOut message receiver
   */

   public class HelloAxis2MessageReceiverInOut extends
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{


   public void
invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext,
org.apache.axis2.context.MessageContext newMsgContext)
   throws org.apache.axis2.AxisFault{

   try {

   // get the implementation class for the Web Service
   Object obj = getTheImplementationObject(msgContext);

   HelloAxis2Skeleton skel = (HelloAxis2Skeleton)obj;
   //Out Envelop
   org.apache.axiom.soap.SOAPEnvelope envelope = null;
   //Find the axisOperation that has been set by the Dispatch phase.
   org.apache.axis2.description.AxisOperation op =
msgContext.getOperationConte

Re: Transport out has not been set error

2009-05-12 Thread Paul Fremantle
Is that your first client!? Its a little more complex than the average
- have you looked at the samples?

I think the problem is that you've set the InProtocol but not the out
protocol. What happens if you simple comment out the line:
>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

Paul

On Tue, May 12, 2009 at 8:53 AM, Claire Loto  wrote:
> Hi Paul,
> I have attached the files I am using.
> thanks a lot
>
> Regards,
> Claire
>
> Paul Fremantle wrote:
>
> It looks like your sample code is wrong. Can you post it so we can see?
>
> Thanks!
> Paul
>
> On Tue, May 12, 2009 at 8:05 AM, Claire Loto  wrote:
>
>
> Hi,
> I am trying to run a test client in Axis2 but i got this error:
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.util.Loader).
> log4j:WARN Please initialize the log4j system properly.
> org.apache.axis2.AxisFault: Transport out has not been set
>   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>   at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
>   at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
>   at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>
> can anyone please help me?
>
> thanks,
>
> Claire
>
>
>
>
>
> package org.example.www.helloaxis2;
>
> /**
>  * Created by IntelliJ IDEA.
>  * User: Sajal Dutta
>  * Date: May 7, 2009
>  * Time: 5:04:00 PM
>  * To change this template use File | Settings | File Templates.
>  */
> import java.io.StringWriter;
> import javax.xml.stream.*;
> import org.apache.axiom.om.*;
> import org.apache.axis2.*;
> import org.apache.axis2.addressing.EndpointReference;
> import org.apache.axis2.client.ServiceClient;
> import org.apache.axis2.client.Options;
>
> public class helloClient {
>    //specify the endpoint reference
>    private static EndpointReference targetEPR = new EndpointReference(
>    "http://localhost:8080/axis2/services/helloAxis2";);
>    public static void main(String[] args) {
>        try {
>            OMFactory fac = OMAbstractFactory.getOMFactory();
>            OMNamespace omNs = fac.createOMNamespace(
>            "http://www.example.org/helloAxis2/";, "helloAxis2");
>            //compose the request element
>            OMElement request = fac.createOMElement("Request", omNs);
>            request.addChild(fac.createOMText("MADMUC"));
>            Options options = new Options();
>            //specify sender options: target, transport protocol, and soap
> action
>            options.setTo(targetEPR);
>            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
>  options.setAction("http://localhost:8080/axis2/services/helloAxis2";);
>            ServiceClient sender = new ServiceClient();
>            sender.setOptions(options);
>            OMElement result = sender.sendReceive(request);
>            //print out the response
>            StringWriter writer = new StringWriter();
>            result.serialize(XMLOutputFactory.newInstance()
>            .createXMLStreamWriter(writer));
>            writer.flush();
>            System.out.println(writer.toString());
>        } catch (AxisFault axisFault) {
>            axisFault.printStackTrace();
>        } catch (XMLStreamException e) {
>            e.printStackTrace();
>        }
>    }
> }
>
>        /**
>        * HelloAxis2MessageReceiverInOut.java
>        *
>        * This file was auto-generated from WSDL
>        * by the Apache Axis2 version: 1.2 Apr 27, 2007 (04:14:19 IST)
>        */
>        package org.example.www.helloaxis2;
>
>        /**
>        *  HelloAxis2MessageReceiverInOut message receiver
>        */
>
>        public class HelloAxis2MessageReceiverInOut extends
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{
>
>
>        public void
> invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext,
> org.apache.axis2.context.MessageContext newMsgContext)
>        throws org.apache.axis2.AxisFault{
>
>        try {
>
>        // get the implementation class for the Web Service
>        Object obj = getTheImplementationObject(msgContext);
>
>        HelloAxis2Skeleton skel = (HelloAxis2Skeleton)obj;
>        //Out Envelop
>        org.apache.axiom.soap.SOAPEnvelope envelope = null;
>        //Find the axisOperation that has been set by the Dispatch phase.
>        org.apache.axis2.description.AxisOperation op =
> msgContext

Re: Transport out has not been set error

2009-05-12 Thread Claire Loto

Hi Paul,
I have attached the files I am using.
thanks a lot

Regards,
Claire

Paul Fremantle wrote:

It looks like your sample code is wrong. Can you post it so we can see?

Thanks!
Paul

On Tue, May 12, 2009 at 8:05 AM, Claire Loto  wrote:
  

Hi,
I am trying to run a test client in Axis2 but i got this error:
log4j:WARN No appenders could be found for logger
(org.apache.axis2.util.Loader).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis2.AxisFault: Transport out has not been set
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
  at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
  at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
  at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

can anyone please help me?

thanks,

Claire






  
package org.example.www.helloaxis2;

/**
 * Created by IntelliJ IDEA.
 * User: Sajal Dutta
 * Date: May 7, 2009
 * Time: 5:04:00 PM
 * To change this template use File | Settings | File Templates.
 */
import java.io.StringWriter;
import javax.xml.stream.*;
import org.apache.axiom.om.*;
import org.apache.axis2.*;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.client.Options;

public class helloClient {
//specify the endpoint reference
private static EndpointReference targetEPR = new EndpointReference(
"http://localhost:8080/axis2/services/helloAxis2";);
public static void main(String[] args) {
try {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace(
"http://www.example.org/helloAxis2/";, "helloAxis2");
//compose the request element
OMElement request = fac.createOMElement("Request", omNs);
request.addChild(fac.createOMText("MADMUC"));
Options options = new Options();
//specify sender options: target, transport protocol, and soap 
action
options.setTo(targetEPR);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

options.setAction("http://localhost:8080/axis2/services/helloAxis2";);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(request);
//print out the response
StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance()
.createXMLStreamWriter(writer));
writer.flush();
System.out.println(writer.toString());
} catch (AxisFault axisFault) {
axisFault.printStackTrace();
} catch (XMLStreamException e) {
e.printStackTrace();
}
}
}
/**
* HelloAxis2MessageReceiverInOut.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.2 Apr 27, 2007 (04:14:19 IST)
*/
package org.example.www.helloaxis2;

/**
*  HelloAxis2MessageReceiverInOut message receiver
*/

public class HelloAxis2MessageReceiverInOut extends 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver{


public void invokeBusinessLogic(org.apache.axis2.context.MessageContext 
msgContext, org.apache.axis2.context.MessageContext newMsgContext)
throws org.apache.axis2.AxisFault{

try {

// get the implementation class for the Web Service
Object obj = getTheImplementationObject(msgContext);

HelloAxis2Skeleton skel = (HelloAxis2Skeleton)obj;
//Out Envelop
org.apache.axiom.soap.SOAPEnvelope envelope = null;
//Find the axisOperation that has been set by the Dispatch phase.
org.apache.axis2.description.AxisOperation op = 
msgContext.getOperationContext().getAxisOperation();
if (op == null) {
throw new org.apache.axis2.AxisFault("Operation is not located, if this 
is doclit style the SOAP-ACTION should specified via the SOAP Action to use the 
RawXMLProvider");
}

java.lang.String methodName;
if(op.getName() != null & (methodName = 
org.apache.axis2.util.JavaUtils.xmlNameToJava(op.getName().getLocalPart())) != 
null){



if("sayHello".equals(methodName)){

org.apache.a

Re: Transport out has not been set error

2009-05-12 Thread Paul Fremantle
It looks like your sample code is wrong. Can you post it so we can see?

Thanks!
Paul

On Tue, May 12, 2009 at 8:05 AM, Claire Loto  wrote:
> Hi,
> I am trying to run a test client in Axis2 but i got this error:
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.util.Loader).
> log4j:WARN Please initialize the log4j system properly.
> org.apache.axis2.AxisFault: Transport out has not been set
>   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:439)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>   at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>   at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
>   at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
>   at org.example.www.helloaxis2.helloClient.main(helloClient.java:37)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>
> can anyone please help me?
>
> thanks,
>
> Claire
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
p...@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com


Re: "Transport out has not been set" when using local WSDL file

2008-09-20 Thread Sagi Mann

Yes, I saw these threads too. I have 59 jars from the axis2/lib folder on my
classpath. This seems to be the complete set:
activation-1.1.jar
annogen-0.1.0.jar
axiom-api-1.2.7.jar
axiom-dom-1.2.7.jar
axiom-impl-1.2.7.jar
axis2-adb-1.4.1.jar
axis2-adb-codegen-1.4.1.jar
axis2-ant-plugin-1.4.1.jar
axis2-clustering-1.4.1.jar
axis2-codegen-1.4.1.jar
axis2-corba-1.4.1.jar
axis2-fastinfoset-1.4.1.jar
axis2-java2wsdl-1.4.1.jar
axis2-jaxbri-1.4.1.jar
axis2-jaxws-1.4.1.jar
axis2-jaxws-api-1.4.1.jar
axis2-jibx-1.4.1.jar
axis2-json-1.4.1.jar
axis2-jws-api-1.4.1.jar
axis2-kernel-1.4.1.jar
axis2-metadata-1.4.1.jar
axis2-mtompolicy-1.4.1.jar
axis2-saaj-1.4.1.jar
axis2-saaj-api-1.4.1.jar
axis2-spring-1.4.1.jar
axis2-xmlbeans-1.4.1.jar
backport-util-concurrent-3.1.jar
commons-codec-1.3.jar
commons-fileupload-1.2.jar
commons-httpclient-3.1.jar
commons-io-1.4.jar
commons-logging-1.1.1.jar
geronimo-annotation_1.0_spec-1.1.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
httpcore-4.0-beta1.jar
httpcore-nio-4.0-beta1.jar
jalopy-1.5rc3.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.6.jar
jaxb-xjc-2.1.6.jar
jaxen-1.1.1.jar
jettison-1.0-RC2.jar
jibx-bind-1.1.5.jar
jibx-run-1.1.5.jar
log4j-1.2.15.jar
mail-1.4.jar
mex-1.4.1.jar
neethi-2.0.4.jar
soapmonitor-1.4.1.jar
woden-api-1.0M8.jar
woden-impl-dom-1.0M8.jar
wsdl4j-1.6.2.jar
wstx-asl-3.2.4.jar
xalan-2.7.0.jar
xercesImpl-2.8.1.jar
xml-apis-1.3.04.jar
xml-resolver-1.2.jar
xmlbeans-2.3.0.jar
XmlSchema-1.4.2.jar


-- 
View this message in context: 
http://www.nabble.com/%22Transport-out-has-not-been-set%22-when-using-local-WSDL-file-tp19567501p19584522.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Transport out has not been set" when using local WSDL file

2008-09-19 Thread Stephen Hall
Don't know if this the cause for you but I've commonly seen this error on Axis2 
clients when all of the necessary run time jars are not on the classpath.

My understanding is that if you don't explicitly have an axis2.xml file a 
default configuration is used -- you don't need one unless you need additional 
configuration.

  
Steve Hall



- Original Message 
From: Sagi Mann <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, September 19, 2008 2:30:47 AM
Subject: "Transport out has not been set" when using local WSDL file


Hi all, 
I'm using axis2 1.4.1 (Java), and I have encountered yet another case of
Transport out has not been set error, which I was unable to resolve from
looking at the other posts on the subject. 

The exception occurs when trying to invoke any web service method via the
stub (generated using ADB). I only knew that this was the exception because
I added "f.printStackTrace()" line in my generated HelloServiceStub.test
method. Without it, the main app simply gets a vague NPE on a line in the
stub code: 
   } finally { 
  
_messageContext.getTransportOut().getSender().cleanup(_messageContext); 
   } 

I narrowed the issue down to the client's stub creation line. 
Basically, if I create a stub using a WDL url that looks like this, all is
ok: 
http://localhost:8080/web-ws-simple/HelloService?wsdl

But, if I try to use a local copy, I get the "Transport out has not been
set" exception: 
file://V:/src/test/ws/web-ws-simple-client-axis2-standalone/resources/META-INF/Hello.wsdl

The content of both WSDL files is identical, and they both contain an
appropriate HTTP port address: 
http://localhost:8080/web-ws-simple/HelloService"/>

I configured log4j to show all the org.apache.axis2 messages (prio ALL). I'm
attaching the log4j output for both test runs, which are identical almost up
to the exception, but the few differences don't mean much to me (starting
line 703). Note: I don't have an axis2.xml file on the client side. Neither
does the sample axis2 WS client. Is some custom axis2.xml configuration
needed?

Any ideas on how to solve the issue will be appreciated.
http://www.nabble.com/file/p19567501/axis2-good.txt axis2-good.txt 
http://www.nabble.com/file/p19567501/axis2-bad.txt axis2-bad.txt 
-- 
View this message in context: 
http://www.nabble.com/%22Transport-out-has-not-been-set%22-when-using-local-WSDL-file-tp19567501p19567501.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-03-23 Thread charlesgoddard

Yeah, the transport in is TRANSPORT_HTTP.

I was able to get it to work reading in the axis2.xml from the binary
distribution and refactoring the yahoorestsearch example, so I'm taking
another hard look at my config file and code.

Thanks for the reply.


Michele Mazzucco-2 wrote:
> 
> Henry,
> 
> have you set the transport into the options?
> 
> options.setTransportInProtocol(Constants.TRANSPORT_JMS);
> 
> 
> On 22 Mar 2008, at 18:49, charlesgoddard wrote:
>>
>> Any other reasons besides missing dependencies, misconfigured  
>> config file, or
>> missing modules that this would happen?
>>
>> All of this is correct in a small test app I'm trying to use to  
>> test REST
>> requests and JSON.
>>
>>
>> henry human wrote:
>>>
>>> Hi
>>> In the past two days I am trying to implement a simple
>>>
>>> Echo service binding jms.
>>> As long as I run my client I get error :
>>>  org.apache.axis2.AxisFault:
>>> Transport out has not been set
>>> at
>>> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send 
>>> (OutInAxisOperation.java:374)
>>>
>> ..
>>> the soap address which I bind to is:
>>> "jms:/myqueue? 
>>> transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.n 
>>> aming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContext 
>>> Factory&java.naming.provider.url=tcp://localhost:61616");
>>>
>>> It seems that axis above in url does not recognize the
>>> jms to bind a protocol. I did a test, changing the url
>>> to something like http://localhost.."; and I see that
>>> axis could get the Http TransportSender very well and
>>> client application builds a connection to the service!
>>>
>>> I read several comments in web where the similar error
>>> has been reported and has been solved adding missing
>>> jars. In my case I have all jars in the classpath!
>>> It seems that the TransportSender could not be
>>> initiated.
>>> I will be appreciated for your help
>>>
>>>
>>>
>>>   Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
>>> http://de.yahoo.com/set
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/Transport-out- 
>> has-not-been-set-tp15119631p16225961.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Transport-out-has-not-been-set-tp15119631p16236272.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-03-23 Thread Michele Mazzucco

Henry,

have you set the transport into the options?

options.setTransportInProtocol(Constants.TRANSPORT_JMS);


On 22 Mar 2008, at 18:49, charlesgoddard wrote:


Any other reasons besides missing dependencies, misconfigured  
config file, or

missing modules that this would happen?

All of this is correct in a small test app I'm trying to use to  
test REST

requests and JSON.


henry human wrote:


Hi
In the past two days I am trying to implement a simple

Echo service binding jms.
As long as I run my client I get error :
 org.apache.axis2.AxisFault:
Transport out has not been set
at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
at
org.apache.axis2.description.OutInAxisOperationClient.send 
(OutInAxisOperation.java:374)



..

the soap address which I bind to is:
"jms:/myqueue? 
transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.n 
aming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContext 
Factory&java.naming.provider.url=tcp://localhost:61616");


It seems that axis above in url does not recognize the
jms to bind a protocol. I did a test, changing the url
to something like http://localhost.."; and I see that
axis could get the Http TransportSender very well and
client application builds a connection to the service!

I read several comments in web where the similar error
has been reported and has been solved adding missing
jars. In my case I have all jars in the classpath!
It seems that the TransportSender could not be
initiated.
I will be appreciated for your help



  Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: http://www.nabble.com/Transport-out- 
has-not-been-set-tp15119631p16225961.html

Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-03-22 Thread charlesgoddard

Any other reasons besides missing dependencies, misconfigured config file, or
missing modules that this would happen?

All of this is correct in a small test app I'm trying to use to test REST
requests and JSON.


henry human wrote:
> 
> Hi 
> In the past two days I am trying to implement a simple
> 
> Echo service binding jms.
> As long as I run my client I get error :
>  org.apache.axis2.AxisFault: 
> Transport out has not been set
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
> …..
> the soap address which I bind to is:
> "jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616");
> 
> It seems that axis above in url does not recognize the
> jms to bind a protocol. I did a test, changing the url
> to something like http://localhost.."; and I see that
> axis could get the Http TransportSender very well and
> client application builds a connection to the service!
>  
> I read several comments in web where the similar error
> has been reported and has been solved adding missing
> jars. In my case I have all jars in the classpath!
> It seems that the TransportSender could not be
> initiated.
> I will be appreciated for your help
> 
> 
> 
>   Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
> http://de.yahoo.com/set
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Transport-out-has-not-been-set-tp15119631p16225961.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-01-27 Thread Deepal jayasinghe

> I have created a CofigureContext:
>
> ConfigurationContext myConfigContext =
> ConfigurationContextFactory
> .createConfigurationContextFromFileSystem(null,
> " /WebContent/WEB-INF/conf/axis2.xml");
>
> QServiceClientStub qcs = new client.QServiceClientStub
> (myConfigContext);
>
> and i get this error:
>
> Exception in thread "main" org.apache.axis2.AxisFault:
> The system is attempting to engage a module that is
> not available: addressing
>   
Download addressing.mar and drop into classpath

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-01-27 Thread Upul Godage
Looks like as if the client has sent the message to a queue and was waiting
for a response. May be your client and service are working with two
different queues. It is always better to create the queues in the JMS server
than letting it create them on demand. Because activemq's temporary queue's
are created with a prefix. That is dynamicQueues/QService.  Check whether
the queue is there, queue received the message. Whether server side is
listening to the same queue using jms server's console or something.

You can get the wsdl the normal way through http.
http://localhost:8080/axis2/services/QService?wsdl The path will depend on
how you have deployed the axis2.

Upul


On Jan 27, 2008 11:34 PM, henry human <[EMAIL PROTECTED]> wrote:

> Now trying to invoke the service I become:
>
> Cannot get or lookup JMS destination : QService from
> url :
>
> jms:/QService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> : QService
> - Did not receive a JMS response within 3 ms to
> destination : queue://QService
> //
> The MQueue server is running and MyApp.war is deployed
> to tomcat
>
> How do I get the the wsdl of my service when soap url
> for he service is:
>
> jms:/
>
> QService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> ");
> ??
>
> Thanks
>
>
>
>
> --- henry human <[EMAIL PROTECTED]> schrieb:
>
> > ok. i saw my mistake. i did it with correct path
> >  Deploying module: soapmonitor-1.2
> > - Deploying Web service: QueueService.aar
> > - Cannot get or lookup JMS destination :
> > QueueService
> > from url :
> >
>
> jms:/MyService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> > : MyService
> > - Did not receive a JMS response within 3 ms to
> > destination : queue://MyService
> >
> > It seems now that my service does not work properly.
> >
> > Thanks
> > --- Upul Godage <[EMAIL PROTECTED]> schrieb:
> >
> > > Hi,
> > >
> > > It says it cannot find the module 'addressing'.
> > That
> > > module is read from the
> > > the modules directory in the given repository. Try
> > > giving the repository
> > > location like this (which should have a 'modules'
> > > directory with the
> > > addressing module)
> > >
> > > ConfigurationContext myConfigContext =
> > > ConfigurationContextFactory
> > >
> >
> .createConfigurationContextFromFileSystem("/WebContent/WEB-INF",
> > > " /WebContent/WEB-INF/conf/axis2.xml");
> > >
> > > Upul
> > >
> > >
> > > On Jan 27, 2008 9:46 PM, henry human
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > > > thanks
> > > > I have created a CofigureContext:
> > > >
> > > > ConfigurationContext myConfigContext =
> > > > ConfigurationContextFactory
> > > > .createConfigurationContextFromFileSystem(null,
> > > > " /WebContent/WEB-INF/conf/axis2.xml");
> > > >
> > > > QServiceClientStub qcs = new
> > > client.QServiceClientStub
> > > > (myConfigContext);
> > > >
> > > > and i get this error:
> > > >
> > > > Exception in thread "main"
> > > org.apache.axis2.AxisFault:
> > > > The system is attempting to engage a module that
> > > is
> > > > not available: addressing
> > > >at
> > > >
> > >
> >
> org.apache.axis2.engine.AxisConfiguration.engageModule(
> > > > AxisConfiguration.java:440)
> > > >at
> > > >
> > >
> >
> org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(
> > > > AxisConfiguration.java:567)
> > > >at
> > > >
> > >
> >
> org.apache.axis2.deployment.DeploymentEngine.engageModules(
> > > > DeploymentEngine.java:589)
> > > >..
> > > >
> > > > --- Upul Godage <[EMAIL PROTECTED]> schrieb:
> > > >
> > > > > Hi,
> > > > >
> > > > > Check whether JMS sender is uncommented in the
> > > > > axis2.xml.
> > > > >  > > > >
> > -class="org.apache.axis2.transport.jms.JMSSender
> > > > > "/>
> > > > > Otherwise JMS sender is not available. I think
> > > it is
> > > > > commented by default in
> > > > > Axis2 1.3.
> > > > >
> > > > > For the server side, the used axis2.xml is in
> > > conf
> > > > > or for war WEB-INF/conf
> > > > >
> > > > > For client side the axis2.xml, one taken by
> > the
> > > > > ServiceClient is in the
> > > > > axis2-kernal jar's root which should have the
> > > JMS
> > > > > sender commented in Axis2
> > > > > 1.3.
> > > > >
> > > > > For client side, in that case, you can create
> > a
> > > > > configuration context by the
> > > > > given axis2.xml and repository location.
> > > > > ConfigurationContext myConfigContext =
> > > > >
> > > >
> > >
> >
> ConfigurationContextFactory.createConfigurationContextFromFileSystem

Re: Transport out has not been set

2008-01-27 Thread henry human
Now trying to invoke the service I become:

Cannot get or lookup JMS destination : QService from
url : 
jms:/QService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
: QService
- Did not receive a JMS response within 3 ms to
destination : queue://QService
//
The MQueue server is running and MyApp.war is deployed
to tomcat

How do I get the the wsdl of my service when soap url
for he service is:

jms:/
QService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616");
??

Thanks




--- henry human <[EMAIL PROTECTED]> schrieb:

> ok. i saw my mistake. i did it with correct path
>  Deploying module: soapmonitor-1.2
> - Deploying Web service: QueueService.aar
> - Cannot get or lookup JMS destination :
> QueueService
> from url :
>
jms:/MyService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> : MyService
> - Did not receive a JMS response within 3 ms to
> destination : queue://MyService
> 
> It seems now that my service does not work properly.
> 
> Thanks
> --- Upul Godage <[EMAIL PROTECTED]> schrieb:
> 
> > Hi,
> > 
> > It says it cannot find the module 'addressing'.
> That
> > module is read from the
> > the modules directory in the given repository. Try
> > giving the repository
> > location like this (which should have a 'modules'
> > directory with the
> > addressing module)
> > 
> > ConfigurationContext myConfigContext =
> > ConfigurationContextFactory
> >
>
.createConfigurationContextFromFileSystem("/WebContent/WEB-INF",
> > " /WebContent/WEB-INF/conf/axis2.xml");
> > 
> > Upul
> > 
> > 
> > On Jan 27, 2008 9:46 PM, henry human
> > <[EMAIL PROTECTED]> wrote:
> > 
> > > thanks
> > > I have created a CofigureContext:
> > >
> > > ConfigurationContext myConfigContext =
> > > ConfigurationContextFactory
> > > .createConfigurationContextFromFileSystem(null,
> > > " /WebContent/WEB-INF/conf/axis2.xml");
> > >
> > > QServiceClientStub qcs = new
> > client.QServiceClientStub
> > > (myConfigContext);
> > >
> > > and i get this error:
> > >
> > > Exception in thread "main"
> > org.apache.axis2.AxisFault:
> > > The system is attempting to engage a module that
> > is
> > > not available: addressing
> > >at
> > >
> >
>
org.apache.axis2.engine.AxisConfiguration.engageModule(
> > > AxisConfiguration.java:440)
> > >at
> > >
> >
>
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(
> > > AxisConfiguration.java:567)
> > >at
> > >
> >
>
org.apache.axis2.deployment.DeploymentEngine.engageModules(
> > > DeploymentEngine.java:589)
> > >..
> > >
> > > --- Upul Godage <[EMAIL PROTECTED]> schrieb:
> > >
> > > > Hi,
> > > >
> > > > Check whether JMS sender is uncommented in the
> > > > axis2.xml.
> > > >  > > >
> -class="org.apache.axis2.transport.jms.JMSSender
> > > > "/>
> > > > Otherwise JMS sender is not available. I think
> > it is
> > > > commented by default in
> > > > Axis2 1.3.
> > > >
> > > > For the server side, the used axis2.xml is in
> > conf
> > > > or for war WEB-INF/conf
> > > >
> > > > For client side the axis2.xml, one taken by
> the
> > > > ServiceClient is in the
> > > > axis2-kernal jar's root which should have the
> > JMS
> > > > sender commented in Axis2
> > > > 1.3.
> > > >
> > > > For client side, in that case, you can create
> a
> > > > configuration context by the
> > > > given axis2.xml and repository location.
> > > > ConfigurationContext myConfigContext =
> > > >
> > >
> >
>
ConfigurationContextFactory.createConfigurationContextFromFileSystem
> > > ("location
> > > > of the repository" , "location of axis2.xm");
> > > > (http://wso2.org/library/585)
> > > >
> > > > And use that for creating the serviceclient.
> > > > ServiceClient serviceClient = new
> ServiceClient
> > > > (configContext, null);
> > > > (
> > > >
> > >
> > >
> >
>
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> > > > )
> > > >
> > > > Hope this helps
> > > >
> > > > Upul
> > > >
> > > >
> > > > On Jan 27, 2008 7:44 PM, henry human
> > > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi
> > > > > In the past two days I am trying to
> implement
> > a
> > > > simple
> > > > >
> > > > > Echo service binding jms.
> > > > > As long as I run my client I get error :
> > > > >  org.apache.axis2.AxisFault:
> > > > > Transport out has not been set
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> > > > > at
> > > > >
> > > >
> > >
> >
>
org.apache.axis2.description.OutInAxisOperationClient.send(

Re: Transport out has not been set

2008-01-27 Thread henry human
ok. i saw my mistake. i did it with correct path
 Deploying module: soapmonitor-1.2
- Deploying Web service: QueueService.aar
- Cannot get or lookup JMS destination : QueueService
from url :
jms:/MyService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
: MyService
- Did not receive a JMS response within 3 ms to
destination : queue://MyService

It seems now that my service does not work properly.

Thanks
--- Upul Godage <[EMAIL PROTECTED]> schrieb:

> Hi,
> 
> It says it cannot find the module 'addressing'. That
> module is read from the
> the modules directory in the given repository. Try
> giving the repository
> location like this (which should have a 'modules'
> directory with the
> addressing module)
> 
> ConfigurationContext myConfigContext =
> ConfigurationContextFactory
>
.createConfigurationContextFromFileSystem("/WebContent/WEB-INF",
> " /WebContent/WEB-INF/conf/axis2.xml");
> 
> Upul
> 
> 
> On Jan 27, 2008 9:46 PM, henry human
> <[EMAIL PROTECTED]> wrote:
> 
> > thanks
> > I have created a CofigureContext:
> >
> > ConfigurationContext myConfigContext =
> > ConfigurationContextFactory
> > .createConfigurationContextFromFileSystem(null,
> > " /WebContent/WEB-INF/conf/axis2.xml");
> >
> > QServiceClientStub qcs = new
> client.QServiceClientStub
> > (myConfigContext);
> >
> > and i get this error:
> >
> > Exception in thread "main"
> org.apache.axis2.AxisFault:
> > The system is attempting to engage a module that
> is
> > not available: addressing
> >at
> >
>
org.apache.axis2.engine.AxisConfiguration.engageModule(
> > AxisConfiguration.java:440)
> >at
> >
>
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(
> > AxisConfiguration.java:567)
> >at
> >
>
org.apache.axis2.deployment.DeploymentEngine.engageModules(
> > DeploymentEngine.java:589)
> >..
> >
> > --- Upul Godage <[EMAIL PROTECTED]> schrieb:
> >
> > > Hi,
> > >
> > > Check whether JMS sender is uncommented in the
> > > axis2.xml.
> > >  > > -class="org.apache.axis2.transport.jms.JMSSender
> > > "/>
> > > Otherwise JMS sender is not available. I think
> it is
> > > commented by default in
> > > Axis2 1.3.
> > >
> > > For the server side, the used axis2.xml is in
> conf
> > > or for war WEB-INF/conf
> > >
> > > For client side the axis2.xml, one taken by the
> > > ServiceClient is in the
> > > axis2-kernal jar's root which should have the
> JMS
> > > sender commented in Axis2
> > > 1.3.
> > >
> > > For client side, in that case, you can create a
> > > configuration context by the
> > > given axis2.xml and repository location.
> > > ConfigurationContext myConfigContext =
> > >
> >
>
ConfigurationContextFactory.createConfigurationContextFromFileSystem
> > ("location
> > > of the repository" , "location of axis2.xm");
> > > (http://wso2.org/library/585)
> > >
> > > And use that for creating the serviceclient.
> > > ServiceClient serviceClient = new ServiceClient
> > > (configContext, null);
> > > (
> > >
> >
> >
>
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> > > )
> > >
> > > Hope this helps
> > >
> > > Upul
> > >
> > >
> > > On Jan 27, 2008 7:44 PM, henry human
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hi
> > > > In the past two days I am trying to implement
> a
> > > simple
> > > >
> > > > Echo service binding jms.
> > > > As long as I run my client I get error :
> > > >  org.apache.axis2.AxisFault:
> > > > Transport out has not been set
> > > > at
> > > >
> > >
> >
>
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> > > > at
> > > >
> > >
> >
>
org.apache.axis2.description.OutInAxisOperationClient.send(
> > > > OutInAxisOperation.java:374)
> > > > …..
> > > > the soap address which I bind to is:
> > > >
> > > >
> > >
> >
> >
>
"jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> > > >
> > >
> >
> >
>
org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> > > > ");
> > > >
> > > > It seems that axis above in url does not
> recognize
> > > the
> > > > jms to bind a protocol. I did a test, changing
> the
> > > url
> > > > to something like http://localhost.."; and I
> see
> > > that
> > > > axis could get the Http TransportSender very
> well
> > > and
> > > > client application builds a connection to the
> > > service!
> > > >
> > > > I read several comments in web where the
> similar
> > > error
> > > > has been reported and has been solved adding
> > > missing
> > > > jars. In my case I have all jars in the
> classpath!
> > > > It seems that the TransportSender could not be
> > > > initiated.
> > > > I will be appreciated for your help
> > > >
> > > >
> > > >
> > > >  Machen Sie Yahoo! zu Ihrer Startseite.
> Los
> > > geht's:
> > > > http://de.yahoo.com/set
> > > >

Re: Transport out has not been set

2008-01-27 Thread Upul Godage
Hi,

It says it cannot find the module 'addressing'. That module is read from the
the modules directory in the given repository. Try giving the repository
location like this (which should have a 'modules' directory with the
addressing module)

ConfigurationContext myConfigContext =
ConfigurationContextFactory
.createConfigurationContextFromFileSystem("/WebContent/WEB-INF",
" /WebContent/WEB-INF/conf/axis2.xml");

Upul


On Jan 27, 2008 9:46 PM, henry human <[EMAIL PROTECTED]> wrote:

> thanks
> I have created a CofigureContext:
>
> ConfigurationContext myConfigContext =
> ConfigurationContextFactory
> .createConfigurationContextFromFileSystem(null,
> " /WebContent/WEB-INF/conf/axis2.xml");
>
> QServiceClientStub qcs = new client.QServiceClientStub
> (myConfigContext);
>
> and i get this error:
>
> Exception in thread "main" org.apache.axis2.AxisFault:
> The system is attempting to engage a module that is
> not available: addressing
>at
> org.apache.axis2.engine.AxisConfiguration.engageModule(
> AxisConfiguration.java:440)
>at
> org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(
> AxisConfiguration.java:567)
>at
> org.apache.axis2.deployment.DeploymentEngine.engageModules(
> DeploymentEngine.java:589)
>..
>
> --- Upul Godage <[EMAIL PROTECTED]> schrieb:
>
> > Hi,
> >
> > Check whether JMS sender is uncommented in the
> > axis2.xml.
> >  > -class="org.apache.axis2.transport.jms.JMSSender
> > "/>
> > Otherwise JMS sender is not available. I think it is
> > commented by default in
> > Axis2 1.3.
> >
> > For the server side, the used axis2.xml is in conf
> > or for war WEB-INF/conf
> >
> > For client side the axis2.xml, one taken by the
> > ServiceClient is in the
> > axis2-kernal jar's root which should have the JMS
> > sender commented in Axis2
> > 1.3.
> >
> > For client side, in that case, you can create a
> > configuration context by the
> > given axis2.xml and repository location.
> > ConfigurationContext myConfigContext =
> >
> ConfigurationContextFactory.createConfigurationContextFromFileSystem
> ("location
> > of the repository" , "location of axis2.xm");
> > (http://wso2.org/library/585)
> >
> > And use that for creating the serviceclient.
> > ServiceClient serviceClient = new ServiceClient
> > (configContext, null);
> > (
> >
>
> http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> > )
> >
> > Hope this helps
> >
> > Upul
> >
> >
> > On Jan 27, 2008 7:44 PM, henry human
> > <[EMAIL PROTECTED]> wrote:
> >
> > > Hi
> > > In the past two days I am trying to implement a
> > simple
> > >
> > > Echo service binding jms.
> > > As long as I run my client I get error :
> > >  org.apache.axis2.AxisFault:
> > > Transport out has not been set
> > > at
> > >
> >
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> > > at
> > >
> >
> org.apache.axis2.description.OutInAxisOperationClient.send(
> > > OutInAxisOperation.java:374)
> > > …..
> > > the soap address which I bind to is:
> > >
> > >
> >
>
> "jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> > >
> >
>
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> > > ");
> > >
> > > It seems that axis above in url does not recognize
> > the
> > > jms to bind a protocol. I did a test, changing the
> > url
> > > to something like http://localhost.."; and I see
> > that
> > > axis could get the Http TransportSender very well
> > and
> > > client application builds a connection to the
> > service!
> > >
> > > I read several comments in web where the similar
> > error
> > > has been reported and has been solved adding
> > missing
> > > jars. In my case I have all jars in the classpath!
> > > It seems that the TransportSender could not be
> > > initiated.
> > > I will be appreciated for your help
> > >
> > >
> > >
> > >  Machen Sie Yahoo! zu Ihrer Startseite. Los
> > geht's:
> > > http://de.yahoo.com/set
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
>  Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und
> viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Transport out has not been set

2008-01-27 Thread henry human
thanks
I have created a CofigureContext:

ConfigurationContext myConfigContext =
ConfigurationContextFactory
.createConfigurationContextFromFileSystem(null,
" /WebContent/WEB-INF/conf/axis2.xml");

QServiceClientStub qcs = new client.QServiceClientStub
(myConfigContext);

and i get this error:

Exception in thread "main" org.apache.axis2.AxisFault:
The system is attempting to engage a module that is
not available: addressing
at
org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:440)
at
org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfiguration.java:567)
at
org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:589)
..

--- Upul Godage <[EMAIL PROTECTED]> schrieb:

> Hi,
> 
> Check whether JMS sender is uncommented in the
> axis2.xml.
>  -class="org.apache.axis2.transport.jms.JMSSender
> "/>
> Otherwise JMS sender is not available. I think it is
> commented by default in
> Axis2 1.3.
> 
> For the server side, the used axis2.xml is in conf
> or for war WEB-INF/conf
> 
> For client side the axis2.xml, one taken by the
> ServiceClient is in the
> axis2-kernal jar's root which should have the JMS
> sender commented in Axis2
> 1.3.
> 
> For client side, in that case, you can create a
> configuration context by the
> given axis2.xml and repository location.
> ConfigurationContext myConfigContext =
>
ConfigurationContextFactory.createConfigurationContextFromFileSystem("location
> of the repository" , "location of axis2.xm");
> (http://wso2.org/library/585)
> 
> And use that for creating the serviceclient.
> ServiceClient serviceClient = new ServiceClient
> (configContext, null);
> (
>
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
> )
> 
> Hope this helps
> 
> Upul
> 
> 
> On Jan 27, 2008 7:44 PM, henry human
> <[EMAIL PROTECTED]> wrote:
> 
> > Hi
> > In the past two days I am trying to implement a
> simple
> >
> > Echo service binding jms.
> > As long as I run my client I get error :
> >  org.apache.axis2.AxisFault:
> > Transport out has not been set
> > at
> >
>
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> > at
> >
>
org.apache.axis2.description.OutInAxisOperationClient.send(
> > OutInAxisOperation.java:374)
> > …..
> > the soap address which I bind to is:
> >
> >
>
"jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> >
>
org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> > ");
> >
> > It seems that axis above in url does not recognize
> the
> > jms to bind a protocol. I did a test, changing the
> url
> > to something like http://localhost.."; and I see
> that
> > axis could get the Http TransportSender very well
> and
> > client application builds a connection to the
> service!
> >
> > I read several comments in web where the similar
> error
> > has been reported and has been solved adding
> missing
> > jars. In my case I have all jars in the classpath!
> > It seems that the TransportSender could not be
> > initiated.
> > I will be appreciated for your help
> >
> >
> >
> >  Machen Sie Yahoo! zu Ihrer Startseite. Los
> geht's:
> > http://de.yahoo.com/set
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 



  Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel 
mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-01-27 Thread Upul Godage
Hi,

Check whether JMS sender is uncommented in the axis2.xml.

Otherwise JMS sender is not available. I think it is commented by default in
Axis2 1.3.

For the server side, the used axis2.xml is in conf or for war WEB-INF/conf

For client side the axis2.xml, one taken by the ServiceClient is in the
axis2-kernal jar's root which should have the JMS sender commented in Axis2
1.3.

For client side, in that case, you can create a configuration context by the
given axis2.xml and repository location.
ConfigurationContext myConfigContext =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("location
of the repository" , "location of axis2.xm");
(http://wso2.org/library/585)

And use that for creating the serviceclient.
ServiceClient serviceClient = new ServiceClient (configContext, null);
(
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
)

Hope this helps

Upul


On Jan 27, 2008 7:44 PM, henry human <[EMAIL PROTECTED]> wrote:

> Hi
> In the past two days I am trying to implement a simple
>
> Echo service binding jms.
> As long as I run my client I get error :
>  org.apache.axis2.AxisFault:
> Transport out has not been set
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
> …..
> the soap address which I bind to is:
>
> "jms:/myqueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=
> org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
> ");
>
> It seems that axis above in url does not recognize the
> jms to bind a protocol. I did a test, changing the url
> to something like http://localhost.."; and I see that
> axis could get the Http TransportSender very well and
> client application builds a connection to the service!
>
> I read several comments in web where the similar error
> has been reported and has been solved adding missing
> jars. In my case I have all jars in the classpath!
> It seems that the TransportSender could not be
> initiated.
> I will be appreciated for your help
>
>
>
>  Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
> http://de.yahoo.com/set
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Transport out has not been set

2008-01-27 Thread henry human
thanks.
it does not help in my case.
I have just the same error.


--- Michele Mazzucco <[EMAIL PROTECTED]>
schrieb:

> Try
> 
>
options.setTransportInProtocol(Constants.TRANSPORT_JMS);
> 
> Michele
> 
> On 27 Jan 2008, at 14:14, henry human wrote:
> 
> > Hi
> > In the past two days I am trying to implement a
> simple
> >
> > Echo service binding jms.
> > As long as I run my client I get error :
> >  org.apache.axis2.AxisFault:
> > Transport out has not been set
> > at
> >
>
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
> > at
> >
>
org.apache.axis2.description.OutInAxisOperationClient.send
> 
> > (OutInAxisOperation.java:374)
> > …..
> > the soap address which I bind to is:
> > "jms:/myqueue? 
> >
>
transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.na
> 
> >
>
ming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFa
> 
> >
>
ctory&java.naming.provider.url=tcp://localhost:61616");
> >
> > It seems that axis above in url does not recognize
> the
> > jms to bind a protocol. I did a test, changing the
> url
> > to something like http://localhost.."; and I see
> that
> > axis could get the Http TransportSender very well
> and
> > client application builds a connection to the
> service!
> >
> > I read several comments in web where the similar
> error
> > has been reported and has been solved adding
> missing
> > jars. In my case I have all jars in the classpath!
> > It seems that the TransportSender could not be
> > initiated.
> > I will be appreciated for your help
> >
> >
> >
> >   Machen Sie Yahoo! zu Ihrer Startseite. Los
> geht's:
> > http://de.yahoo.com/set
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s 
mit dem neuen Yahoo! Mail. www.yahoo.de/mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2008-01-27 Thread Michele Mazzucco

Try

options.setTransportInProtocol(Constants.TRANSPORT_JMS);

Michele

On 27 Jan 2008, at 14:14, henry human wrote:


Hi
In the past two days I am trying to implement a simple

Echo service binding jms.
As long as I run my client I get error :
 org.apache.axis2.AxisFault:
Transport out has not been set
at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:383)
at
org.apache.axis2.description.OutInAxisOperationClient.send 
(OutInAxisOperation.java:374)

…..
the soap address which I bind to is:
"jms:/myqueue? 
transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.na 
ming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFa 
ctory&java.naming.provider.url=tcp://localhost:61616");


It seems that axis above in url does not recognize the
jms to bind a protocol. I did a test, changing the url
to something like http://localhost.."; and I see that
axis could get the Http TransportSender very well and
client application builds a connection to the service!

I read several comments in web where the similar error
has been reported and has been solved adding missing
jars. In my case I have all jars in the classpath!
It seems that the TransportSender could not be
initiated.
I will be appreciated for your help



  Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2007-06-13 Thread Martin Gainty
Also you will want to check transport attribute in your for wsdl transport=


to quote the doc:
The value of the required transport attribute indicates which transport of 
SOAP this binding corresponds to. The URI value 
"http://schemas.xmlsoap.org/soap/http " corresponds to the HTTP binding in 
the SOAP specification. Other URIs may be used here to indicate other 
transports (such as SMTP, FTP, etc.).


HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 13, 2007 2:05 PM
Subject: Re: Transport out has not been set



May be you have not added dependent  jars which JMS required to the
classpath.

Thanks
Deepal

Kang, Kamaljeet K. wrote:


Hi,



I am trying to test axis2 with JMS transport. I followed the
instructions as per ‘jms-transport.html’. The server initializes fine
and I see the JMS queue gets created on the JMS broker but when I try
to call a method on stub I get the following exception.



org.apache.axis2.AxisFault: Transport out has not been set

at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:507)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:309)

at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:273)

at org.hello.HelloStub.Hello(HelloStub.java:173)

at org.hello.HelloStub.main(HelloStub.java:462)



String url =
"jms:/Hello?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";


 HelloStub hStub = new HelloStub(url);

   HelloResponse hRes = hStub.Hello("Test");

System.out.println("Response is " +
hRes.getStringout());



Can someone please help me with this?





Thanks



Kamal


The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs




--
Thanks,
Deepal

"The highest tower is built one brick at a time"



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Transport out has not been set

2007-06-13 Thread Kang, Kamaljeet K.
I checked again, I have all the jar files from ActiveMQ and Axis2 in my
classpath.

Thanks

Kamal

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 2:05 PM
To: axis-user@ws.apache.org
Subject: Re: Transport out has not been set

May be you have not added dependent  jars which JMS required to the
classpath.

Thanks
Deepal

Kang, Kamaljeet K. wrote:
>
> Hi,
>
>  
>
> I am trying to test axis2 with JMS transport. I followed the
> instructions as per 'jms-transport.html'. The server initializes fine
> and I see the JMS queue gets created on the JMS broker but when I try
> to call a method on stub I get the following exception.
>
>  
>
> org.apache.axis2.AxisFault: Transport out has not been set
>
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:507)
>
> at
>
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:309)
>
> at
>
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:273)
>
> at org.hello.HelloStub.Hello(HelloStub.java:173)
>
> at org.hello.HelloStub.main(HelloStub.java:462)
>
>  
>
> String url =   
>
"jms:/Hello?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFacto
ry&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialC
ontextFactory&java.naming.provider.url=tcp://localhost:61616"; 
>
>
>  HelloStub hStub = new HelloStub(url);
>
>HelloResponse hRes = hStub.Hello("Test");
>
> System.out.println("Response is " +
> hRes.getStringout());
>
>  
>
> Can someone please help me with this?
>
>  
>
>  
>
> Thanks
>
>  
>
> Kamal
>
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
>   

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set

2007-06-13 Thread Deepal Jayasinghe
May be you have not added dependent  jars which JMS required to the
classpath.

Thanks
Deepal

Kang, Kamaljeet K. wrote:
>
> Hi,
>
>  
>
> I am trying to test axis2 with JMS transport. I followed the
> instructions as per ‘jms-transport.html’. The server initializes fine
> and I see the JMS queue gets created on the JMS broker but when I try
> to call a method on stub I get the following exception.
>
>  
>
> org.apache.axis2.AxisFault: Transport out has not been set
>
> at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:507)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:309)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:273)
>
> at org.hello.HelloStub.Hello(HelloStub.java:173)
>
> at org.hello.HelloStub.main(HelloStub.java:462)
>
>  
>
> String url =   
> "jms:/Hello?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616";
>  
>
>
>  HelloStub hStub = new HelloStub(url);
>
>HelloResponse hRes = hStub.Hello("Test");
>
> System.out.println("Response is " +
> hRes.getStringout());
>
>  
>
> Can someone please help me with this?
>
>  
>
>  
>
> Thanks
>
>  
>
> Kamal
>
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
>   

-- 
Thanks,
Deepal

"The highest tower is built one brick at a time"



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Transport out has not been set.

2007-05-24 Thread chaoticinc

I encountered the same problem and found that the issue was caused when the
commons-httpclient-[version].jar was missing. It would be nice if this was
caught with
a ClassNotFoundException instead.

Jason Kania


mas wrote:
> 
> Okay thank you that seemed to at least fix the dependency errors!
> 
> 
> Tony Ambrozie wrote:
>> 
>> The code that I used is yours, with all the imports required.  Below is
>> the
>> relevant section of the pom that I used.  Note: I am writing various
>> Axis2-related code than does more than what you are doing and I am using
>> an
>> "umbrella" pom, so it probably has more dependencies that you need, but
>> it
>> will help establish whether this is a missing dependency issue or not. 
>> To
>> Dims' other post re axis2 jars, this should eliminate any possibility
>> that
>> an Axis2 jar (such as commons*) may be missing from the classpath.  As
>> usual, run mvn test or mvn clean test.
>> 
>> Thanks'
>> 
>>   
>> 
>>   junit
>>   junit
>>   3.8.1
>>   test
>> 
>> 
>>   log4j
>>   log4j
>>   1.2.9
>> 
>> 
>> org.apache.axis2
>> axis2
>> 1.1.1
>> 
>> 
>> org.apache.ws.commons.axiom
>> axiom-api
>> 1.2.2
>> 
>> 
>> org.apache.ws.commons.axiom
>> axiom-impl
>> 1.2.1
>> 
>> 
>> org.apache.ws.commons.axiom
>> axiom-dom
>> 1.2.1
>> 
>> 
>> org.apache.ws.commons.schema
>> XmlSchema
>> 1.2
>> test
>> 
>> 
>> org.apache.ws.commons
>> ws-commons-util
>> 1.0.1
>> test
>> 
>> 
>> wsdl4j
>> wsdl4j
>> 1.6.1
>> 
>> 
>> xmlbeans
>> xbean
>> 2.1.0
>> 
>> 
>> org.apache.axis2
>> axis2-xmlbeans
>> 1.1
>> test
>> 
>> 
>> org.apache.neethi
>> neethi
>> 2.0
>> test
>> 
>> 
>> xml-apis
>> xml-apis
>> 1.0.b2
>> test
>> 
>> 
>> stax
>> stax-api
>> 1.0.1
>> 
>> 
>> woodstox
>> wstx-asl
>> 2.9.3
>> test
>> 
>> 
>> commons-httpclient
>> commons-httpclient
>> 3.0.1
>> test
>> 
>> 
>> javax.activation
>> activation
>> 1.1
>> 
>> 
>>   
>> 
>>   central
>>   Maven Central Repository
>>   http://repo1.maven.org/maven2
>> 
>> 
>>   ibiblio
>>   Ibiblio Maven Repository
>>   http://www.ibiblio.org/maven2
>> 
>> 
>>   snapshots
>>   Maven Development Repository
>>   http://snapshots.maven.codehaus.org/maven2
>> 
>>   true
>> 
>> 
>> 
>>   apache.snapshots
>>   Maven Plugins Development Repository
>>   http://people.apache.org/maven-snapshot-repository
>>   
>> true
>>   
>> 
>> 
>> maven2-repository.dev.java.net
>> Java.net Repository for Maven
>> https://maven2-repository.dev.java.net/nonav/repository
>> default
>> 
>>   
>> 
>> 
>> On 2/20/07, mas <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> I do not have an axis2.xml file.  I am invoking the tests in 2 ways and
>>> both
>>> give me the error.  The first way is using the mvn test goal.  And the
>>> second way is to run it as a JUnit Test in Eclipse 3.1 using the JUnit
>>> plugin.  The files I am using are zipped up out at
>>> https://issues.apache.org/jira/browse/AXIS2-
>>>
>>> I have been following the Chad Davis thread you mentioned, although it
>>> doesn't seem to ever come to a conclusion.
>>>
>>> Chad seems to indicate that the code got further after he added
>>> axis2.xml.
>>> (I guess...)
>>>
>>> Would it be possible to post the files you have working for me?  and I
>>> could
>>> see if I could get them to work as you stated?
>>>
>>> Thank you,
>>>  Andrew J. Leer
>>>
>>>
>>> Tony Ambrozie wrote:
>>> >
>>> > Andrew, I was able to run your code past the issue you are reporting,
>>> > therefore you either have a configuration or a dependency issue.  Have
>>> you
>>> > modified or removed axis2.xml?  How are you invoking the tests (see
>>> > documentation on how Axis2 finds axis2.xml)?
>>> >
>>> > There was another report of this error that suggested a missing
>>> dependency
>>> > that gets somehow obscured, pls see here:
>>> > http://www.mail-archive.com/axis-user@ws.apache.org/msg23511.html
>>> >
>>> > Incidentally, the code eventually does throw a fault, but that seems
>>> to
>>> be
>>> > SOAPAction related, issue for another time.  BTW, do you really need
>>> the
>>> > "?WSDL" in your endpoint?
>>> >
>>> > Thanks'
>>> >
>>> >
>>> > On 2/19/07, mas <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >>
>>> >> I tried removing the setUseSeparateListener(false);
>>> >>
>>> >> That didn't really make a difference...*shrugs*
>>> >>
>>> >> I get the same

Re: Transport out has not been set.

2007-02-19 Thread Michele Mazzucco


Andrew,

there's no need to set the transport out. What you did should be enough.
Just in case, try to remove the options.setUseSeparateListener(false)  
call - it's set to false by default.


Michele


On 19 Feb 2007, at 19:55, mas wrote:



Now I understand that I've already set the "in" transport  
protocol.  But I
really do not know how to set the "out" transport protocol or why I  
have to

do it.  The client example in the Axis2 documentation
(http://ws.apache.org/axis2/1_1_1/quickstartguide.html) does not  
require

this:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: transport out has not been set

2007-01-12 Thread ChadDavis

Okay, so it turns out that I didn't have all of the jars from the
distribution's lib file in my classpath.  The error I received on
trying to run the client was, however, a configuration related error.
I guess this must be because some implementation class with the
default configuration was not found; shouldn't the framework through a
classnotfound error??? There's probably some good reason for this, but
its confusing.



On 1/12/07, ChadDavis <[EMAIL PROTECTED]> wrote:

Thanks for you help.  I'm still not there yet though.

Actually, I didn't change anything in axis2.xml  I started to suspect
that the problem was related to the configuration.  So, is that client
supposed to read the axis2.xml file?  If so, how does it know where to
find it?

Interestingly enought, when I executed the client via the axis2.sh
script, which I notice passes in params to indiciate the location of
the axis2.xml file, I get a different error message.  "A required
header representing a message addressing header is not present"

All of this seems to indicate that I need to understand the
configuration via the axis2.xml.  I've looked at the documentaiton but
still don't understand how the client reads the axis2.xml file.  ALSO,
which class is bing configured in the case of the client?  AND is
there ever a case where it can run successfully without reading the
axis2.xml file?

On 1/11/07, Charitha Kankanamge <[EMAIL PROTECTED]> wrote:
> Hi ChadDavis,
> I deployed the UserGuideSampleService as mentioned  in the axis2 new
> user guide and created the client by copying the code included in youe
> email. (Which is the same given in the user guide).
> I was able to invoke the service without having any issues. I tried with
> Tomcat 5.5.16 and the embedded axis2 server. Got the same results in
> both instances. My Java version is 1.5.0_06 and axis vesrion axis2-1.1.1.
>
> It seems that you have changed the default settings in the axis2.xml.
> Please check your axis2.xml and try again.
>
> Regards
> Charitha
>
>
> ChadDavis wrote:
> > I'm trying to run a client from the new user guide.  When I run it I
> > get the message that the transport out has not been set.  The code is
> > directly from the user guide, but I 'll post it here for convenience.
> > What causes this error?
> >
> > package org.apache.axis2.axis2userguide;
> >
> > import javax.xml.stream.XMLStreamException;
> > import org.apache.axiom.om.OMAbstractFactory;
> > import org.apache.axiom.om.OMElement;
> > import org.apache.axiom.om.OMFactory;
> > import org.apache.axiom.om.OMNamespace;
> > import org.apache.axis2.addressing.EndpointReference;
> > import org.apache.axis2.client.Options;
> > import org.apache.axis2.Constants;
> > import org.apache.axis2.client.ServiceClient;
> >
> > public class SampleClient {
> >
> >   private static EndpointReference targetEPR =
> > new EndpointReference(
> >
> > "http://localhost:8080/axis2/services/UserGuideSampleService";);
> >
> >public static OMElement greetUserPayload(String personToGreet) {
> >OMFactory fac = OMAbstractFactory.getOMFactory();
> >OMNamespace omNs = fac.createOMNamespace(
> >"http://example1.org/example1";, "example1");
> >OMElement method = fac.createOMElement("sayHello", omNs);
> >OMElement value = fac.createOMElement("personToGreet",
> > omNs);
> >value.addChild(fac.createOMText(value, personToGreet));
> >method.addChild(value);
> >return method;
> >}
> >
> >public static void main(String[] args) {
> >try {
> >OMElement payload =
> > SampleClient.greetUserPayload("John");
> >Options options = new Options();
> >options.setTo(targetEPR);
> >
> > options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >
> >ServiceClient sender = new ServiceClient();
> >sender.setOptions(options);
> >OMElement result = sender.sendReceive(payload);
> >
> >String response = result.getFirstElement().getText();
> >System.out.println(response);
> >
> >} catch (Exception e) { //(XMLStreamException e) {
> >System.out.println(e.toString());
> >}
> >}
> >
> > }
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: transport out has not been set

2007-01-12 Thread ChadDavis

Thanks for you help.  I'm still not there yet though.

Actually, I didn't change anything in axis2.xml  I started to suspect
that the problem was related to the configuration.  So, is that client
supposed to read the axis2.xml file?  If so, how does it know where to
find it?

Interestingly enought, when I executed the client via the axis2.sh
script, which I notice passes in params to indiciate the location of
the axis2.xml file, I get a different error message.  "A required
header representing a message addressing header is not present"

All of this seems to indicate that I need to understand the
configuration via the axis2.xml.  I've looked at the documentaiton but
still don't understand how the client reads the axis2.xml file.  ALSO,
which class is bing configured in the case of the client?  AND is
there ever a case where it can run successfully without reading the
axis2.xml file?

On 1/11/07, Charitha Kankanamge <[EMAIL PROTECTED]> wrote:

Hi ChadDavis,
I deployed the UserGuideSampleService as mentioned  in the axis2 new
user guide and created the client by copying the code included in youe
email. (Which is the same given in the user guide).
I was able to invoke the service without having any issues. I tried with
Tomcat 5.5.16 and the embedded axis2 server. Got the same results in
both instances. My Java version is 1.5.0_06 and axis vesrion axis2-1.1.1.

It seems that you have changed the default settings in the axis2.xml.
Please check your axis2.xml and try again.

Regards
Charitha


ChadDavis wrote:
> I'm trying to run a client from the new user guide.  When I run it I
> get the message that the transport out has not been set.  The code is
> directly from the user guide, but I 'll post it here for convenience.
> What causes this error?
>
> package org.apache.axis2.axis2userguide;
>
> import javax.xml.stream.XMLStreamException;
> import org.apache.axiom.om.OMAbstractFactory;
> import org.apache.axiom.om.OMElement;
> import org.apache.axiom.om.OMFactory;
> import org.apache.axiom.om.OMNamespace;
> import org.apache.axis2.addressing.EndpointReference;
> import org.apache.axis2.client.Options;
> import org.apache.axis2.Constants;
> import org.apache.axis2.client.ServiceClient;
>
> public class SampleClient {
>
>   private static EndpointReference targetEPR =
> new EndpointReference(
>
> "http://localhost:8080/axis2/services/UserGuideSampleService";);
>
>public static OMElement greetUserPayload(String personToGreet) {
>OMFactory fac = OMAbstractFactory.getOMFactory();
>OMNamespace omNs = fac.createOMNamespace(
>"http://example1.org/example1";, "example1");
>OMElement method = fac.createOMElement("sayHello", omNs);
>OMElement value = fac.createOMElement("personToGreet",
> omNs);
>value.addChild(fac.createOMText(value, personToGreet));
>method.addChild(value);
>return method;
>}
>
>public static void main(String[] args) {
>try {
>OMElement payload =
> SampleClient.greetUserPayload("John");
>Options options = new Options();
>options.setTo(targetEPR);
>
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
>
>ServiceClient sender = new ServiceClient();
>sender.setOptions(options);
>OMElement result = sender.sendReceive(payload);
>
>String response = result.getFirstElement().getText();
>System.out.println(response);
>
>} catch (Exception e) { //(XMLStreamException e) {
>System.out.println(e.toString());
>}
>}
>
> }
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: transport out has not been set

2007-01-11 Thread Charitha Kankanamge

Hi ChadDavis,
I deployed the UserGuideSampleService as mentioned  in the axis2 new 
user guide and created the client by copying the code included in youe 
email. (Which is the same given in the user guide).
I was able to invoke the service without having any issues. I tried with 
Tomcat 5.5.16 and the embedded axis2 server. Got the same results in 
both instances. My Java version is 1.5.0_06 and axis vesrion axis2-1.1.1.


It seems that you have changed the default settings in the axis2.xml. 
Please check your axis2.xml and try again.


Regards
Charitha


ChadDavis wrote:

I'm trying to run a client from the new user guide.  When I run it I
get the message that the transport out has not been set.  The code is
directly from the user guide, but I 'll post it here for convenience.
What causes this error?

package org.apache.axis2.axis2userguide;

import javax.xml.stream.XMLStreamException;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.Constants;
import org.apache.axis2.client.ServiceClient;

public class SampleClient {

  private static EndpointReference targetEPR =
new EndpointReference(
  
"http://localhost:8080/axis2/services/UserGuideSampleService";);


   public static OMElement greetUserPayload(String personToGreet) {
   OMFactory fac = OMAbstractFactory.getOMFactory();
   OMNamespace omNs = fac.createOMNamespace(
   "http://example1.org/example1";, "example1");
   OMElement method = fac.createOMElement("sayHello", omNs);
   OMElement value = fac.createOMElement("personToGreet",
omNs);
   value.addChild(fac.createOMText(value, personToGreet));
   method.addChild(value);
   return method;
   }

   public static void main(String[] args) {
   try {
   OMElement payload =
SampleClient.greetUserPayload("John");
   Options options = new Options();
   options.setTo(targetEPR);

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);
   OMElement result = sender.sendReceive(payload);

   String response = result.getFirstElement().getText();
   System.out.println(response);

   } catch (Exception e) { //(XMLStreamException e) {
   System.out.println(e.toString());
   }
   }

}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]