This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 148240 [details] app2 hot redeploy does not work I have two samples to prove this app1 - old ear style project where ejb jar goes at top level just like war file app2 - same project modified to put ejb jar in web-inf lib both projects deploy fine and work changing ejb code triggers hot deploy for app1 but not for app2 I am using ejb in web controller using CDI e.g. @Named @SessionScoped public class Controller implements Serializable{ @EJB TestEJB bean;
Created attachment 148241 [details] app1- hot redeploy works
Hi, can you provide the app that does not work? Or exact steps to reproduce?
see attachments?
I'm sorry somehow I missed the second attachment.
The second case is not supported as it leads to jar file under lib directory. The expanded jar files is usually not supported by a server. I would suggest EJBs directly in war for Java EE 6.
*** Bug 242807 has been marked as a duplicate of this bug. ***
even if I keep all ejb in war file, but have simple pojo files in dependent java project, hot deploy still wont work this prevents me from creating simple reusable libraries
what weblogic feature/api do you use internally to achieve hotdeploy? I would like to understand what netbeans does, and see if I can do that in non-netbeans - maven world
I noticed that netbeans creates a folder for .ear and .war but creates a jar file for ejb projects you say expanded jar files are NOT supported weblogic 12 docuementation says otherwise http://docs.oracle.com/cd/E24329_01/web.1211/e24443/deployunits.htm Java EE Rules for Deploying Exploded EAR Directories without Deployment Descriptors For an exploded archived enterprise application without a META-INF/application.xml descriptor, the directory should have an .ear suffix. Within the application, the directory of exploded Web module should have a .war suffix. Similarly, the exploded EJB module should have a .jar suffix and the exploded RAR module should have a .rar suffix.