[jboss-user] [EJB 3.0 Development] - EJB3 Deployment Error in JBoss 6.0.0.M1

Bhaswar Goswami do-not-reply at jboss.com
Thu May 20 21:47:49 EDT 2010


Bhaswar Goswami [http://community.jboss.org/people/bhaswar_goswami] created the discussion

"EJB3 Deployment Error in JBoss 6.0.0.M1"

To view the discussion, visit: http://community.jboss.org/message/544130#544130

--------------------------------------------------------------
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 http://java.sun.com/xml/ns/persistence"  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence  http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd 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!!

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/544130#544130]

Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100520/db7f5a3e/attachment.html 


More information about the jboss-user mailing list