Oracle ADF Essentials is powerful framework to develop web applications and is free to use. FlexDeploy is built using ADF Essentials 12.1.3 and is now available to run on Tomcat 8 and Java 1.8. See FlexDeploy Installation for Tomcat for more details.

Here are some high level steps to run your ADF Essentials applications on Tomcat 8. Deploying ADF Essentials application to Tomcat can be tricky at first, these steps are for ADF Essentials 12.1.3 and Tomcat 8, so if you are running different version, you may have some challenges. Once your Tomcat environment is configured, you can use FlexDeploy JDeveloper and Tomcat plugin to automate Build/Deploy process.

Prepare Tomcat Environment

First step is to prepare Tomcat 8 environment with ADF Essentials library files. Download 12.1.3 Oracle ADF Essentials and Oracle ADF Essentials Client Files from http://www.oracle.com/technetwork/developer-tools/adf/downloads/adf-download-1649592.html. Save download files in temporary folder.

adfessentials_downloadExtract both zip files in flat structure using unzip -j (works on Windows and UNIX)

  • cd <tomcat lib folder>
  • unzip -j <path to temp folder>/adf-essentials.zip
  • unzip -j <path to temp folder>/adf-essentials-client-ear.zip

You can copy any additional Jars that may be necessary for your application. You may have to copy database drivers to Tomcat lib folder as well. For example, you can download Oracle JDBC drivers from http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html.

Now update context.xml as shown below to create Data Source for your application.

tomcat_datasource

Now update setenv.sh or setenv.bat file in Tomcat/bin folder.

TomcatSetEnvFilePrepare Application for Tomcat deployment

Remove following listener classes from web.xml. This should be done in automated build process.

  1. oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
  2. oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack
  3. oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack

Build WAR and Deploy

Now let’s build Deployment Profile in JDeveloper to build war file for deployment to Tomcat server. This process is same for any other Deployment Profile, but you will need to enable various jar files to be added to WAR file (see below)

tomcat_profile_1

tomcat_profile_2

tomcat_profile_3

There are various libraries (JSF 2.1, ADF PageFlow Runtime, ADF Controller Runtime, ADF Faces Runtime 11, ADF Faces Databinding Runtime, JSTL 1.2 Tags, Oracle Page Templates, ADF Model Runtime, BC4J Runtime) which are needed at Runtime, but are not included in downloads specified earlier. Hence make sure that following jar files are part of WAR file as shown in above image.

adf-controller-api.jar, adf-controller-rt-common.jar, adf-controller.jar, adf-dt-at-rt.jar, adf-faces-databinding-rt.jar, adf-pageflow-dtrt.jar, adf-pageflow-fwk.jar, adf-pageflow-impl.jar, adf-pageflow-rc.jar, adf-richclient-api-11.jar, adf-richclient-impl-11.jar, adfdt_common.jar, adflibfilter.jar, dvt-basemaps.jar, dvt-databindings.jar, dvt-faces.jar, dvt-facesbindings.jar, dvt-jclient.jar, dvt-shared-js.jar, dvt-trinidad.jar, dvt-utils.jar, oracle-page-templates.jar, trinidad-api.jar, trinidad-impl.jar

Now build WAR file using deployment profile, place it in webapps folder and restart Tomcat server. Look at log files for any errors and act accordingly. Most possible problem will be missing some Jar file and you will need to include in WAR file using Deployment Profile.

Download the Datasheet

Chandresh Patel

I have been working with Java EE technologies since 2000. After implementing IBM WebSphere and custom framework solutions, my past 10 years have been focused on Oracle Fusion Middleware such as WebLogic, ADF, WebCenter and Coherence. I have been part of many automation projects in the past and have a passion for automation capabilities to help our customers deliver software faster and with higher quality. In my current role as a Principal Architect at Flexagon, I am driving the FlexDeploy product strategy and development to build DevOps/CI/CD features that help our customers.

More posts by Chandresh Patel
    

54 Comments

  • Vamsi says:

    Good One Chandresh.

    How do you in corporate the Security i mean after Session Time out the application has to redirect to login page again. In ADF (ADF security ) will redirect to login page

    • Chandresh Patel says:

      You can use something like Apache Shiro, it is very easy to use. I have used it with ADF Essentials application.

  • Vamsi says:

    I tried the same thing in Tomcat 7 but having a hard time to implement the Security of the application

  • Fede says:

    Can you use both Oracle XE and MySql for the database? Which one you recommend?

    Thanks.

    Fede.

    • Chandresh Patel says:

      Yes, I have used both Oracle XE and MySQL. I am not database expert, but from developer perspective it does not make much difference. MySQL can bring up simpler challenges with ADF, but they are not significant enough to push database selection one way or other.

  • vamsi says:

    Hi Chandresh,

    Can i post questions related to ADF Essentials deployed on Tomcat here in this blog?

  • vamsi says:

    After the ADF Essential WAR file deployed into Tomcat if the run the URL it is nit running and it is throwing an exception,but if you go to tomcat manager and restart the deployed Application then i am able to run the page ?did u come across this issue while deploying the ADF essential Application. Also to note all my ADF libraries are in Tomcat lib folder not in the application WAR file

    • Chandresh Patel says:

      Yes, we had somewhat similar issue. Here is how I remember it. If application is already deployed and we restart Tomcat server application did not work. We had to stop Tomcat, delete Folder for our WAR file in webapps, start Tomcat and only then it worked. I believe that issue was resolved with libraries approach that I have described in this blog.

  • Vikas says:

    Hi

    I am trying to deploy ADF 12.2.1 application and getting below error on tomcat 8.5.11.

    Using java version “1.8.0_73”.

    org.apache.myfaces.trinidad.component.core.layout.CorePanelChoice, class javax.faces.component.html.HtmlOutputLink, class javax.faces.component.UISelectOne, class org.apache.myfaces.trinidad.component.core.layout.CoreShowDetailHeader, class oracle.adf.view.rich.component.rich.layout.RichPanelGridLayout, class oracle.adf.view.rich.component.rich.input.RichInputNumberSpinbox, class oracle.adf.view.rich.component.rich.input.RichSelectManyListbox, class javax.faces.component.UIColumn]’)
    06-Feb-2017 13:56:11.024 SEVERE [http-nio-8181-exec-1] org.apache.catalina.core.StandardHostValve.invoke Exception Processing /manager/html
    java.lang.SecurityException: org.xml.sax.SAXNotRecognizedException: SAX feature ‘http://apache.org/xml/features/allow-java-encodings’ not recognized.
    at org.apache.catalina.authenticator.jaspic.PersistentProviderRegistrations.loadProviders(PersistentProviderRegistrations.java:66)
    at org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl.loadPersistentRegistrations(AuthConfigFactoryImpl.java:191)
    at org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl.(AuthConfigFactoryImpl.java:59)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at java.lang.Class.newInstance(Class.java:442)
    at javax.security.auth.message.config.AuthConfigFactory$1.run(AuthConfigFactory.java:74)
    at javax.security.auth.message.config.AuthConfigFactory$1.run(AuthConfigFactory.java:65)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.message.config.AuthConfigFactory.getFactory(AuthConfigFactory.java:64)
    at org.apache.catalina.authenticator.AuthenticatorBase.getJaspicProvider(AuthenticatorBase.java:1191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
    at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:319)
    at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:88)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: org.xml.sax.SAXNotRecognizedException: SAX feature ‘http://apache.org/xml/features/allow-java-encodings’ not recognized.
    at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:260)
    at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:476)
    at org.apache.catalina.authenticator.jaspic.PersistentProviderRegistrations.loadProviders(PersistentProviderRegistrations.java:62)
    … 29 more

  • Fede says:

    Hi Chandresh

    After deploying the WAR file on the Tomcat server (under /webapps folder) I get the following error:
    FAIL – Application at context path [/myapp] could not be started.

    Is this related with the Java EE Web Context Root path that I’m using in Jdeveloper under WAR Deployment Profile Properties? What folder should I reference to? I’m referencing the /webapps folder in the Tomcat server.

    Thanks.

    Fede.

    • Chandresh Patel says:

      Your application context root will be name of your WAR file placed in webapps folder. You should check logs to get more details on what is causing the application to fail at startup.

  • vamsi says:

    Hi Vikas,

    I remember i got the same issue with Tomcat 7 with ADF 12.1.3 Essential deployment. Please check the Class file that ADF library referring and if that is a generic library for parsing XML get the latest from the internet with other versions and try to replace . I remember i have done that way in my application which is now running fine in PROD but i am not sure it works it worked for me.

  • vamsi says:

    Hi Chandresh,

    Is there anyway i can have debugger option for ADF application deployed in TOMCAT..
    I added TOMCAT plugin in Jdeveloper , able to run the debugger mode fr the JAVA/J2EE application and had a hard time for ADF Application.

  • Belal says:

    sorry i couldn’t make this steps correctly if any video for this ?

  • Krish says:

    Chandresh,

    It’s a good article. I am not a java developer but have a requirement to deploy the app on to tomcat 8. The current ADF based application is running on WLogic 12c. We need to run this application on tomcat 8. What are the steps required to run ?

    • Chandresh Patel says:

      Hi Krish, have you tried the steps in this blog entry? It is possible that you may have situation different than our application and it may require tweaks to steps described here. Once you try these steps and there is any error, you would need to look at that specific error and find solution. You can post error / stack trace here and I can try to help as well.

  • Krish says:

    Chandresh,
    Thanks for you quick answer. Do we really have to use FlexDeploy or just create the WAR and deploy it?

    • Chandresh Patel says:

      Hi Krish, You can just create WAR and deploy it. FlexDeploy helps you automate build and deploy processes so that your teams can concentrate on just development work. Also, FlexDeploy helps reduce errors and put governance around it as well.

  • Krish says:

    When the Tomcat is selected, I don’t see the adf jars in WEB-INF/lib filters.

    • Chandresh Patel says:

      Try checking some of these libraries on WEB-INF/lib – Contributors.
      JSF 2.1, ADF PageFlow Runtime, ADF Controller Runtime, ADF Faces Runtime 11, ADF Faces Databinding Runtime, JSTL 1.2 Tags, Oracle Page Templates, ADF Model Runtime, BC4J Runtime

  • Marc Horvath says:

    Hi Chandresh.

    Any idea why I’m getting the following errors? Do you I need to make some adjustment to the deployment profile or my app or put these jars in the lib folder?

    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.osdt/osdt_cert.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.osdt/osdt_core.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.pki/oraclepki.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.nlsrtl/orai18n.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.xdb.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.jdbc/ojdbc8dms.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.ucp.jar (No such file or directory)
    java.io.FileNotFoundException: /home/oracle_common/modules/oracle.jdbc/simplefan.jar (No such file or directory)
    java.io.FileNotFoundException: /oracle_common/modules/thirdparty/jakarta-commons-el-1.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-collation.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-translation.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-net.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-servlet.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-lcsd.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/orai18n-tools.jar (No such file or directory)
    java.io.FileNotFoundException: /home/ec2-user/apache-tomcat-8.5.24/lib/gdk_custom.jar (No such file or directory)

    Thanks,
    Marc

    • Chandresh Patel says:

      I think this most likely is not a problem, I do not see jars in your message on my installation either and it is working fine. You can try setting JarScanner to false in context.xml. That might stop printing errors you have reported.

      Check all logs for other errors after changing context.xml.

  • Jingru says:

    Hi Chandresh.
    I follow your instruction to deploy the ADF application (developed in 11.2.3) into tomcat 8. I get the follow error.. Could you assist further??

    01-Feb-2018 07:45:38.056 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ADFOnTomcatDemoNoBC4J]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.NoClassDefFoundError: javax/faces/FacesException
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
    at java.lang.Class.getDeclaredFields(Class.java:1916)
    at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
    at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:262)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:136)
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66)
    at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:778)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    … 10 more
    Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
    … 23 more

    01-Feb-2018 07:45:38.057 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/u01/tomcat/ARTT/webapps/ADFOnTomcatDemoNoBC4J.war]
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ADFOnTomcatDemoNoBC4J]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:756)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

    • Chandresh Patel says:

      Make sure your WAR file has jsf-api.jar and jsf-impl.jar files in WEB-INF/lib folder.

      • Jingru says:

        Chandresh,

        thanks for your reply. We add these two jar files to WEB-INF/lib folder. Now, we have different error..
        java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet

        Could you help again?

        • Chandresh Patel says:

          I do not have that class in my installation. You can use Navigate – Open Type and look for that specific class, you will see Jar file name on Title bar. You can also use Tool – Manage Libraries (type in Classname in Libraries tab and click Enter) to find Library that contains specific class.

          • Jingru says:

            Thanks… I get another error .. where I should manage it..

            javax.faces.FacesException: oracle.adfinternal.view.faces.lifecycle.LifecycleFactoryImpl
            at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:560)
            at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:446)
            at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
            at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:722)
            at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:418)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4743)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
            at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
            at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
            at java.lang.Thread.run(Thread.java:748)
            Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
            at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:553)
            … 18 more
            Caused by: java.lang.NoClassDefFoundError: javax/faces/component/ContextCallback
            at oracle.adfinternal.view.faces.lifecycle.LifecycleFactoryImpl.(LifecycleFactoryImpl.java:36)
            … 23 more
            Caused by: java.lang.ClassNotFoundException: javax.faces.component.ContextCallback
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1291)
            at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)

          • Chandresh Patel says:

            This is part of jsf-api.jar file. We identified that as a missing file in your WEB-INF/lib. Is that file not in WEB-INF/lib.

  • Jingru says:

    Hi, Chandresh,
    I finally resolve that error.. I did have jsf-api.jar in my WEB-INF/lib. Now, I get another one.

    05-Feb-2018 11:08:50.186 SEVERE [localhost-startStop-1] oracle.adfinternal.view.faces.config.rich.FacesDatabindingConfigurator._registerAdfELResolver
    in the localhost log, here is the error..
    java.lang.ClassNotFoundException: oracle.security.jps.ee.http.JpsFilter

    • Jingru says:

      Hi, Chandresh,

      I remove JpsFilter from web.xml. So I am able to resolve that oracle.security.jps.ee.http.JpsFilter error. However, the new one is the following. I am not sure which unsupported operation? Could you kindly advise?

      java.lang.UnsupportedOperationException
      at javax.faces.context.ExternalContext.setRequest(ExternalContext.java:368)
      at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._isSetRequestBugPresent(GlobalConfiguratorImpl.java:588)
      at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:338)
      at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.(FacesContextFactoryImpl.java:86)
      at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
      at oracle.adfinternal.controller.application.model.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:70)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:260)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748)

  • Hi Chandresh,
    Very interesting your post, in fact, I have got here because I am facing a challenge with similar technologies, but in this case is on Jboss.

    In your experience, is it possible to deploy an ADF application on Jboss and that works?

    Any tips would be helpful!
    Regards.
    Gonzalo Luengo.

    • Chandresh Patel says:

      Hi Gonzalo,
      Yes, I have not done this myself but my colleague has deployed ADF applications on JBoss. In my opinion it might be bit easier than Tomcat, but it generally involves trial and error to get things working. I did notice JBoss as Platform on Deployment Profile, I assume it will work with WildFly as well. On a side note, once you get this working you can use FlexDeploy WildFly plugin to automate deployments. FlexDeploy is available as Free Community Edition as well.
      Chandresh

  • Thanks a lot for your response and advice !! When I start the project, I will let know you my progress.
    Regards.

  • reda says:

    Hi,
    after adding the setevn.bat file, tomcat is not starting, i copied the context of the file

    set CATALINA_OPTS=%CATALINA_OPTS% -verbose:gc -Xms1024m -Xmx2048m -Doracle.mds.cache=simple -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Dflexagon.fd.repository.root=/opt/flexdeploy/repository -Dflexagon.fd.install.root=/opt/flexdeploy/application -Djava.awt.headless=true

    • Chandresh Patel says:

      Hi reda,
      Are you trying to start FlexDeploy or your custom ADF application? Please try start of Tomcat from Command Prompt (startup.bat), which should allow you to see any launch errors. Otherwise check if there are any errors in log files.
      Chandresh

      • Reda says:

        Thanks A lot for quick response, actually I was not expected this much quick because it is an old post.
        I have an ADF application, I want to deploy it to GlassFish or Tomcat but I am facing a lot issues, when I am copying the WAR file to the webapp folder.
        can advise me please what I have to do, or if you have a more detail configuration steps please share it with me [email protected]

        one more issue I am facing, I developed separate ERP module as separate projects like finance, HR, ..etc and I am using servlet to call jasper report and it it is working very fine, in each separate project but when I am deploying those projects as Jar files and collecting all of them in one big project, the reports are not working, giving an error the system can not find the specified file. can you advise please
        appropriate your kind support.
        Reda
        ]

        • Chandresh Patel says:

          Hi reda,

          In this blog post I have documented all Steps necessary for deploying our ADF application to Tomcat 8, but it is possible that your application may be bit different and require some additional steps. Please make sure you have followed all steps described here and you can provide exception or error that you are seeing in logs, I might be able to provide some suggestion.

          Chandresh

          • Reda says:

            Hi,

            after doing the installation of the tomcat everything was ok, and I can access the tomcat manager, but after copying the jar files to the LIB folder and when tried to restart the services, got errors

            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.909 WARNING [localhost-startStop-1] org.apache.tomcat.util.
            scan.StandardJarScanner.processURLs Failed to scan [file:/C:/Program%20Files/Apa
            che%20Software%20Foundation/Tomcat%208.5/lib/orai18n-translation.jar] from class
            loader hierarchy
            java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomc
            at 8.5\lib\orai18n-translation.jar (The system cannot find the file specified)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:219)
            at java.util.zip.ZipFile.(ZipFile.java:149)
            at java.util.jar.JarFile.(JarFile.java:166)
            at java.util.jar.JarFile.(JarFile.java:130)
            at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.
            java:188)
            at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:6
            5)
            at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49
            )
            at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarSca
            nner.java:374)
            at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJa
            rScanner.java:309)
            at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(Standa
            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.914 WARNING [localhost-startStop-1] org.apache.tomcat.util.
            scan.StandardJarScanner.processURLs Failed to scan [file:/C:/Program%20Files/Apa
            che%20Software%20Foundation/Tomcat%208.5/lib/orai18n-net.jar] from classloader h
            ierarchy
            java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomc
            at 8.5\lib\orai18n-net.jar (The system cannot find the file specified)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:219)
            at java.util.zip.ZipFile.(ZipFile.java:149)
            at java.util.jar.JarFile.(JarFile.java:166)
            at java.util.jar.JarFile.(JarFile.java:130)
            at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.
            java:188)
            at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:6
            5)
            at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49
            )
            at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarSca
            nner.java:374)
            at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJa
            rScanner.java:309)
            at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(Standa
            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.921 WARNING [localhost-startStop-1] org.apache.tomcat.util.
            scan.StandardJarScanner.processURLs Failed to scan [file:/C:/Program%20Files/Apa
            che%20Software%20Foundation/Tomcat%208.5/lib/orai18n-servlet.jar] from classload
            er hierarchy
            java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomc
            at 8.5\lib\orai18n-servlet.jar (The system cannot find the file specified)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:219)
            at java.util.zip.ZipFile.(ZipFile.java:149)
            at java.util.jar.JarFile.(JarFile.java:166)
            at java.util.jar.JarFile.(JarFile.java:130)
            at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.
            java:188)
            at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:6
            5)
            at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49
            )
            at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarSca
            nner.java:374)
            at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJa
            rScanner.java:309)
            at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(Standa
            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.927 WARNING [localhost-startStop-1] org.apache.tomcat.util.
            scan.StandardJarScanner.processURLs Failed to scan [file:/C:/Program%20Files/Apa
            che%20Software%20Foundation/Tomcat%208.5/lib/orai18n-lcsd.jar] from classloader
            hierarchy
            java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomc
            at 8.5\lib\orai18n-lcsd.jar (The system cannot find the file specified)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:219)
            at java.util.zip.ZipFile.(ZipFile.java:149)
            at java.util.jar.JarFile.(JarFile.java:166)
            at java.util.jar.JarFile.(JarFile.java:130)
            at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.
            java:188)
            at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:6
            5)
            at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49
            )
            at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarSca
            nner.java:374)
            at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJa
            rScanner.java:309)
            at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(Standa
            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.934 WARNING [localhost-startStop-1] org.apache.tomcat.util.
            scan.StandardJarScanner.processURLs Failed to scan [file:/C:/Program%20Files/Apa
            che%20Software%20Foundation/Tomcat%208.5/lib/orai18n-tools.jar] from classloader
            hierarchy
            java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomc
            at 8.5\lib\orai18n-tools.jar (The system cannot find the file specified)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.(ZipFile.java:219)
            at java.util.zip.ZipFile.(ZipFile.java:149)
            at java.util.jar.JarFile.(JarFile.java:166)
            at java.util.jar.JarFile.(JarFile.java:130)
            at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.
            java:188)
            at org.apache.tomcat.util.scan.JarFileUrlJar.(JarFileUrlJar.java:6
            5)
            at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:49
            )
            at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarSca
            nner.java:374)
            at org.apache.tomcat.util.scan.StandardJarScanner.processURLs(StandardJa
            rScanner.java:309)
            at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(Standa
            rdJarScanner.java:266)
            at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanne
            r.java:229)
            at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262)
            at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:104)
            at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializ
            er.java:101)
            at org.apache.catalina.core.StandardContext.startInternal(StandardContex
            t.java:5229)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:754)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
            0)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
            a:1140)
            at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
            .java:1874)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:51
            1)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
            java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
            .java:617)
            at java.lang.Thread.run(Thread.java:745)

            07-May-2018 05:08:31.939 INFO [localhost-startStop-1] org.apache.jasper.servlet.
            TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.
            Enable debug logging for this logger for a complete list of JARs that were scan
            ned but no TLDs were found in them. Skipping unneeded JARs during scanning can i
            mprove startup time and JSP compilation time.
            07-May-2018 05:08:31.945 INFO [localhost-startStop-1] org.apache.catalina.startu
            p.HostConfig.deployDirectory Deployment of web application directory [C:\Program
            Files\Apache Software Foundation\Tomcat 8.5\webapps\ROOT] has finished in [2,36
            6] ms
            07-May-2018 05:08:31.952 INFO [main] org.apache.coyote.AbstractProtocol.start St
            arting ProtocolHandler [“http-nio-8180”]
            07-May-2018 05:08:31.967 INFO [main] org.apache.coyote.AbstractProtocol.start St
            arting ProtocolHandler [“ajp-nio-8109”]
            07-May-2018 05:08:31.972 INFO [main] org.apache.catalina.startup.Catalina.start
            Server startup in 35830 ms

            can you advise please

          • Chandresh Patel says:

            Hi reda,

            That may be harmless messages, you can try setting scanManifest to false in context.xml.

  • Reda says:

    Thanks
    I did as per your advise and the errors are not showing now.

    but when i copied the WAR file ( file name is testApp ) i got errors in the log file, saying platform is not supported.
    also i am using this link to access the app from web logic,
    http://localhost:7101/testAppViewController/faces/nationalities.jsf
    to test if it is working in tomcat, I can use the same link or change the port number ??

    the log as follows

    07-May-2018 07:18:17.850 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.30
    07-May-2018 07:18:17.854 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 3 2018 20:04:09 UTC
    07-May-2018 07:18:17.854 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.30.0
    07-May-2018 07:18:17.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 8.1
    07-May-2018 07:18:17.856 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 6.3
    07-May-2018 07:18:17.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
    07-May-2018 07:18:17.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_72\jre
    07-May-2018 07:18:17.858 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_72-b15
    07-May-2018 07:18:17.858 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
    07-May-2018 07:18:17.858 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 8.5
    07-May-2018 07:18:17.858 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 8.5
    07-May-2018 07:18:17.859 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf\logging.properties
    07-May-2018 07:18:17.860 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    07-May-2018 07:18:17.861 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
    07-May-2018 07:18:17.861 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
    07-May-2018 07:18:17.862 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
    07-May-2018 07:18:17.863 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 8.5
    07-May-2018 07:18:17.864 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 8.5
    07-May-2018 07:18:17.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 8.5\temp
    07-May-2018 07:18:17.867 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.16] using APR version [1.6.3].
    07-May-2018 07:18:17.868 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
    07-May-2018 07:18:17.871 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
    07-May-2018 07:18:18.485 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2m 2 Nov 2017]
    07-May-2018 07:18:18.851 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8180”]
    07-May-2018 07:18:19.168 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    07-May-2018 07:18:19.181 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8109”]
    07-May-2018 07:18:19.187 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
    07-May-2018 07:18:19.189 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2082 ms
    07-May-2018 07:18:19.251 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
    07-May-2018 07:18:19.253 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.30
    07-May-2018 07:18:19.284 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\testApp.war]
    07-May-2018 07:18:41.592 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
    07-May-2018 07:18:43.211 WARNING [localhost-startStop-1] null.null MDS-01393: Multiple audit events named “addEntry” are defined for component “ADF”.
    07-May-2018 07:18:43.217 WARNING [localhost-startStop-1] null.null MDS-01393: Multiple audit events named “deleteEntry” are defined for component “ADF”.
    07-May-2018 07:18:43.218 WARNING [localhost-startStop-1] null.null MDS-01393: Multiple audit events named “updateEntry” are defined for component “ADF”.
    07-May-2018 07:18:47.376 SEVERE [localhost-startStop-1] oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName
    oracle.adf.share.platform.UnknownPlatformException: Platform is not supported
    at oracle.adf.share.platform.AdfNoServerPlatformSupport.getApplication(AdfNoServerPlatformSupport.java:55)
    at oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName(ADFServletContextListenerAdapter.java:26)
    at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:77)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4776)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5240)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1856)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    07-May-2018 07:18:47.389 SEVERE [localhost-startStop-1] oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName
    oracle.adf.share.platform.UnknownPlatformException: Platform is not supported
    at oracle.adf.share.platform.AdfNoServerPlatformSupport.getApplication(AdfNoServerPlatformSupport.java:55)
    at oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName(ADFServletContextListenerAdapter.java:26)
    at oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized(ADFConfigLifeCycleCallBack.java:86)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4776)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5240)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1856)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    07-May-2018 07:18:48.149 INFO [localhost-startStop-1] oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized ADF config mbean registered for defaultApplicationName.
    07-May-2018 07:18:48.157 SEVERE [localhost-startStop-1] oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName
    oracle.adf.share.platform.UnknownPlatformException: Platform is not supported
    at oracle.adf.share.platform.AdfNoServerPlatformSupport.getApplication(AdfNoServerPlatformSupport.java:55)
    at oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName(ADFServletContextListenerAdapter.java:26)
    at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:104)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4776)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5240)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1856)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    07-May-2018 07:18:48.213 INFO [localhost-startStop-1] oracle.adfinternal.share.props.ADFPropsSettingsCallback.storeNameValMap Duplicate key:ORACLE.ADF.DIAGNOSTICS.EXCEPTION.DUMP.PACKAGE exists in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/testApp/WEB-INF/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    with value:java and in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    value = java
    07-May-2018 07:18:48.216 INFO [localhost-startStop-1] oracle.adfinternal.share.props.ADFPropsSettingsCallback.storeNameValMap Duplicate key:ORACLE.ADF.SHARE.CONFIG.ENABLEADFSESSIONOPTIONS exists in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/testApp/WEB-INF/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    with value:false and in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    value = false
    07-May-2018 07:18:48.219 INFO [localhost-startStop-1] oracle.adfinternal.share.props.ADFPropsSettingsCallback.storeNameValMap Duplicate key:ORACLE.ADF.DIAGNOSTICS.EXCEPTION.DUMP exists in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/testApp/WEB-INF/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    with value:false and in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/adf-share-support.jar!/META-INF/adf-settings.xml
    value = false
    07-May-2018 07:18:48.224 INFO [localhost-startStop-1] oracle.adfinternal.share.props.ADFPropsSettingsCallback.storeNameValMap Duplicate key:ORACLE.ADF.SHARE.RESOURCEBUNDLE.ISCUSTOMIZATIONMODE exists in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/testApp/WEB-INF/lib/resourcebundle.jar!/META-INF/adf-settings.xml
    with value:FALSE and in file: Source of property = file
    Prop File Path= file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/lib/resourcebundle.jar!/META-INF/adf-settings.xml
    value = FALSE
    07-May-2018 07:18:48.344 INFO [localhost-startStop-1] com.sun.faces.config.ConfigureListener.contextInitialized Initializing Mojarra 2.2.8-15 ( 20160414-1925 unable to get svn info) for context ‘/testApp’
    07-May-2018 07:18:49.696 INFO [localhost-startStop-1] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
    07-May-2018 07:18:52.422 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
    07-May-2018 07:18:52.425 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/testApp] startup failed due to previous errors
    07-May-2018 07:18:52.482 WARNING [localhost-startStop-1] oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextDestroyed oracle.adf.share.connections:type=ADFConnections,name=ADFConnections,beantype=Runtime,ApplicationName=defaultApplicationName
    07-May-2018 07:18:52.488 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [testApp] appears to have started a thread named [[email protected] 12.2.1.1.0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:460)
    com.oracle.common.base.Blocking.wait(Blocking.java:97)
    com.oracle.common.base.Blocking.wait(Blocking.java:80)
    com.tangosol.coherence.component.util.Queue.await(Queue.CDB:9)
    com.tangosol.coherence.component.util.Daemon.onWait(Daemon.CDB:13)
    com.tangosol.coherence.component.util.daemon.QueueProcessor.onWait(QueueProcessor.CDB:3)
    com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:43)
    java.lang.Thread.run(Thread.java:745)
    07-May-2018 07:18:52.490 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [testApp] appears to have started a thread named [oracle.dfw.incident.FloodController] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
    java.lang.Object.wait(Native Method)
    oracle.dfw.impl.incident.FloodController.run(FloodController.java:170)
    java.lang.Thread.run(Thread.java:745)
    07-May-2018 07:18:52.493 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [testApp] created a ThreadLocal with key of type [oracle.dms.context.internal.jse.JSEContextManager.InheritedContext] (value [ora[email protected]4aeb21c8]) and a value of type [oracle.dms.context.internal.jse.JSEContextManager.ThreadLocalContextPair] (value [oracle.dm[email protected]58b1810b]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    07-May-2018 07:18:52.494 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [testApp] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [[email protected]]) and a value of type [oracle.adf.share.http.ServletADFContext] (value [[email protected]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    07-May-2018 07:18:52.496 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [testApp] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [[email protected]]) and a value of type [oracle.adf.share.http.ServletADFContext] (value [[email protected]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    07-May-2018 07:18:52.497 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [testApp] created a ThreadLocal with key of type [oracle.dms.context.internal.jse.JSEContextManager.InheritedContext] (value [ora[email protected]4aeb21c8]) and a value of type [oracle.dms.context.internal.jse.JSEContextManager.ThreadLocalContextPair] (value [oracle.dm[email protected]645a91fe]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    07-May-2018 07:18:52.510 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\testApp.war] has finished in [33,225] ms
    07-May-2018 07:18:52.512 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\docs]
    07-May-2018 07:18:56.616 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\docs] has finished in [4,104] ms
    07-May-2018 07:18:56.842 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\examples]
    07-May-2018 07:19:00.678 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\examples] has finished in [3,837] ms
    07-May-2018 07:19:00.686 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\host-manager]
    07-May-2018 07:19:03.541 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\host-manager] has finished in [2,854] ms
    07-May-2018 07:19:03.586 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\manager]
    07-May-2018 07:19:05.770 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\manager] has finished in [2,184] ms
    07-May-2018 07:19:05.772 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\ROOT]
    07-May-2018 07:19:07.722 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 8.5\webapps\ROOT] has finished in [1,949] ms
    07-May-2018 07:19:07.726 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8180”]
    07-May-2018 07:19:07.736 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-8109”]
    07-May-2018 07:19:07.739 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 48548 ms

    • Chandresh Patel says:

      Hi reda,

      One of the task is to remove following listeners from web.xml. Once you create war file from JDeveloper, you will have to modify it as JDeveloper keeps adding it.

      oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack
      oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack
      oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack

      Chandresh

  • Amit Peshkar says:

    Hi Chandresh

    While i could run this application on tomcat/jboss using http protocol, but when i try it to run on https i get below error

    2018-08-04 12:01:44,272 SEVERE [oracle.adfinternal.view.rich.marshal.DefaultMarshalingService] (http–10.247.33.156-8080-11) : oracle.adfinternal.view.rich.marshal.MarshalerNotFoundException: No Encoder Found for namespace:https://oracle.com/richClient/comm; name:m

    Can you throw some light which library should we include to overcome this problem

  • Sergii says:

    Hi Chandresh
    I ask for help. Everything is OK on Weblogis, but Tomket 9.0 does not find (does not see) the fragments * .jsff.

    07-Nov-2018 13:12:38.675 WARNING [http-nio-80-exec-6] oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel
    java.lang.IllegalStateException: The expression “#{bindings.dynamicRegion1.regionModel}” (that was specified for the RegionModel “value” attribute of the region component with id “r1”) evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression “#{bindings.dynamicRegion1}” evaluates to “null”.
    If it helps, the expression “#{bindings}” evaluates to “null”. Now using an empty RegionModel instead.
    at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:471)
    at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:766)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:520)
    at oracle.adf.view.rich.component.fragment.UIXRegion._preRenderView(UIXRegion.java:1064)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processEvent(UIXRegion.java:1025)
    Can you throw some light which library should we include to overcome this problem?

    • Chandresh Patel says:

      Do you see anything else in various tomcat logs? I think something else failed prior to this message. It seems like #{bindings} is failing so something at low level (may be libraries) is not right.
      Chandresh

      • Sergii says:

        I have only 152 libraries. At the same time, with the adf-faces-databinding-rt.jar_ library, I get an empty window, and with adf-faces-databinding-rt-1013.jar. The fragments are not displayed. In the log files there are only INFO messages. Here are my libraries:

        adf-businesseditor-model jar│6721 К│21.05.14│16:46
        adf-businesseditor-objects jar│146619│21.05.14│16:16
        adf-businesseditor-settings jar│ 63429│21.05.14│13:05
        adf-controller jar│144399│21.05.14│16:03
        adf-controller-api jar│1487 К│21.05.14│16:03
        adf-controller-rt-common jar│679078│21.05.14│12:52
        adf-controller-schema jar│ 11030│21.05.14│12:52
        adf-controller-security jar│ 1326│21.05.14│10:43
        adf-dt-at-rt jar│ 69698│21.05.14│16:13
        adf-faces-databinding-dt-core jar│618066│21.05.14│14:42
        adf-faces-databinding-rt jar_│853987│21.05.14│12:55
        adf-faces-databinding-rt-1013 jar│ 15629│20.01.17│18:58
        adf-faces-registration jar│ 7360│21.05.14│10:41
        adf-faces-templating-dt-core jar│ 29318│21.05.14│14:42
        adf-faces-templating-dtrt jar│ 9763│21.05.14│14:42
        adf-pageflow-dtrt jar│ 16026│21.05.14│12:53
        adf-pageflow-fwk jar│319159│21.05.14│12:53
        adf-pageflow-impl jar│687457│21.05.14│12:53
        adf-pageflow-rc jar│ 84508│21.05.14│11:55
        adf-richclient-api-11 jar│4418 К│21.05.14│11:50
        adf-richclient-impl-11 jar│ 10 М│21.05.14│12:03
        adf-sec-idm-dc jar│129899│21.05.14│10:57
        adf-share-base jar│393199│21.05.14│10:48
        adf-share-ca jar│984662│21.05.14│10:55
        adf-share-glassfish jar│ 3456│21.05.14│11:02
        adf-share-security jar│ 20732│20.01.17│17:16
        adf-share-support jar│596131│21.05.14│15:54
        adf-share-web jar│ 3402│21.05.14│14:42
        adf-stringeditor-api jar│ 7289│21.05.14│10:57
        adf-transactions-dt-jdev jar│ 7655│21.05.14│12:53
        adf-view-databinding-dt-core jar│230675│21.05.14│13:50
        adf-view-unified-databinding-dt-core jar│ 57986│21.05.14│14:12
        adfbcsvc jar│ 84088│21.05.14│12:47
        adfbcsvc-client jar│ 38896│21.05.14│12:00
        adfbcsvc-registration jar│ 2337│21.05.14│10:41
        adfbcsvc-share jar│239180│21.05.14│12:00
        adfdt_common jar│1324 К│21.05.14│12:49
        adflibfilter jar│ 34639│21.05.14│11:02
        adflibrary jar│251861│21.05.14│11:52
        adflogginghandler jar│ 5640│21.05.14│10:43
        adfm jar│9737 К│21.05.14│11:56
        adfm-debugger jar│ 46279│21.05.14│12:48
        adfm-sqldc jar│ 41898│21.05.14│13:08
        adfmportlet jar│ 29633│21.05.14│12:48
        adfmweb jar│350564│21.05.14│12:48
        adfsharembean jar│3450 К│21.05.14│11:44
        adftags jar│ 1282│21.05.14│12:52
        adftransactionsdt jar│ 24229│21.05.14│10:42
        annotations-api jar│ 12966│05.09.18│01:14
        bc4j-mbeans jar│400588│21.05.14│12:47
        bc4jhtml jar│734743│21.05.14│12:52
        bc4jimdomains jar│216316│21.05.14│15:59
        bc4jsyscat jar│880164│21.05.14│13:16
        cache-api jar│ 49959│25.03.14│16:13
        catalina jar│1607 К│05.09.18│01:14
        catalina-ant jar│ 54227│05.09.18│01:14
        catalina-ha jar│120722│05.09.18│01:14
        catalina-storeconfig jar│ 77031│05.09.18│01:14
        catalina-tribes jar│307887│05.09.18│01:14
        com.bea.core.antlr.runtime_2.0.0.0_3-2 jar│516368│21.05.14│18:51
        com.bea.core.apache.commons.collections_1.0.0.0_3-2}571535│21.05.14│18:51
        com.oracle.classloader.pcl_12.1.3 jar│488025│13.04.14│13:55
        com.oracle.http_client.http_client_12.1.3 jar│545245│10.03.14│11:27
        com.oracle.jrf.j2ee.web-common-schemas_12.1.3 jar│418367│13.04.14│14:40
        com.oracle.ojsp.globaltldcache_12.1.3 jar│ 13877│13.04.14│14:32
        com.oracle.ojsp.ojsp_12.1.3 jar│963980│13.04.14│14:32
        com.oracle.ojsp.web-common_12.1.3 jar│ 55271│13.04.14│14:32
        com.oracle.webservices.fmw.oc4j-ws-support-impl_12.}155822│29.04.14│13:34
        commons-el jar│112307│07.07.06│09:59
        datatags jar│ 4813│21.05.14│12:52
        db-ca jar│ 75285│21.05.14│10:57
        dms jar│2250 К│13.04.14│13:59
        dvt-basemaps jar│8479 К│21.05.14│12:00
        dvt-databindings jar│881414│21.05.14│12:49
        dvt-databindings-mds jar│ 9083│21.05.14│10:41
        dvt-faces jar│ 12 М│21.05.14│16:01
        dvt-facesbindings jar│170065│21.05.14│12:55
        dvt-jclient jar│3955 К│21.05.14│11:57
        dvt-shared-js jar│9318 К│21.05.14│12:19
        dvt-trinidad jar│1833 К│21.05.14│11:58
        dvt-utils jar│1166 К│21.05.14│11:57
        ecj-4.7.3a jar│2705 К│05.09.18│01:14
        el-api jar│ 87515│05.09.18│01:14
        facesconfigmodel jar│390625│21.05.14│14:42
        glassfish.jstl_1.0.0.0_1-2-2-0 jar│440955│21.05.14│18:51
        groovy-all-2.1.6 jar│6228 К│03.09.13│15:02
        identitystore jar│481655│12.05.14│16:47
        inspect4 jar│377899│21.05.14│13:42
        jasper jar│557126│05.09.18│01:14
        jasper-el jar│167491│05.09.18│01:14
        jaspic-api jar│ 27901│05.09.18│01:14
        javamodel-rt jar│117438│21.05.14│10:58
        javatools-nodeps jar│3033 К│21.05.14│10:53
        javax.mail jar│557035│13.10.14│13:19
        javax.management.j2ee_1.2.0.0 jar│ 13691│21.05.14│18:51
        javax.persistence_2.0 jar│126856│03.01.14│14:18
        jdev-cm jar│119424│21.05.14│10:58
        jmxdc jar│144571│21.05.14│12:48
        jmxframework jar│439492│07.05.14│00:41
        jmxspi jar│897037│07.05.14│00:41
        jr_dav jar│203300│21.05.14│11:11
        jrf-api jar│147319│13.04.14│13:53
        jsf-api jar│635557│10.03.14│17:39
        jsf-impl jar│1918 К│21.05.14│10:43
        jsp-api jar│ 63166│05.09.18│01:14
        jsp-el-api jar│ 3086│07.07.06│09:59
        mds-dc jar│ 18335│21.05.14│10:57
        mdsrt jar│8757 К│21.05.14│10:56
        oicons jar│650807│21.05.14│10:50
        ojdbc6dms jar│4298 К│22.04.14│09:24
        ojdl jar│338064│13.04.14│13:59
        ojdl2 jar│866356│13.04.14│13:59
        oracle-el jar│ 3503│07.07.06│09:59
        oracle-page-templates jar│626136│21.05.14│10:49
        oracle.logging-utils_12.1.3 jar│120386│21.05.13│05:43
        oracle.xdb_12.1.0 jar│253628│22.04.14│17:47
        oraclexsql jar│159402│01.05.14│23:11
        orai18n-mapping jar│ 87292│16.03.14│20:54
        ordhttp jar│ 81385│21.05.14│10:42
        ordim jar│109911│21.05.14│10:42
        org.apache.bcel_5.1 jar│516239│13.04.14│14:44
        org.apache.commons.beanutils_1.6 jar│118483│07.05.14│00:50
        org.apache.commons.beanutils_1.8.3 jar│232019│13.04.14│14:44
        org.apache.commons.logging_1.0.4 jar│ 38015│07.05.14│00:50
        org.apache.commons.logging_1.1.1 jar│ 60686│13.04.14│14:44
        org.apache.http.components.httpclient-4.1.2 jar│352254│21.05.14│10:41
        org.apache.http.components.httpcore-4.1.2 jar│181200│21.05.14│10:41
        postgresql-9.3-1102.jdbc4 jar│600405│19.10.18│11:37
        rcs-adflib-rt jar│ 30553│21.05.14│11:55
        rcsrt jar│2327 К│21.05.14│11:44
        regexp jar│ 29871│20.08.09│09:25
        resourcebundle jar│175861│21.05.14│15:55
        servlet-api jar│282576│05.09.18│01:14
        share jar│ 56426│21.05.14│10:42
        taglib jar│308033│21.05.14│14:42
        tomcat-api jar│ 11212│05.09.18│01:14
        tomcat-coyote jar│842120│05.09.18│01:14
        tomcat-dbcp jar│307294│05.09.18│01:14
        tomcat-i18n-es jar│ 65344│05.09.18│01:14
        tomcat-i18n-fr jar│ 39274│05.09.18│01:14
        tomcat-i18n-ja jar│ 42168│05.09.18│01:14
        tomcat-i18n-ru jar│ 12166│05.09.18│01:14
        tomcat-jdbc jar│148741│05.09.18│01:14
        tomcat-jni jar│ 35811│05.09.18│01:14
        tomcat-util jar│141069│05.09.18│01:14
        tomcat-util-scan jar│208906│05.09.18│01:14
        tomcat-websocket jar│229653│05.09.18│01:14
        trinidad-api jar│1573 К│21.05.14│11:48
        trinidad-impl jar│5021 К│21.05.14│11:49
        websocket-api jar│ 38022│05.09.18│01:14
        xmlef jar│879461│21.05.14│10:54
        xmlparserv2_sans_jaxp_services jar│1628 К│01.05.14│23:11
        xsqlserializers jar│ 4139│01.05.14│23:11

  • Sergii says:

    In tomcat9-stderr.2018-11-08.log file is new warning:

    08-Nov-2018 10:42:06.339 WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.core.StandardContext.backgroundProcess Exception processing manager [StandardManager[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/publisher]]] background process
    java.lang.RuntimeException: class org.apache.catalina.core.ApplicationContextFacade
    at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2674)
    at oracle.adf.share.http.HttpSessionScopeAdapter.valueUnbound(HttpSessionScopeAdapter.java:606)
    at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1784)
    at org.apache.catalina.session.StandardSession.expire(StandardSession.java:856)
    at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:659)
    at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:573)
    at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:558)
    at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5474)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1398)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1402)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1402)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1370)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:2592)
    … 12 more
    Caused by: java.lang.IllegalStateException: getAttribute: Session already invalidated
    at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1145)
    at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:103)
    at oracle.adf.share.http.HttpUtil.getAttribute(HttpUtil.java:102)
    at oracle.adf.share.http.HttpSessionScopeAdapter.getScope(HttpSessionScopeAdapter.java:114)
    at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:433)
    at oracle.adf.share.http.ServletADFContext.initThreadContextIfNeeded(ServletADFContext.java:349)
    … 17 more

    ноя 08, 2018 10:55:44 AM oracle.adf.view.rich.component.fragment.UIXRegion getRegionModel
    WARNING:
    java.lang.IllegalStateException: The expression “#{bindings.dynamicRegion1.regionModel}” (that was specified for the RegionModel “value” attribute of the region component with id “r1”) evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression.
    If it helps, the expression “#{bindings.dynamicRegion1}” evaluates to “null”.
    If it helps, the expression “#{bindings}” evaluates to “null”. Now using an empty RegionModel instead.
    at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:471)
    at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:766)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:520)
    at oracle.adf.view.rich.component.fragment.UIXRegion._preRenderView(UIXRegion.java:1064)
    at oracle.adf.view.rich.component.fragment.UIXRegion.processEvent(UIXRegion.java:1025)
    at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils$1.visit(PreRenderViewUtils.java:122)
    at oracle.adfinternal.view.faces.lifecycle.PreRenderViewVisitContext._invokeVisitCallback(PreRenderViewVisitContext.java:153)

  • Rajesh Kamble says:

    Hi,
    I’m upgrading CVP 11.6 and using same which are using in existing setup just recompile code and put code in new server and jars without any changes in code.
    Existing jar are: dbwsa.jar, dbwsclientdb11.jar, dbwsclientdb101.jar, dbwsclientdb102.jar, dbwsclientws.jar
    Tomcat won’t up and we are getting Error which we are getting in tomcat is

    30-Apr-2019 15:18:55.010 WARNING [main] org.apache.catalina.users.MemoryUserDatabase.open Exception configuring digester to permit java encoding names in XML files. Only IANA encoding names will be supported.
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/allow-java-encodings
    at oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:128)
    at org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:466)
    at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:403)
    at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:102)
    at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:94)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:841)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
    at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:117)
    at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
    at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:34)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:110)
    at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:82)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:339)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:780)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

    2. In second case if I use below jar i.e. wsclient.jar , My tomcat is run properly all the application also run but getting application error while creating HPSGWSSoapHttpPortClient class object.

    2019-04-29 12:21:03,182 [util.PropertyValues:75] FATAL: – Exception Stack:java.lang.NullPointerException
    at hps.ws.gws.runtime.HPSGWS_SerializerRegistry.registerSerializer(HPSGWS_SerializerRegistry.java:57)
    at hps.ws.gws.runtime.HPSGWS_SerializerRegistry.getRegistry(HPSGWS_SerializerRegistry.java:42)
    at hps.ws.gws.runtime.HPSGWS_Impl.(HPSGWS_Impl.java:24)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at java.lang.Class.newInstance(Class.java:383)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
    at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
    at hps.ws.gws.HPSGWSSoapHttpPortClient.(HPSGWSSoapHttpPortClient.java:24)
    at MyApplicationStart.onStartApplication(MyApplicationStart.java:39)
    at com.audium.server.controller.AudiumServerConfiguration.runOnStartAppClasses(AudiumServerConfiguration.java:844)
    at com.audium.server.controller.AudiumServerConfiguration.initialize(AudiumServerConfiguration.java:1118)
    at com.audium.server.controller.AudiumServerConfiguration.initializeAll(AudiumServerConfiguration.java:984)
    at com.audium.server.controller.ControllerInitializer.(Controller.java:6305)
    at com.audium.server.controller.ControllerInitializer.doInitialization(Controller.java:6438)
    at com.audium.server.controller.Controller.init(Controller.java:506)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4996)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

    Can you please help me, to solve the issue.

Leave a Reply

Your email address will not be published. Required fields are marked *