2011-10-05 1 views
0

JBoss4에서 JBoss5로 마이그레이션 할 때 나타나는 문제를 해결할 수있는 도움을 찾고 있습니다. JBoss5에서 소개 된 VFS에 대한 Hibernate 지원에 문제가있는 것 같습니다.JBoss 5.1/Hibernate 3.3.2에서 vfsfile (분해 된 JAR)을 사용하여 지속성 단위로드

모듈화 이유 때문에 여러 이슈에는 지속성 단위 (pu) 선언이 있습니다. 디버그를 활성화하는 경우 스캔으로 예상대로 배포시 는, 그들 모두는 우리가 컴팩트 JAR 반면 주석

[org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfsfile:/<path>/<exploded jar>/ 
[org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfsfile:/<path>/<exploded jar>/ 

를 검사하지 않습니다 그 항아리를 폭발 볼 수

Processing PersistenceUnitInfo [ 
    name: pu 
    persistence provider classname: null 
    classloader: [email protected] 
    Temporary classloader: org.spr[email protected]432f0a33 
    excludeUnlistedClasses: false 
    JTA datasource: [email protected] 
    Non JTA datasource: [email protected] 
    Transaction type: JTA 
    PU root URL: vfszip:/<path>/<jar>/ 
    Jar files URLs [ 
     vfsfile:/<path>/<exploded jar>/ 
     vfsfile:/<path>/<exploded jar>/ 
     vfsfile:/<path>/<exploded jar>/ 
     vfszip:/<path>/<jar>/ 
     vfszip:/<path>/<jar>/ 
     vfszip:/<path>/<jar>/] 
    Managed classes names [] 
    Mapping files names [] 
    Properties [] 

유사 하나의 선언으로 병합됩니다 발견되지 않은 엔티티에 쿼리에 대한 QuerySyntaxException 결과

[org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfszip:/<path>/<jar>/ 
[org.hibernate.ejb.packaging.AbstractJarVisitor] Filtering: com.xyz.batch.configuration.internal.impl.JobMetadataDocumentImpl$1$JobList 
... 

org.hibernate.hql.ast.QuerySyntaxException: <EntityName> is not mapped 

답변

0

Red Hat 지원에 따르면 분해 된 JAR로 스캔하는 것은 불가능합니다.

  • 사용 소형 항아리와 스캔이 예상
  • 사용 분해 된 JAR 파일로 작동하고 지속성 단위의 < 클래스 /> 태그로 모든 @Entity을 선언 두 솔루션을 사용할 수 있습니다.
+0

Red Hat은 버그로 인정합니다. 핫픽스 패치는 2011 년 11 월 말까지 예정되어 있습니다. –