Hello
I change all of the Groupe class code with this code, and i still have the same problem
Code:
package m;
// default package
// Generated 28 août 2011 02:18:20 by Hibernate Tools 3.4.0.CR1
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Groupe generated by hbm2java
*/
@Entity
@Table(name = "groupe", catalog = "pfedb")
public class Groupe implements java.io.Serializable {
private String groupeId;
public Groupe(){
}
public Groupe(String groupeId) {
this.groupeId = groupeId;
}
@Id
@Column(name = "groupeID", unique = true, nullable = false)
public String getGroupeId() {
return this.groupeId;
}
public void setGroupeId(String groupeId) {
this.groupeId = groupeId;
}
}
Code:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [appco.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'annotatedClasses' of bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Bean property 'annotatedClasses' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'annotatedClasses' of bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Bean property 'annotatedClasses' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:670)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:572)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:764)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:753)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1061)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at m.Main.main(Main.java:17)
plz help me i'm using th Spring 3.1 version
and this is the list of all the jars that i use for this project, there are all in the class path of this project
Code:
commons-codec-1.4.jar
commons-io-1.4.jar
commons-lang-2.4.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
hibernate-search-analyzers-3.4.0.Final.jar
i18nlog-1.0.10.jar
infinispan-core-4.2.1.FINAL.jar
infinispan-lucene-directory-4.2.1.FINAL.jar
jboss-transaction-api-1.0.1.GA.jar
jgroups-2.12.0.Final.jar
jgroups-2.8.0.GA.jar
log4j-1.2.16.jar
lucene-analyzers-3.1.0.jar
marshalling-api-1.2.3.GA.jar
rhq-pluginAnnotations-3.0.1.jar
river-1.2.3.GA.jar
slf4j-log4j12-1.6.1.jar
solr-analysis-extras-3.1.0.jar
solr-commons-csv-3.1.0.jar
solr-core-3.1.0.jar
solr-solrj-3.1.0.jar
jms-1.1.jar
jsr250-api-1.0.jar
jta-1.1.jar
antlr-2.7.6.jar
commons-collections-3.1.jar
commons-lang-2.4.jar
dom4j-1.6.1.jar
hibernate-commons-annotations-3.2.0.Final.jar
hibernate-core-3.6.3.Final.jar
lucene-core-3.1.0.jar
slf4j-api-1.6.1.jar
hibernate-search-3.4.0.Final.jar
hibernate-search-infinispan-3.4.0.Final.jar
javassist.jar
mysql-connector-java-5.1.17-bin.jar
org.springframework.aop-3.1.0.M2.jar
org.springframework.asm-3.1.0.M2.jar
org.springframework.aspects-3.1.0.M2.jar
org.springframework.beans-3.1.0.M2.jar
org.springframework.context-3.1.0.M2.jar
org.springframework.context.support-3.1.0.M2.jar
org.springframework.core-3.1.0.M2.jar
org.springframework.expression-3.1.0.M2.jar
org.springframework.instrument-3.1.0.M2.jar
org.springframework.instrument.tomcat-3.1.0.M2.jar
org.springframework.jdbc-3.1.0.M2.jar
org.springframework.jms-3.1.0.M2.jar
org.springframework.orm-3.1.0.M2.jar
org.springframework.oxm-3.1.0.M2.jar
org.springframework.test-3.1.0.M2.jar
org.springframework.transaction-3.1.0.M2.jar
org.springframework.web-3.1.0.M2.jar
org.springframework.web.portlet-3.1.0.M2.jar
org.springframework.web.servlet-3.1.0.M2.jar
org.springframework.web.struts-3.1.0.M2.jar
Thank you
i'm waiting for the response
---------------
Blacky