Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-123

liferay:build-wsdd is not working in maven Service Builder Project

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 GA1
    • Fix Version/s: 6.1.X, 6.2.X
    • Component/s: General
    • Labels:
      None

      Description

      Steps to reproduce:
      1) Create a service builder project (6.2.10.5)
      2) Add the following properties to the pom.xml

      	<properties>
      		<liferay.version>6.2.10.5</liferay.version>
      		<liferay.maven.plugin.version>6.2.10.5</liferay.maven.plugin.version>
      	</properties>
      

      3) Run mvn liferay:build-service (works correctly)
      4) Run mvn liferay:build-wsdd

      Result: Build failed:
      Loading jar:file:/C:/stoxxwsdd/stoxxwsdd-portlet/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading jar:file:/C:/stoxxwsdd/stoxxwsdd-portlet/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/portal-patched.properties
      Loading jar:file:/C:/stoxxwsdd/stoxxwsdd-portlet/target/liferay-work/appServerPortalDir/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
      Java2WSDL com.test.stoxxWSDD.service.http.FooServiceSoap
      java.lang.ClassNotFoundException: com.test.stoxxWSDD.service.http.FooServiceSoap
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1383)
      at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1076)

      Entire log attached.

      It is similar to the MAVEN-69, however "Attachment support is disabled." didn't appear.

      I found a workaround which is: if I created a Service Builder Project from our Liferay Developer Studio 2.0.0 beta 2 version which had an active profile, then the issue was gone and the services generated correctly.
      1) Generate Service Builder Project
      2) Fill the active profile (6.2.10.5)
      3) Insert sample data to service.xml
      4) Run mvn liferay:build-service (works correctly)
      5) Run mvn liferay:build-wsdd (works correctly)

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            renata.kovacs Renata Kovacs
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              6 years, 5 weeks, 4 days ago

                Packages

                Version Package
                6.1.X
                6.2.X