jakarta-ee

Netbeans deploy on save: how is it supposed to work?

若如初见. 提交于 2020-01-23 13:12:47
问题 I'm trying to setup deploy on save (or compile on save, or whatever I should setup) correctly in Netbeans. I'm trying to achieve this: 1) hot-replace some class when needed if the structure didn't change (push the button, new code replacing the old one) 2) copy my jsf pages (.xhtml) to glassfish on save 1) works most of the time; it sometimes doesn't after I deploy many times (why?), or if Netbeans decides for whatever reason that it should deploy the whole thing (it does... sometimes) 2)

Netbeans deploy on save: how is it supposed to work?

谁说我不能喝 提交于 2020-01-23 13:12:27
问题 I'm trying to setup deploy on save (or compile on save, or whatever I should setup) correctly in Netbeans. I'm trying to achieve this: 1) hot-replace some class when needed if the structure didn't change (push the button, new code replacing the old one) 2) copy my jsf pages (.xhtml) to glassfish on save 1) works most of the time; it sometimes doesn't after I deploy many times (why?), or if Netbeans decides for whatever reason that it should deploy the whole thing (it does... sometimes) 2)

why does mojarra 2.1 scan every other war on each module startup?

人走茶凉 提交于 2020-01-23 12:22:46
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

why does mojarra 2.1 scan every other war on each module startup?

末鹿安然 提交于 2020-01-23 12:22:16
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

why does mojarra 2.1 scan every other war on each module startup?

蓝咒 提交于 2020-01-23 12:22:03
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

why does mojarra 2.1 scan every other war on each module startup?

寵の児 提交于 2020-01-23 12:21:34
问题 We have a huge EAR application with about 20 ejb-jar and war modules. For each war module that Mojarra starts, it seems it is trying to scan annotation on every other war. Other wars are unavailable to the classloader, so I get lot of exceptions. It eventually starts anyway, but it clutters my logs with warnings, and I guess application startup time could be much less without this (+100 seconds). To make it clear, I have following structure: EAR +- ejb1 +- ejb2 +- war1 +- war2 When Mojarra

How is a $Proxy$_$$_Weld$EnterpriseProxy$ proxy subclass implemented?

空扰寡人 提交于 2020-01-23 09:28:09
问题 In a Java EE 7 application, let's say I have a session bean class " @Stateless public class MyEJB ". When debugging under Glassfish 4, I can see that a proxy subclass named MyEJB$Proxy$_$$_Weld$EnterpriseProxy$ was created (in order to provide Java EE container services to the EJB). I am trying to figure out how these proxy subclasses are implemented. Is there a standard Java EE SPI which the proxy implementation calls, for example, to demarcate a transaction? Or is this done through

How is a $Proxy$_$$_Weld$EnterpriseProxy$ proxy subclass implemented?

偶尔善良 提交于 2020-01-23 09:27:50
问题 In a Java EE 7 application, let's say I have a session bean class " @Stateless public class MyEJB ". When debugging under Glassfish 4, I can see that a proxy subclass named MyEJB$Proxy$_$$_Weld$EnterpriseProxy$ was created (in order to provide Java EE container services to the EJB). I am trying to figure out how these proxy subclasses are implemented. Is there a standard Java EE SPI which the proxy implementation calls, for example, to demarcate a transaction? Or is this done through

EntityManager injection results in NullPointerException

 ̄綄美尐妖づ 提交于 2020-01-23 02:42:45
问题 I'm writing my first Java EE (EJB + Servlets etc.) application (please note: I'm using Eclipse). I'm stuck with a problem with EntityManager injection not working, and having some difficulties finding why due to my Java EE (and Java in general) noobness. Here is my persistence.xml file - I think this is mostly correct, since I can launch the HSQL database manager from the JMX console and my PUBLIC.USER table shows up correctly. <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0"

Should I choose Apache Click or Tapestry 5?

六月ゝ 毕业季﹏ 提交于 2020-01-23 01:12:05
问题 I am to decide whether to use Apache Click or Apache Tapestry 5 framework. Which one I should choose? I'm looking for a framwork that I could use for building Java EE web applications for the next few years. The next few days I'll be testing them both running sample and custom projects, but I'd like to know in advance if one of them is not stable or big enough for large scale enterprise applications. I need it to work without any difficulties with Maven, various AJAX and Eclipse. Thank you in