4 Replies Latest reply: Nov 14, 2012 12:01 PM by dvohra21 RSS

    Oracle ADF Essential &Tomcat 7 problem

    895797
      Hi, im using ADF Essential on Glassfish 3.1 with no problem, but glassfish is heavyweight. I think Oracle ADF is not dependent to Application Server , then i tried to use my project with Tomcat 7. I deployed my application on Tomcat 7 , but im getting some exceptions.

      My catalina logs :

      Nov 14, 2012 12:25:11 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_06\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files\Common Files\Siemens\Automation\Simatic OAM\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\ARM\bin\win_32-pentium;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\gradle-1.0-milestone-3\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\Heroku;C:\Program Files (x86)\git\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\QuickTime\QTSystem\;
      Nov 14, 2012 12:25:11 PM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-7101"]
      Nov 14, 2012 12:25:12 PM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Nov 14, 2012 12:25:12 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 647 ms
      Nov 14, 2012 12:25:12 PM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      Nov 14, 2012 12:25:12 PM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
      Nov 14, 2012 12:25:12 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive D:\tomcat7\webapps\Pano.war
      Nov 14, 2012 12:25:13 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(D:\tomcat7\webapps\Pano\WEB-INF\lib\javax.jsp_1.2.0.0_2-1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class
      Nov 14, 2012 12:25:13 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(D:\tomcat7\webapps\Pano\WEB-INF\lib\javax.servlet_1.0.0.0_2-5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
      Nov 14, 2012 12:25:36 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
      Nov 14, 2012 12:25:36 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI:
      http://java.sun.com/jsf/html
      is already defined
      Nov 14, 2012 12:25:36 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
      Nov 14, 2012 12:25:41 PM oracle.adf.mbean.share.ADFServletContextListenerAdapter getApplicationName
      SEVERE:
      oracle.adf.share.platform.UnknownPlatformException: The specified application server platform {0} is not supported by JRF.
           at oracle.adf.share.platform.AdfNoServerPlatformSupport.getApplicationIdentifier(AdfNoServerPlatformSupport.java:38)
           at oracle.adf.mbean.share.ADFServletContextListenerAdapter.getApplicationName(ADFServletContextListenerAdapter.java:28)
           at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:73)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
           at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
           at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
           at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
           at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1646)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
           at java.util.concurrent.FutureTask.run(FutureTask.java:166)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
           at java.lang.Thread.run(Thread.java:722)

      Nov 14, 2012 12:25:41 PM oracle.adf.mbean.share.connection.ConnectionsRuntimeMXBeanImpl getNonCachedConnectionsContext
      INFO: Registering Connection Runtime MBean
      Nov 14, 2012 12:25:41 PM oracle.adf.share.security.credentialstore.CredentialStoreContext getCredentialStorage
      WARNING: ADF Credential Store is not supported on Glassfish platform. Using the ADFNoCredentialSupportStore instead.
      Nov 14, 2012 12:25:41 PM oracle.adf.share.security.credentialstore.CredentialStoreContext getCredentialStorage
      WARNING: ADF Credential Store is not supported on Glassfish platform. Using the ADFNoCredentialSupportStore instead.
      Nov 14, 2012 12:25:41 PM oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack contextInitialized
      INFO: Registered the ADF connection MBean for application defaultApplicationName
      Nov 14, 2012 12:25:41 PM oracle.adf.mbean.share.ADFServletContextListenerAdapter getApplicationName
      Nov 14, 2012 12:25:42 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/Pano'
      Nov 14, 2012 12:25:44 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:25:46 PM oracle.adfinternal.view.faces.partition.FeatureUtils _resolveFeatures
      WARNING: Ignoring feature-dependency on feature "AdfDvtCommon". No such feature exists.
      Nov 14, 2012 12:25:46 PM oracle.adfinternal.view.faces.partition.FeatureUtils _resolveFeatures
      WARNING: Ignoring feature-dependency on feature "AdfDvtCommon". No such feature exists.
      Nov 14, 2012 12:25:46 PM oracle.adfinternal.view.faces.partition.FeatureUtils _resolveFeatures
      WARNING: Ignoring feature-dependency on feature "DvtDiagram". No such feature exists.
      Nov 14, 2012 12:25:46 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory D:\tomcat7\webapps\docs
      Nov 14, 2012 12:25:50 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/docs'
      Nov 14, 2012 12:25:50 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:25:51 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory D:\tomcat7\webapps\examples
      Nov 14, 2012 12:25:55 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
      Nov 14, 2012 12:25:55 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
      Nov 14, 2012 12:25:55 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
      Nov 14, 2012 12:25:55 PM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
      Nov 14, 2012 12:25:55 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/examples'
      Nov 14, 2012 12:25:55 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:25:55 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory D:\tomcat7\webapps\host-manager
      Nov 14, 2012 12:25:58 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/host-manager'
      Nov 14, 2012 12:25:59 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:25:59 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory D:\tomcat7\webapps\manager
      Nov 14, 2012 12:26:02 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/manager'
      Nov 14, 2012 12:26:02 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:26:03 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory D:\tomcat7\webapps\ROOT
      Nov 14, 2012 12:26:06 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context ''
      Nov 14, 2012 12:26:06 PM com.sun.faces.spi.InjectionProviderFactory createInstance
      INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
      Nov 14, 2012 12:26:06 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-7101"]
      Nov 14, 2012 12:26:06 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Nov 14, 2012 12:26:06 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 54590 ms
      Nov 14, 2012 12:27:18 PM oracle.adfinternal.controller.application.AdfcAppInitializer loadDebugFacades
      INFO: ADFc: Initializing ADF Debugger
      Nov 14, 2012 12:27:18 PM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
      INFO: jndi:/localhost/Pano/WEB-INF/classes/com/kodcu/view/DataBindings.cpx
      Nov 14, 2012 12:27:20 PM oracle.adfinternal.controller.state.SessionBasedScopeMap <clinit>
      INFO: ADFc: Configuration parameter adf-scope-ha-support set to 'false'.
      Nov 14, 2012 12:27:23 PM org.apache.myfaces.trinidad.component.UIXEditableValue _isBeanValidationAvailable
      WARNING: A Bean Validation provider is not present, therefore bean validation is disabled
      Nov 14, 2012 12:30:44 PM org.apache.myfaces.trinidad.webapp.ResourceServlet _getFacesProjectStage
      INFO: Couldn't discover the current project stage, using Production
      Nov 14, 2012 12:30:44 PM javax.faces.event.MethodExpressionActionListener processAction
      SEVERE: Received 'javax.el.PropertyNotFoundException' when invoking action listener '#{bindings.resetfilterMyCards.execute}' for component 'cl3'
      Nov 14, 2012 12:30:44 PM javax.faces.event.MethodExpressionActionListener processAction
      *SEVERE: javax.el.PropertyNotFoundException: /index.xhtml @255,136 actionListener="#{bindings.resetfilterMyCards.execute}": Target Unreachable, identifier 'bindings' resolved to null*
           at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
           at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
           at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
           at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
           at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)
           at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:973)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
           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)

      Nov 14, 2012 12:30:45 PM oracle.adfinternal.view.faces.context.RichExceptionHandler _logUnhandledException
      WARNING: ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
      javax.el.PropertyNotFoundException: /index.xhtml @255,136 actionListener="#{bindings.resetfilterMyCards.execute}": Target Unreachable, identifier 'bindings' resolved to null
           at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
           at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
           at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)

      Nov 14, 2012 12:32:47 PM oracle.adfinternal.controller.state.SessionBasedScopeMap writeScopeMap
      SEVERE: ADFc: Scope object serialization failed (object not serializable), scope='pageFlowScope[null]', objectKey='yapiyorumPagingBean', objectType='com.kodcu.view.beans.YapiyorumPagingBean'.
      *Nov 14, 2012 12:32:47 PM oracle.adfinternal.controller.state.SessionBasedScopeMap writeScopeMap*
      *SEVERE:*
      *java.io.NotSerializableException: com.kodcu.view.beans.YapiyorumPagingBean*
           at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
           at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
           at oracle.adfinternal.controller.util.Utils.verifySerializable(Utils.java:344)
           at oracle.adfinternal.controller.state.SessionBasedScopeMap.writeScopeMap(SessionBasedScopeMap.java:133)
           at oracle.adfinternal.controller.state.PageFlowScope.writeObject(PageFlowScope.java:157)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


      Nov 14, 2012 12:32:47 PM oracle.dfw.spi.portable.PortableDiagnosticsFrameworkProvider getPlatform
      WARNING: failure initializing JRF: JRF is unable to determine the current application server platform.
      Nov 14, 2012 12:32:47 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      avoid a probable memory leak.
      Nov 14, 2012 12:32:47 PM org.apache.coyote.AbstractProtocol stop
      INFO: Stopping ProtocolHandler ["http-bio-7101"]
      Nov 14, 2012 12:32:47 PM org.apache.coyote.AbstractProtocol stop
      INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
      Nov 14, 2012 12:32:47 PM org.apache.coyote.AbstractProtocol destroy
      INFO: Destroying ProtocolHandler ["http-bio-7101"]
      Nov 14, 2012 12:32:47 PM org.apache.coyote.AbstractProtocol destroy
      INFO: Destroying ProtocolHandler ["ajp-bio-8009"]



      --------------
      Can i use Oracle ADF Essential on Tomcat 7? Im using Jdev 11.1.2.3.0. My db: MySQL 5.6.

      What's the problem?
        • 1. Re: Oracle ADF Essential &Tomcat 7 problem
          user404
          You should check this out to make sure you configured everything right :
          https://blogs.oracle.com/adfthoughts/entry/running_adf_essentials_in_tomcat
          • 2. Re: Oracle ADF Essential &Tomcat 7 problem
            895797
            Yes, i configured everything right. I deployed and runned Oracle ADF Faces Components Demo application. And my application deployed and runned. But, im getting some errors above. Have u any idea?
            • 3. Re: Oracle ADF Essential &Tomcat 7 problem
              kdario
              >
              SEVERE:
              oracle.adf.share.platform.UnknownPlatformException: The specified application server platform {0} is not supported by JRF.
              >
              Tomcat is not supported so you will get this warning(error).
              >
              SEVERE:
              java.io.NotSerializableException: com.kodcu.view.beans.YapiyorumPagingBean
              >
              YapiyorumPagingBean class needs to implement Serializable interface

              Dario
              • 4. Re: Oracle ADF Essential &Tomcat 7 problem
                dvohra21
                im using ADF Essential on Glassfish 3.1 with no problem, but glassfish is heavyweight. I think Oracle ADF is not dependent to Application Server , then i tried to use my project with Tomcat 7. I deployed my application on Tomcat 7 , but im getting some exceptions.

                Not all application servers support Oracle ADF.
                Refer the certification matrix, Tomcat 7 is not listed as being supported.
                http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html