Please support the deployment of EAR Applications on Tomcat (TomEE Plus) instances.
TomEE Plus is a complete JEE 6 Application Server so it is possible to deploy EAR applications.
However Netbeans does not allow to set a TomEE instance as target server for an EAR application.
notreally is not possible to upload the EAR format for NetBeans TomEE.
I am also waiting for this feature.
Additional comments related to this issue are in this forum post:
Declare at least Tomcat plugin packages public.
FYI, a relevant blog post on this subject: http://www.adam-bien.com/roller/abien/entry/netbeans_7_tomee_1_5
@Leandro: according to TomEE Deployment documentation, it IS possible to deploy an EAR. http://tomee.apache.org/deploying-in-tomee.html
Here's a quote from that page: "Or you could simply package your application as a war and "drop it in" tomee/webapps folder or as an ear and "drop it in" tomee/apps folder". Although, the default TomEE installation does not have an "apps" folder.
There is still merit in being able to create an EJB Project targeting TomEE. You could develop your EJB jar and then include it in your Web Application project for TomEE.
That said, I successfully tested the following scenario:
1. Create a Web Application with TomEE (I created a symbolic link from openejb-http-*.jar as openejb-tomcat.*.jar inside the [TOMEE_HOME]/lib folder so that NetBeans can detect TomEE during the "Create Session Beans for Entity Classes wizard").
2. Add your Entity Classes and Entity Facade classes (Session Beans) and persistence.xml and all the other functionality for your specific web site.
3. Test your project.
4. Create an EJB Project targeting GlassFish 3.1.2 (might also work with GlassFish 4, but not tested)
5. Move your Entity & Facade classes into the EJB Project.
6. Move your persistence.xml to the "src/conf" directory of your EJB Project (may have to switch to "Files" tab).
7. Build your EJB Project. Make sure the "Generated Sources" appears as that is very important.
8. Back in the Web Application, add right-click on Libraries node and then "Add Project..." and add the EJB Project's jar. This jar will be packaged inside the WAR file inside WEB-INF/lib, which is important for this to work with TomEE.
9. Rebuild your Web Application and Deploy to TomEE.
10. TEST! Watch for error messages in the server log. If everything goes well, you successfully made your "external" beans available inside your Web app. If you see error messages like "multiple persistence units found", then you probably didn't remove the persistence.xml from the web application.
This worked for me, tested with TomEE 1.6.0 Plus.