1 Reply Latest reply on Aug 29, 2005 9:29 PM by Robert Gimbel

    Problem Deploying EJB3TrailBlazer.ear

    Robert Gimbel Newbie

      Sorry in advance if this is not the correct place to post this.

      I am trying to learn the EJB3 beans and have been following through every example I can find. I have successfully deployed stateless session beans from the JBoss-IDE webinar, so I think my server configuration is good and I have caught a few other things through other postings with missing jar files.

      I am now trying to play with the EJB3 Entity beans and am trying to dissect the how they work, so I am trying to play with the EJB3 Trailblazer. The code compiles without error and generates the EJB3Trail.ear file. When I go to deploy it. It seems that the entities.par is not deploying for some reason.

      This is what I have been able to pull out of the server.log:

      2005-08-29 16:42:05,076 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,module=entiti
      es.par
      2005-08-29 16:42:05,076 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=entities.par
      2005-08-29 16:42:05,076 INFO [org.jboss.ejb3.security.JaccHelper] Initialising JACC Context for deployment: entities.par
      2005-08-29 16:42:05,104 INFO [org.jboss.ejb3.Ejb3Deployment] Found persistence.xml file in EJB3 jar
      2005-08-29 16:42:05,202 INFO [org.hibernate.ejb.HibernatePersistence] found EJB3 Entity bean: trail.entity.beans.Fund
      2005-08-29 16:42:05,207 INFO [org.hibernate.ejb.HibernatePersistence] found EJB3 Entity bean: trail.entity.beans.Investo
      r
      2005-08-29 16:42:05,210 INFO [org.hibernate.ejb.HibernatePersistence] found EJB3 Entity bean: trail.entity.beans.Record
      2005-08-29 16:42:05,212 INFO [org.hibernate.ejb.HibernatePersistence] found EJB3 Entity bean: trail.entity.beans.TimedRe
      cord
      2005-08-29 16:42:05,279 INFO [org.hibernate.cfg.Environment] Hibernate 3.0.5
      2005-08-29 16:42:05,283 INFO [org.hibernate.cfg.Environment] hibernate.properties not found
      2005-08-29 16:42:05,287 INFO [org.hibernate.cfg.Environment] using CGLIB reflection optimizer
      2005-08-29 16:42:05,289 INFO [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
      2005-08-29 16:42:06,084 WARN [org.jboss.system.ServiceController] Problem creating service jboss.j2ee:service=EJB3,modul
      e=entities.par
      java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Configuration.settingsFactory from class org.hibern
      ate.ejb.Ejb3Configuration
       at org.hibernate.ejb.Ejb3Configuration.setDataSource(Ejb3Configuration.java:23)
       at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:265)
       at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:476)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:219)
       at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:220)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      



      Not exactly sure what to do about the IllegalAccess or how to fix it. Can anyone provide me a direction as to what I did wrong?