Этот веб-контейнер еще не был запущен в Glassfish при развертывании приложения ADF - PullRequest
0 голосов
/ 27 января 2019

Я не могу повторно развернуть свое приложение ADF в Glassfish.Я получаю исключение "Этот веб-контейнер еще не запущен".Я удалил старое приложение.Также.Я перезапустил домен.Но ошибка все еще сохраняется.

Я перепробовал почти все.Также проверил связанные запросы внутри переполнения стека.Если подозреваете, проблема в 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$1.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$1.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$1.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$1.run(NamingUtilsImpl.java:125)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.java:123)

1 Ответ

0 голосов
/ 28 января 2019

Я до сих пор не знаю, в чем была проблема. Но я остановил сервер, а затем вручную удалил папку моего приложения в папке "..glassfish \ domains \ domain1 \ apps". И запустил сервер. И попытался развернуть мое приложение. И на этот раз он был успешно развернут.

...