GlassFish Deploy - PullRequest
       29

GlassFish Deploy

0 голосов
/ 23 ноября 2018

Я новичок на сервере GlassFish, поэтому я пытаюсь развернуть файл .war через веб-интерфейс, но он выдал следующую ошибку:

Error occurred during deployment: Exception while deploying the app [ActivationCode] : The lifecycle method [stop] must not throw a checked exception. Related annotation information: annotation [@javax.annotation.PreDestroy()] on annotated element [public void weblogic.cluster.singleton.PreAdminSingletonServicesService.stop() throws weblogic.server.ServiceFailureException] of type [METHOD]. Please see server.log for more details.

И на сервере регистрируются файлыЭто ошибка:

Caused by: java.lang.IllegalArgumentException: The lifecycle method [stop] must not throw a checked exception
    at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.validateAnnotatedLifecycleMethod(AbstractResourceHandler.java:186)
    at com.sun.enterprise.deployment.annotation.handlers.PreDestroyHandler.processAnnotation(PreDestroyHandler.java:69)
    at com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler.processAnnotation(AbstractResourceHandler.java:142)
    at com.sun.enterprise.deployment.annotation.factory.SJSASFactory$LazyAnnotationHandler.processAnnotation(SJSASFactory.java:174)
    at org.glassfish.apf.impl.AnnotationProcessorImpl.process(AnnotationProcessorImpl.java:350)
    ... 84 more

Но я понятия не имею, почему это происходит, надеюсь, кто-то, пожалуйста, помогите мне.

...