【问题标题】:linux system release WebService server failurelinux系统发布WebService服务器故障
【发布时间】:2015-11-09 13:41:58
【问题描述】:

系统在linux+tomcat5.5.33+jdk1.6_45+java下发布,其中系统在启动服务器发布webService时出现错误,如下图:

代码如下

Endpoint.publish(PUBParm.FS_WS_ADDRESS_URL +"/BQFT/fs?wsdl", new CifServiceImpl());

package service.service;

@WebService 公共接口 CifService {

public String testFsInter(String str);

@WebMethod(operationName = "findByDate")
public String findByDate(@WebParam(name="strDate")String strDate) throws Exception;

@WebMethod(operationName = "findByDateBean")
public List<CifInfo> findByDateBean(@WebParam(name="strDate")String strDate) throws Exception;

}


package service.service.impl;

@WebService(endpointInterface = "service.service.CifService", targetNamespace = "http://fs.service/", serviceName = "FsService", portName = "FsPort") 公共类 CifServiceImpl 实现 CifService{

@WebMethod(operationName = "findByDate")
public String findByDate(@WebParam(name = "strDate") String txDate){
    ......
    Gson gson = new Gson();
    String json = gson.toJson(cifInfoList);
    ......
    return json;
}

@WebMethod(operationName = "findByDateBean")
public List<CifInfo> findByDateBean(@WebParam(name = "strDate") String txDate){
    .......
    Gson gson = new Gson();
    String json = gson.toJson(cifInfoList);

    ......
    return cifInfoList;
}

@WebMethod(operationName = "testFsInter")
public String testFsInter(String str){
    return str +"ok!";
}

}


windows环境下的项目可以启动和发布。这可能是为什么,以及如何解决它

【问题讨论】:

    标签: linux web-services tomcat jdk1.6


    【解决方案1】:

    问题已经解决了,但是由于操作太多,只是怀疑war包有问题,或者是与托斯卡纳项目相关的Jar包冲突,但个人感觉大有可能是线war问题

    【讨论】:

      猜你喜欢
      • 2014-03-03
      • 1970-01-01
      • 2018-09-14
      • 1970-01-01
      • 2010-10-21
      • 1970-01-01
      • 1970-01-01
      • 2017-12-16
      • 2020-10-17
      相关资源
      最近更新 更多