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.
Environment: Product Version: NetBeans IDE 7.3 (Build 201302132200) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Windows 7 version 6.1 running on x86; Cp1252; en_IN (nb) User directory: C:\Users\cndesai\AppData\Roaming\NetBeans\7.3 Cache directory: C:\Users\cndesai\AppData\Local\NetBeans\Cache\7.3 Enterpise Application has EJB, SAR and WAR modules. If Java EE version is 1.4, creating Persistence Unit or Creating Entities From DB shows New Connection and New DataSource options. In case of Java EE 1.6 application, they are missing. I am using Application Server Jboss 7.1.1.Final, Jboss EAP 6.1.0.Alpha and Jboss EAP 6.1.0.Beta.
Sergey, is this your issue or is JBoss NetBeans plugin at fault here by not returning something?
Is 1.4 still supported? Is there any real use case where both options are available at the same time ( for connection and for datasource ). It's unclear what is missed. Also if compare to 1.4 wizard layout may change and the option may be in another place.
I thought that chintan4fun is saying that in EE 6 application *both* of the options are missing. That would be a bug. chintan4fun, can you confirm please? Thx.
Hello, Let me explain the scenario with more details. Earlier we had a J2EE 1.4 compliant application. The app server was jboss 6.1.0 final. When I load this application project in latest NB build and tried to add a new Persistence Unit or Entity From Database, I could always see the option New Datasource or New Database Connection enabled. Then, I have created a new J2EE 1.6 project for the same application and now the app server was Jboss 7.1.1.Final, 6.1.0 EAP Alpha1 and Beta1. Now, When I try to create new PU or Entity From DB, I do not see New Datasource or New Database Connection Option enabled even though I create new DB connection through "Services". Kindly let me know if any more details are required. Regards.
yes, please. what do you mean by "reated a new J2EE 1.6 project for the same application"? does it mean to use the same sources or whatever? can you reproduce the issue with new clean web/jee project?
Hello, I suspected that my existing source is causing issue so I did create a new Java EE application ( New Project --> Java EE -> Enterprise Application ) with EJB and Web modules but unfortunately the issue was present in the new application as well. Regards.
the issue was filed against 7.4 but first comment contain 7.3 as environment. Is it 7.3 or 7.4 issue? I can't register 7.1.1 in 7.3
The IDE version is : Product Version: NetBeans IDE Dev (Build 201305102300) It is development build which does support registering of Jboss 7.1.1 and 6.1.0 EAP servers. Regards.
but I can reproduce the issue with 7.4+7.1.1, there is no 'new datasource' option. there should be no 'new connection' option as it's for se environment only(may be for 1.4 ee also). the option for new datasource may not be supported by jboss netbeans for 6.x/7.x servers plugin, I'll evaluate.
org.netbeans.modules.j2ee.jboss4.config.EjbDeploymentConfiguration::supportsCreateDatasource is responsible to return 'true' if new datasource creation is supported. move to jboss pluin for evaluation if it should be supported or not and if there is any issue with 6.x also (I see the method return !isAs7)
We do not support datasource creation on JB AS 7 for now.