Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't use EJB 3 sample code from Anpress

 
Huy Than
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic