Hi all,
I am using EJB3 in the following environment:
1. Jboss 6.0.1.M1
2. JDK1.6
I have developed a sample application with a few sessionBean , MDB and Entity beans.
Application runs and works well, but I can see when I deploy the application there are two interesting things in form of Warning and Error
2010-05-21 06:31:49,906 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (HDScanner) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
2010-05-21 06:31:49,906 INFO [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Processing PersistenceUnitInfo [
name: proton-persistence-unit
...]
2010-05-21 06:31:49,906 ERROR [STDERR] (HDScanner) URL: jar:file:/D:/AppServers/jboss-6.0.0.M1/server/default/deploy/slsbsecure.jar!/
META-INF/orm.xml
**/*.hbm.xml
2010-05-21 06:31:49,906 WARN [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
I don't have orm.xml file and do have persistence.xml in the META/INF directory of the JAR
<? xml version="1.0" encoding="UTF-8"?>
< persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0">
<persistence-unit name="proton-persistence-unit" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/ProtonMSSqlDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect" />
<property name="hibernate.show_sql" value="true"></property>
<property name="hibernate.hbm2ddl" value="update"></property>
</properties>
</persistence-unit>
</persistence>
I am also attaching the JAR if anyone wants to have a look at it .
I will appreciate if anyone can give some insight.
Thank you!!