首页 > linux 系统发布WebService服务端失败

linux 系统发布WebService服务端失败

系统是发布在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<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")
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<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环境下 可以正常启动并发布。请问这个有可能是什么原因,并且怎么解决呢


问题已经解决,但是由于操作太多,只能怀疑是war包有问题,或者与项目中的tuscany有关的Jar包冲突,但是个人感觉war问题的可能行很大

【热门文章】
【热门文章】