Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2BB5106BD for ; Tue, 16 Apr 2013 15:03:16 +0000 (UTC) Received: (qmail 68075 invoked by uid 500); 16 Apr 2013 15:03:16 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 68030 invoked by uid 500); 16 Apr 2013 15:03:16 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 67972 invoked by uid 99); 16 Apr 2013 15:03:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 15:03:16 +0000 Date: Tue, 16 Apr 2013 15:03:16 +0000 (UTC) From: "Kevin Sutter (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (OPENJPA-2172) openjpa-all jar is missing slf4j runtime dependency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Sutter resolved OPENJPA-2172. ----------------------------------- Resolution: Fixed > openjpa-all jar is missing slf4j runtime dependency > --------------------------------------------------- > > Key: OPENJPA-2172 > URL: https://issues.apache.org/jira/browse/OPENJPA-2172 > Project: OpenJPA > Issue Type: Bug > Components: samples, validation > Affects Versions: 2.2.0, 2.3.0, 2.2.1 > Reporter: Kevin Sutter > Assignee: Kevin Sutter > Fix For: 2.3.0, 2.2.2 > > > I just tried the JSE version of the OpenBooks example (../openjpa-examples/openbooks) and it turns out that we're missing the SLF4J runtime dependency in our openjpa-all jar file. This SLF4J dependency comes about because of our dependency on Bean Validation (bval). We're pulling in the SLF4J API from slf4j-api, but we're missing the runtime from slf4j-simple. > There are two resolutions to this. We can modify the ../openjpa-all/pom.xml to include the following dependency: > > org.slf4j > slf4j-simple > ${slf4jVersion} > > Or, we can tell OpenJPA that OpenBooks does not depend on bean validation (which it doesn't). We can do this via this additional configuration property in the persistence.xml for the OpenBooks sample: > NONE > The most complete solution is to modify the pom.xml when building the openjpa-all jar. The unfortunate thing with this approach is that we have already released 2.2.0 which already is missing this slf4j runtime. Maybe we'll just have to add a "readme" to that download. We can fix it in 2.2.x and trunk though. And, if somebody hits this with the 2.2.0 release, hopefully they are not using bean validation and they can set the validation-mode to NONE. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira