Fórum IOException parsing XML document from class path resource [testDomainContext.xml] #409982
29/11/2011
0
Na video aula de Struts + Spring + Jpa + Sitemesh, ao gerar os testes com o maven me aparece o seguinte erro abaixo,
JO erro acontece pq ele não encontra meu persistece.xml no class path? Mas ele esta lá!!
Ou da failure pq não encontra o XML no meu arquivo de teste do Spring??
Obrigado galera,
No aguardo!
Running net.fratech.frasys.view.actions.LoginActionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.102 sec
Running net.fratech.frasys.domain.repository.TesteUserRepository
Nov 29, 2011 11:33:16 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@270e3293: display name [org.springframework.context.support.ClassPathXmlApplicationContext@270e3293]; startup date [Tue Nov 29 23:33:16 BRST 2011]; root of context hierarchy
Nov 29, 2011 11:33:16 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
Nov 29, 2011 11:33:16 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [testDomainContext.xml]
Nov 29, 2011 11:33:16 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.0.Final}
Nov 29, 2011 11:33:16 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.0.0.CR6}
Nov 29, 2011 11:33:16 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Nov 29, 2011 11:33:16 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Nov 29, 2011 11:33:17 PM org.hibernate.ejb.Ejb3Configuration configure
INFO: HHH000318: Could not find any META-INF/persistence.xml file in the classpath
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.809 sec <<< FAILURE!
Results :
Tests in error:
net.fratech.frasys.domain.repository.TesteUserRepository: IOException parsing XML document from class path resource [testDomainContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [testDomainContext.xml] cannot be opened because it does not exist
net.fratech.frasys.domain.repository.TesteUserRepository: No Persistence provider for EntityManager named frasys: No META-INF/persistence.xml was found in classpath.
Rafael Jesus
Curtir tópico
+ 0Posts
30/11/2011
Rafael Jesus
Meu surgiu outro erro, vou abrir outro chamado blz...
Valeu
Gostei + 0
30/11/2011
Davi Costa
att Davi
Gostei + 0
30/11/2011
Rafael Jesus
Gostei + 0
30/11/2011
Davi Costa
att Davi
Gostei + 0
06/12/2011
Dyego Carmo
Resolvido ?
Poderia fechar o chamado ?
Valeu !
Gostei + 0
06/12/2011
Rafael Jesus
Eu me lembro que vinha uma opção junto com a mensagem do moderador, ai selecionava e fechava,
Mas não há a opção de fechamento, ou pelo menos não estou encontrando
Gostei + 0
20/12/2011
Dyego Carmo
Resolvido ? Se sim , poderia fechar o chamado ?
Valeu !
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)