Hi everybody.
I am the maintainer of the NetBeans CRUD Generator module and question
I've been asked a few times now is whether it works with Tomcat. I
always refer the user to TomEE because of its EJB support that's
required. One problem, though, is that NetBeans does not recognize TomEE
as a valid Java EE 6 application server. And so, generating JSF pages
from Entity Classes as well as my module for generating PrimeFaces pages
from Entity Classes fails because the GUI won't let you continue.
I've stuck my head into the NetBeans source code to find out exactly how
they make that determination and found that they are looping through the
project's classpath. And if they find a file that begins with
"openejb-tomcat", the user can continue with the GUI to generate those
pages. The standard TomEE distribution does contain a whole bunch of
JARs that begin with "openejb-*", none of the actually are called
openejb-tomcat. So I tested simply renaming a the
"openejb-http-4.5.2.jar" to "openejb-tomcat-4.5.2.jar", and lo and
behold, NetBeans thinks TomEE is a Java EE 6 server.
First off, I don't know if I renamed to right file, but TomEE itself
seems to start and operate just fine with the renamed file. Next, I was
wondering if, for future releases, you could pick one of the openejb-
files and name it openejb-tomcat-*.jar so that NetBeans detection works
properly? I know it's more of a NetBeans issue rather than TomEE/OpenEJB
issue, but that is a HUGE project and getting things rolling in that
project is slow to say the least. I have a feeling, a simple change in
file name would not be too hard for you guys to accomplish for future
releases?
Thanks for any thoughts on this topic.
Regards,
Kay Wrobel