Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Moved to Liferay Faces - English Category
I am migrating a Liferay-Plugin from 6.2.5 to 7.3.2. It's an JSF Portlet with Alloy UI.After the deployment on the Liferay Server i get the following NullpointerException:
org.osgi.framework.ServiceException: Exception in com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService()
Caused by: java.lang.NullPointerException
at com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:31)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.<clinit>(InvokerFilter.java:350)
... 123 more
With Debugging I figured out that the static variable _props has the value null. Has anyone an solution how to fix this?
org.osgi.framework.ServiceException: Exception in com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperRegistrationServiceFactory.getService()
Caused by: java.lang.NullPointerException
at com.liferay.portal.kernel.util.PropsUtil.get(PropsUtil.java:31)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.<clinit>(InvokerFilter.java:350)
... 123 more
With Debugging I figured out that the static variable _props has the value null. Has anyone an solution how to fix this?
Kyle Joseph Stiemann, modified 5 Years ago.
Liferay Master
Posts: 760
Join Date: 1/14/13
Recent Posts
Moved to Liferay Faces - English Category
Hi Antonio,
Thanks for asking your question. We definitely support migration of JSF portlets from Liferay 6.2.x to Liferay 7.x, along with support for AlloyUI (assuming that you are using the Liferay Faces Alloy component suite).
When errors like this occur, I find that it's easiest to start with something simple that works, and then slowly add stuff to it, redeploying after each addition until it breaks.
To that end, I would recommend that you visit the liferayfaces.org site. On the home page you will find some dropdowns for Liferay Portal Version, JSF version, Component Suite, etc. Make your selections from the dropdown lists and then copy the "mvn archetype:generate" command (that appears to the right of the dropdown lists) to the command line and execute the command. That will generate a project that you can build with "mvn clean plackage" and then you can copy the resulting .war artifact to $LIFERAY_HOME/deploy.
After you get that working, then you start adding parts of your JSF portlet to it until it doesn't deploy correctly anymore. That should reveal the problem.
Kind Regards,
Neil
Thanks for asking your question. We definitely support migration of JSF portlets from Liferay 6.2.x to Liferay 7.x, along with support for AlloyUI (assuming that you are using the Liferay Faces Alloy component suite).
When errors like this occur, I find that it's easiest to start with something simple that works, and then slowly add stuff to it, redeploying after each addition until it breaks.
To that end, I would recommend that you visit the liferayfaces.org site. On the home page you will find some dropdowns for Liferay Portal Version, JSF version, Component Suite, etc. Make your selections from the dropdown lists and then copy the "mvn archetype:generate" command (that appears to the right of the dropdown lists) to the command line and execute the command. That will generate a project that you can build with "mvn clean plackage" and then you can copy the resulting .war artifact to $LIFERAY_HOME/deploy.
After you get that working, then you start adding parts of your JSF portlet to it until it doesn't deploy correctly anymore. That should reveal the problem.
Kind Regards,
Neil