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

liferay:build-wsdd is not working in maven project

    Details

      Description

      I have project created with service-builder artefact. mvn liferay:build-service works perfectly - it is generated sources for services as well as impl-classes in portlet project.
      Now, I'd like to generate wsdd to be able to use remote services via SOAP - and got error:

      INFO: Properties for portal loaded from [jar:file:/Users/akakunin/.m2/repository/com/liferay/portal/portal-impl/6.1.1/portal-impl-6.1.1.jar!/portal.properties]
      Loading jar:file:/Users/akakunin/.m2/repository/com/liferay/portal/portal-impl/6.1.1/portal-impl-6.1.1.jar!/portal.properties
      20:02:04,595 WARN  [main][JavaUtils:1308] Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
        Java2WSDL ru.emdev.service.http.FooServiceSoap
        java.lang.ClassNotFoundException: ru.emdev.service.http.FooServiceSoap
        	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
        	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
        	at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1383)
        	at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1076)
        	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      

      ru.emdev.service.http.FooServiceSoap - is a class from portlet project generated by liferay:build-service
      It looks like liferay:build-service is not included portlet classes into classpath

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 38 weeks ago

                Packages

                Version Package
                6.2.0 GA1
                6.1.30 EE GA3
                6.1.2 CE GA3