-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: 1 error in chapter 2
PostPosted: Wed Jan 31, 2007 1:30 pm 
Newbie

Joined: Wed Jan 31, 2007 1:19 pm
Posts: 1
on the page 84 in the free chapter 2 pdf

in list 2.16 hello word main class


// Deploy all EJBs found on classpath (fast, scans only build directory)
// This is a relative location, matching the substring end of one of java.class.path locations!
// Print out System.getProperty("java.class.path") to understand this...
EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/bin");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

should be

EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/build");


or EJB3StandaloneBootstrap.scanClasspath();


when I try this example , if I use EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/build") ,I got exception for jndi name find MessageHandlerBean/local ,use EJB3StandaloneBootstrap.scanClasspath() , it works


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 31, 2007 1:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The book uses 'bin', the example source code for download uses 'build'. But each of them is consistent, so either type in all the code and the build script from the book or use the existing source code and build script.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.