Исключительная ситуация при развертывании приложения Invalid ejb jar: оно содержит ноль ejb - PullRequest
0 голосов
/ 07 февраля 2019

Когда я меняю ветку в git, внезапно появляется эта ошибка, я пытаюсь добавить и удалить glassfish, почистить его, у меня в ухе тоже есть @stateless и ejb-jar.xml.

Я не использую maven

Примечание:

    1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or 
       message-driven bean. 
    2. EJB3  entity beans (@Entity) are POJOs and please package them as library jar. 
    3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.

Журнал сервера:

в орг.glassfish.ejb.deployment.util.посетите (BundleDescriptor.java:625) по адресу org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl.visit (EjbBundleDescriptorImpl.java:757) по адресу com.sun.enterprise.deployment.util.ApplicationValidator (vidid).в com.sun.enterprise.deployment.BundleDescriptor.visit (BundleDescriptor.java:625) в com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate (ApplicationArchivist.java:703) в com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith (ApplicationArchivist.java:248) в com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith (ApplicationFactory.java:232) в org.glassfish.javaee.core.deployment.DolProvider.processDOL (DolProvider.java:193) в org.glassfish.javaee.core.deployment.DolProvider.load (DolProvider.java:227) в org.glassfish.javaee.core.deployment.DolProvider.загрузить (DolProvider.java:96) в com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer (ApplicationLifecycle.java:881) в com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos (ApplicationLifecycle.java:821)на com.sun.enterprise.v3.server.ApplicationLifecycle.deploy (ApplicationLifecycle.java:377) на com.sun.enterprise.v3.server.ApplicationLifecycle.deploy (ApplicationLifecycle.java:219) на org.glassfish.deployment.admin.DeployCommand.execute (DeployCommand.java:491) на com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.run (CommandRunnerImpl.java:539) на com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.r(CommandRunnerImpl.java:535) в java.security.AccessController.doPrivileged (собственный метод) в javax.security.auth.Subject.doAs (Subject.java:360) в com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2.execute (CommandRunnerImpl.java:534) в com.sun.enterprise.v3.admin.CommandRunnerImpl $ 3.run (CommandRunnerImpl.java:565) в com.sun.enterprise.v3.admin.CommandRunnerImpl $CommandRunnerImpl.java:557) в java.security.AccessController.doPrivileged (собственный метод) в javax.security.auth.Subject.doAs (Subject.java:360) в com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand (CommandRunnerImpl.java:556) на com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand (CommandRunnerImpl.java:1464) на com.sun.enterprise.v3.admin.CommandRunnerImpl.access $ 1300 (CommandRunnerImpl.j)com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute (CommandRunnerImpl.java:1846) в com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute (CommandRunnerImpl.java.s1722, com).enterprise.v3.admin.AdminAdapter.doCommand (AdminAdapter.java:534) в com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource (AdminAdapter.java:224) в org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service (StaticHttpHandlerBase.java:189) в com.sun.enterprise.v3.services.impl.ContainerMapper $ HttpHandlerCallable.call (ContainerMapper.java:459) в com.sun.enterpriselv3.3..ContainerMapper.service (ContainerMapper.java:167) по адресу org.glassfish.grizzly.http.server.HttpHandler.runService (HttpHandler.java:206) по адресу org.glassfish.grizzly.http.server.HttpHandler.ttphandler.jp: 180) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead (HttpServerFilter.java:235)в org.glassfish.grizzly.filterchain.executeChainPart (DefaultFilterChain.java:200) в org.glassfish.grizzly.filterchain.DefaultFilterChain.execute (DefaultFilterChain.java:132) в org.glassfish.grizzly.filterchain.DefaultFilterChain.process (DefaultFava.hag.gif.gif.gt).grizzly.ProcessorExecutor.execute (ProcessorExecutor.java:77) в org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent (TCPNIOTransport.java:536) в org.glassfish.grizzly.strategies.AbstractIOStrategy.jpg: 112) в org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0 (WorkerThreadIOStrategy.java:117) в org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access $ 100 (WorkerThreadIOStrategy.java.gfish.g.gg.gst.gif.g org.g.gt.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gif.gifgggg_5 или в).WorkerThreadIOStrategy $ WorkerThreadRunnable.run (WorkerThreadIOStrategy.java:137) в org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork (AbstractThreadPool.java:591) в org.glassfish.grizzly.threadpool.AbstractThread.olo.java: 571) at java.lang.Thread.run (Thread.java:748)

My application.xml

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application_7.xsd" id="Application_ID" version="7">
  <display-name>AdrenaApp</display-name>
  <module>
    <ejb>AdrenaEJBMst.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>AdrenaWeb.war</web-uri>
      <context-root>AdrenaWeb</context-root>
    </web>
  </module>
</application>
...