Follow these instructions to build, package, and deploy the cart example to your Application Server instance using the NetBeans IDE IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to tut-install/examples/ejb/.
Select the cart folder.
Select the Open as Main Project and Open Required Projects check boxes.
Click Open Project Folder.
In the Projects tab, right-click the cart project and select Deploy Project.
This builds and packages the application into cart.ear, located in tut-install/examples/ejb/cart/dist/, and deploys this EAR file to your Application Server instance.