Problema ao carregar applicationContext.xml

1 resposta
toredobud

Salve galera, estou começando a trabalhar com spring e já estou sofrendo…(por não conhecer muito bem o framework)… bom estou recebendo o erro abaixo no momento em que é executada essa linha:

ApplicationContext context = new FileSystemXmlApplicationContext("MY_PATH/applicationContext-test.xml");

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in file [MY_PATH\applicationContext-test.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No persistence unit with name ‘PU’ found

alguém sabe oq pode estar ocasionando isto ???

Grato,

Adriano

1 Resposta

daniel.info

Posta o xml aí!

Criado 1 de outubro de 2010
Ultima resposta 1 de out. de 2010
Respostas 1
Participantes 2