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

mvn liferay:build-service fails with SLF4 exception

    Details

      Description

      When running mvn liferay:build-service from the *-portlet module directory of a Maven project created using the liferay-servicebuilder-archetype:

      charlie@localhost:~/tech/liferay/maven-servicebuilder/maven-servicebuilder-portlet$ mvn liferay:build-service
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building maven-servicebuilder Portlet
      [INFO]    task-segment: [liferay:build-service]
      [INFO] ------------------------------------------------------------------------
      [INFO] [liferay:build-service {execution: default-cli}]
      [INFO] Building from /home/charlie/tech/liferay/maven-servicebuilder/maven-servicebuilder-portlet/src/main/webapp/WEB-INF/service.xml
      29/01/2012 9:34:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: No server detected
      Loading jar:file:/home/charlie/.m2/repository/com/liferay/portal/portal-impl/6.1.0/portal-impl-6.1.0.jar!/system.properties
      29/01/2012 9:34:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Global lib directory /home/charlie/.m2/repository/com/liferay/portal/portal-service/6.1.0/
      29/01/2012 9:34:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
      INFO: Portal lib directory /home/charlie/.m2/repository/com/liferay/portal/util-java/6.1.0/util-java-6.1.0.jar!/
      SLF4J: The requested version 1.6.4 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
      SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/home/charlie/.m2/repository/com/liferay/portal/util-java/6.1.0/util-java-6.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/home/charlie/.m2/repository/org/slf4j/slf4j-log4j12/1.5.11/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      [FATAL ERROR] com.liferay.maven.plugins.ServiceBuilderMojo#execute() caused a linkage error (java.lang.AbstractMethodError) and may be out-of-date. Check the realms:
      [FATAL ERROR] Plugin realm = app0.child-container[com.liferay.maven.plugins:liferay-maven-plugin:6.1.0]
      urls[0] = file:/home/charlie/.m2/repository/com/liferay/maven/plugins/liferay-maven-plugin/6.1.0/liferay-maven-plugin-6.1.0.jar
      urls[1] = file:/home/charlie/.m2/repository/com/liferay/portal/portal-impl/6.1.0/portal-impl-6.1.0.jar
      urls[2] = file:/home/charlie/.m2/repository/com/liferay/portal/portal-service/6.1.0/portal-service-6.1.0.jar
      urls[3] = file:/home/charlie/.m2/repository/com/liferay/portal/util-bridges/6.1.0/util-bridges-6.1.0.jar
      urls[4] = file:/home/charlie/.m2/repository/com/liferay/portal/util-java/6.1.0/util-java-6.1.0.jar
      urls[5] = file:/home/charlie/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
      urls[6] = file:/home/charlie/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
      urls[7] = file:/home/charlie/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.10/maven-invoker-2.0.10.jar
      urls[8] = file:/home/charlie/.m2/repository/com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.jar
      urls[9] = file:/home/charlie/.m2/repository/javax/media/jai-core/1.1.3/jai-core-1.1.3.jar
      urls[10] = file:/home/charlie/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar
      urls[11] = file:/home/charlie/.m2/repository/commons-discovery/commons-discovery/0.4/commons-discovery-0.4.jar
      urls[12] = file:/home/charlie/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
      urls[13] = file:/home/charlie/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
      urls[14] = file:/home/charlie/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
      urls[15] = file:/home/charlie/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
      urls[16] = file:/home/charlie/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
      urls[17] = file:/home/charlie/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
      urls[18] = file:/home/charlie/.m2/repository/easyconf/easyconf/0.9.5/easyconf-0.9.5.jar
      urls[19] = file:/home/charlie/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar
      urls[20] = file:/home/charlie/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
      urls[21] = file:/home/charlie/.m2/repository/commons-configuration/commons-configuration/1.1/commons-configuration-1.1.jar
      urls[22] = file:/home/charlie/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar
      urls[23] = file:/home/charlie/.m2/repository/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
      urls[24] = file:/home/charlie/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
      urls[25] = file:/home/charlie/.m2/repository/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar
      urls[26] = file:/home/charlie/.m2/repository/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar
      urls[27] = file:/home/charlie/.m2/repository/commons-beanutils/commons-beanutils-bean-collections/1.7.0/commons-beanutils-bean-collections-1.7.0.jar
      urls[28] = file:/home/charlie/.m2/repository/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar
      urls[29] = file:/home/charlie/.m2/repository/mx4j/mx4j-jmx/2.1.1/mx4j-jmx-2.1.1.jar
      urls[30] = file:/home/charlie/.m2/repository/mx4j/mx4j-impl/2.1.1/mx4j-impl-2.1.1.jar
      urls[31] = file:/home/charlie/.m2/repository/xstream/xstream/1.1.2/xstream-1.1.2.jar
      urls[32] = file:/home/charlie/.m2/repository/jalopy/jalopy/1.5rc3/jalopy-1.5rc3.jar
      urls[33] = file:/home/charlie/.m2/repository/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
      urls[34] = file:/home/charlie/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar
      urls[35] = file:/home/charlie/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
      urls[36] = file:/home/charlie/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
      urls[37] = file:/home/charlie/.m2/repository/javax/jms/jms/1.1/jms-1.1.jar
      urls[38] = file:/home/charlie/.m2/repository/net/java/dev/rome/rome/1.0.0/rome-1.0.0.jar
      urls[39] = file:/home/charlie/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
      urls[40] = file:/home/charlie/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
      urls[41] = file:/home/charlie/.m2/repository/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.jar
      urls[42] = file:/home/charlie/.m2/repository/org/apache/axis/axis/1.4/axis-1.4.jar
      urls[43] = file:/home/charlie/.m2/repository/org/apache/axis/axis-ant/1.4/axis-ant-1.4.jar
      urls[44] = file:/home/charlie/.m2/repository/org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar
      urls[45] = file:/home/charlie/.m2/repository/org/apache/jackrabbit/jackrabbit-core/2.1.2/jackrabbit-core-2.1.2.jar
      urls[46] = file:/home/charlie/.m2/repository/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar
      urls[47] = file:/home/charlie/.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar
      urls[48] = file:/home/charlie/.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar
      urls[49] = file:/home/charlie/.m2/repository/org/apache/jackrabbit/jackrabbit-api/2.1.2/jackrabbit-api-2.1.2.jar
      urls[50] = file:/home/charlie/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-commons/2.1.2/jackrabbit-jcr-commons-2.1.2.jar
      urls[51] = file:/home/charlie/.m2/repository/org/apache/jackrabbit/jackrabbit-spi-commons/2.1.2/jackrabbit-spi-commons-2.1.2.jar
      urls[52] = file:/home/charlie/.m2/repository/org/apache/jackrabbit/jackrabbit-spi/2.1.2/jackrabbit-spi-2.1.2.jar
      urls[53] = file:/home/charlie/.m2/repository/org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar
      urls[54] = file:/home/charlie/.m2/repository/org/apache/tika/tika-parsers/0.6/tika-parsers-0.6.jar
      urls[55] = file:/home/charlie/.m2/repository/org/apache/tika/tika-core/0.8/tika-core-0.8.jar
      urls[56] = file:/home/charlie/.m2/repository/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
      urls[57] = file:/home/charlie/.m2/repository/org/apache/pdfbox/pdfbox/1.0.0/pdfbox-1.0.0.jar
      urls[58] = file:/home/charlie/.m2/repository/org/apache/pdfbox/fontbox/1.0.0/fontbox-1.0.0.jar
      urls[59] = file:/home/charlie/.m2/repository/org/apache/pdfbox/jempbox/1.0.0/jempbox-1.0.0.jar
      urls[60] = file:/home/charlie/.m2/repository/org/apache/poi/poi/3.6/poi-3.6.jar
      urls[61] = file:/home/charlie/.m2/repository/org/apache/poi/poi-scratchpad/3.6/poi-scratchpad-3.6.jar
      urls[62] = file:/home/charlie/.m2/repository/org/apache/poi/poi-ooxml/3.6/poi-ooxml-3.6.jar
      urls[63] = file:/home/charlie/.m2/repository/org/apache/poi/poi-ooxml-schemas/3.6/poi-ooxml-schemas-3.6.jar
      urls[64] = file:/home/charlie/.m2/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar
      urls[65] = file:/home/charlie/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar
      urls[66] = file:/home/charlie/.m2/repository/org/ccil/cowan/tagsoup/tagsoup/1.2/tagsoup-1.2.jar
      urls[67] = file:/home/charlie/.m2/repository/asm/asm/3.1/asm-3.1.jar
      urls[68] = file:/home/charlie/.m2/repository/com/drewnoakes/metadata-extractor/2.4.0-beta-1/metadata-extractor-2.4.0-beta-1.jar
      urls[69] = file:/home/charlie/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.8/jcl-over-slf4j-1.5.8.jar
      urls[70] = file:/home/charlie/.m2/repository/org/apache/lucene/lucene-core/2.4.1/lucene-core-2.4.1.jar
      urls[71] = file:/home/charlie/.m2/repository/org/apache/derby/derby/10.5.3.0_1/derby-10.5.3.0_1.jar
      urls[72] = file:/home/charlie/.m2/repository/org/apache/tomcat/tomcat-jdbc/7.0.22/tomcat-jdbc-7.0.22.jar
      urls[73] = file:/home/charlie/.m2/repository/org/apache/tomcat/tomcat-juli/7.0.22/tomcat-juli-7.0.22.jar
      urls[74] = file:/home/charlie/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-9/plexus-archiver-1.0-alpha-9.jar
      urls[75] = file:/home/charlie/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-1/plexus-io-1.0-alpha-1.jar
      urls[76] = file:/home/charlie/.m2/repository/org/freemarker/freemarker/2.3.16/freemarker-2.3.16.jar
      urls[77] = file:/home/charlie/.m2/repository/org/slf4j/slf4j-log4j12/1.5.11/slf4j-log4j12-1.5.11.jar
      urls[78] = file:/home/charlie/.m2/repository/org/springframework/spring-context/3.0.5.RELEASE/spring-context-3.0.5.RELEASE.jar
      urls[79] = file:/home/charlie/.m2/repository/org/springframework/spring-aop/3.0.5.RELEASE/spring-aop-3.0.5.RELEASE.jar
      urls[80] = file:/home/charlie/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      urls[81] = file:/home/charlie/.m2/repository/org/springframework/spring-asm/3.0.5.RELEASE/spring-asm-3.0.5.RELEASE.jar
      urls[82] = file:/home/charlie/.m2/repository/org/springframework/spring-beans/3.0.5.RELEASE/spring-beans-3.0.5.RELEASE.jar
      urls[83] = file:/home/charlie/.m2/repository/org/springframework/spring-core/3.0.5.RELEASE/spring-core-3.0.5.RELEASE.jar
      urls[84] = file:/home/charlie/.m2/repository/org/springframework/spring-expression/3.0.5.RELEASE/spring-expression-3.0.5.RELEASE.jar
      urls[85] = file:/home/charlie/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
      urls[86] = file:/home/charlie/.m2/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar
      urls[87] = file:/home/charlie/tech/liferay/maven-servicebuilder/maven-servicebuilder-portlet/target/classes
      [FATAL ERROR] Container realm = plexus.core
      urls[0] = file:/usr/share/maven2/lib/maven-debian-uber.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] com.liferay.util.sl4fj.LiferayLoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.AbstractMethodError: com.liferay.util.sl4fj.LiferayLoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
      	at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
      	at com.germinus.easyconf.EasyConf.refreshAll(EasyConf.java:122)
      	at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:89)
      	at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:67)
      	at com.liferay.portal.util.PropsUtil.<init>(PropsUtil.java:164)
      	at com.liferay.portal.util.PropsUtil.<clinit>(PropsUtil.java:323)
      	at com.liferay.maven.plugins.ServiceBuilderMojo.doExecute(ServiceBuilderMojo.java:95)
      	at com.liferay.maven.plugins.ServiceBuilderMojo.execute(ServiceBuilderMojo.java:59)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:616)
      	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 seconds
      [INFO] Finished at: Sun Jan 29 21:34:32 EST 2012
      [INFO] Final Memory: 17M/265M
      [INFO] ------------------------------------------------------------------------
      

      Possibly related:

      Should perhaps be on the "PUBLIC - Maven" project, but the web UI doesn't let me do that.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 41 weeks, 1 day ago

                Packages

                Version Package
                6.1.10 EE1
                6.2.0 GA1
                6.1.1 GA2