[jira] [Commented] (HADOOP-9615) Hadoop Jar command not working when used with Spring ORM

2013-06-04 Thread Deepa Vasanthkumar (JIRA)

[ 
https://issues.apache.org/jira/browse/HADOOP-9615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13674386#comment-13674386
 ] 

Deepa Vasanthkumar commented on HADOOP-9615:



As a workaround, I removed all configuration xmls from the jar file, and placed 
them into the working directory.
This resolved the issue for the timebeing. 


 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


[jira] [Updated] (HADOOP-9615) Hadoop Jar command not working when used with Spring ORM

2013-06-02 Thread Deepa Vasanthkumar (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-9615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepa Vasanthkumar updated HADOOP-9615:
---

Description: 
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': 



  was:
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-689118/hadoop-unjar2841422106164401019/


Caused by: java.lang.IllegalStateException: Conflicting persistence unit 
definitions for name 'Persistance': 




 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


[jira] [Created] (HADOOP-9615) Hadoop Jar command not working when used with Spring ORM

2013-06-02 Thread Deepa Vasanthkumar (JIRA)
Deepa Vasanthkumar created HADOOP-9615:
--

 Summary: 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


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-689118/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