Author Message
rangari
Joined: Jun 18, 2015
Messages: 132
Offline
Hello Everyone,

Posting my question again.

I have created the one simple http based Breeze snap-in using the 'Avaya Breeze Snap in Development guide Release' documents.
My sample snap-in just returning the 'Hello World'. Below are the two files with code which is present in my snap-in code:

1) MyResource

package com.avaya.TestingSnap;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

/*
* This class is needed if you are trying to write a JAX-RS based web service. You can enhance this as needed for the application.
*
* For applications which provide call related features only and web service is not required, remove this class.
*
*/

@Path("/myResource")
public class MyResource
{
@GET
public String doGet()
{
return "Hello World";
}
}

2) MyApplication

package com.avaya.TestingSnap;

import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/*
* This class is needed if you are trying to write a JAX-RS based web service. You can enhance this as needed for the application.
*
* For applications which provide call related features only and web service is not required, remove this class.
*
*/
@ApplicationPath("/ws")
public class MyApplication extends Application
{
//Don't need to implement getClasses
}



After hitting the below url in the browser, I am getting the ' 400 Bad request' error.

https://<Avaya Breeze_FQDN>/services/TestingService/ws/myResource

I have followed all the steps from dev guide for creating sample application. But still getting the same error. I am not able to find out why this error is coming.

I have run following commands in system below are the response of that commands

1) after running 'deploy_service -lv', I am getting the below result:
load: + deploy: + run: + car: = TestingMsg-1.0.0.0.0.


2) After running the run "traceHTTP" tool, I am getting the below result:

¦¦HTTP/1.1 400 ¦
¦Connection: close ¦
¦Content-Type: text/html ¦
¦Content-Length: 566 ¦
¦ ¦
¦<html> ¦
¦<head><title>400 Bad Request</title></head> ¦
¦<body bgcolor="white"> ¦
¦<center><h1>400 Bad Request</h1></center> ¦
¦<hr><center>web</center> ¦
¦</body> ¦
¦</html> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page --> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page --> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page --> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page --> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page --> ¦
¦<!-- a padding to disable MSIE and Chrome friendly error page -->

I have also attached the 'nginx_http.log' file.


Can you please guide me how to solve this error.

Thanks
Filename nginx_http.log [Disk] Download
Go to:   
Mobile view