我有一个在weblogic 10.3中运行的应用程序。我使用java版本1.8(之前的java版本为1.6)将应用程序迁移到weblogic 12c。
部署应用程序时,我在日志中获得以下异常
2017-06-29 13:44:21,480 - INFO(Configuration.java:1547) - 已配置的SessionFactory:null 2017-06-29 13:44:21,527 - INFO(NamingHelper.java:26) - JNDI InitialContext属性:{java.naming.provider.url = t3s://xxxx.xxx.xxx.com:4040,java.naming .factory.initial = weblogic.jndi.WLInitialContextFactory} 2017-06-29 13:44:22,097 - ERROR(NamingHelper.java:33) - 无法获取初始上下文 javax.naming.CommunicationException:t3s://xxxx.xxx.xxx.com:4040:目标10.xx.xx.xx,4040无法访问;嵌套异常是: java.io.IOException:远程主机强行关闭现有连接;没有可用的路由器到目的地[根异常是java.net.ConnectException:t3s://xxxx.xxx.xxx.com:4040:目标10.xx.xx.xx,4040无法访问;嵌套异常是: java.io.IOException:远程主机强行关闭现有连接;没有可用的目的地路由器] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40) at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:808) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:365) 在weblogic.jndi.Environment.getContext(Environment.java:319) 在weblogic.jndi.Environment.getContext(Environment.java:288) at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117) 在javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) 在javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) 在javax.naming.InitialContext.init(InitialContext.java:244) 在javax.naming.InitialContext。(InitialContext.java:216) 在org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28) 在org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) 在org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) 在org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) 在org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) 在org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) 在org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073) 在org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298) 在com.xxxxx.k2.util.HibernateHelper.init(HibernateHelper.java:19) 在com.xxxxx.k2.servlet.StartupServlet.contextInitialized(StartupServlet.java:49) 在weblogic.servlet.internal.EventsManager $ FireContextListenerAction.run(EventsManager.java:678) 在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) 在weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) 在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) 在weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:243) 在weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:200) 在weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:185) 在weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1838) 在weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2876) 在weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661) 在weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:823) at weblogic.application.internal.ExtensibleModuleWrapper $ StartStateChange.next(ExtensibleModuleWrapper.java:360) at weblogic.application.internal.ExtensibleModuleWrapper $ StartStateChange.next(ExtensibleModuleWrapper.java:356) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138) 在weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124) 在weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:216) at weblogic.application.internal.flow.ModuleStateDriver $ 3.next(ModuleStateDriver.java:211) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:73) 在weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24) 在weblogic.application.internal.BaseDeployment $ 2.next(BaseDeployment.java:729) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42) 在weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258) 在weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48) 在weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) 在weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) 在weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:226) 在weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:418) 在weblogic.management.deploy.internal.DeploymentAdapter $ 1.doActivate(DeploymentAdapter.java:51) 在weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200) 在weblogic.management.deploy.internal.AppTransition $ 2.transitionApp(AppTransition.java:30) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) 在weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169) 在weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123) 在weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:210) 在weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:118) 在weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:78) at sun.reflect.GeneratedMethodAccessor6.invoke(未知来源) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:497) 在org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1017) 在org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:388) 在org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:430) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:456) 在org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:225) 在org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:82) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2488) 在org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98) at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:606) 在org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77) 在org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:231) 在org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:254) 在org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:413) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:456) 在org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:225) 在org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:82) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2488) 在org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) 在org.glassfish.hk2.runlevel.internal.CurrentTaskFuture $ QueueRunner.oneJob(CurrentTaskFuture.java:1162) 在org.glassfish.hk2.runlevel.internal.CurrentTaskFuture $ QueueRunner.run(CurrentTaskFuture.java:1147) 在weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548) 在weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) 在weblogic.work.ExecuteThread.run(ExecuteThread.java:263) 引起:java.net.ConnectException:t3://xxxx.xxx.xxx.com:4040:目标10.xx.xx.xx,4040无法访问;嵌套异常是: java.io.IOException:远程主机强行关闭现有连接;没有可用的目的地路由器 在weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:241) 在weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:169) 在weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:177) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:350) ......还有82个 引起:java.rmi.ConnectException:目标10.xx.xx.xx,4040无法访问;嵌套异常是: java.io.IOException:远程主机强行关闭现有连接;没有可用的目的地路由器 在weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:490) 在weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:328) 在weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:300) 在weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:204) 在weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:263) 在weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:225) ... 85更多
打开主页时出现错误消息:
错误500 - 内部服务器错误
java.lang.Exception: java.lang.UnsupportedOperationException
at com.icesoft.faces.context.View.reportException(View.java:318)
at com.icesoft.faces.context.View.servePage(View.java:200)
at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:84)
at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:43)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:187)
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:51)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:100)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:55)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:205)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Caused by: java.lang.UnsupportedOperationException
at javax.faces.context.FacesContext.getExceptionHandler(FacesContext.java:284)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:50)
at com.icesoft.faces.context.View$2$1.respond(View.java:85)
at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:242)
at com.icesoft.faces.context.View$2.serve(View.java:119)
at com.icesoft.faces.context.View.servePage(View.java:192)
... 29 more