[英]linux system release WebService server failure
系統是在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環境中的項目可以啟動和釋放。 請問這可能是原因,以及如何解決
問題已經解決,但由於操作過多,僅懷疑有問題的戰爭包裹,或與托斯卡納項目有關的Jar包裹發生沖突,但個人感覺很強大-戰爭問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.