Failed to deploy xwiki8.4.5 on glassfish5

Here are error log

[2020-04-13T14:11:39][] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=58 _ThreadName=admin-listener(4)] [timeMillis: 1586758299360] [levelValue: 900] [[
  Unable to load class org.apache.hadoop.hdfs.web.resources.UserProvider, reason: java.lang.NoClassDefFoundError: com/sun/jersey/spi/inject/InjectableProvider]]

[2020-04-13T14:11:49][] [INFO] [] [] [tid: _ThreadID=58 _ThreadName=LogOutputStream-INFO] [timeMillis: 1586758309057] [levelValue: 800] [[
  2020-04-13 14:11:49,052 [admin-listener(4)] ERROR .c.DefaultCoreExtensionScanner - Failed to convert to extension URL 
java.io.IOException: Resource does not exist: bundle://14.0:1/
	at org.apache.felix.framework.URLHandlersBundleURLConnection.<init>(URLHandlersBundleURLConnection.java:60)
	at org.apache.felix.framework.URLHandlersBundleStreamHandler.openConnection(URLHandlersBundleStreamHandler.java:64)
	at java.net.URL.openConnection(URL.java:979)
	at org.xwiki.extension.internal.PathUtils.getExtensionURL(PathUtils.java:92)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.getJARs(DefaultCoreExtensionScanner.java:321)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.loadExtensionsFromClassloaders(DefaultCoreExtensionScanner.java:407)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.loadExtensions(DefaultCoreExtensionScanner.java:242)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionRepository.initialize(DefaultCoreExtensionRepository.java:117)
	at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:322)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
	at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:363)
	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
	at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:363)
	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
	at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:363)
	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
	at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:214)
	at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:198)
	at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:165)
	at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:131)
	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:267)
	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:321)
	at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:118)
	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5005)
	at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:568)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5574)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:516)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:885)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:868)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2032)
	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1678)
	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:83)
	

Hi you need to find out how to disable osgi (Felix) in your gf instance. See also https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationGlassFish/ and the warning at the top :wink: if you find how to make it work please edit the page with the information on how to do that !

Also note that gf is not one of the servlet containers that we support. See https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/ServletContainerSupportStrategy/

Thanks

Last but not least we don’t support old versions of XWiki here. Please see the support policy at https://www.xwiki.org/xwiki/bin/view/Main/Support