Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F74410149 for ; Thu, 6 Jun 2013 06:42:24 +0000 (UTC) Received: (qmail 1730 invoked by uid 500); 6 Jun 2013 06:42:22 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 1355 invoked by uid 500); 6 Jun 2013 06:42:22 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 1332 invoked by uid 99); 6 Jun 2013 06:42:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jun 2013 06:42:20 +0000 Date: Thu, 6 Jun 2013 06:42:20 +0000 (UTC) From: "Konstantin Boudnik (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9615) Hadoop Jar command not working when used with Spring ORM 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/HADOOP-9615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676760#comment-13676760 ] Konstantin Boudnik commented on HADOOP-9615: -------------------------------------------- I am removing 2.0.4-alpha target is that version has been released long time ago. > Hadoop Jar command not working when used with Spring ORM > -------------------------------------------------------- > > Key: HADOOP-9615 > URL: https://issues.apache.org/jira/browse/HADOOP-9615 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.0.0-alpha > Environment: CentOS, > Reporter: Deepa Vasanthkumar > Labels: hadoop-2.0 > > Unable to invoke 'hadoop jar' command for class, which contains Spring persistance unit. > The problem is that, the jar file uses Spring ORM for loading the persistance configurations, and based on these configurations, > i need to move the files to HDFS. > While invoking the jar with hadoop jar command (having spring orm injected) the exception is as: > Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in class path resource [applicationContext.xml > Error creating bean with name 'entityManagerFactory' defined in class path resource [applicationContext.xml]: > Invocation of init method failed; nested exception is java.lang.IllegalStateException: Conflicting persistence unit definitions for name 'Persistance': file:/home/user/Desktop/ABC/apnJar.jar, file:/tmp/hadoop-user/hadoop-unjar2841422106164401019/ > Caused by: java.lang.IllegalStateException: Conflicting persistence unit definitions for name 'Persistance': -- 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