我无法在玻璃鱼中重新部署我的ADF应用程序。我收到“此Web容器尚未启动”的异常。我已经删除了旧的应用程序。也。我已经重新启动域。但是错误仍然存在。
我几乎尝试了所有事情。还检查了堆栈溢出内的相关查询。如果怀疑,则问题出在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)
答案 0 :(得分:1)
我仍然不知道出了什么问题。但是我已经停止了服务器,然后手动删除了“ ..glassfish \ domains \ domain1 \ applications”文件夹中的应用程序文件夹。并启动服务器。并尝试部署我的应用程序。这次成功部署了。