NetBeans 7 + TomEE 1.5.2 Integration

NetBeans comes with Tomcat integration already. http://tomee.apache.org is Tomcat On Steroids. TomEE looks and feels like Tomcat.

To integrate TomEE with NetBeans:

  1. Download and extract TomEE
  2. Setup TomEE's roles for deployment in
    tomcat-users.xml:
    
    
    <role rolename="tomee-admin" />
      <user username="tomee" password="tomee" roles="(...),manager-script" />
    
    
  3. Add TomEE to NetBeans: Tab: Services --> Servers --> Add Server, choose Tomcat
  4. Specify the user and password from tomcat-users.xml
  5. "Run" a Java EE 6 application from NetBeans. It works with Maven and Ant projects

Some interesting log statements:


INFO: OpenWebBeans Container has started, it took 5 ms.
INFO: Server startup in 1364 ms

See you at Java EE Workshops at MUC Airport!

Comments:

Nice article. Thank you.
But what about to make Tomcat plugin API public in NetBeans. I think there is no need to reinvent a wheel and create TomEE plugin ( full-fledged enterpsise server plugin) from scratch. I think that NetBeans team just forgot to mark plugin packages as "public".

Posted by Valery on September 14, 2013 at 02:06 AM CEST #

No, it does not work.

NetBeans refuses to recognize TomEE+ as an available JavaEE server. It might for web projects but not for EE projects.

And the Admin console for TomEE comes up blank (after successful login). Logs don't load, no status, no config info. Always a blank page.

Posted by Sal on September 17, 2013 at 01:06 AM CEST #

I understand. But I mean that one could make TomEE plugin based on the existing Tomcat plugin code.

Posted by Valery on September 17, 2013 at 07:45 PM CEST #

Tried this in NB 7.4 and 8.0.1.
Netbeans does not recognise TomEE.

Regards, i

Posted by Ingo on October 06, 2014 at 11:34 AM CEST #

@Ingo,

I worked today with NetBeans 8.0.1 and TomEE Plus 1.7.1 the whole day . I also had multiple TomEE installations integrated (Plume).

It really works :-)

cheers,

adam

Posted by Adam Bien on October 06, 2014 at 04:06 PM CEST #

For anybody who stumbles on Ingo's post - you have to set the server in Project Properties, Run tab - it will be available there. For some reason Netbeans won't display TomEE in the menu you see when you first run a new project.

Posted by pglizniewicz on February 04, 2015 at 11:31 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License