2 Replies Latest reply on Sep 22, 2005 12:26 PM by scottbrand

    Problem running Registration Demo

    scottbrand

      Hi,

      I have the latest JBoss AS4.0.3RC2 installed by the installer program
      I start JBoss with no issues. I then follow the directions to "ant deploy" from the examples/registration directory and then I see JBoss trying to deploy the ear. However, I immediately encounter the following exceptions:

      09:09:21,473 INFO [Server] JBoss (MX MicroKernel) [4.0.3RC2 (build: CVSTag=Branch_4_0 date=200508131954)] Started in 32s:399ms
      09:09:51,208 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.3RC2/server/default/deploy/jboss-seam-registration.ear
      09:09:51,348 INFO [JaccHelper] Initialising JACC Context for deployment: jboss-seam-registration.ejb3
      09:09:52,139 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.jboss.seam.example.registration.RegisterAction, class=org.jboss.seam.example.registration.RegisterAction, type=STATELESS
      09:09:52,400 INFO [JaccHelper] org.jboss.seam.example.registration.RegisterAction has no @SecurityDomain - skipping JACC configuration
      09:09:52,490 INFO [Ejb3Deployment] default entity manager name: jboss-seam-registration
      09:09:52,600 INFO [HibernatePersistence] found EJB3 Entity bean: org.jboss.seam.example.registration.User
      09:09:52,650 INFO [Environment] Hibernate 3.1 beta 2
      09:09:52,660 INFO [Environment] hibernate.properties not found
      09:09:52,660 INFO [Environment] using CGLIB reflection optimizer
      09:09:52,660 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      09:09:52,831 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=jboss-seam-registration.ejb3
      java.lang.IllegalArgumentException: class not found
      at org.hibernate.ejb.HibernatePersistence.addNamedAnnotatedClasses(HibernatePersistence.java:556)
      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:389)
      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:272)
      ...



      And more:

      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.seam.example.registration.User
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.hibernate.ejb.HibernatePersistence.addNamedAnnotatedClasses(HibernatePersistence.java:549)


      I can see the User class in the proper package in the ejb3 file embedded within the ear.
      Any suggestions? Everything is a clean slate (i.e just downloaded and installed, no other modifications to AS or Seam (except build.properties for AS path)).
      I have been using JBoss for nearly 3 years now, I am just getting up to speed on Hibernate and EJB3.

      Thanks,
      Scott