简体   繁体   English

linux系统发布WebService服务器故障

[英]linux system release WebService server failure

System was released in linux + tomcat5.5.33 + jdk1.6_45 + java, wherein the system in time to start the server release webService error, as shown below: 系统是在linux + tomcat5.5.33 + jdk1.6_45 + java中发布的,其中系统及时启动服务器释放webService错误,如下图: 在此处输入图片说明

Code is as follows 代码如下

Endpoint.publish(PUBParm.FS_WS_ADDRESS_URL +"/BQFT/fs?wsdl", new CifServiceImpl());

package service.service;

@WebService public interface CifService { @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") public class CifServiceImpl implements CifService{ @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!";
}

} }


Project in the windows environment can start and release. Windows环境中的项目可以启动和释放。 Will this may be why, and how to solve it 请问这可能是原因,以及如何解决

问题已经解决,但由于操作过多,仅怀疑有问题的战争包裹,或与托斯卡纳项目有关的Jar包裹发生冲突,但个人感觉很强大-战争问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM