Hi Folks, im getting the following error message when running chapter 5 a exercise from JbossAtWork book. I have been using JBoss 5.1 and Java 6 with Oracle XE thus far and have had no problems running the previous exercises up until this point.
the error message:
[STDOUT] com.jbossatwork.util.ServiceLocatorException: com.jbossatwork.util.ServiceLocatorException: javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: hibernate not bound]
here is a short hand version of what my ear, war and common jars look like:
ControllerServlet.java generates the following tags:
HibernateCarDAO.java sends the following to ServiceLocator.java to perform a ServiceLocator.getHibernateSession(HIBERNATE_SESSION_FACTORY) which inturn does the
what am I doing wrong É and is their an alternative way to binding the mbean É
I have used the hibernate jars contained in the C:\jboss-5.1.0.GA\common\lib for my compile and xdoclet classpaths
and also tried to alternatively use this version of hibernate instead for compile and xdoclet classpaths
C:\hibernate-distribution-3.5.1-Final and C:\hibernate-distribution-3.5.1-Final\lib\required
where am i going wrong. let me know if you need any additional snippets of this program.
Note to anyone going through the same problem of migrating the books code into the new JBoss. It appears that JBoss 5.1.0-GA has a new way of building a hibernate har file. I used this reference jboss 5.1.0-GA imgration to aid me in solving the problem.
hibernate-service.xml is now named service-hibernate.xml in the new JBoss version and it’s content has changed also.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop