RE: Unable to upgrade to 7.2 DXP from 6.2 CE

Abhay Gupta, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi EveryoneWe are trying to upgrade our Liferay from 6.2 CE to 7.2 DXP. We are using Weblogic 12.2.1.4, JDK 8, Liferay 7.2 DXP and Sql Server 2017. We were successfully able to deploy the Liferay war to weblogic. However, when running the DB upgrade client tool, we are getting the below error and unable to proceed further. Can someone please help as it is roadblocker for us.This is on Windows Server 2016.
JVM arguments: -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Duser.timezone=GMT -Xmx2048m -Dexternal-properties=portal-upgrade.properties -Dserver.detector.server.id=weblogic
Loading jar:file:/C:/Oracle/Middleware/Oracle_Home/user_projects/domains/documentVault_domain/servers/Doc_Vault_Managed_server/tmp/_WL_user/liferay-dxp-7.2.10.1-sp1-20191007154602574/tfn8lt/war/WEB-INF/lib/portal-impl.jar!/system.properties
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.liferay.portal.tools.db.upgrade.client.DBUpgraderLauncher.main(DBUpgraderLauncher.java:55)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletException
    at com.liferay.portal.util.PortalClassPathUtil.initializeClassPaths(PortalClassPathUtil.java:114)
    at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:99)
    ... 5 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 7 more
Checking to see if all upgrades have completed... done.

ThanksAbhay
thumbnail
Alberto Chaparro, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Abhay,
It seems an error with the configuration used for the upgrade

Maybe it's better to follow this approach:

1- Download the bundle and execute the upgrade tool with it

2- Once the database and DL filesystem is upgraded, startup weblogic pointing to that database and DL filesystem

I hope it helps.
Abhay Gupta, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi AlbertoThanks for replying. Below is the configuration. Using the bundle and trying to upgrade doesnt seem possible as it is company owned environment.
App server properties filedir=C:\Oracle\Middleware\Oracle_Home\user_projects\domains
extra.lib.dirs=/bin
global.lib.dir=/lib
portal.dir=C:/Oracle/Middleware/Oracle_Home/user_projects/domains/documentVault_domain/webapps/root
server.detector.server.id=weblogic
portal upgrade ext propertiesliferay.home=C:/Oracle/Middleware/Oracle_Home/user_projects/domains
module.framework.base.dir=C:/Oracle/Middleware/Oracle_Home/user_projects/domains/osgi
dl.store.impl=com.liferay.portal.store.file.system.FileSystemStore
I would really appreciate your help in figuring this out.
Thanks 
Jamie Sammons, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi AlbertoWe were successfully able to upgrade the Liferay DB to 7.2 DXP, however when starting the Liferay we are getting the below error[PortalImpl:6752] javax.servlet.ServletException: A servlet matching the filter (servlet.init.private=false)(servlet.type=friendly-url) is unavailablejavax.servlet.ServletException: A servlet matching the filter (servlet.init.private=false)(servlet.type=friendly-url) is unavailableThe error comes once I have pointed the Liferay to use the new upgrade DB. I have attached complete logs. Any help will be greatly appreciated.
Thanks
thumbnail
Alberto Chaparro, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Abhay,
It seems that the upgrade didn't end properly. Can you check the upgrade log? If you don't find any clue, please share it. After the upgrade, unless you see a message that everything completed successfully you need to execute the following commands in the gogo shell to be sure that everything is ok and you can startup the server:
  • upgrade:check
  • dm:wtf

Those commands should return nothing.
Cheers!
Abhay Gupta, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi AlbertoI have attached the upgrade log for your reference. Please help.Thanks
thumbnail
Alberto Chaparro, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Abhay,
I have checked the upgrade log and only the core was upgraded properly, none of the modules were upgrade. Please verify that the path to osgi is the proper one and that you installed all modules property. Be sure that you don't have the autoUpgrade property set to false (by default is true)


​​​​​​​I hope it helps.
Abhay Gupta, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi Alberto
Thanks again for taking a look. I rechecked the osgi path and it seems correct (C:/Oracle/Middleware/Oracle_Home/user_projects/domains/osgi). Also, the autoupgrade property is set to false. Can you please explain what do you mean by all modules are installed properly and how to check that.
Please let me know if I can check anyother thing.
Thanks
Abhay
thumbnail
Alberto Chaparro, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Abhay,

I don't see any log for the module upgrades and this is the final message:
Checking to see if all upgrades have completed... your upgrades have failed, have not started, or are still running.

What you can do it's to connect the gogo shell after the upgrade (it's opened by default) and execute some commands to verify the status of the modules:
https://portal.liferay.dev/docs/7-0/reference/-/knowledge_base/r/using-the-felix-gogo-shell

At least the following ones can be interesting:
  • lb
  • dm wtf
  • upgrade:check

Try to redirect the output and analyze it properly.
I hope it helps.
Abhay Gupta, modified 5 Years ago. New Member Posts: 20 Join Date: 3/16/20 Recent Posts
Hi Alberto
Thanks for your help. You were correct that the Modules didn't upgrade happen.
Once , we upgraded the modules our Liferay was up and running.
Thanks
thumbnail
Alberto Chaparro Terleira, modified 5 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Glad to hear that and glad to help :-)


You're welcome :-)