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

阅读 5.3k
1 个回答

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题