How does it work when getting JSON from RESTFUL(jersey)?

I set up the example in :
jersey.java.net/nonav/documentat … ch.section

I can visit the rest service correctly by typing :
localhost:8080/w20-seed/rest/flights
and got the the json as follow for example:

{“flight”:[{“flightId”:“OK123”,“company”:“Czech Airlines”,“number”:“123”,“aircraft”:“B737”},{“flightId”:“OK124”,“company”:“Czech Airlines”,“number”:“124”,“aircraft”:“AB115”}]}

But when I visit the rest service like this :
mygrid.load(“http://localhost:8080/w20-seed/rest/flights”, “json”);

I got the following error in the rest server console:

com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator attachTypes
info: Couldn’t find JAX-B element for class java.lang.String

In fact I also tested component dhtmlXDataStore, And I got the same error.

Anyone have the experience for using dhtmlx and jersey and give me a solution?
Thank you all.

Yeap ! I found that this issue works when I use IE. But Mozilla does not !

See following codes :

var data = new dhtmlXDataStore({
url:“http://localhost:8080/testRest/rest/hello”,
datatype:“json”
});

for (var index=0;index<data.dataCount();index++) {
	var id = data.idByIndex(index);
	var item = data.item(id);
	alert("userName: " + item.userName+ " userType: " + item.userType);
}

=====================================================================

@GET
@Path("/hello")
@Produces(MediaType.APPLICATION_JSON)
public JSONArray sayHello() throws JSONException {

	List<User> list = new ArrayList<User>();
	User user1 = new User();
	user1.setUserName("11111");
	user1.setUserType("11111");
	
	User user2 = new User();
	user2.setUserName("22222");
	user2.setUserType("22222");
	
	User user3 = new User();
	user3.setUserName("33333");
	user3.setUserType("33333");
	
	list.add(user1);
	list.add(user2);		
	list.add(user3);
	
	JSONArray uriArray = new JSONArray();
	for (User userEntity : list) {
		JSONObject myObject = new JSONObject();
		myObject.put("userName", userEntity.getUserName());
		myObject.put("userType", userEntity.getUserType());
                uriArray.put(myObject);
	}		
	return uriArray;
}

mygrid.load(“http://localhost:8080/w20-seed/rest/flights”, “json”);
This command do trigger normal xmlHttpRequest to the above url, so I’m not sure what is the reason of the problem.

try to add the next to the grid’s init

      grid.preventIECaching(false);

it will prevent any url modifications