axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harriquitawn tawn tawn <>
Subject RE: Return issue Axis2 and JSON
Date Wed, 17 Jul 2013 13:21:18 GMT
the first error I receive is
Error 500: javax.servlet.ServletException: javax.servlet.ServletException: org.apache.axis2.AxisFault:
The system is attempting to engage a module that is not available: addressing
But I solved adding the modules as a lib changinge .mar to .jar (I use Websphere as a application
server and found that solution).
After modify that, I don't receive any error, but the response is always an xml file, not
json, altohug I use the ?response=application/json

Date: Tue, 16 Jul 2013 17:30:15 +0530
Subject: Re: Return issue Axis2 and JSON

Hi Tawn, 

On Mon, Jul 15, 2013 at 5:18 PM, harriquitawn tawn tawn <> wrote:

I've tried to configure axis2 1.6.2 with JSON as explained in,
but it doesn't work for me. 

What is the error you are getting? 



I've solved the error adding what it is explained in the next one:

<module ref="DynamicResponseHandler"/>



Now I don't receive any error, but the result seems not to be a standard JSON.


If the WS returns an array of a customized class, in every object it returns "@type":"ax21:Ejemplo2"...

public Ejemplo2[] getListado3()
	Ejemplo2[] ejs = new Ejemplo2[2];
	Ejemplo2 e2 = new Ejemplo2(2L,"bb");
	Ejemplo2 e4 = new Ejemplo2(4L,"aa");
	ejs[0] = e2;
	ejs[1] = e4;
	return ejs;
Is there any way to avoid it?
Thanks in advance.


Best Regards,Shameera Rathnayaka.

email: shameera AT , shameerainfo AT

Blog :

View raw message