Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APAR PH37460 useJandex is ignored when autoExpand is set #17268

Closed
tbitonti opened this issue May 21, 2021 · 1 comment · Fixed by #17269
Closed

APAR PH37460 useJandex is ignored when autoExpand is set #17268

tbitonti opened this issue May 21, 2021 · 1 comment · Fixed by #17269
Assignees
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:21006

Comments

@tbitonti
Copy link
Contributor

Title: 'useJandex' is ignored when 'autoExpand' is enabled.
Abstract: Setting 'autoExpand' to true causes the 'useJandex' setting to be ignored.
Description:
'autoExpand' and 'useJandex' may be configured per application and for all applications.
For example:

  <applicationManager autoExpand="true" useJandex="true"/>
  <application location="TS.war"/>

Or:

  <application location="TS.war" autoExpand="true" useJandex="true"/>

When 'useJandex' is configured for an application, an informational message is expected for that application. For example:

[5/21/21 11:33:06:613 EDT] 0000003e com.ibm.ws.annocache I CWWKC0093I: Jandex coverage of module TS in application TS: Jandex indexes were read for 2 out of 2 module locations; Jandex indexes provided 3 out of 3 module classes.

When 'autoExpand' is configured to true, the 'useJandex' setting is ignored.


Describe the bug
See the APAR text, above.

Steps to Reproduce
Configure an application to have 'useJandex' and 'autoExpand' both enabled.

Expected behavior
Enabling 'useJandex' should cause Jandex indexes within the application to be used. This will be shown by an informational message 'CWWKC0093I:' being produced.

Diagnostic information:

  • Liberty version 21.0.0.3 and higher.
  • Java version: Does not matter.
  • Server configuration: See the APAR text, above.
@tbitonti tbitonti added the bug This bug is not present in a released version of Open Liberty label May 21, 2021
@tbitonti tbitonti changed the title APAR PH37460 APAR PH37460 useJandex is ignored when autoExpand is set May 21, 2021
@tbitonti tbitonti self-assigned this May 21, 2021
@tbitonti
Copy link
Contributor Author

tbitonti commented May 21, 2021

The problem is visible in the overlay container introspector output:

Overlay Container Diagnostics

Working Case:

Active Containers:
Number of Registered Containers: [ 1 ]

Containers in Set:
[ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@a136c337 ]
Base [ com.ibm.ws.artifact.zip.internal.ZipFileContainer@f07ac5b9 ]
URL [ file:/c:/dev/wlp21005/wlp/usr/servers/server1/apps/TS.ear ]
File [ com.ibm.ws.artifact.file.internal.FileContainer@ca7e75d7 ]
URL [ file:/C:/dev/wlp21005/wlp/usr/servers/server1/workarea/org.eclipse.osgi/51/data/cacheAdapt/com.ibm.ws.app.manager_11/.overlay/ ]

Directory Overlay Container [ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@a136c337 ]
[ / ]
[ interface com.ibm.ws.container.service.app.deploy.extended.ApplicationInfoForContainer ] [ com.ibm.ws.app.manager.internal.ApplicationInstallInfo@def3309b ]
[ interface com.ibm.ws.javaee.dd.app.Application ] [ application ]
[ interface com.ibm.ws.classloading.ClassLoadingButler ] [ com.ibm.ws.classloading.internal.ClassLoadingButlerImpl@aa925437 ]
[ interface com.ibm.ws.container.service.app.deploy.ApplicationInfo ] [ com.ibm.ws.container.service.app.deploy.internal.EARApplicationInfoImpl@35c0e57d[TS] ]
[ interface com.ibm.ws.container.service.app.deploy.ApplicationClassesContainerInfo ] [ com.ibm.ws.app.manager.ear.internal.EARDeployedAppInfo@97a989d7 ]

Failing case:

Active Containers:
Number of Registered Containers: [ 2 ]

Containers in Set:
[ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@c94018d4 ]
Base [ com.ibm.ws.artifact.file.internal.FileContainer@25c380f4 ]
URL [ file:/c:/dev/wlp21005/wlp/usr/servers/server1/apps/expanded/TS.ear/ ]
File [ com.ibm.ws.artifact.file.internal.FileContainer@7026ae58 ]
URL [ file:/C:/dev/wlp21005/wlp/usr/servers/server1/workarea/org.eclipse.osgi/52/data/cacheAdapt/com.ibm.ws.app.manager_6/.overlay/ ]
[ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@68dfaf10 ]
Base [ com.ibm.ws.artifact.zip.internal.ZipFileContainer@4165ff91 ]
URL [ file:/c:/dev/wlp21005/wlp/usr/servers/server1/apps/TS.ear ]
File [ com.ibm.ws.artifact.file.internal.FileContainer@689fae5d ]
URL [ file:/C:/dev/wlp21005/wlp/usr/servers/server1/workarea/org.eclipse.osgi/51/data/cacheAdapt/com.ibm.ws.app.manager_6/.overlay/ ]

Directory Overlay Container [ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@c94018d4 ]
[ /TestServlet40.war/WEB-INF/web.xml ]
[ interface com.ibm.ws.javaee.dd.web.WebApp ] [ web-app ]
[ /TestServlet40.war ]
[ interface com.ibm.ws.container.service.app.deploy.WebModuleInfo ] [ com.ibm.ws.app.manager.module.internal.WebModuleInfoImpl@1c2e92c2 ]
[ interface com.ibm.wsspi.webcontainer.metadata.WebModuleMetaData ] [ com.ibm.ws.webcontainer.osgi.metadata.WebModuleMetaDataImpl@4bac3914[TS#TestServlet40.war] ]
[ interface com.ibm.ws.container.service.annocache.WebAnnotations ] [ com.ibm.ws.container.service.annocache.internal.WebAnnotationsImpl@af3ec678 ]
[ interface com.ibm.ws.container.service.app.deploy.ModuleInfo ] [ com.ibm.ws.app.manager.module.internal.WebModuleInfoImpl@1c2e92c2 ]
[ interface com.ibm.ws.container.service.config.WebFragmentsInfo ] [ com.ibm.ws.container.service.config.internal.WebFragmentsInfoImpl@6729b1fd ]
[ interface com.ibm.wsspi.webcontainer.webapp.WebAppConfig ] [ TestServlet40 ]
[ interface com.ibm.ws.container.service.app.deploy.WebModuleClassesInfo ] [ com.ibm.ws.container.service.app.deploy.internal.WebModuleClassesInfoAdapter$3@b57b1ffe ]

[ / ]
[ interface com.ibm.ws.javaee.dd.app.Application ] [ application ]
[ interface com.ibm.ws.classloading.ClassLoadingButler ] [ com.ibm.ws.classloading.internal.ClassLoadingButlerImpl@846d8b92 ]
[ interface com.ibm.ws.container.service.app.deploy.ApplicationInfo ] [ com.ibm.ws.container.service.app.deploy.internal.EARApplicationInfoImpl@1c64230e[TS] ]
[ interface com.ibm.ws.container.service.app.deploy.ApplicationClassesContainerInfo ] [ com.ibm.ws.app.manager.ear.internal.EARDeployedAppInfo@149366af ]

Directory Overlay Container [ ROOT ] [ com.ibm.ws.artifact.overlay.internal.DirectoryBasedOverlayContainerImpl@68dfaf10 ]
[ / ]
[ interface com.ibm.ws.container.service.app.deploy.extended.ApplicationInfoForContainer ] [ com.ibm.ws.app.manager.internal.ApplicationInstallInfo@66267a3e ]

@tbitonti tbitonti added the release bug This bug is present in a released version of Open Liberty label May 21, 2021
@tbitonti tbitonti linked a pull request May 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This bug is not present in a released version of Open Liberty release bug This bug is present in a released version of Open Liberty release:21006
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants