Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68667 Complete blogs osgi extraction
  3. LPS-68781

Add registry-api to workaround gradle bug for buildWSDD missing registry-api jar on the classpath

    Details

      Description

      Run gradlew buildWSDD for blogs-service, currently due to the incomplete SB moving. It won't work, but it should fail with WSDD builder failure. However due to a gradle issue, it is actually failing on missing registry-api jar on classpath.

      As a workaround, add registry-api to dependencies, this is preparing for the upcoming blogs sb extraction.

      Expected failure:

      :apps:collaboration:blogs:blogs-service:compileJava
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      :apps:collaboration:blogs:blogs-service:buildWSDD
        Java2WSDL com.liferay.blogs.service.http.BlogsEntryServiceSoap
      - The class com.liferay.blogs.kernel.model.BlogsEntry does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.portlet.LiferayPortletRequest does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.portlet.LiferayPortletResponse does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.Locale is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.PortletPreferencesIds does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.servlet.http.HttpServletRequest is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.servlet.http.HttpServletResponse is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Group does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.mobile.device.rules.kernel.MDRRuleGroupInstance does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.portlet.PortletURL is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Account does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.ColorScheme does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Company does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Contact does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.User does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.mobile.device.Device does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Layout does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.LayoutSet does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.LayoutTypePortlet does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.security.permission.PermissionChecker does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.Comparator is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.portlet.PortletPreferences is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Theme does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.Properties is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.TimeZone is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
        WSDL2Java /tmp/2782667027747454414/service.wsdl
        Running Wsdl2javaAntTask with parameters:
              verbose:false
              debug:false
              quiet:false
              server-side:true
              skeletonDeploy:false
              helperGen:false
              factory:null
              nsIncludes:[]
              nsExcludes:[]
              factoryProps:[]
              testCase:false
              noImports:false
              NStoPkg:{}
              output:/tmp/2782667027747454414
              protocolHandlerPkgs:
              deployScope:
              URL:/tmp/2782667027747454414/service.wsdl
              all:false
              typeMappingVersion:1.2
              timeout:45000
              failOnNetworkErrors:false
              printStackTraceOnFailure:true
              namespaceMappingFile:null
              username:null
              :passwordnull
              :noWrappedfalse
              :allowInvalidURLfalse
              :implementationClassNamenull
              :classpathnull
              http.proxyHost=null
              http.proxyPort=null
              http.proxyUser=null
      java.io.IOException: Type {http://model.kernel.blogs.liferay.com}BlogsEntry is referenced but not defined.
              at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
              at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
              at java.lang.Thread.run(Thread.java:745)
      Exception in thread "main" WSDL processing error for /tmp/2782667027747454414/service.wsdl :
       Type {http://model.kernel.blogs.liferay.com}BlogsEntry is referenced but not defined.
              at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:304)
              at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:125)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:159)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.build(WSDDBuilder.java:118)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.main(WSDDBuilder.java:61)
      Caused by: java.io.IOException: Type {http://model.kernel.blogs.liferay.com}BlogsEntry is referenced but not defined.
              at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
              at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
              at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
              at java.lang.Thread.run(Thread.java:745)
              http.proxyPassword=null
              socks.proxyHost=null
              socks.proxyPort=null
      :apps:collaboration:blogs:blogs-service:buildWSDD FAILED
      
      

      Actual failure:

      :apps:collaboration:blogs:blogs-service:compileJava
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      :apps:collaboration:blogs:blogs-service:buildWSDD
        Java2WSDL com.liferay.blogs.service.http.BlogsEntryServiceSoap
      - The class com.liferay.blogs.kernel.model.BlogsEntry does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.portlet.LiferayPortletRequest does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.portlet.LiferayPortletResponse does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.Locale is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.PortletPreferencesIds does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.servlet.http.HttpServletRequest is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.servlet.http.HttpServletResponse is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Group does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.mobile.device.rules.kernel.MDRRuleGroupInstance does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.portlet.PortletURL is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Account does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.ColorScheme does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Company does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Contact does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.User does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.mobile.device.Device does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.Layout does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.LayoutSet does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.model.LayoutTypePortlet does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class com.liferay.portal.kernel.security.permission.PermissionChecker does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class java.util.Comparator is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
      - The class javax.portlet.PortletPreferences is defined in a java or javax package and cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
        java.lang.NoClassDefFoundError: com/liferay/registry/ServiceTrackerCustomizer
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
              at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
              at java.lang.Class.getMethod0(Class.java:3018)
              at java.lang.Class.getMethod(Class.java:1784)
              at org.apache.axis.wsdl.fromJava.Types.isEnumClass(Types.java:1125)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1841)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1890)
              at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1486)
              at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1106)
              at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
              at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
              at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
              at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:430)
              at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:243)
              at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:112)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:159)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.build(WSDDBuilder.java:118)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.main(WSDDBuilder.java:61)
        Caused by: java.lang.ClassNotFoundException: com.liferay.registry.ServiceTrackerCustomizer
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1393)
              at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 36 more
      Exception in thread "main" Error while running org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask
              at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:261)
              at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:112)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:159)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.build(WSDDBuilder.java:118)
              at com.liferay.portal.tools.wsdd.builder.WSDDBuilder.main(WSDDBuilder.java:61)
      Caused by: java.lang.NoClassDefFoundError: com/liferay/registry/ServiceTrackerCustomizer
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
              at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
              at java.lang.Class.getMethod0(Class.java:3018)
              at java.lang.Class.getMethod(Class.java:1784)
              at org.apache.axis.wsdl.fromJava.Types.isEnumClass(Types.java:1125)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1841)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.encoding.ser.BeanSerializer.writeField(BeanSerializer.java:489)
              at org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerializer.java:434)
              at org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1866)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:421)
              at org.apache.axis.wsdl.fromJava.Types.writeTypeAndSubTypeForPart(Types.java:442)
              at org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1890)
              at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1486)
              at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1106)
              at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
              at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
              at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
              at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:430)
              at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:243)
              ... 4 more
      Caused by: java.lang.ClassNotFoundException: com.liferay.registry.ServiceTrackerCustomizer
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1393)
              at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 36 more
      :apps:collaboration:blogs:blogs-service:buildWSDD FAILED
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                shuyang.zhou Shuyang Zhou
                Recent user:
                Andrea Di Giorgi (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 5 weeks, 1 day ago

                  Packages

                  Version Package
                  Master