2
votes

I have been trying without success so far.... Any help is appropriated.

  1. I created a sample webservice and deployed locally and is working fine.
  2. I have an OpenShift account with tomcat and deployed the package through eclipse. Build is good and Deployment is successful.
  3. My calls to the webservice are returning with 503 error.
  4. The haproxy-status page shows local-gear is down. after research for almost a day, I have removed the line "option httpchk GET /" from haproxy/conf/haproxy.cfg. Now the local-gear is up and running.
  5. Now my requests are returning with 404 error code.

Any help is appreciated as I am sort of stuck here.

Thanks,

private static String NAMESPACE = "http://server.tna.scan.com/";
// Webservice URL - WSDL File location   
//private static String URL = "http://192.168.2.5:8080/TNAService/services/TNAService?WSDL";
private static String URL = "http://myapp-mydemain.rhcloud.com:8000/TNAService/services/TNAService?WSDL";
// SOAP Action URI again Namespace + Web method name
private static String SOAP_ACTION = "";
########HERE IS THE ERROR

06-04 20:01:43.406: W/System.err(26086): org.ksoap2.transport.HttpResponseException: HTTP request failed, HTTP status: 404 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:237) 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118) 06-04 20:01:43.406: W/System.err(26086): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.service.WService.invokeHelloWorldWS(WService.java:43) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.MainActivity$PlaceholderFragment$AsyncCallWS.doInBackground(MainActivity.java:162) 06-04 20:01:43.406: W/System.err(26086): at com.scan.tna.MainActivity$PlaceholderFragment$AsyncCallWS.doInBackground(MainActivity.java:1) 06-04 20:01:43.406: W/System.err(26086): at android.os.AsyncTask$2.call(AsyncTask.java:288) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.FutureTask.run(FutureTask.java:237) 06-04 20:01:43.406: W/System.err(26086): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 06-04 20:01:43.406: W/System.err(26086): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 06-04 20:01:43.406: W/System.err(26086): at java.lang.Thread.run(Thread.java:841) 06-04 20:01:43.416: I/System.out(26086): Yes Received

#
2

2 Answers

5
votes

You should Check pom.xml and web.xml.. Don't built your jar files in Built path it occurs 503 error.. It is a maven format so built your jar in pom.xml. For maven check this url. http://mvnrepository.com/artifact/mysql/mysql-connector-java/5.1.30

And check the mapping in web.xml. i think this is the problem. because it only make 404 error. check and tell

1
votes

The URL I used in the local machine is

http://localhost.mydomain/TNAService/services/TNAService?WSDL

and the URL in the rhc is

http://myapp-mydomain.rhcloud.com/services/TNAService?WSDL

No idea why different URLs on different machines but like mentioned above you have to either correct your web.xml or use different URLs.