WebService Java和glashfish中的错误,与列表一起出现<&燃气轮机;我可以';不要剥夺它

WebService Java和glashfish中的错误,与列表一起出现<&燃气轮机;我可以';不要剥夺它,java,web-services,netbeans,web-applications,java-8,Java,Web Services,Netbeans,Web Applications,Java 8,在部署webservice时,我在这里寻求有关webservice错误的帮助,我正在将netbeans 8.2与jdk8和glash fish 4.1.1一起使用,这就是错误所在 Grave: Exception while loading the app Grave: Undeployment failed for context /WebService_BuenosAires Grave: Exception while loading the app : jav

在部署webservice时,我在这里寻求有关webservice错误的帮助,我正在将netbeans 8.2与jdk8和glash fish 4.1.1一起使用,这就是错误所在

Grave:   Exception while loading the app      
Grave:   Undeployment failed for context /WebService_BuenosAires  
Grave:   Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet web service endpoint '' failure
当我将列表功能添加到我的web服务时,它会出现,这是我的代码:

/**
 * Web service operation
 */
@WebMethod(operationName = "listarEmpleado")
public List<Empleado> listarEmpleado() {
    try {
        return EmpDAO.listarEmpleados();
    } catch (SQLException ex) {
        Logger.getLogger(WebService_Principal.class.getName()).log(Level.SEVERE, null, ex);
    }
    return null;
}
/**
*Web服务操作
*/
@WebMethod(operationName=“listarEmpleado”)
公共列表listarEmpleado(){
试一试{
返回EmpDAO.listarEmpleados();
}catch(SQLException-ex){
Logger.getLogger(WebService_Principal.class.getName()).log(Level.SEVERE,null,ex);
}
返回null;
}
对不起,如果我写错了什么,英语不是我的母语,是的,我在社区里用stackoverflow写的,但是没有人回答我:(jaja
谢谢