<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4 - Windows</title>
  <link rel="self" href="https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=92840745" />
  <subtitle>Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4 - Windows</subtitle>
  <id>https://liferay.dev/de/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=92840745</id>
  <updated>2026-05-19T16:30:23Z</updated>
  <dc:date>2026-05-19T16:30:23Z</dc:date>
  <entry>
    <title>RE: Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=93093858" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=93093858</id>
    <updated>2017-08-14T16:46:54Z</updated>
    <published>2017-08-14T16:46:54Z</published>
    <summary type="html">Wow. Thanks for reporting back. That is a description that I didn&amp;#39;t expect.&lt;br /&gt;&lt;br /&gt;My first thought, when I read this again, was that I wasn&amp;#39;t sure if the backslashes were properly escaped in all cases and it might be worth to use forward-slashes / to separate Windows paths. I&amp;#39;d assume that the upgrader generates the classpath automatically from the available code - that should be why it&amp;#39;s asking for the Liferay 7 directory. When (If) the backslashes aren&amp;#39;t properly escaped, this would wreak havoc to the filenames - for example &lt;span style="font-family: Courier New"&gt;some-directory&lt;strong&gt;\t&lt;/strong&gt;omcat&lt;/span&gt; would translate to &lt;span style="font-family: Courier New"&gt;some-directory&lt;strong&gt;&amp;lt;tab&amp;gt;&lt;/strong&gt;omcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But again, this is just a quick guess. I&amp;#39;m religiously staying away from backslashes as Windows Path separators.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2017-08-14T16:46:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92880050" />
    <author>
      <name>Mohammed Rawoof Shaik</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92880050</id>
    <updated>2017-08-09T16:07:20Z</updated>
    <published>2017-08-09T16:07:20Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Dennis, Olaf... Thank you directing this thread... I did a little investigation and have provided the details below,&lt;br&gt;&lt;br&gt;Copied&lt;br&gt;	C:\sts-bundle\liferay-ce-portal-7.0-ga4\tomcat-8.0.32\webapps\ROOT\WEB-INF\lib&lt;br&gt;to&lt;br&gt;	C:\liferay-ce-portal-tools-7.0-ga4\portal-tools-db-upgrade-client\lib&lt;br&gt;&lt;br&gt;After which,&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;C:\liferay-ce-portal-tools-7.0-ga4\portal-tools-db-upgrade-client&amp;amp;gt;java -jar com.liferay.portal.tools.db.upgrade.client.jar
Error running upgrade
java.io.IOException: Cannot run program "java": CreateProcess error=206, The filename or extension is too long
        at java.lang.ProcessBuilder.start(Unknown Source)
        at com.liferay.portal.tools.db.upgrade.client.UpgradeClient.upgrade(UpgradeClient.java:177)
        at com.liferay.portal.tools.db.upgrade.client.UpgradeClient.main(UpgradeClient.java:107)
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.&amp;lt;init&amp;gt;(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 3 more&amp;lt;/init&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Moved and renamed,&lt;br&gt;	C:\liferay-ce-portal-tools-7.0-ga4\portal-tools-db-upgrade-client\lib&lt;br&gt;to&lt;br&gt;	C:\z\portal-tools-db-upgrade-client&lt;br&gt;&lt;br&gt;After which,&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;C:\z\portal-tools-db-upgrade-client&amp;amp;gt;java -jar com.liferay.portal.tools.db.upgrade.client.jar
java.lang.NoClassDefFoundError: com/liferay/portal/kernel/exception/PortalException
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.privateGetMethodRecursive(Unknown Source)
	at java.lang.Class.getMethod0(Unknown Source)
	at java.lang.Class.getMethod(Unknown Source)
	at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.exception.PortalException
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" &lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;-- Added portal-service-6.2.5.jar to the 'C:\z\portal-tools-db-upgrade-client\lib' folder&lt;br&gt;&lt;br&gt;After which,&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;SEVERE: Portal ClassLoader is null
Exception in thread "main" java.lang.NoClassDefFoundError: com/liferay/portal/kernel/upgrade/dao/orm/UpgradeOptimizedConnectionProviderRegistry
	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:97)
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.kernel.upgrade.dao.orm.UpgradeOptimizedConnectionProviderRegistry
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 1 more&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;-- Added com.liferay.portal.kernel-2.41.0.jar&lt;br&gt;&lt;br&gt;After which,&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Loading jar:file:/C:/z/portal-tools-db-upgrade-client/lib/portal-impl.jar!/system.properties
Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletException
	at com.liferay.portal.kernel.process.ClassPathUtil.initializeClassPaths(ClassPathUtil.java:143)
	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:95)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 2 more&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Copied all jar files from&lt;br&gt;	C:\sts-bundle\liferay-ce-portal-7.0-ga4\tomcat-8.0.32\lib&lt;br&gt;to&lt;br&gt;	C:\z\portal-tools-db-upgrade-client\lib&lt;br&gt;&lt;br&gt;After which it seems to run without any exceptions. Attached upgrade.log.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Rawoof Shaik</dc:creator>
    <dc:date>2017-08-09T16:07:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92864957" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92864957</id>
    <updated>2017-08-09T09:28:47Z</updated>
    <published>2017-08-09T09:28:47Z</published>
    <summary type="html">I&amp;#39;ve moved the thread over there.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2017-08-09T09:28:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92847672" />
    <author>
      <name>Dennis Ju</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92847672</id>
    <updated>2017-08-09T00:43:24Z</updated>
    <published>2017-08-09T00:43:24Z</published>
    <summary type="html">Hi Mohammed,&lt;br /&gt;&lt;br /&gt;You should post under the &lt;a href="https://web.liferay.com/community/forums/-/message_boards/category/239393"&gt;Liferay Portal -&amp;gt; Installation / Deployment / Setup&lt;/a&gt; forum. You&amp;#39;ll have better luck finding help w/ this question.</summary>
    <dc:creator>Dennis Ju</dc:creator>
    <dc:date>2017-08-09T00:43:24Z</dc:date>
  </entry>
  <entry>
    <title>Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4 - Windows</title>
    <link rel="alternate" href="https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92840744" />
    <author>
      <name>Mohammed Rawoof Shaik</name>
    </author>
    <id>https://liferay.dev/de/c/message_boards/find_message?p_l_id=119785294&amp;messageId=92840744</id>
    <updated>2017-08-08T19:59:43Z</updated>
    <published>2017-08-08T19:59:43Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello LR Community,&lt;br&gt;&lt;br&gt;&lt;strong&gt;Requirement:&lt;/strong&gt;&lt;br&gt;Upgrade liferay-portal-6.2-ce-ga6 to liferay-ce-portal-7.0-ga4. I've followed the steps and details outlined in this &lt;a href="https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/running-the-upgrade-process"&gt;page&lt;/a&gt;. I downloaded the items from &lt;a href="https://sourceforge.net/projects/lportal/files/Liferay%20Portal/7.0.3%20GA4/"&gt;sourceforge&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Issue:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;When I run the tool I get the below error,&lt;br&gt;&lt;br&gt;&lt;span style="color: #e21b1b"&gt;Error: Could not find or load main class com.liferay.portal.tools.DBUpgrader&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;C:\sts-bundle\liferay-ce-portal-tools-7.0-ga4\portal-tools-db-upgrade-client&amp;amp;gt;java -jar com.liferay.portal.tools.db.upgrade.client.jar
[ jboss jonas resin tcserver tomcat weblogic websphere wildfly ]
Please enter your application server (tomcat):
tomcat
Please enter your application server directory (..\..\tomcat-8.0.32):
C:\sts-bundle\liferay-ce-portal-7.0-ga4\tomcat-8.0.32
Please enter your extra library directories (..\..\tomcat-8.0.32\bin):

Please enter your global library directory (..\..\tomcat-8.0.32\lib):

Please enter your portal directory (..\..\tomcat-8.0.32\webapps\ROOT):

[ db2 mariadb mysql oracle postgresql sqlserver sybase ]
Please enter your database (mysql):
mysql
Please enter your database JDBC driver class name (com.mysql.jdbc.Driver):
com.mysql.jdbc.Driver
Please enter your database JDBC driver protocol (jdbc:mysql://):
jdbc:mysql://
Please enter your database host (localhost):
localhost
Please enter your database port (none):

Please enter your database name (/lportal):
/lportal_6.2.5
Please enter your database username:
root
Please enter your database password:
****
Please enter your Liferay home (../../):
C:\sts-bundle\liferay-ce-portal-7.0-ga4
Error: Could not find or load main class com.liferay.portal.tools.DBUpgrader

C:\sts-bundle\liferay-ce-portal-tools-7.0-ga4\portal-tools-db-upgrade-client&amp;amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;Investigation &amp;amp; Details:&lt;/strong&gt;&lt;br&gt;I unzipped the com.liferay.portal.tools.db.upgrade.client.jar and couldn't find the DBUpgrader class. &lt;br&gt;&lt;br&gt;LR 6 portal directory - C:\sts-bundle\liferay-portal-6.2-ce-ga6&lt;br&gt;LR 7 portal directory - C:\sts-bundle\liferay-ce-portal-7.0-ga4&lt;br&gt;LR 7 tools directory - C:\sts-bundle\liferay-ce-portal-tools-7.0-ga4&lt;br&gt;&lt;br&gt;I also tried placing the tools folder in the LR 6 portal &amp;amp; LR 7 portal directory, and tried running it from there, but I get the same error.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;C:\sts-bundle\liferay-ce-portal-7.0-ga4\portal-tools-db-upgrade-client&amp;amp;gt;java -jar com.liferay.portal.tools.db.upgrade.client.jar
Error: Could not find or load main class com.liferay.portal.tools.DBUpgrader

C:\sts-bundle\liferay-portal-6.2-ce-ga6\portal-tools-db-upgrade-client&amp;amp;gt;java -jar com.liferay.portal.tools.db.upgrade.client.jar
Error: Could not find or load main class com.liferay.portal.tools.DBUpgrader&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;Environment&lt;/strong&gt;&lt;br&gt;Windows 7, 64 bit&lt;br&gt;&lt;br&gt;&lt;strong&gt;Question:&lt;/strong&gt;&lt;br&gt;What am I missing here?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Rawoof Shaik</dc:creator>
    <dc:date>2017-08-08T19:59:43Z</dc:date>
  </entry>
</feed>
