Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

During deployment processing, what causes ADFGlassFishAppLifeCycleListener Exception ?

PopeyeTheSailorNov 17 2017 — edited Nov 17 2017

Years ago, I created a web application about Fishing.
It has a ViewController and a Database and
is migrated to JDeveloper 12.2.1.3 and
is deployed to GlassFish 4.1.2 as an EAR file.
All is well.
Woops. There is what appears to be a minor anomally ( that the user doesn't notice ).
When navigating to a menu item / bounded task flow, the Server Log produces...

[2017-11-17T11:38:56.998-0600] [glassfish 4.1] [WARNING] [AS-WEB-CORE-00059] [javax.enterprise.web.core] [tid: _ThreadID=31 _ThreadName=http-listener-1(4)] [timeMillis: 1510940336998] [levelValue: 900] [[

   Unable to set request character encoding to UTF-8 from context /ViewController, because request parameters have already been read, or ServletRequest.getReader() has already been called]]

[2017-11-17T11:38:57.012-0600] [glassfish 4.1] [SEVERE] [PANEL_GRID_LAYOUT_INVALID_CELL_STYLE] [oracle.adfinternal.view.faces.renderkit.rich.grid.CellGatherCallback] [tid: _ThreadID=31 _ThreadName=http-listener-1(4)] [timeMillis: 1510940337012] [levelValue: 1000] [[

   Illegal inlineStyle definition detected in panelGridLayout clientId="pt1:pt_pgl2", gridRow id="pt_gr2", gridCell id="pt_gc2", inlineStyle="height:inherit;". Only non-geometric styles can be safely used, e.g. background-color.]]

I've never spent any time trying to resolve that and I think this is unrelated to my question.


Then, recently, I developed a new application about Investing.
I created a new workspace / directory and this new application has
a ViewController only. (No model / no database).
Next, I created a War Deployment Profile for GlassFish and
created the WAR file.
I think I should be able to deploy this application to GlassFish as a WAR file only.  
Yes ?  No ?

The WAR file fails to deploy.
During deployment processing, the Server Log produces
many of these (below) " visiting unvisited references " followed by
a ClassNotFoundException associated with "
ADFGlassFishAppLifeCycleListener ".

[2017-11-17T11:47:43.446-0600] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1510940863446] [levelValue: 800] [[
  visiting unvisited references]]

[2017-11-17T11:47:43.473-0600] [glassfish 4.1] [SEVERE] [AS-WEB-CORE-00108] [javax.enterprise.web.core] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1510940863473] [levelValue: 1000] [[
  ContainerBase.addChild: start:

org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5926)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)

I searched the forum for " ADFGlassFishAppLifeCycleListener " and "There is no content matching the filters that you have selected."

However Google reveals...
https://www.google.com/search?source=hp&ei=nywPWvegLOG-jwTx87boBA&q=oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener&oq=oracle.adf.share.glassfish.listener.ADFGlassFishAppLifeCycleListener&gs_l=psy-ab.3...3579.3579.0.5456.1.1.0.0.0.0.119.119.0j1.1.0....0...1.2.64.psy-ab..0.0.0....0.5BEXdErnoY8

Deploy ADF apps on GlassFish : ADFGlassFishAppLifeCycleListener
https://community.oracle.com/thread/2455997?start=0

exception while deploying ADF in Glassfish
https://stackoverflow.com/questions/15256055/exception-while-deploying-adf-in-glassfish
This post implies an EAR is required.

However, I installed all the ADF libraries during the GlassFish Server installation so that

they are installed once and there and available for all applications.

Do I really need an EAR ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2017
Added on Nov 17 2017
1 comment
379 views