Adam Bien's Weblog

Thursday Aug 01, 2013

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!


NEW workshop: Microservices with Java EE 7 and Java 8, January 26th, 2015, Airport Munich

A book about rethinking Java EE Patterns

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 #

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