Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-81230

ClassNotFoundException running DB Upgrade client on Weblogic 12.2.1.3

    Details

      Description

      ClassNotFoundException running DB Upgrade client on Weblogic 12.2.1.3

      Running DB Upgrade Client

      albert:portal-tools-db-upgrade-client ayame$ java -jar com.liferay.portal.tools.db.upgrade.client.jar
      [ jboss jonas resin tcserver tomcat weblogic websphere wildfly ]
      Please enter your application server (tomcat):
      weblogic
      Please enter your application server directory (/Users/ayame/Liferay/public/master-bundles/weblogic-12.2.1):
      /Users/ayame/Liferay/public/master-bundles/weblogic-12.2.1
      Please enter your extra library directories in application server directory (/bin):
      /bin
      Please enter your global library directory in application server directory (/domains/liferay/lib):
      /domains/liferay/lib
      Please enter your portal directory in application server directory (/domains/liferay/autodeploy/ROOT):
      /domains/liferay/autodeploy/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):
      none
      Please enter your database name (/lportal):
      lportal
      Please enter your database username:
      root
      Please enter your database password:
      

      ClassNotFoundException

      Loading jar:file:/Users/ayame/Liferay/public/master-bundles/weblogic-12.2.1/domains/liferay/autodeploy/ROOT/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.kernel.process.ClassPathUtil.initializeClassPaths(ClassPathUtil.java:143)
      	at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:97)
      	... 5 more
      Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 7 more
      

      Reproduced on
      Weblogic 12.2.1.3 + MySQL 5.7.19.
      Portal master GIT ID: 17a9393de037b4b70a23ba722a0be7406bc9ee0e.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 21 weeks, 4 days ago

                Packages

                Version Package
                7.1.0 Beta 3
                7.1.X
                Master