wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes can't use EJB 3 sample code from Anpress Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "can Watch "can New topic
Author

can't use EJB 3 sample code from Anpress

Huy Than
Greenhorn

Joined: Apr 27, 2013
Posts: 4
Hi everyone,
I am reading the book EJB 3 2nd by Anpress. Together with the book is the sample code. In the chapter 2, there is the tutorial to deploy the project. According to the book , I should do the following steps:
-in Netbean, choose Open Projects
-navigate to the folder of the sample code (that is the folder "Chapter02-SessionSamples")
-in the Open Project Window, in Project Name field , there should be Chapter02-SessionSamples, under this field, check on Open Required Projects, with the 2 files ejb and war
-click finish and use Netbean to deploy the project

in the book is this :



in my computer, it's like this :



I wonder what is missed in the process.

Thank you for your help!
Huy Than
Greenhorn

Joined: Apr 27, 2013
Posts: 4
Ah,
Sorry, I forget to specify my problem, my problem (as you can see in the picture) is that: Netbean treats my sample code folder like a normal folder, and it can't identify it's a project.
Can you tell me what I miss?
Many thanks!
Amir Keibi
Ranch Hand

Joined: Apr 23, 2012
Posts: 49

This isn't an EJB question. Anyway, I'm not much of a NetBean user. But in order to pick up an ordinary folder as a project folder, NetBean will look for project files. The downloaded code is obviously missing those files. Try this to import your downloaded code: https://netbeans.org/kb/docs/java/project-setup.html#projects-importing and please Google your problem beforehand.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't use EJB 3 sample code from Anpress
 
Similar Threads
PA #1.....picture association
Creating a spell checker - guidance/ideas?
iterate an object in struts-2
Funny gassy cartoons!
JComboBox in panel