Note that there are some explanatory texts on larger screens.

plurals
  1. POLoad persistence unit with vfsfile (exploded JAR) on JBoss 5.1/Hibernate 3.3.2
    primarykey
    data
    text
    <p>I am looking for help to fix a problem to appeared when migrating from JBoss4 to JBoss5. There seems to be an issue with Hibernate support for VFS (introduced in JBoss5).</p> <p>For modularity reason, multiple artifacts have persistence unit (pu) declaration. During deployment, all of them are merged into a single declaration similar to</p> <pre><code>Processing PersistenceUnitInfo [ name: pu persistence provider classname: null classloader: org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@7a74fa Temporary classloader: org.springframework.instrument.classloading.SimpleThrowawayClassLoader@432f0a33 excludeUnlistedClasses: false JTA datasource: com.xyz.jdbc.datasource.DelegatingDataSource@4546bcba Non JTA datasource: com.xyz.jdbc.datasource.DelegatingDataSource@4546bcba Transaction type: JTA PU root URL: vfszip:/&lt;path&gt;/&lt;jar&gt;/ Jar files URLs [ vfsfile:/&lt;path&gt;/&lt;exploded jar&gt;/ vfsfile:/&lt;path&gt;/&lt;exploded jar&gt;/ vfsfile:/&lt;path&gt;/&lt;exploded jar&gt;/ vfszip:/&lt;path&gt;/&lt;jar&gt;/ vfszip:/&lt;path&gt;/&lt;jar&gt;/ vfszip:/&lt;path&gt;/&lt;jar&gt;/] Managed classes names [] Mapping files names [] Properties [] </code></pre> <p>When enabling debug we can see that exploded jar are not scanned for annotation</p> <pre><code>[org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfsfile:/&lt;path&gt;/&lt;exploded jar&gt;/ [org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfsfile:/&lt;path&gt;/&lt;exploded jar&gt;/ </code></pre> <p>Whereas compact JAR as scanned as expected</p> <pre><code>[org.hibernate.ejb.packaging.AbstractJarVisitor] Searching mapped entities in jar/par: vfszip:/&lt;path&gt;/&lt;jar&gt;/ [org.hibernate.ejb.packaging.AbstractJarVisitor] Filtering: com.xyz.batch.configuration.internal.impl.JobMetadataDocumentImpl$1$JobList ... </code></pre> <p>Resulting in QuerySyntaxException for query on Entities that were not found</p> <pre><code>org.hibernate.hql.ast.QuerySyntaxException: &lt;EntityName&gt; is not mapped </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload