2015-11-09 29 views
0

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

回答

0

这个问题已经解决了,但是由于操作太多,只涉及怀疑有问题的包,或者jar包涉及托斯卡纳项目的冲突,但个人感觉伟大的可能线战争问题