系统是发布在linux+tomcate5.5.33+jdk1.6_45+java ,其中系统在发布webService服务端时候启动报错,如下图:
代码如下
Endpoint.publish(PUBParm.FS_WS_ADDRESS_URL +"/BQFT/fs?wsdl", new CifServiceImpl());
package service.service;
@WebService
public interface CifService {
public String testFsInter(String str);
@WebMethod(operationName = "findByDate")
public String findByDate(@WebParam(name="strDate")String strDate) throws Exception;
@WebMethod(operationName = "findByDateBean")
public List 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")
public class CifServiceImpl implements 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 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环境下 可以正常启动并发布。请问这个有可能是什么原因,并且怎么解决呢