Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Richard Grin
Hi Geertjan,

1. Oracle JS Parser and nbjavac are installed and active.

Still the same problem (when I received your last message).

2. In the plugin list of the plugin manager, I see that "Java Web and EE" is 
not active, neither "Java SE" (I have never tried to create a Java SE project).

I activate "Java Web and EE". A message prints that Java SE will be activated 
too. The installations seems OK but the plugins Java SE and Java Web and EE are 
still marked not "active" in the list of the installed plugins, even after a 
restart of NetBeans. But, if I check one of the two, the button "Activate" is 
disabled and the button Uninstall is available. Normal or a bug?

3. Eventually, without really hoping it, I tried to create a Maven Web 
Application and it worked!

To be sure, I add entities from database and JSF pages from entities, and it 
works.

4. Conclusion: the activation did not work automatically but it worked by 
activating through the plugin manager.

Now, I am looking forward to the new version totally compatible with Java EE 8 
and Jakarta EE.

All these manipulations solved another of my problems: now, when I change the 
server of my project in order to provide packages, the errors in the code are 
automatically removed, perhaps because I have activated Java SE? "2 birds with 
one stone"

Thanks for your help, Geertjan.

Richard

Le 07/04/2019 à 08:34, Geertjan Wielenga a écrit :
Still having this problem? Close NetBeans and look for Oracle JS Parser in the 
Plugin Manager and install it, same for nb-javac library.

Gj


On Sat, 6 Apr 2019 at 23:33, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Options Window: Test Connection is OK. No Proxy.

Richard

Le 06/04/2019 à 21:07, Geertjan Wielenga a écrit :
Are you sure your NetBeans has access to on-line, no problems with proxies, 
check the Options window?

Gj

On Sat, Apr 6, 2019 at 8:55 PM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where 

Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Richard Grin
Hi Kai,

I have been working with Java EE 8 for a long time too, without Maven, using 
NetBeans 9, but not "out of the box" (I had to add plugins from NetBeans 8.2). 
NetBeans 11 seems simpler now that I have solved my problems, thanks to the 
help of Josh and Geertjan.

Regards,

Richard

Le 07/04/2019 à 08:14, Kai Uwe Pel a écrit :
Hi Richard,

please check this link for your references:

https://javaee.github.io/tutorial/usingexamples001.html

Since a long time I'm working with Java EE 8 and Vue.js, and I'm using NetBeans 
IDE v8.2 and v11 only, which works properly.

Regards,
Kai
https://www.nyriad.com


On 4/6/2019 8:55 PM, Richard Grin wrote:

Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?



Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Kai Uwe Pel

Hi Richard,

please check this link for your references:

https://javaee.github.io/tutorial/usingexamples001.html

Since a long time I'm working with Java EE 8 and Vue.js, and I'm using
NetBeans IDE v8.2 and v11 only, which works properly.

Regards,
Kai
https://www.nyriad.com


On 4/6/2019 8:55 PM, Richard Grin wrote:


Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java
HotSpot(TM) 64-Bit Server VM 25.172-b11 and I have the same problem. I
waited for the end of "Finding feature" for 20 minutes but nothing
happened.

Perhaps a problem due to the previous tests? Is it possible to clean
the environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :

Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.
 We are working on providing Java EE 8 support (and Jakarta EE
support) for an upcoming release.  It was a very large task to get
the code transfer for the Java EE support and licensing conversion
completed so that a the Java EE support could be included with
NetBeans, so unfortunately Java EE 8 support did not make it yet.

I am surprised to hear that the Maven web application creation did
not complete successfully.  However, I do see that you are running
Apache NetBeans under JDK 10.  Can you please try to run Apache
NetBeans under the same JDK8 that you are using with GlassFish 5.1?
 I think that may be your issue with the Maven support.  Since
GlassFish 5.1 only supports JDK 8, you may find inconsistencies in
behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java
EE 8 and Jakarta EE support.

Josh Juneau
juneau...@gmail.com 
http://jj-blogger.blogspot.com 
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin
mailto:richard.g...@univ-cotedazur.fr>> wrote:


Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara)
from Eclipse is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype
Plugin".
I click Next. New page "Finding Feature" without any message nor
information about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However,
Yesterday the process went a little farther ("Oracle JS Parser
Implementation (1.0) was loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java
EE 7, 6, 5. I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose
Server Library. The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because
javax.persistence is not known. However, it is in
jakarta.persistence.jar provided by Eclipse GlassFish 5.1. How can I
tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish
5.1, it works.

I liked a lot NetBeans because it was simple to create Web and
Enterprise Applications and I was looking forward to trying the
first version of Apache NetBeans for these types of application but
It seems not to be really ready for this task. Or perhaps I made a
mistake?





Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Geertjan Wielenga
I mean close NetBeans, then restart it, then go to the Plugin Manager for
those plugins.

Gj

On Sun, 7 Apr 2019 at 08:34, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Still having this problem? Close NetBeans and look for Oracle JS Parser in
> the Plugin Manager and install it, same for nb-javac library.
>
> Gj
>
>
> On Sat, 6 Apr 2019 at 23:33, Richard Grin 
> wrote:
>
>> Options Window: Test Connection is OK. No Proxy.
>>
>> Richard
>> Le 06/04/2019 à 21:07, Geertjan Wielenga a écrit :
>>
>> Are you sure your NetBeans has access to on-line, no problems with
>> proxies, check the Options window?
>>
>> Gj
>>
>> On Sat, Apr 6, 2019 at 8:55 PM Richard Grin <
>> richard.g...@univ-cotedazur.fr> wrote:
>>
>>> Hi Josh,
>>>
>>> I have just tried to run Apache NetBeans under 1.8.0_172; Java
>>> HotSpot(TM) 64-Bit Server VM 25.172-b11 and I have the same problem. I
>>> waited for the end of "Finding feature" for 20 minutes but nothing
>>> happened.
>>>
>>> Perhaps a problem due to the previous tests? Is it possible to clean the
>>> environment of NetBeans without a new installation?
>>>
>>> Thanks for your work on providing a Java EE 8 support.
>>>
>>> Richard
>>> Le 06/04/2019 à 16:02, Josh Juneau a écrit :
>>>
>>> Hi Richard,
>>>
>>> Thanks for the message regarding Java EE 8 support in NetBeans 11.  We
>>> are working on providing Java EE 8 support (and Jakarta EE support) for an
>>> upcoming release.  It was a very large task to get the code transfer for
>>> the Java EE support and licensing conversion completed so that a the Java
>>> EE support could be included with NetBeans, so unfortunately Java EE 8
>>> support did not make it yet.
>>>
>>> I am surprised to hear that the Maven web application creation did not
>>> complete successfully.  However, I do see that you are running Apache
>>> NetBeans under JDK 10.  Can you please try to run Apache NetBeans under the
>>> same JDK8 that you are using with GlassFish 5.1?  I think that may be your
>>> issue with the Maven support.  Since GlassFish 5.1 only supports JDK 8, you
>>> may find inconsistencies in behavior if you are trying to manage the server
>>> using JDK 9+.
>>>
>>> Thanks for the feedback, and the team will keep you updated on Java EE 8
>>> and Jakarta EE support.
>>>
>>> Josh Juneau
>>> juneau...@gmail.com
>>> http://jj-blogger.blogspot.com
>>> https://www.apress.com/index.php/author/author/view/id/1866
>>>
>>> On Apr 6, 2019, at 7:36 AM, Richard Grin 
>>> wrote:
>>>
>>> Hi,
>>>
>>> I have just tried NetBeans 11 and I am a bit disappointed.
>>>
>>> My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
>>> NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from
>>> Eclipse is running over JDK 8.
>>>
>>> Goal: creation of a Web application for Java EE 8
>>>
>>> 1. Creation of a Web Java project with Maven :
>>> I choose "Java with Maven" > "Web Application".
>>> Message: "This feature is not yet enabled. Press Next to activate it.
>>> Maven Web Application project template, created with Maven Archetype
>>> Plugin".
>>> I click Next. New page "Finding Feature" without any message nor
>>> information about the finding. I don't know what it's happening.
>>> After a long time I cancel because nothing happens. However, Yesterday
>>> the process went a little farther ("Oracle JS Parser Implementation (1.0)
>>> was loaded), but without success at the end.
>>>
>>> 2. Creation of a Web application with ant.
>>> *It's not possible to choose Java EE 8*. The only options are Java EE 7,
>>> 6, 5. I choose Java EE 7.
>>> Next. I check JavaServer Faces. In the tab "Libraries" I choose Server
>>> Library. The project is created.
>>> I install nbjavac (1.6).
>>> New entity classes from database (from sample). Problem because
>>> javax.persistence is not known. However, it is in jakarta.persistence.jar
>>> provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the
>>> jars?
>>> If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1,
>>> it works.
>>>
>>> I liked a lot NetBeans because it was simple to create Web and
>>> Enterprise Applications and I was looking forward to trying the first
>>> version of Apache NetBeans for these types of application but It seems not
>>> to be really ready for this task. Or perhaps I made a mistake?
>>>
>>>


Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Geertjan Wielenga
Still having this problem? Close NetBeans and look for Oracle JS Parser in
the Plugin Manager and install it, same for nb-javac library.

Gj


On Sat, 6 Apr 2019 at 23:33, Richard Grin 
wrote:

> Options Window: Test Connection is OK. No Proxy.
>
> Richard
> Le 06/04/2019 à 21:07, Geertjan Wielenga a écrit :
>
> Are you sure your NetBeans has access to on-line, no problems with
> proxies, check the Options window?
>
> Gj
>
> On Sat, Apr 6, 2019 at 8:55 PM Richard Grin <
> richard.g...@univ-cotedazur.fr> wrote:
>
>> Hi Josh,
>>
>> I have just tried to run Apache NetBeans under 1.8.0_172; Java
>> HotSpot(TM) 64-Bit Server VM 25.172-b11 and I have the same problem. I
>> waited for the end of "Finding feature" for 20 minutes but nothing
>> happened.
>>
>> Perhaps a problem due to the previous tests? Is it possible to clean the
>> environment of NetBeans without a new installation?
>>
>> Thanks for your work on providing a Java EE 8 support.
>>
>> Richard
>> Le 06/04/2019 à 16:02, Josh Juneau a écrit :
>>
>> Hi Richard,
>>
>> Thanks for the message regarding Java EE 8 support in NetBeans 11.  We
>> are working on providing Java EE 8 support (and Jakarta EE support) for an
>> upcoming release.  It was a very large task to get the code transfer for
>> the Java EE support and licensing conversion completed so that a the Java
>> EE support could be included with NetBeans, so unfortunately Java EE 8
>> support did not make it yet.
>>
>> I am surprised to hear that the Maven web application creation did not
>> complete successfully.  However, I do see that you are running Apache
>> NetBeans under JDK 10.  Can you please try to run Apache NetBeans under the
>> same JDK8 that you are using with GlassFish 5.1?  I think that may be your
>> issue with the Maven support.  Since GlassFish 5.1 only supports JDK 8, you
>> may find inconsistencies in behavior if you are trying to manage the server
>> using JDK 9+.
>>
>> Thanks for the feedback, and the team will keep you updated on Java EE 8
>> and Jakarta EE support.
>>
>> Josh Juneau
>> juneau...@gmail.com
>> http://jj-blogger.blogspot.com
>> https://www.apress.com/index.php/author/author/view/id/1866
>>
>> On Apr 6, 2019, at 7:36 AM, Richard Grin 
>> wrote:
>>
>> Hi,
>>
>> I have just tried NetBeans 11 and I am a bit disappointed.
>>
>> My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
>> NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from
>> Eclipse is running over JDK 8.
>>
>> Goal: creation of a Web application for Java EE 8
>>
>> 1. Creation of a Web Java project with Maven :
>> I choose "Java with Maven" > "Web Application".
>> Message: "This feature is not yet enabled. Press Next to activate it.
>> Maven Web Application project template, created with Maven Archetype
>> Plugin".
>> I click Next. New page "Finding Feature" without any message nor
>> information about the finding. I don't know what it's happening.
>> After a long time I cancel because nothing happens. However, Yesterday
>> the process went a little farther ("Oracle JS Parser Implementation (1.0)
>> was loaded), but without success at the end.
>>
>> 2. Creation of a Web application with ant.
>> *It's not possible to choose Java EE 8*. The only options are Java EE 7,
>> 6, 5. I choose Java EE 7.
>> Next. I check JavaServer Faces. In the tab "Libraries" I choose Server
>> Library. The project is created.
>> I install nbjavac (1.6).
>> New entity classes from database (from sample). Problem because
>> javax.persistence is not known. However, it is in jakarta.persistence.jar
>> provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the
>> jars?
>> If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it
>> works.
>>
>> I liked a lot NetBeans because it was simple to create Web and Enterprise
>> Applications and I was looking forward to trying the first version of
>> Apache NetBeans for these types of application but It seems not to be
>> really ready for this task. Or perhaps I made a mistake?
>>
>>


Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Geertjan Wielenga
Are you sure your NetBeans has access to on-line, no problems with proxies,
check the Options window?

Gj

On Sat, Apr 6, 2019 at 8:55 PM Richard Grin 
wrote:

> Hi Josh,
>
> I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM)
> 64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the
> end of "Finding feature" for 20 minutes but nothing happened.
>
> Perhaps a problem due to the previous tests? Is it possible to clean the
> environment of NetBeans without a new installation?
>
> Thanks for your work on providing a Java EE 8 support.
>
> Richard
> Le 06/04/2019 à 16:02, Josh Juneau a écrit :
>
> Hi Richard,
>
> Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are
> working on providing Java EE 8 support (and Jakarta EE support) for an
> upcoming release.  It was a very large task to get the code transfer for
> the Java EE support and licensing conversion completed so that a the Java
> EE support could be included with NetBeans, so unfortunately Java EE 8
> support did not make it yet.
>
> I am surprised to hear that the Maven web application creation did not
> complete successfully.  However, I do see that you are running Apache
> NetBeans under JDK 10.  Can you please try to run Apache NetBeans under the
> same JDK8 that you are using with GlassFish 5.1?  I think that may be your
> issue with the Maven support.  Since GlassFish 5.1 only supports JDK 8, you
> may find inconsistencies in behavior if you are trying to manage the server
> using JDK 9+.
>
> Thanks for the feedback, and the team will keep you updated on Java EE 8
> and Jakarta EE support.
>
> Josh Juneau
> juneau...@gmail.com
> http://jj-blogger.blogspot.com
> https://www.apress.com/index.php/author/author/view/id/1866
>
> On Apr 6, 2019, at 7:36 AM, Richard Grin 
> wrote:
>
> Hi,
>
> I have just tried NetBeans 11 and I am a bit disappointed.
>
> My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
> NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from
> Eclipse is running over JDK 8.
>
> Goal: creation of a Web application for Java EE 8
>
> 1. Creation of a Web Java project with Maven :
> I choose "Java with Maven" > "Web Application".
> Message: "This feature is not yet enabled. Press Next to activate it.
> Maven Web Application project template, created with Maven Archetype
> Plugin".
> I click Next. New page "Finding Feature" without any message nor
> information about the finding. I don't know what it's happening.
> After a long time I cancel because nothing happens. However, Yesterday the
> process went a little farther ("Oracle JS Parser Implementation (1.0) was
> loaded), but without success at the end.
>
> 2. Creation of a Web application with ant.
> *It's not possible to choose Java EE 8*. The only options are Java EE 7,
> 6, 5. I choose Java EE 7.
> Next. I check JavaServer Faces. In the tab "Libraries" I choose Server
> Library. The project is created.
> I install nbjavac (1.6).
> New entity classes from database (from sample). Problem because
> javax.persistence is not known. However, it is in jakarta.persistence.jar
> provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the
> jars?
> If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it
> works.
>
> I liked a lot NetBeans because it was simple to create Web and Enterprise
> Applications and I was looking forward to trying the first version of
> Apache NetBeans for these types of application but It seems not to be
> really ready for this task. Or perhaps I made a mistake?
>
>


Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Richard Grin
Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?


Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Josh Juneau
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.  

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866

> On Apr 6, 2019, at 7:36 AM, Richard Grin  
> wrote:
> 
> Hi,
> 
> I have just tried NetBeans 11 and I am a bit disappointed.
> 
> My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
> NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
> is running over JDK 8.
> 
> Goal: creation of a Web application for Java EE 8
> 
> 1. Creation of a Web Java project with Maven :
> I choose "Java with Maven" > "Web Application".
> Message: "This feature is not yet enabled. Press Next to activate it.
> Maven Web Application project template, created with Maven Archetype Plugin".
> I click Next. New page "Finding Feature" without any message nor information 
> about the finding. I don't know what it's happening.
> After a long time I cancel because nothing happens. However, Yesterday the 
> process went a little farther ("Oracle JS Parser Implementation (1.0) was 
> loaded), but without success at the end.
> 
> 2. Creation of a Web application with ant.
> *It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 
> 5. I choose Java EE 7.
> Next. I check JavaServer Faces. In the tab "Libraries" I choose Server 
> Library. The project is created.
> I install nbjavac (1.6).
> New entity classes from database (from sample). Problem because 
> javax.persistence is not known. However, it is in jakarta.persistence.jar 
> provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
> If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it 
> works.
> 
> I liked a lot NetBeans because it was simple to create Web and Enterprise 
> Applications and I was looking forward to trying the first version of Apache 
> NetBeans for these types of application but It seems not to be really ready 
> for this task. Or perhaps I made a mistake?


Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Geertjan Wielenga
"Explicit support of Java EE 8 is not currently part of Apache NetBeans
11.0. Also, JavaEE 8 only runs on JDK 8, not on later releases, and so if
you 're doing development with JavaEE 8 it’s best to run NetBeans itself on
JDK 8."

From: https://netbeans.apache.org/download/nb110/index.html

Gj

On Sat, Apr 6, 2019 at 2:36 PM Richard Grin 
wrote:

> Hi,
>
> I have just tried NetBeans 11 and I am a bit disappointed.
>
> My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
> NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from
> Eclipse is running over JDK 8.
>
> Goal: creation of a Web application for Java EE 8
>
> 1. Creation of a Web Java project with Maven :
> I choose "Java with Maven" > "Web Application".
> Message: "This feature is not yet enabled. Press Next to activate it.
> Maven Web Application project template, created with Maven Archetype
> Plugin".
> I click Next. New page "Finding Feature" without any message nor
> information about the finding. I don't know what it's happening.
> After a long time I cancel because nothing happens. However, Yesterday the
> process went a little farther ("Oracle JS Parser Implementation (1.0) was
> loaded), but without success at the end.
>
> 2. Creation of a Web application with ant.
> *It's not possible to choose Java EE 8*. The only options are Java EE 7,
> 6, 5. I choose Java EE 7.
> Next. I check JavaServer Faces. In the tab "Libraries" I choose Server
> Library. The project is created.
> I install nbjavac (1.6).
> New entity classes from database (from sample). Problem because
> javax.persistence is not known. However, it is in jakarta.persistence.jar
> provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the
> jars?
> If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it
> works.
>
> I liked a lot NetBeans because it was simple to create Web and Enterprise
> Applications and I was looking forward to trying the first version of
> Apache NetBeans for these types of application but It seems not to be
> really ready for this task. Or perhaps I made a mistake?
>


Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Richard Grin
Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?