2 Replies Latest reply on Mar 13, 2007 1:02 PM by Michael Norman

    Deployment issues with HAR and EAR

    Michael Norman Newbie

      Dear all.

      I have the following problem. If I deploy my hiberante archieve to jboss, and thereafter my ear-file, everything works fine. But, if I pack the har into the ear and deploy them together, I get a couple of problems, e.g. my sessionFactory can't be looked up with JNDI etc.

      My jboss-app.xml looks like this:

      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"

      My application.xml is:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE application PUBLIC
       "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"

      My hibernate-service.xml is:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
       <mbean code="org.jboss.hibernate.jmx.Hibernate"
       <attribute name="DatasourceName">java:/MySqlDS</attribute>
       <attribute name="Dialect">
       <attribute name="SessionFactoryName">
       <attribute name="CacheProviderClass">
       <attribute name="Password">...</attribute>
       <attribute name="Username">...</attribute>
       <attribute name="ShowSqlEnabled">true</attribute>

      Hope you can help me with this, thanks a lot in advanced,