Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 229531 - New Database Connection Option Does Not Show For Java EE 6 Application
New Database Connection Option Does Not Show For Java EE 6 Application
Product: serverplugins
Classification: Unclassified
Component: JBoss
PC Windows 7
: P3 (vote)
Assigned To: Petr Hejl
Depends on:
  Show dependency treegraph
Reported: 2013-05-09 10:09 UTC by chintan4fun
Modified: 2013-05-14 11:20 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description chintan4fun 2013-05-09 10:09:44 UTC

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.
Comment 1 David Konecny 2013-05-10 00:01:03 UTC
Sergey, is this your issue or is JBoss NetBeans plugin at fault here by not returning something?
Comment 2 Sergey Petrov 2013-05-10 16:10:49 UTC
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.
Comment 3 David Konecny 2013-05-13 05:20:26 UTC
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.
Comment 4 chintan4fun 2013-05-13 05:35:33 UTC

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.

Comment 5 Sergey Petrov 2013-05-13 11:19:04 UTC
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?
Comment 6 chintan4fun 2013-05-13 11:23:35 UTC

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.

Comment 7 Sergey Petrov 2013-05-13 13:04:31 UTC
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
Comment 8 chintan4fun 2013-05-13 13:07:09 UTC
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.

Comment 9 Sergey Petrov 2013-05-13 13:09:08 UTC
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.
Comment 10 Sergey Petrov 2013-05-14 09:46:44 UTC

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)
Comment 11 Petr Hejl 2013-05-14 11:20:45 UTC
We do not support datasource creation on JB AS 7 for now.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo