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.
Enterprise Applications don't seem be run when using JBoss 4 and NetBeans 6 To repro this: In the Projects panel, right click > New Project… > In the wizard, select, Enterprise Application > Set project name to JBossTest and select JBoss 4 (4.0.4, 4.0.5 or 4.2.x) > Click finish. Then, right click on the JBossTest node that has just been created > select Run Project > ERROR! When I tried the same (but with some different project name, say, JBossTest2) in NetBeans 5.5, it worked fine. In about a min after I ran the app, a web page showed. Also, an existing Enterprise App created in NetBeans 5.5 didn't work (not run or deployed) in NetBeans 6 either. This discourages me from using NetBeans 6 as. Please let me know (phygons@hanmail.net) if you also can repro this defect and/or if you have any relevant explanations. Thank you, Chulwoo
I'm not able to reproduce this issue - for me everything works as expected. Can you provide any additional info please? Which version of NetBeans do you use? Which JDK? And the most important thing - you have to attach messages.log or any other info about the error because now I have no idea where the problem could be and what I should fix. Please try to reproduce this issue in the development build of NetBeans and let me know. Thank you. Product Version: NetBeans IDE Dev (Build 070924) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Linux version 2.6.22-gentoo-r6 running on i386; UTF-8; cs_CZ (nb) Development version of NetBeans can be found here: http://bits.netbeans.org/download/6.0/nightly/latest/
Hi, Some more details: OS: Windows XP Java version: 1.6.0_02 NetBeans: NetBeans IDE 6.0 Beta1 I found the problem was that application.xml was not created. It was fine after manually adding application.xml in the appropriate directory. Steps to Repro: 1. In the Projects area (in the upper-left), right click to create a new project > In the wizard, select Categories=Enterprise, Projects = Enterprise Application > press Next button 2. Set the Project name to Test111. Choose JBoss Application Server and Select Java EE5 (default) as Java EE version. Check "Create EJB Module" and "Create Web Application Module" boxes (the boxes are already checked by default) > Finish 3. Now, Navigate to Test111 (which has just been created) > Configuration Files node. application.xml is NOT found. 4. Please see if you can reproduce this. Note I'm using Windows XP (see above). Thank you, Chulwoo
I see the problem now - the problem is that JBoss 4 is *not* JAVA EE 5 server (it doesn't fully support it). But strange is that for you it's possible to choose Java EE 5 with JBoss AS - for me it's not possible (as it shouldn't be), only J2EE 1.4 is available. Can you try it with clean userdir please (e.g. 'netbeans.exe --userdir C:/cleanuserdir')? Please let me know, thank you for your cooperation. Adding Michal to CC because he knows about JBoss plugin a lot.
After the discussion with Petr (he's owner of JBoss plugin) the result is that *some* versions of JBoss are *nearly* JAVA EE 5 compliant - and this is exactly the case. So we have to ensure that deployment descriptor (application.xml) has to be generated for such servers. Do you have any ideas how to solve this issue Petr? Thank you.
Generaly speaking - I don't think the jboss 4 is Java EE 5 compatible. It has some features such as ejb3, but this issue reveals the gaps. imo correct solution is not to declare jboss 4 as Java EE 5 compatible server when we are creating ear project.
I selected J2EE 1.4 when creating a new Enterprise Application and it works fine. But I do see Java EE 5 in the Java EE Version dropdown in the New Project wizard. (I'm using Window XP, JBoss 4.0.4, NetBeans 6 Beta 1 (full package)) I think you could consider following modification: 1. Make "Java EE 5" not listed in the Java EE version dropdown when the Server isn't fully Java EE compliant 2. Or make it work with "Java EE 5" selection. (i.e., application.xml should be created.) FYI In NetBeans 5.5, I can create a new Enterprise Application project and select JBoss 4 (4.0.4) w/ "Java EE 5" as the Java EE version and it works fine. i.e., the web page show when you run the project just created. Thank you, Chulwoo
Just one notice: > 2. Or make it work with "Java EE 5" selection. (i.e., application.xml should be created.) The problem is that deployment descriptor (application.xml) is *NOT* compulsory for JAVA EE 5 - try to create new EAR project with GlassFish - no application.xml exists but the deploy is ok - and this is the main problem with JBoss here. > 1. Make "Java EE 5" not listed in the Java EE version dropdown when the Server isn't fully Java EE compliant This point seems to be the correct solution. Petr is already working on it.
Thank you very much for your reponses to this issue. Chulwoo
Fixed. Java EE 5 ear is not allowed anymore for the jboss 4. Checking in src/org/netbeans/modules/j2ee/jboss4/ide/JBJ2eePlatformFactory.java; /cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/ide/JBJ2eePlatformFactory.java,v <-- JBJ2eePlatformFactory.java new revision: 1.17; previous revision: 1.16 done