To that I also want to add that NetBeans is testing via a regex pattern
for version x.x.x which causes detection issues with 1.6.0.2 as well
since that version has a fourth element which their regex pattern fails
at. I have file a separate bug report with NetBeans on that issue as
well: https://netbeans.org/bugzilla/show_bug.cgi?id=237453
This bug has been fixed in their upstream repo, but will not see the
light of day until their next version rollout. Again, the unsupported
fix for that is to rename tomee-common-1.6.0.2.jar to
tomee-common-1.6.0.jar.
Oh and they are also testing for two other files in their sources
related to jax-rs and also geronimo. But the main detection issue where
they make a determination as to what TomEE version is running is by
looking at the tomee-common jar.
Hope this helps.
Kay
On 08/27/2014 03:53 AM, Kay Wrobel wrote:
Hi.
I am the author of the PrimeFaces CRUD Generator dedicated plugin
(a.k.a. nbpfcrudgen, not the one that's built into NetBeans since 8
but the one I'm hosting on SourceForge) and have been asked this
question recently on Facebook. The problem is with NetBeans 8 and how
it detects a proper TomEE version. Unfortunately, the team has
hard-coded version strings in their source. They are looking for the
tomee-common-x.x.x.jar and make a determination from that version. But
they only test for 1.5.x and 1.6.x, not 1.7.x. I have filed a bug
report with NetBeans here:
https://netbeans.org/bugzilla/show_bug.cgi?id=246523
As a workaround, and I know the TomEE team discourages this, you could
rename the tomee-common-1.7.0.jar to tomee-common-1.6.0.jar and
NetBeans will detect it properly. TomEE will not fail to start up in
my experience. NetBeans has not yet acknowledged the bug report and no
one is assigned to it.
Try renaming that file and see what your experience is with it.
Kay
On 08/27/2014 03:43 AM, User57 wrote:
I am trying to generate PrimeFaces pages from Entity classes for a
Java EE
web project. My web server is Apache TomEE 1.7 and I'm using Netbeans
8 as
an IDE.
When I run the wizard to generate the pages I get this error Cannot be
generated for Java EE 6 sources without server with complete Java EE
6 Web
Profile support (at least EJB Lite support).
Netbeans 8 supports TomEE and posts about this error say that it
should be
fixed with the release of the 8th version of Netbeans.
What should I do to fix this problem ?
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-web-server-does-not-allow-generation-of-Primefaces-pages-from-Entity-Classes-tp4671397.html
Sent from the TomEE Users mailing list archive at Nabble.com.