在部署 ADF 应用程序时,此 Web 容器尚未在 Glassfish 中启动

This web container has not yet been started in Glassfish while deploying ADF app

我无法在 glassfish 中重新部署我的 ADF 应用程序。我收到异常 "This web container has not yet been started"。我已经删除了旧的应用程序。还。我已经重新启动域。但是错误仍然存​​在。

我几乎什么都试过了。还检查了堆栈溢出内部的相关查询。如果怀疑问题出在 EntityManagerFactor 上。但不确定。

我正在部署 Oracle ADF 应用程序并使用 Oracle 数据库。此外,示例应用程序已经部署在服务器中。但是在编码发生一些变化之后。我做不到。

    [2019-01-27T12:18:15.439+0300] [glassfish 4.1] [SEVERE] [AS-NAMING-00006] [org.glassfish.naming] [tid: _ThreadID=2414 _ThreadName=DefaultQuartzScheduler_Worker-7] [timeMillis: 1548580695439] [levelValue: 1000] [[
      Exception in NamingManagerImpl copyMutableObject(): {0}
    java.lang.IllegalStateException: This web container has not yet been started
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1674)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
        at org.glassfish.common.util.ObjectInputStreamWithLoader.resolveClass(ObjectInputStreamWithLoader.java:131)
        at org.glassfish.common.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObjectInputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:161)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.run(NamingUtilsImpl.java:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:123)
        at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:147)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at ei.util.ConnectionManager.getConnection(ConnectionManager.java:38)
        at ei.integration.generic.ap.APLoadDataScheduler.executeAPLoadScheduler(APLoadDataScheduler.java:55)
        at ei.integration.generic.ap.APLoadDataScheduler.execute(APLoadDataScheduler.java:40)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
    ]]

    [2019-01-27T12:18:15.440+0300] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=2414 _ThreadName=Thread-9] [timeMillis: 1548580695440] [levelValue: 1000] [[
      javax.naming.CommunicationException: Communication exception for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is java.lang.RuntimeException: Cant copy Serializable object:]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:513)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at ei.util.ConnectionManager.getConnection(ConnectionManager.java:38)
        at ei.integration.generic.ap.APLoadDataScheduler.executeAPLoadScheduler(APLoadDataScheduler.java:55)
        at ei.integration.generic.ap.APLoadDataScheduler.execute(APLoadDataScheduler.java:40)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
    Caused by: java.lang.RuntimeException: Cant copy Serializable object:
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:131)
        at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:147)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
        ... 8 more
    Caused by: java.lang.IllegalStateException: This web container has not yet been started
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1674)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
        at org.glassfish.common.util.ObjectInputStreamWithLoader.resolveClass(ObjectInputStreamWithLoader.java:131)
        at org.glassfish.common.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObjectInputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:161)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.run(NamingUtilsImpl.java:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:123)
        ... 10 more]]

    [2019-01-27T12:18:15.440+0300] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=2414 _ThreadName=Thread-9] [timeMillis: 1548580695440] [levelValue: 1000] [[
      java.lang.NullPointerException]]

    [2019-01-27T12:18:15.440+0300] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=2414 _ThreadName=Thread-9] [timeMillis: 1548580695440] [levelValue: 1000] [[
      java.lang.NullPointerException]]

    [2019-01-27T12:18:15.440+0300] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=2414 _ThreadName=Thread-9] [timeMillis: 1548580695440] [levelValue: 1000] [[
      java.lang.NullPointerException]]

    [2019-01-27T12:18:21.003+0300] [glassfish 4.1] [SEVERE] [AS-NAMING-00006] [org.glassfish.naming] [tid: _ThreadID=2408 _ThreadName=DefaultQuartzScheduler_Worker-1] [timeMillis: 1548580701003] [levelValue: 1000] [[
      Exception in NamingManagerImpl copyMutableObject(): {0}
    java.lang.IllegalStateException: This web container has not yet been started
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1674)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
        at org.glassfish.common.util.ObjectInputStreamWithLoader.resolveClass(ObjectInputStreamWithLoader.java:131)
        at org.glassfish.common.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObjectInputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:161)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.run(NamingUtilsImpl.java:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:123)
        at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:147)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at ei.util.ConnectionManager.getConnection(ConnectionManager.java:38)
        at ei.integration.generic.scheduler.PartyLoadDataScheduler.executePartyLoadScheduler(PartyLoadDataScheduler.java:52)
        at ei.integration.generic.scheduler.PartyLoadDataScheduler.execute(PartyLoadDataScheduler.java:40)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
    ]]

    [2019-01-27T12:18:21.005+0300] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=2408 _ThreadName=Thread-9] [timeMillis: 1548580701005] [levelValue: 1000] [[
      javax.naming.CommunicationException: Communication exception for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is java.lang.RuntimeException: Cant copy Serializable object:]
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:513)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at javax.naming.InitialContext.lookup(InitialContext.java:417)
        at ei.util.ConnectionManager.getConnection(ConnectionManager.java:38)
        at ei.integration.generic.scheduler.PartyLoadDataScheduler.executePartyLoadScheduler(PartyLoadDataScheduler.java:52)
        at ei.integration.generic.scheduler.PartyLoadDataScheduler.execute(PartyLoadDataScheduler.java:40)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
    Caused by: java.lang.RuntimeException: Cant copy Serializable object:
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:131)
        at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:147)
        at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:478)
        ... 8 more
    Caused by: java.lang.IllegalStateException: This web container has not yet been started
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1674)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
        at org.glassfish.common.util.ObjectInputStreamWithLoader.resolveClass(ObjectInputStreamWithLoader.java:131)
        at org.glassfish.common.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObjectInputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:161)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.run(NamingUtilsImpl.java:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:123)

我仍然不知道问题出在哪里。但是我已经停止了服务器然后手动删除了我的应用程序的文件夹 insde “..glassfish\domains\domain1\applications” 文件夹。并启动了服务器。并尝试部署我的应用程序。而且这次部署成功