Развертывание граней ADF в Tomcat 6 - PullRequest
2 голосов
/ 21 января 2012

Наконец-то мне удалось запустить мое веб-приложение adf на сервере tomcat.Но теперь я застрял с одной проблемой, когда я пытаюсь получить доступ к своей странице, она дает мне следующую ошибку:

22/01/2012 2:47:39 AM oracle.jsp.logger.JspMessages infoCannotDispatchJspPage
INFO: Unable to dispatch JSP Page : Exception:java.lang.NoClassDefFoundError: oracle/classloader/PolicyClassLoader

Думая, что это снова ошибка из-за jar, я искал, чтобы загрузить jarЯ нашел имя банки, но нигде не могу найти банку для загрузки, я нашел имя "pcl.jar"

Но я не могу найти, в чем реальная проблема, я сделал все, что ямог получить самый полный журнал, но это то, что я могу найти.

WARNING: Errors processing schema:jar:file:/C:/tomcat635/lib/adfm.jar!/oracle/adfdt/model/schema/main.xsd
oracle.xml.parser.schema.XSDException
        at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:748)
        at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:407)
        at oracle.bali.xml.grammar.schema.OracleSchemaFactory.buildSchemas(OracleSchemaFactory.java:213)
        at oracle.bali.xml.grammar.schema.OracleSchemaFactory.buildSchemas(OracleSchemaFactory.java:159)
        at oracle.bali.xml.grammar.schema.SchemaGrammarProvider.addSchema(SchemaGrammarProvider.java:64)
        at oracle.mds.internal.type.InternalTypeManager.addSchema(InternalTypeManager.java:548)
        at oracle.mds.internal.type.InternalTypeManager.addSchemasFromTypeConfig(InternalTypeManager.java:480)
        at oracle.mds.internal.type.InternalTypeManager.<init>(InternalTypeManager.java:103)
        at oracle.mds.type.TypeManager.create(TypeManager.java:102)
        at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1795)
        at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1738)
        at oracle.mds.core.MDSInstance.findAndStoreMDSInstance(MDSInstance.java:2035)
        at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:529)
        at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:492)
        at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:450)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:64)
        at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:95)
        at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:602)
        at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:582)
        at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:274)
        at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1757)
        at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:494)
        at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:401)
        at oracle.adf.model.servlet.HttpBindingRequestHandler.initADFContext(HttpBindingRequestHandler.java:55)
        at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:109)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)
22/01/2012 2:59:05 AM oracle.bali.xml.grammar.schema.OracleSchemaFactory buildSchemas
WARNING: Errors processing schema:jar:file:/C:/tomcat635/lib/adfm.jar!/oracle/adfdt/model/schema/ui/jcuimodel.xsd
oracle.xml.parser.schema.XSDException
        at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:748)
        at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:407)
        at oracle.bali.xml.grammar.schema.OracleSchemaFactory.buildSchemas(OracleSchemaFactory.java:213)
        at oracle.bali.xml.grammar.schema.OracleSchemaFactory.buildSchemas(OracleSchemaFactory.java:159)
        at oracle.bali.xml.grammar.schema.SchemaGrammarProvider.addSchema(SchemaGrammarProvider.java:64)
        at oracle.mds.internal.type.InternalTypeManager.addSchema(InternalTypeManager.java:548)
        at oracle.mds.internal.type.InternalTypeManager.addSchemasFromTypeConfig(InternalTypeManager.java:480)
        at oracle.mds.internal.type.InternalTypeManager.<init>(InternalTypeManager.java:103)
        at oracle.mds.type.TypeManager.create(TypeManager.java:102)
        at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1795)
        at oracle.mds.core.MDSInstance.<init>(MDSInstance.java:1738)
        at oracle.mds.core.MDSInstance.findAndStoreMDSInstance(MDSInstance.java:2035)
        at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:529)
        at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:492)
        at oracle.adf.share.config.ADFMDSConfig.getDefaultMDSInstance(ADFMDSConfig.java:450)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at oracle.adf.share.config.FallbackConfigImpl.getMDSInstance(FallbackConfigImpl.java:64)
        at oracle.adf.share.config.FallbackConfigImpl.getDefaultMDSInstance(FallbackConfigImpl.java:95)
        at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:602)
        at oracle.adf.share.config.ADFConfigImpl.getMDSInstance(ADFConfigImpl.java:582)
        at oracle.adf.share.config.ADFContextMDSConfigHelperImpl.getMDSInstance(ADFContextMDSConfigHelperImpl.java:274)
        at oracle.adf.share.ADFContext.getMDSInstanceAsObject(ADFContext.java:1757)
        at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:494)
        at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:401)
        at oracle.adf.model.servlet.HttpBindingRequestHandler.initADFContext(HttpBindingRequestHandler.java:55)
        at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:109)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)
22/01/2012 2:59:05 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
INFO: jndi:/localhost/KitUtility_sample/WEB-INF/classes/view/DataBindings.cpx
22/01/2012 2:59:06 AM oracle.jsp.logger.JspMessages infoCannotDispatchJspPage
INFO: Unable to dispatch JSP Page : Exception:java.lang.NoClassDefFoundError: oracle/classloader/PolicyClassLoader

Обновление :

Я добавил все пользовательские библиотеки в <tomcat>/lib для развертывания ADF, как упомянуто в документации Oracle, URL ниже ссылка , список включенных мною файлов '

adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller-security.jar
adf-controller.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-security.jar
adf-share-support.jar
adflibfilter.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
adfsharembean.jar
adminclient.jar
annotations-api.jar
batik-anim.jar
batik-awt-util.jar
batik-bridge.jar
batik-codec.jar
batik-css.jar
batik-dom.jar
batik-ext.jar
batik-extension.jar
batik-gui-util.jar
batik-gvt.jar
batik-parser.jar
batik-script.jar
batik-svg-dom.jar
batik-svggen.jar
batik-swing.jar
batik-transcoder.jar
batik-util.jar
batik-xml.jar
cache.jar
catalina-ant.jar
catalina-ha.jar
catalina-tribes.jar
catalina.jar
dms.jar
dvt-basemaps.jar
dvt-faces.jar
dvt-jclient.jar
dvt-trinidad.jar
dvt-utils.jar
ecj-3.7.jar
el-api.jar
glassfish.jstl_1.2.0.1.jar
identitystore.jar
inspect4.jar
jasper-el.jar
jasper.jar
javatools-nodeps.jar
javax.activation_1.1.0.0_1-1.jar
jewt4.jar
jrf-api.jar
jsf-api.jar
jsf-impl.jar
jsp-api.jar
mdsrt.jar
oc4j-internal.jar
ojdl.jar
ojsp.jar
poi-3.7-20101029.jar
prefuse.jar
servlet-api.jar
share.jar
tomcat-api.jar
tomcat-coyote.jar
tomcat-dbcp.jar
tomcat-i18n-es.jar
tomcat-i18n-fr.jar
tomcat-i18n-ja.jar
tomcat-jdbc.jar
tomcat-util.jar
trinidad-api.jar
trinidad-impl.jar
xml-apis-ext.jar
xmlef.jar
xmlparserv2.jar

обновление 2 :

Я нашел Pcl.jar, но теперь, когда я пытаюсь получить доступ к своей странице, он сообщает мне следующую ошибку

22/01/2012 11:36:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
22/01/2012 11:36:44 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
22/01/2012 11:36:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('com.sun.faces.config.WebConfiguration', 'com.sun.faces.config.WebConfiguration@e99d0f')
22/01/2012 11:36:44 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeRemoved('com.sun.faces.config.WebConfiguration', 'com.sun.faces.config.WebConfiguration@e99d0f')
22/01/2012 11:37:15 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
oracle.jbo.NoDefException: JBO-25002: Definition null.cpx of type Application Definition not found
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:381)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:296)
    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:277)
    at oracle.jbo.uicli.mom.JUApplicationDefImpl.findDefObject(JUApplicationDefImpl.java:83)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:559)
    at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:348)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:182)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)'
...