【发布时间】: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