无法初始化类oracle.jdbc.river.DMSFactory TopLink 12c和Glassfish 3.1



我已经有几个星期的部署问题了,我正在寻求您的帮助。

我正在尝试部署一个用JDeveloper 12.1.2构建的J2Eweb应用程序。我使用topLink作为ORMGlassfish 3.1.2作为ASJDK 7Oracle 11g作为DBMS

在部署了我的项目的.EAR文件后,我在尝试通过我的应用程序时遇到了这个异常

java.lang.NoClassDefFoundError:无法初始化类oracle.jdbc.driver.DMSFactory

我在项目类路径中添加了ojdbc7dms.jar,但仍然有相同的异常。与ojdbc7.jar相同的行为

这是我的会话.xml文件内容

<?xml version="1.0" encoding="windows-1252" ?>
<sessions version="2.4.2" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session xsi:type="server-session">
<name>default</name>
<!--<server-platform xsi:type="weblogic-10-platform"/>-->
<primary-project xsi:type="xml">META-INF/dbMap.xml</primary-project>
</session>
</sessions>

低于异常的完整堆栈

[#|2016-09-09T17:04:15.823+000|SEVERE|glassfish3.1.2.|oracle.adf.model.adapter.bean.BeanDCInvocationHandler |_ThreadID=47;_ThreadName=Thread-2;|InvocationTargetException->invoke(findAllAdminModuleByRef)java.lang.reflect.InvocationTargetExceptionsun.reflect.GeneratedMethodAccessor185.reinvoke(未知源)位于sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.ioke(Method.java:606)oracle.adf.model.adapter.bean.BeanDCInvocationHandler.invoke(BeanDCinvocation Handler.java:158)在oracle.adf.model.adapter.bean.BeanDCInvocationHandler.invokeMethod(BeanDCinvocation Handler.java:69)在oracle.adf.model.adapter.bean.BeanDCInvocationHandler.invoke(BeanDCinvocation Handler.java:139)在oracle.adf.model.adapter.bean.BeanDCInvokeMethodHandler.invoke(BeanDCInvokeMethod Handler.java:125)在oracle.adf.model.adapter.bean.UpdatableBeanDataControl.invokeOperation(UpdatableBeanDataControl.java:600)在oracle.adf.model.adapter.bean.JavaBeanDataControl.invokeOperation(JavaBeanDataControl.java:388)在oracle.adf.model.bean.DCBBeanDataControl.invokeMethod(DCBeanDataControl.java:477)在oracle.adf.model.binding.DCIInvokeMethod.callMethod(DCInvokeMethod.java:266)在oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1658)在oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2189)在oracle.adf.model.bean.DCBBeanDataControl.invokeOperation(DCBeanDataControl.java:560)在oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:309)在oracle.jbo.uicli.binding.JUCtrlActionBinding.uinvoke(JUCtrlActionBinding.java:751)在oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:407),位于oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding_execute(FacesCtrlActionBinding.java:255)在oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:213)网址:org.devtools.RhTools.executeAction(RhTools.java:152)beans.admin.Mb_cfgDashboard.cfgDashboardAfterPhase(Mb_cfgDashboat.java:39)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.ioke(Method.java:606)com.sun.el.parser.AstValue.ioke(AstValue.java:254)com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)在com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)在javax.faces.component.UIWiewRoot.notifyPhaseListeners(UIViewRoot.java:1050)位于javax.faces.component.UIWiewRoot.notifyAfter(UIViewRoot.java:853)位于javax.faces.component.UIWiewRoot.encodeEnd(UIViewRoot.java:1005)在javax.faces.component.UIComponentAll(UIComponent.java:1786)在oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)在com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandingStrategy.java:402)在org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguage Wrapper.java:101)在org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguage Wrapper.java:101)在org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeAppyingVDLWrapper.renderView(ViewDeclarationLanguage FactoryImpl.java:338)在com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)在javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrappr.java:288)在org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)在oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRender Manager.java:52)在oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(生命周期Impl.java:1104)在oracle.adfinternal.view.faces.lifecycle.Impl._executePhase(生命周期Impl.java:389)在oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)位于javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)在oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)在oracle.adfinternal.view.faces.webapp.rech.RegistrationFilter.doFilter(RegistrationFilter.java:106)在org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadPilterImpl.java:478)在oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)在org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadPilterImpl.java:478)在org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadPilterImpl.java:303)在org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadPilterImpl.java:208)在org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)在oracle.adf.share.http.ServletADFPilter.doFilter(ServletADFPfilter.java:77)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)在org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChaing.java:61)在org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)在org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)在org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)在org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChaing.java:66)在org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)在org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)在org.apache.siro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)在org.apache.siro.subject.support.SubjectCallable.call(SubjectCallable.java:83)在org.apache.siro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)在org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)在org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)在org.apache.catalina.core.StandardWrapperValv.invoke(StandardWrapperValve.java:279)在org.apache.catalina.core.StandardContextValv.invoke(StandardContextValv.java:175)在org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)在org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)在org.apache.catalina.core.StandardHostValv.invoke(StandardHostValve.java:161)在org.apache.catalina.connecter.CoyoteAdapter.doService(Coyotedapter.java:331)在org.apache.catalina.connecter.CoyoteAdapter.service(Coyotedapter.java:231)在com.sun.enterprise.v3.services.impl.ContainerMaper$AdapterCallable.call(ContainerMaper.java:317)在com.sun.enterprise.v3.services.impl.ContainerMaper.service(ContainerMaper.java:195)在com.sun.grazzy.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)在com.sun.grazzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)在com.sun.grazzly.http.ProcessorTask.produce(ProcessorTask.java:1045)在com.sun.grazzy.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)在com.sun.grazzy.DefaultProtocolChain.executeProtocolFilter(DefaultProtocol Chain.java:137)在com.sun.grazzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)在com.sun.grazzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)在com.sun.grazzy.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)在com.sun.grazzy.ProtocolChainTextTask.doCall(ProtocolchainTextTask.java:54)在com.sun.grazzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)在com.sun.grazzy.ContextTask.run(ContextTask.java:71)com.sun.grazzy.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)在com.sun.grazzy.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)在java.lang.Thread.run(Thread.java:745)由以下原因引起:javax.ejb.EJBException位于com.sun.exb.containers.BaseContainer.processSystemException(BaseContainer.java:5215)在com.sun.exb.containers.BaseContainer.completeNewTx(BaseContainer.java:5113)在com.sun.exb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4901)在com.sun.exb.containers.BaseContainer.postInvoke(BaseContainer.java:2045)在com.sun.exb.containers.BaseContainer.postInvoke(BaseContainer.java:1994)在com.sun.exb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)在com.sun.exb.containers.EJBLocalObjectInvocationHandlerDelegate.ioke(EJBLocalObjectInvocationHandler Delegate.java:88)网址:com.sun.proxy.$Proxy116.findAllAdminModuleByRef(未知来源)…还有100个原因:java.lang.NoClassDefFoundError:无法在初始化类oracle.jdbc.river.DMSFactoryoracle.jdbc.driver.PhysicalConnection.createDMSSensors(PhysicalConnection.java:4361)在oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:805)位于oracle.jdbc.driver.T4Connection.(T4CConnection.java:420)在oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensions.java:31)位于oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:612)java.sql.DriverManager.getConnection(DriverManager.java:571)位于java.sql.DriverManager.getConnection(DriverManager.java:187)位于org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)在org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)在org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330)在org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293)在org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418)在org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216)在org.eclipse.persistence.sessions.server.ConnectionPool.startUp(ConnectionPool.java:504)在org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484)在org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633)在org.eclipse.persistence.sessions.factors.SessionManager.getSession(SessionManager.java:417)在org.eclipse.persistence.sessions.factories.SessionManager.getSession(SessionManager.java:363)在org.eclipse.persistence.sessions.factors.SessionFactory.getSharedSession(SessionFactory.java:148)在org.eclipse.persistence.sessions.factors.SessionFactory.getSharedSession(SessionFactory.java:127)在org.eclipse.persistence.sessions.factors.SessionFactory.acquireSession(SessionFactory.java:167)在ejb.admin.adminSessionEJBBean.findAllAdminModuleByRef(adminSessionEJBBean.java:196)位于sun.reflect.GeneratedMethodAccessor188.reinvoke(未知源)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.ioke(Method.java:606)org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)在org.glassfish.ejb.security.application.EJBSecurityManager.ioke(EJBSecurityManager.java:1124)在com.sun.exb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)网址:com.sun.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)在com.sun.exb.containers.enterceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)在com.sun.ejb.EjbInvocation.prough(EjbInvocation.java:571)com.sun.exb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)在com.sun.exb.containers.enterceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)位于sun.reflect.GeneratedMethodAccessor187.reinvoke(未知源)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在java.lang.reflect.Method.ioke(Method.java:606)com.sun.exb.containers.enterceptors.AroundInvokeInterceptor.entercept(InterceptorManager.java:861)在com.sun.exb.containers.enterceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)在com.sun.exb.containers.enterceptors.InterceptorManager.entercept(InterceptorManager.java:370)在com.sun.exb.containers.BaseContainer.__intercept(BaseContainer.java:5360)在com.sun.exb.containers.BaseContainer.entercept(BaseContainer.java:5348)在com.sun.exb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)…还有102 |#]

我终于找到了解决方案。当我使用Jdeveloper12c时,我刚刚在模型项目库和类路径中添加了ojdbcdms6.jar文件,此外,这个jar还添加到了viewcontroller项目库和classpath中。

相关内容

  • 没有找到相关文章

最新更新