0 Replies Latest reply on Jun 24, 2005 10:07 AM by Roger Ackroyd

    Problem with Dukes Bank Chapter 9 - hibernateRoster

    Roger Ackroyd Newbie

      Getting Started JBoss4 Release 3
      Chapter 9 HibernateRoster

      Jboss-4.0.2
      j2sdk1.4.2_05

      Hello
      The cmproster (C7) application is correctly deployed and database populated.
      The following errors occur when running the ant deploy target.
      Anyone know the cause? Is there a fix for this temporary or otherwise please.
      Thanks
      RogerA

      p.s. apart from glitch with this and known problem in C5 a very worthwile tutorial. Learned a lot. Understood a lot more.


      13:33:04,882 INFO [EARDeployer] Init J2EE application: file:/C:/Jboss-4.0.2/ser
      ver/default/deploy/HibernateRoster.ear
      13:33:05,413 INFO [Environment] Hibernate 3.0.2
      13:33:05,423 INFO [Environment] hibernate.properties not found
      13:33:05,423 INFO [Environment] using CGLIB reflection optimizer
      13:33:05,443 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      13:33:05,803 INFO [Hibernate] Using JDBC batch size : null
      13:33:05,823 INFO [Configuration] Searching for mapping documents in jar: roste
      r.har
      13:33:05,823 INFO [Configuration] Found mapping documents in jar: org/jboss/ros
      ter/Player.hbm.xml
      13:33:06,895 WARN [ServiceController] Problem starting service jboss.har:servic
      e=Hibernate
      java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
      at org.hibernate.mapping.Table.(Table.java:33)
      at org.hibernate.cfg.Mappings.addTable(Mappings.java:116)
      at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBi
      nder.java:250)
      ...

      --------------------------------------------------
      from jmx console, invoking jboss.har:service=Hibernate rebuildSessionFactory()
      results in following
      --------------------------------------------------

      RuntimeErrorException: null Cause: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
      org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:164)
      org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
      org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:243)
      org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:208)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:247)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:85)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)