Oracle ADF:ADFC-10001:无法实例化类'com.wip.view.backing.Index' [英] Oracle ADF: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'

查看:159
本文介绍了Oracle ADF:ADFC-10001:无法实例化类'com.wip.view.backing.Index'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Oracle ADF Essantials开发了一个Web应用程序.我可以在本地系统的tomcat 6.x上运行此应用程序.我的服务器上有相同的tomcat 6.x环境.那里都是一样的(tomcat环境).但是,当我尝试在服务器环境上运行此应用程序时,出现以下错误.

I have developed a web application using Oracle ADF Essantials. I am able to run this application on tomcat 6.x in my local system. I have the same tomcat 6.x environment on our server . There everything is same(tomcat environment). But when I am trying to run this application on server environment it is giving the following error.

HTTP Status 500 - oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'

type Exception report

message oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:503)
    oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:503)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)
    org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)
    org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
root cause

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'
    oracle.adfinternal.controller.util.Utils.createAndLogFacesException(Utils.java:198)
    oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:189)
    oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(ManagedBeanFactory.java:875)
    oracle.adfinternal.controller.state.ScopeMap.get(ScopeMap.java:82)
    javax.el.MapELResolver.getValue(MapELResolver.java:51)
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    org.apache.el.parser.AstValue.getValue(AstValue.java:123)
    org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:182)
    com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

以下是根本原因.

root cause

oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'com.wip.view.backing.Index'
    oracle.adfinternal.controller.util.Utils.createAndLogFacesException(Utils.java:190)
    oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:189)
    oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(ManagedBeanFactory.java:875)
    oracle.adfinternal.controller.state.ScopeMap.get(ScopeMap.java:82)
    javax.el.MapELResolver.getValue(MapELResolver.java:51)
    com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    org.apache.el.parser.AstValue.getValue(AstValue.java:123)
    org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:182)
    com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
    com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1941)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1144)
    com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:518)
    com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:168)
    javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)

我尝试了很多修复此问题的方法.但没有得到任何回应.最终,我将本地tomcat 6.x制作为.zip文件,并将其粘贴到服务器上,并从这个新环境中运行我的应用程序,但出现相同的错误.

I tried a lot fixing this isssue. But did not getting anyting. Finally I have made my local tomcat 6.x as .zip file and pasted this on server and run my app from this new environment but getting same error.

我发现浏览器中的网址之间存在以下差异

I observed the following difference between the urls in the browsers

在本地浏览器中 这是我的网址: http://localhost:7777/EasyRUN/faces/index 输入网址后,按Enter会得到相同的

In local browser This is my URL: http://localhost:7777/EasyRUN/faces/index after typing the url when I press enter am getting the same

http://localhost:7777/EasyRUN/faces/index

在服务器上: 这是我的网址: http://localhost:7777/EasyRUN/faces/index 当我按Enter键入此URL后,得到以下内容

On server : This is my URL: http://localhost:7777/EasyRUN/faces/index after typing this url when I press enter am getting the below

http://localhost:7777/EasyRUN/faces/index;jsessionid=06186FB6D5EE4A1243224059F76C1A84?_afrLoop=105719567151&_afrWindowMode=2&Adf-Window-Id=w0

我还尝试了一个只有a.jsf页的测试应用程序.这个程序有同样的问题.它在本地环境上运行,而不在服务器上运行.

And I also tried with a test app that have only one page a.jsf. Same problem with this app. It is running on local environment and not running on server.

请帮助.

先谢谢了.非常感谢你.请帮忙.

Thanks in advance. Thank you very much. Please help.

推荐答案

感谢您的帮助.我找到了解决方案.问题是我的本地系统上有jdk1.7,服务器上有1.6.这就是为什么我面临这个问题.现在在服务器上,我还安装了1.7,我的应用程序已成功运行.

Thanks for you help. I found the solution. The problem was I have jdk1.7 on my local system and on server I have 1.6. Thats why I faced that problem. Now on server also I have installed 1.7 my application is running successfully.

非常感谢您的帮助.非常感谢.

Thanks a lot for your help. Thank you very much.

这篇关于Oracle ADF:ADFC-10001:无法实例化类'com.wip.view.backing.Index'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆