2017-12-01 17 views
0

persistence.xml로 JPA jar를 가지고 있으며 Jboss7에 배포하려고합니다.jboss의 war 파일 외부에서 persistence.xml과 함께 JPA jar를로드하는 방법

문제는 WAR 파일 내부에 넣을 수 없다는 것입니다. 전쟁 파일에서로드 할 수 있습니다.

내가 제이 보스에서 모듈을 생성하고 심판과 항아리 의 META-INF \ 내부에 포함 persistence.xml 파일과 jar 파일에 놓여있다

:로드 그 jar 파일 후 http://javahowto.blogspot.sg/2007/06/where-to-put-persistencexml-in-web-app.html Maven/Eclipse: Could not find any META-INF/persistence.xml file in the classpath

만의 persistence.xml 로드되지 않았습니다.

jar 파일에서 persistence.xml을로드 할 수 있습니까? 가능하면

, 누군가가 나에게 그것은 단지의 persistence.xml에 대해, 당신이 배포 오버레이를 사용할 수 있으면 어디 항아리 안에

감사

+0

'persistenceXmlLocation' 속성을 확인하십시오. – ShaharT

+0

스프링을 사용하지 않습니다. – Yugandhar

+0

jboss-deployment-structure.xml을 사용합니까? 그것은 어떻게 생겼어? META-INF를 수출 했습니까? –

답변