0
系统发布在linux + tomcat5.5.33 + jdk1.6_45 + java中,其特征在于,在一次系统启动服务器释放web服务错误,如下所示: linux系统释放的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/”,服务名= “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环境中的项目可以启动并发布。请问这可能是为什么,怎么解决呢