简体   繁体   English

灾难性的初始化失败! 由于以下原因关闭空 WAB:null // NPE @ WabBundleProcessor.initContext(WabBundleProcessor.java:460)

[英]Catastrophic initialization failure! Shutting down null WAB due to: null // NPE @ WabBundleProcessor.initContext(WabBundleProcessor.java:460)

when I deploy a maven module spring mvc portlet Liferay7.3 ga1 in the Lr7 portal, I got this error can anyone support please !当我在 Lr7 门户中部署 maven 模块 spring mvc portlet Liferay7.3 ga1 时,出现此错误,请有人支持! Is there something missing?有什么遗漏吗?

This is the stack trace:这是堆栈跟踪:

2020-02-28 14:41:14.570 ERROR [fileinstall-/usr/share/portail/liferay-ce-portal-7.3.0-ga1/osgi/war][WabBundleProcessor:244] Catastrophic initialization failure! Shutting down null WAB due to: null
java.lang.NullPointerException
        at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.initContext(WabBundleProcessor.java:463)
        at com.liferay.portal.osgi.web.wab.extender.internal.WabBundleProcessor.init(WabBundleProcessor.java:140)
        at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer._initWabBundle(WebBundleDeployer.java:159)
        at com.liferay.portal.osgi.web.wab.extender.internal.WebBundleDeployer.doStart(WebBundleDeployer.java:88)
        at com.liferay.portal.osgi.web.wab.extender.internal.WabFactory$WABExtension.start(WabFactory.java:113)


2020-02-28 14:41:14.572 ERROR [Framework Event Dispatcher: Equinox Container: 4c0cd32f-6426-4a62-bb58-24614ae72cc6][Framework:93] FrameworkEvent ERROR
org.osgi.framework.ServiceException: Exception in com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService()
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222)
        at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)



...

Caused by: java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

Any support is appreciated, thanks!!感谢任何支持,谢谢!!

I had the same problem with Liferay 7.1.我在 Liferay 7.1 上遇到了同样的问题。

As for my case, it was a maven dependency that was missing when the war was built.至于我的情况,这是战争建立时缺少的 Maven 依赖项。 So i'm guessing there is something you are doing wrong before deploy.所以我猜你在部署之前做错了什么。

Maybe this link will help you : Liferay forum也许这个链接对你有帮助: Liferay 论坛

Regards.问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM