Openshift,Web服务客户端错误:权限被拒绝

时间:2015-05-09 22:35:30

标签: openshift

我使用Jboss在Openshift上的tomcat中部署了2个服务作为war文件。 Web服务是在Eclipse中开发的。为了测试,我有

网络服务:功能

public String sayHello(String input){
     return "Hello "+input; 
}

客户端网络服务

Sayhello sayhello=new Sayhello();
sayhello.setInput("EveryOne");
SayhelloResponse resp= stub.sayhello(sayhello);
String result=resp.get_return();

在打开openhift之后调用客户端Web服务时,我收到了以下错误:

org.apache.axis2.AxisFault: Permission denied
    org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
    org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
    org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
    org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
    org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
    org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
    org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
    com.ws.test.HelloAllStub.sayhello(HelloAllStub.java:192)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:87)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

感谢任何帮助,我的猜测是端口转发?!

0 个答案:

没有答案