2 Replies Latest reply on May 24, 2010 8:55 AM by Bhaswar Goswami

    EJB3 Deployment Error in JBoss 6.0.0.M1

    Bhaswar Goswami Newbie

      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!!

        • 1. Re: EJB3 Deployment Error in JBoss 6.0.0.M1
          jaikiran pai Master

          Bhaswar Goswami wrote:


          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 WARN  [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.

           

          You can ignore that WARN message.

           

          Bhaswar Goswami wrote:

           


          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

          Did you remove any part from the ERROR message or exception stacktrace or is it only this much? I don't know what that ERROR message is trying to convey.

           

          P.S: Maybe you want to try the latest available 6.0.0.M3?

          • 2. Re: EJB3 Deployment Error in JBoss 6.0.0.M1
            Bhaswar Goswami Newbie

            Thank you Jaikiran for your reply!!!

             

            The error/warning was only this much .

            I am also not sure what it means and that's why I posted on the community.

             

            I will try the same on 6.0.0.M3 and let's see how it works .