ant initportal java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat

229 views
Skip to first unread message

David Brown

unread,
Feb 10, 2016, 9:28:30 PM2/10/16
to uporta...@apereo.org
Howdy uportal crowd,

For about 2 days studying and Googling this issue I cannot get a good
uportal build.

The quickstart works but I start a new gig with a school that is heavily
dependent upon uportal.

I need to understand the code itself and the ability to create portlets
that can be added in like the standard portlets.

This all depends upon a good build.

When I run: ant initportal the build process always stops in the same
place:

********************************************************************************************
[exec] [ERROR] Failed to execute goal
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl (default) on
project SimpleContentPortlet: Execution default of goal
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl failed: An API
incompatibility was encountered while executi.ng
org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl:
java.lang.NoSuchMethodError:
org.slf4j.helpers.MessageFormatter.arrayFormat(Ljava/lang/String;[Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
********************************************************************************************

I had a look at the wiki for the slf4j jar mismatch solution but I don't
see how this affects the SimleContentPortlet.

I did a find on the package and class:
org.slf4j.helpers.MessageFormatter and find returns jars with the same
version: slf4j-api-1.7.11.jar.

This is true for the quickstart which runs OK.

I found this: https://issues.jasig.org/browse/UP-4581 which claims
upgrading maven fixes the problem but I can't on my Ubuntu LTS 14.04
upgrade from 3.0.5 maven to 3.2.2.

I would really appreciate any hint or suggestion whatever.

Please advise.

Kindly regards.

Ryan Melissari

unread,
Feb 11, 2016, 10:14:22 AM2/11/16
to uPortal Community
If you are compiling 4.2 you will need to use a newer version of maven.  You don't have to upgrade, instead you can just download the newer version and source that before you run the ant initportal.  You can do that by just extracting the tar file from https://maven.apache.org/download.cgi to /portal and exporting the path.

# export PATH=/portal/apache-maven-3.3.9/bin/:$PATH

You can then verify that the new version is sourced correctly by typing:

# mvn --version

You will need to source the newer maven path every time you open a new terminal window using this method.



--
You received this message because you are subscribed to the Google Groups "uPortal Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-user...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-user/.

James Wennmacher

unread,
Feb 11, 2016, 10:49:30 AM2/11/16
to uporta...@apereo.org
Great response Ryan.

To add to it, you can put the below in your .bashrc and should be automatic for you.
James Wennmacher - Unicon
480.558.2420
Reply all
Reply to author
Forward
0 new messages