Re: Missing project ZIP file for NB16 within Building, Debugging, and Testing trail

2023-01-18 Thread Arshad Noor

Thanks all; found it on archive.org:

https://web.archive.org/web/20100615221832/http://netbeans.org/project_downloads/samples/Samples/Java/JUnitSampleSol.zip


On 1/18/23 8:46 PM, Sean Carrick wrote:

Arshad,

That is an old link to the NetBeans.org website which went away back in 
2020 (I believe). You could try pasting that link into the Wayback 
Machine  (https://web.archive.org 
) and searching around that way.


Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
s...@pekinsoft.com 
(309) 989-0672


On Wed, Jan 18, 2023 at 2:22 PM Arshad Noor > wrote:


Hello,

In the tutorial at this page:

https://netbeans.apache.org/kb/docs/java/junit-intro.html


the tutorial references a project zip file - JUnitSampleSol Project -
that is required to work with the tutorial. The link to the zip file:


https://netbeans.org/projects/samples/downloads/download/Samples/Java/JUnitSampleSol.zip
 


results in a "Not found" page.

Does anyone know where this sample project (or sample projects
referenced in Netbeans learning trains) can be found?

Thank you.

Arshad

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org

For additional commands, e-mail: users-h...@netbeans.apache.org


For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Missing project ZIP file for NB16 within Building, Debugging, and Testing trail

2023-01-18 Thread Sean Carrick
Or, you could see if one of these repositories matches up with the tutorial
you were working on: https://github.com/search?q=JUnitSampleSol

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
s...@pekinsoft.com
(309) 989-0672


On Wed, Jan 18, 2023 at 2:22 PM Arshad Noor 
wrote:

> Hello,
>
> In the tutorial at this page:
>
> https://netbeans.apache.org/kb/docs/java/junit-intro.html
>
> the tutorial references a project zip file - JUnitSampleSol Project -
> that is required to work with the tutorial. The link to the zip file:
>
>
> https://netbeans.org/projects/samples/downloads/download/Samples/Java/JUnitSampleSol.zip
>
> results in a "Not found" page.
>
> Does anyone know where this sample project (or sample projects
> referenced in Netbeans learning trains) can be found?
>
> Thank you.
>
> Arshad
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Missing project ZIP file for NB16 within Building, Debugging, and Testing trail

2023-01-18 Thread Sean Carrick
Arshad,

That is an old link to the NetBeans.org website which went away back in
2020 (I believe). You could try pasting that link into the Wayback Machine
 (https://web.archive.org) and searching around
that way.

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
s...@pekinsoft.com
(309) 989-0672


On Wed, Jan 18, 2023 at 2:22 PM Arshad Noor 
wrote:

> Hello,
>
> In the tutorial at this page:
>
> https://netbeans.apache.org/kb/docs/java/junit-intro.html
>
> the tutorial references a project zip file - JUnitSampleSol Project -
> that is required to work with the tutorial. The link to the zip file:
>
>
> https://netbeans.org/projects/samples/downloads/download/Samples/Java/JUnitSampleSol.zip
>
> results in a "Not found" page.
>
> Does anyone know where this sample project (or sample projects
> referenced in Netbeans learning trains) can be found?
>
> Thank you.
>
> Arshad
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: [servlet]

2023-01-18 Thread Peter Scharf
The catalina log has lots of info entries.  Here’s one WARNING:

18-Jan-2023 12:10:12.964 WARNING [main] 
org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with 
value [/mavenproject3] in deployment descriptor 
[/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml] 
has been ignored

The catalina.out file has the same suspicious entry:

18-Jan-2023 12:10:12.964 WARNING [main] 
org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with 
value [/mavenproject3] in deployment descriptor 
[/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml] 
has been ignored

The localhost_access_log.2023-01-18.txt file has:

0:0:0:0:0:0:0:1 - - [18/Jan/2023:12:10:18 -0600] "GET /convert HTTP/1.1" 404 759
0:0:0:0:0:0:0:1 - - [18/Jan/2023:12:10:18 -0600] "GET /favicon.ico HTTP/1.1" 
200 21630
0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:50:07 -0600] "GET /mavenproject3/ HTTP/1.1" 
200 453
0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:50:14 -0600] "POST /mavenproject3/convert 
HTTP/1.1" 404 777
0:0:0:0:0:0:0:1 - - [18/Jan/2023:16:51:11 -0600] "POST /mavenproject3/convert 
HTTP/1.1" 404 777

Regarding Java EE versus Jakarta EE, a quick search shows that none of my 
project files contain ‘jakarta’ while the following all contain ‘java’

UnitConverterServlet.class
UnitConverterServlet.class
UnitConverterServlet.java
inputFiles.lst
javaee-endorsed-api-7.0.jar
pom.xml



**
Peter M. Scharf, President
The Sanskrit Library
sch...@sanskritlibrary.org
https://sanskritlibrary.org
**

> On Jan 18, 2023, at 12:19 PM, Eric Bresie  wrote:
> 
> Does anything show up in tomcat log?
> 
> I seem to recall there is some migration going on to move namespace from Java 
> EE to jakarta EE name space.  Not sure if maybe that is coming into play 
> here.  This might help if it is impacted
> 
> https://github.com/apache/tomcat-jakartaee-migration
> 
> 
> 
> On Wed, Jan 18, 2023 at 12:11 PM Peter Scharf  > wrote:
>> Thanks, Eric.  I had tried that.  I get the message:
>> 
>> HTTP Status 404 – Not Found
>> 
>> Type Status Report
>> 
>> Message The requested resource [/convert] is not available
>> 
>> Description The origin server did not find a current representation for the 
>> target resource or is not willing to disclose that one exists.
>> 
>> Apache Tomcat/10.0.23
>> 
>> 
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org 
>> https://sanskritlibrary.org 
>> **
>> 
>>> On Jan 18, 2023, at 12:06 PM, Eric Bresie >> > wrote:
>>> 
>>> 
>>> Servlet says the urlpattern is “/convert”
>>> 
>>> Try 
>>> http://localhost:8080/convert
>>> 
>>> 
>>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf >> > wrote:
 Yes, the URL is correct: https://github.com/the-sanskrit-library/public.git
 The git directory hierarchy deceived me: I had the code outside the git 
 directory.  I have now moved it into the git directory.
 Forgive me; I’m not very familiar with git and am using the desktop 
 version.
 Yours,
 Peter
 
 **
 Peter M. Scharf, President
 The Sanskrit Library
 sch...@sanskritlibrary.org 
 https://sanskritlibrary.org 
 **
 
> On Jan 18, 2023, at 5:35 AM, Carl Mosca  > wrote:
> 
> Hi Peter,
> 
> Can you confirm that url please.  I am not seeing Java code there; only a 
> README and attribute file.
> 
> Regards,
> Carl
 
> 
> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf  > wrote:
>> Thank you for suggesting to put the project on Github.  I have now 
>> created a public repository at the following url:
>> 
>> https://github.com/the-sanskrit-library/public.git
>> 
>> The project is in the NetBeans directory.
>> Yours,
>> Peter
>> 
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org 
>> https://sanskritlibrary.org 
>> **
>> 
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca >> > wrote:
>>> 
>>> Hello Peter,
>>> 
>>> Is the project that you created somewhere (such as Github) such that 
>>> folks could take a look at it?
>>> 
>>> Regards,
>>> Carl
>>> 
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf 
>>> mailto:sch...@sanskritlibrary.org>> wrote:
 I just installed NetBeans 16 on a MacBook Pro 

Re: [servlet]

2023-01-18 Thread Peter Scharf
The form opens for me too.  The problem is that when I fill in a number and 
click “Convert to kilometers” I get the 404 Not Found message.

**
Peter M. Scharf, President
The Sanskrit Library
sch...@sanskritlibrary.org
https://sanskritlibrary.org
**

> On Jan 18, 2023, at 12:19 PM, Carl Mosca  wrote:
> 
> It opened (automatically) here for me: http://localhost:8080/mavenproject3/ 
> 
> On Wed, Jan 18, 2023 at 1:11 PM Peter Scharf  > wrote:
>> Thanks, Eric.  I had tried that.  I get the message:
>> 
>> HTTP Status 404 – Not Found
>> 
>> Type Status Report
>> 
>> Message The requested resource [/convert] is not available
>> 
>> Description The origin server did not find a current representation for the 
>> target resource or is not willing to disclose that one exists.
>> 
>> Apache Tomcat/10.0.23
>> 
>> 
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org 
>> https://sanskritlibrary.org 
>> **
>> 
>>> On Jan 18, 2023, at 12:06 PM, Eric Bresie >> > wrote:
>>> 
>>> 
>>> Servlet says the urlpattern is “/convert”
>>> 
>>> Try 
>>> http://localhost:8080/convert
>>> 
>>> 
>>> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf >> > wrote:
 Yes, the URL is correct: https://github.com/the-sanskrit-library/public.git
 The git directory hierarchy deceived me: I had the code outside the git 
 directory.  I have now moved it into the git directory.
 Forgive me; I’m not very familiar with git and am using the desktop 
 version.
 Yours,
 Peter
 
 **
 Peter M. Scharf, President
 The Sanskrit Library
 sch...@sanskritlibrary.org 
 https://sanskritlibrary.org 
 **
 
> On Jan 18, 2023, at 5:35 AM, Carl Mosca  > wrote:
> 
> Hi Peter,
> 
> Can you confirm that url please.  I am not seeing Java code there; only a 
> README and attribute file.
> 
> Regards,
> Carl
 
> 
> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf  > wrote:
>> Thank you for suggesting to put the project on Github.  I have now 
>> created a public repository at the following url:
>> 
>> https://github.com/the-sanskrit-library/public.git
>> 
>> The project is in the NetBeans directory.
>> Yours,
>> Peter
>> 
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org 
>> https://sanskritlibrary.org 
>> **
>> 
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca >> > wrote:
>>> 
>>> Hello Peter,
>>> 
>>> Is the project that you created somewhere (such as Github) such that 
>>> folks could take a look at it?
>>> 
>>> Regards,
>>> Carl
>>> 
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf 
>>> mailto:sch...@sanskritlibrary.org>> wrote:
 I just installed NetBeans 16 on a MacBook Pro with an M chip:
 
 Product Version: Apache NetBeans IDE 16
 Java: 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
 Runtime: OpenJDK Runtime Environment 19.0.1
 System: Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)
 
 I am trying to create a minimal servlet and war file to use with Tomcat
 
 apache-tomcat-10.0.23
 
 I worked through half of the demo How to create a webapp tutorial at: 
 https://www.youtube.com/watch?v=eP9oz6ZKUXM
 which, however, uses NetBeans 12 and other older software than I have 
 installed.
 I was able to do the first item successfully with minor adaptations:
 1. Create a Jave Web project with Maven
 Got build error:
 https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
 Went to: https://maven.apache.org/plugins/
 Answer: manually configuring one of the recent war plug-ins in POM.xml
 Changed 2.3 to 3.3.2
 Then got the form.
 I successfully created the Unit Conversion form which opens in Safari 
 (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/
 
 But trying the second—third items:
 2. Create Java Servlet & JavaServer Page (JSP)
 3. Run Java Web App on Tomcat inside NetBeans
 
 I got stuck.
 When I fill in a value in the miles box and click Convert to 
 kilometers, 

Floating TopComponent without tab

2023-01-18 Thread Jerome Lelasseux
Hi, 

I use a TopComponent as a Midi editor window. There can be several Midi editor 
windows. 

I can float a Midi editor TopComponent using 
WindowManager.setTopComponentFloating(), but it is shown as a tab 
("NewSong-User1") within an enclosing window, as shown in the picture below.


I'd like that each MidiEditor TopComponent be a distinct floating window (so no 
need for tab system). Is it possible ?   

Side question, how can I access the enclosing window of the floating 
TopComponent to call Window.setAlwaysOnTop(true) on it ? 


Jerome


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Missing project ZIP file for NB16 within Building, Debugging, and Testing trail

2023-01-18 Thread Arshad Noor

Hello,

In the tutorial at this page:

https://netbeans.apache.org/kb/docs/java/junit-intro.html

the tutorial references a project zip file - JUnitSampleSol Project - 
that is required to work with the tutorial. The link to the zip file:


https://netbeans.org/projects/samples/downloads/download/Samples/Java/JUnitSampleSol.zip

results in a "Not found" page.

Does anyone know where this sample project (or sample projects 
referenced in Netbeans learning trains) can be found?


Thank you.

Arshad

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Unexpected Exception in NetBeans 12.0

2023-01-18 Thread Neil C Smith
On Wed, 18 Jan 2023, 18:41 Matheus Oliveira, 
wrote:

> I'm having a problem trying to open a project in NetBeans (v12.0.0). When
> I try to open the project in question it does not open,
>

Really NetBeans 12.0?

We've had 10 releases since then! I'd try NetBeans 16 first if you can.

Best wishes,

Neil


Re: Unexpected Exception in NetBeans 12.0

2023-01-18 Thread Frank Griffin

On 1/18/23 13:40, Matheus Oliveira wrote:
I'm having a problem trying to open a project in NetBeans (v12.0.0). 
When I try to open the project in question it does not open, and the 
following error appears:


Captura de tela 2023-01-18 152709.png

Does anyone know how to solve this problem?
Maybe run NB from the command line ?  There should be a stacktrace going 
someplace

Re: Unexpected Exception in NetBeans 12.0

2023-01-18 Thread Ernie Rael

On 23/01/18 10:40 AM, Matheus Oliveira wrote:
I'm having a problem trying to open a project in NetBeans (v12.0.0). 
When I try to open the project in question it does not open, and the 
following error appears:


Captura de tela 2023-01-18 152709.png

Does anyone know how to solve this problem?


After clicking on "Show and Report Problem..." you can get a stacktrace.

Hopefully that gets you started on a solution. Or at least gives
you something concrete to talk about.

Also looking at /var/log/messages.log and offer insight.
The location of userdir is available in Menu>Help>About.

-ernie


Unexpected Exception in NetBeans 12.0

2023-01-18 Thread Matheus Oliveira
I'm having a problem trying to open a project in NetBeans (v12.0.0). When I
try to open the project in question it does not open, and the following
error appears:

[image: Captura de tela 2023-01-18 152709.png]

Does anyone know how to solve this problem?


Re: question about netbeans questions and support

2023-01-18 Thread Eric Bresie
Is there something specific needed?

Eric B



On Wed, Jan 18, 2023 at 10:58 AM Neil C Smith  wrote:

> Hi Chris,
>
> I really should request addition to that page!
>
> I offer support and development services for the IDE and platform via
> Codelerity.  It's mentioned, amongst other places, on the community
> installers page - https://www.codelerity.com/netbeans/
>
> I mostly work with other companies though, so might not be the right
> fit.  Feel free to get in touch there, but I would also hope we'd be
> able to provide enough support through the community here.
>
> Best wishes,
>
> Neil
>
> On Sun, 15 Jan 2023 at 13:14, Christopher C. Lanz
>  wrote:
> >
> > Hello, as a retired Computer Science professor doing A.I. research, it
> happens that I have MUCH more money than time.
> >
> > I wonder if there is already a mechanism for users to pay to get help
> after it happens that the community is unable to help with a question.
> (There is only one name on the reference provided by Apache.)
> >
> > If not, I really really need to hire somebody who has more time than
> money.
> >
> > Thanks to the community for all the help I have received, and for all
> they do in general. I just need to make it more efficient on my end.
> >
> > Chris Lanz, Assoc. Professor Emeritus
> >
> > Department of Computer Science
> >
> > 340 Dunn Hall, SUNY Potsdam
> >
> > lan...@potsdam.edu
> >
> > 315 268 1547
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> --
Eric Bresie
ebre...@gmail.com


Re: [servlet]

2023-01-18 Thread Eric Bresie
Does anything show up in tomcat log?

I seem to recall there is some migration going on to move namespace from
Java EE to jakarta EE name space.  Not sure if maybe that is coming into
play here.  This might help if it is impacted

https://github.com/apache/tomcat-jakartaee-migration



On Wed, Jan 18, 2023 at 12:11 PM Peter Scharf 
wrote:

> Thanks, Eric.  I had tried that.  I get the message:
>
> HTTP Status 404 – Not Found
> --
>
> *Type* Status Report
>
> *Message* The requested resource [/convert] is not available
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> --
> Apache Tomcat/10.0.23
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 18, 2023, at 12:06 PM, Eric Bresie  wrote:
>
>
> Servlet says the urlpattern is “/convert”
>
> Try
> http://localhost:8080/convert
>
>
> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf 
> wrote:
>
>> Yes, the URL is correct:
>> https://github.com/the-sanskrit-library/public.git
>> The git directory hierarchy deceived me: I had the code outside the git
>> directory.  I have now moved it into the git directory.
>> Forgive me; I’m not very familiar with git and am using the desktop
>> version.
>> Yours,
>> Peter
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
>>
>> Hi Peter,
>>
>> Can you confirm that url please.  I am not seeing Java code there; only a
>> README and attribute file.
>>
>> Regards,
>> Carl
>>
>>
>> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf 
>> wrote:
>>
>>> Thank you for suggesting to put the project on Github.  I have now
>>> created a public repository at the following url:
>>>
>>> https://github.com/the-sanskrit-library/public.git
>>>
>>> The project is in the NetBeans directory.
>>> Yours,
>>> Peter
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca  wrote:
>>>
>>> Hello Peter,
>>>
>>> Is the project that you created somewhere (such as Github) such that
>>> folks could take a look at it?
>>>
>>> Regards,
>>> Carl
>>>
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf <
>>> sch...@sanskritlibrary.org> wrote:
>>>
 I just installed NetBeans 16 on a MacBook Pro with an M chip:

 *Product Version:* Apache NetBeans IDE 16
 *Java:* 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
 *Runtime:* OpenJDK Runtime Environment 19.0.1
 *System:* Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)

 I am trying to create a minimal servlet and war file to use with Tomcat

 apache-tomcat-10.0.23

 I worked through half of the demo How to create a webapp tutorial at:
 https://www.youtube.com/watch?v=eP9oz6ZKUXM
 which, however, uses NetBeans 12 and other older software than I have
 installed.
 I was able to do the first item successfully with minor adaptations:
 1. Create a Jave Web project with Maven
 Got build error:

 https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
 Went to: https://maven.apache.org/plugins/
 Answer: manually configuring one of the recent war plug-ins in POM.xml
 Changed 2.3 to 3.3.2
 Then got the form.
 I successfully created the Unit Conversion form which opens in Safari
 (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/

 But trying the second—third items:
 2. Create Java Servlet & JavaServer Page (JSP)
 3. Run Java Web App on Tomcat inside NetBeans

 I got stuck.
 When I fill in a value in the miles box and click Convert to
 kilometers, Safari gives me a
 HTTP Status 404 – Not Found
 Message The requested resource [/mavenproject3/convert] is not available
 Description The origin server did not find a current representation for
 the target resource or is not willing to disclose that one exists.

 After a couple of days trying to fix it, I’m still at a loss.
 I did get rid of a problem not finding the native tomcat libraries:
 INFO [main]
 org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache
 Tomcat Native library which allows using OpenSSL was not found on the
 java.library.path: ...
 by dowloading and installing The Apache Tomcat Native library
 following instructions here:
 https://formulae.brew.sh/formula/tomcat-native

 However, I still get the 404 not found in Safari.
 Can anyone help me?


Re: [servlet]

2023-01-18 Thread Carl Mosca
It opened (automatically) here for me: http://localhost:8080/mavenproject3/

On Wed, Jan 18, 2023 at 1:11 PM Peter Scharf 
wrote:

> Thanks, Eric.  I had tried that.  I get the message:
>
> HTTP Status 404 – Not Found
> --
>
> *Type* Status Report
>
> *Message* The requested resource [/convert] is not available
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists.
> --
> Apache Tomcat/10.0.23
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 18, 2023, at 12:06 PM, Eric Bresie  wrote:
>
>
> Servlet says the urlpattern is “/convert”
>
> Try
> http://localhost:8080/convert
>
>
> On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf 
> wrote:
>
>> Yes, the URL is correct:
>> https://github.com/the-sanskrit-library/public.git
>> The git directory hierarchy deceived me: I had the code outside the git
>> directory.  I have now moved it into the git directory.
>> Forgive me; I’m not very familiar with git and am using the desktop
>> version.
>> Yours,
>> Peter
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
>>
>> Hi Peter,
>>
>> Can you confirm that url please.  I am not seeing Java code there; only a
>> README and attribute file.
>>
>> Regards,
>> Carl
>>
>>
>> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf 
>> wrote:
>>
>>> Thank you for suggesting to put the project on Github.  I have now
>>> created a public repository at the following url:
>>>
>>> https://github.com/the-sanskrit-library/public.git
>>>
>>> The project is in the NetBeans directory.
>>> Yours,
>>> Peter
>>>
>>> **
>>> Peter M. Scharf, President
>>> The Sanskrit Library
>>> sch...@sanskritlibrary.org
>>> https://sanskritlibrary.org
>>> **
>>>
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca  wrote:
>>>
>>> Hello Peter,
>>>
>>> Is the project that you created somewhere (such as Github) such that
>>> folks could take a look at it?
>>>
>>> Regards,
>>> Carl
>>>
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf <
>>> sch...@sanskritlibrary.org> wrote:
>>>
 I just installed NetBeans 16 on a MacBook Pro with an M chip:

 *Product Version:* Apache NetBeans IDE 16
 *Java:* 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
 *Runtime:* OpenJDK Runtime Environment 19.0.1
 *System:* Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)

 I am trying to create a minimal servlet and war file to use with Tomcat

 apache-tomcat-10.0.23

 I worked through half of the demo How to create a webapp tutorial at:
 https://www.youtube.com/watch?v=eP9oz6ZKUXM
 which, however, uses NetBeans 12 and other older software than I have
 installed.
 I was able to do the first item successfully with minor adaptations:
 1. Create a Jave Web project with Maven
 Got build error:

 https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
 Went to: https://maven.apache.org/plugins/
 Answer: manually configuring one of the recent war plug-ins in POM.xml
 Changed 2.3 to 3.3.2
 Then got the form.
 I successfully created the Unit Conversion form which opens in Safari
 (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/

 But trying the second—third items:
 2. Create Java Servlet & JavaServer Page (JSP)
 3. Run Java Web App on Tomcat inside NetBeans

 I got stuck.
 When I fill in a value in the miles box and click Convert to
 kilometers, Safari gives me a
 HTTP Status 404 – Not Found
 Message The requested resource [/mavenproject3/convert] is not available
 Description The origin server did not find a current representation for
 the target resource or is not willing to disclose that one exists.

 After a couple of days trying to fix it, I’m still at a loss.
 I did get rid of a problem not finding the native tomcat libraries:
 INFO [main]
 org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache
 Tomcat Native library which allows using OpenSSL was not found on the
 java.library.path: ...
 by dowloading and installing The Apache Tomcat Native library
 following instructions here:
 https://formulae.brew.sh/formula/tomcat-native

 However, I still get the 404 not found in Safari.
 Can anyone help me?

 I wonder whether these debugger messages indicate a problem using a
 symbolic link to my real tomcat directory from /Library/Tomcat

 16-Jan-2023 11:15:13.009 INFO [main]
 

Re: [servlet]

2023-01-18 Thread Eric Bresie
Servlet says the urlpattern is “/convert”

Try
http://localhost:8080/convert


On Wed, Jan 18, 2023 at 11:51 AM Peter Scharf 
wrote:

> Yes, the URL is correct:
> https://github.com/the-sanskrit-library/public.git
> The git directory hierarchy deceived me: I had the code outside the git
> directory.  I have now moved it into the git directory.
> Forgive me; I’m not very familiar with git and am using the desktop
> version.
> Yours,
> Peter
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
>
> Hi Peter,
>
> Can you confirm that url please.  I am not seeing Java code there; only a
> README and attribute file.
>
> Regards,
> Carl
>
>
> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf 
> wrote:
>
>> Thank you for suggesting to put the project on Github.  I have now
>> created a public repository at the following url:
>>
>> https://github.com/the-sanskrit-library/public.git
>>
>> The project is in the NetBeans directory.
>> Yours,
>> Peter
>>
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org
>> https://sanskritlibrary.org
>> **
>>
>> On Jan 17, 2023, at 2:38 PM, Carl Mosca  wrote:
>>
>> Hello Peter,
>>
>> Is the project that you created somewhere (such as Github) such that
>> folks could take a look at it?
>>
>> Regards,
>> Carl
>>
>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf 
>> wrote:
>>
>>> I just installed NetBeans 16 on a MacBook Pro with an M chip:
>>>
>>> *Product Version:* Apache NetBeans IDE 16
>>> *Java:* 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
>>> *Runtime:* OpenJDK Runtime Environment 19.0.1
>>> *System:* Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)
>>>
>>> I am trying to create a minimal servlet and war file to use with Tomcat
>>>
>>> apache-tomcat-10.0.23
>>>
>>> I worked through half of the demo How to create a webapp tutorial at:
>>> https://www.youtube.com/watch?v=eP9oz6ZKUXM
>>> which, however, uses NetBeans 12 and other older software than I have
>>> installed.
>>> I was able to do the first item successfully with minor adaptations:
>>> 1. Create a Jave Web project with Maven
>>> Got build error:
>>>
>>> https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
>>> Went to: https://maven.apache.org/plugins/
>>> Answer: manually configuring one of the recent war plug-ins in POM.xml
>>> Changed 2.3 to 3.3.2
>>> Then got the form.
>>> I successfully created the Unit Conversion form which opens in Safari
>>> (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/
>>>
>>> But trying the second—third items:
>>> 2. Create Java Servlet & JavaServer Page (JSP)
>>> 3. Run Java Web App on Tomcat inside NetBeans
>>>
>>> I got stuck.
>>> When I fill in a value in the miles box and click Convert to kilometers,
>>> Safari gives me a
>>> HTTP Status 404 – Not Found
>>> Message The requested resource [/mavenproject3/convert] is not available
>>> Description The origin server did not find a current representation for
>>> the target resource or is not willing to disclose that one exists.
>>>
>>> After a couple of days trying to fix it, I’m still at a loss.
>>> I did get rid of a problem not finding the native tomcat libraries:
>>> INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
>>> The Apache Tomcat Native library which allows using OpenSSL was not found
>>> on the java.library.path: ...
>>> by dowloading and installing The Apache Tomcat Native library
>>> following instructions here:
>>> https://formulae.brew.sh/formula/tomcat-native
>>>
>>> However, I still get the 404 not found in Safari.
>>> Can anyone help me?
>>>
>>> I wonder whether these debugger messages indicate a problem using a
>>> symbolic link to my real tomcat directory from /Library/Tomcat
>>>
>>> 16-Jan-2023 11:15:13.009 INFO [main]
>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>> argument: -Dignore.endorsed.dirs=
>>> 16-Jan-2023 11:15:13.010 INFO [main]
>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>> argument: -Dcatalina.base=/Library/Tomcat
>>> 16-Jan-2023 11:15:13.010 INFO [main]
>>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>>> argument: -Dcatalina.home=/Library/Tomcat
>>>
>>> but the infos in the debugger do tell me that it is using the real
>>> directories:
>>> CATALINA_BASE: /usr/local/apache-tomcat-10.0.23
>>> CATALINA_HOME: /usr/local/apache-tomcat-10.0.23
>>>
>>> I get the following debugger WARNING:
>>> WARNING [http-nio-8080-exec-10]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
>>> with value [/mavenproject3] in deployment descriptor
>>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
>>> has been ignored
>>>
>>> 

Re: [servlet]

2023-01-18 Thread Peter Scharf
Yes, the URL is correct: https://github.com/the-sanskrit-library/public.git
The git directory hierarchy deceived me: I had the code outside the git 
directory.  I have now moved it into the git directory.
Forgive me; I’m not very familiar with git and am using the desktop version.
Yours,
Peter

**
Peter M. Scharf, President
The Sanskrit Library
sch...@sanskritlibrary.org
https://sanskritlibrary.org
**

> On Jan 18, 2023, at 5:35 AM, Carl Mosca  wrote:
> 
> Hi Peter,
> 
> Can you confirm that url please.  I am not seeing Java code there; only a 
> README and attribute file.
> 
> Regards,
> Carl
> 
> On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf  > wrote:
>> Thank you for suggesting to put the project on Github.  I have now created a 
>> public repository at the following url:
>> 
>> https://github.com/the-sanskrit-library/public.git
>> 
>> The project is in the NetBeans directory.
>> Yours,
>> Peter
>> 
>> **
>> Peter M. Scharf, President
>> The Sanskrit Library
>> sch...@sanskritlibrary.org 
>> https://sanskritlibrary.org 
>> **
>> 
>>> On Jan 17, 2023, at 2:38 PM, Carl Mosca >> > wrote:
>>> 
>>> Hello Peter,
>>> 
>>> Is the project that you created somewhere (such as Github) such that folks 
>>> could take a look at it?
>>> 
>>> Regards,
>>> Carl
>>> 
>>> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf >> > wrote:
 I just installed NetBeans 16 on a MacBook Pro with an M chip:
 
 Product Version: Apache NetBeans IDE 16
 Java: 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
 Runtime: OpenJDK Runtime Environment 19.0.1
 System: Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)
 
 I am trying to create a minimal servlet and war file to use with Tomcat
 
 apache-tomcat-10.0.23
 
 I worked through half of the demo How to create a webapp tutorial at: 
 https://www.youtube.com/watch?v=eP9oz6ZKUXM
 which, however, uses NetBeans 12 and other older software than I have 
 installed.
 I was able to do the first item successfully with minor adaptations:
 1. Create a Jave Web project with Maven
 Got build error:
 https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
 Went to: https://maven.apache.org/plugins/
 Answer: manually configuring one of the recent war plug-ins in POM.xml
 Changed 2.3 to 3.3.2
 Then got the form.
 I successfully created the Unit Conversion form which opens in Safari 
 (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/
 
 But trying the second—third items:
 2. Create Java Servlet & JavaServer Page (JSP)
 3. Run Java Web App on Tomcat inside NetBeans
 
 I got stuck.
 When I fill in a value in the miles box and click Convert to kilometers, 
 Safari gives me a
 HTTP Status 404 – Not Found
 Message The requested resource [/mavenproject3/convert] is not available
 Description The origin server did not find a current representation for 
 the target resource or is not willing to disclose that one exists.
 
 After a couple of days trying to fix it, I’m still at a loss.
 I did get rid of a problem not finding the native tomcat libraries:
 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 
 The Apache Tomcat Native library which allows using OpenSSL was not found 
 on the java.library.path: ...
 by dowloading and installing The Apache Tomcat Native library
 following instructions here: https://formulae.brew.sh/formula/tomcat-native
 
 However, I still get the 404 not found in Safari.
 Can anyone help me?
 
 I wonder whether these debugger messages indicate a problem using a 
 symbolic link to my real tomcat directory from /Library/Tomcat
 
 16-Jan-2023 11:15:13.009 INFO [main] 
 org.apache.catalina.startup.VersionLoggerListener.log Command line 
 argument: -Dignore.endorsed.dirs=
 16-Jan-2023 11:15:13.010 INFO [main] 
 org.apache.catalina.startup.VersionLoggerListener.log Command line 
 argument: -Dcatalina.base=/Library/Tomcat
 16-Jan-2023 11:15:13.010 INFO [main] 
 org.apache.catalina.startup.VersionLoggerListener.log Command line 
 argument: -Dcatalina.home=/Library/Tomcat
 
 but the infos in the debugger do tell me that it is using the real 
 directories:
 CATALINA_BASE: /usr/local/apache-tomcat-10.0.23
 CATALINA_HOME: /usr/local/apache-tomcat-10.0.23
 
 I get the following debugger WARNING:
 WARNING [http-nio-8080-exec-10] 
 org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute 
 with value [/mavenproject3] in deployment descriptor 

Re: Font size for application

2023-01-18 Thread Neil C Smith
On Wed, 18 Jan 2023 at 16:56, Radek Čáp  wrote:
> it's possible to set up the font size for the application based on the 
> Netbeans platform by adding the --fontsize parameter into the config file.
>
> I'm looking for a way, to how users can change it from the running 
> application. I haven't found any font dialog usable for it so I'm looking for 
> some tips if the platform supports it. It would be nice to do it without a 
> complete reload of the application but this is acceptable for the users.
>
> Thank you for any inspiration.

Well, if you're using FlatLaf, there's an alternative approach in
discussion at https://github.com/apache/netbeans/issues/5265

Still requires reload though.

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: question about netbeans questions and support

2023-01-18 Thread Neil C Smith
Hi Chris,

I really should request addition to that page!

I offer support and development services for the IDE and platform via
Codelerity.  It's mentioned, amongst other places, on the community
installers page - https://www.codelerity.com/netbeans/

I mostly work with other companies though, so might not be the right
fit.  Feel free to get in touch there, but I would also hope we'd be
able to provide enough support through the community here.

Best wishes,

Neil

On Sun, 15 Jan 2023 at 13:14, Christopher C. Lanz
 wrote:
>
> Hello, as a retired Computer Science professor doing A.I. research, it 
> happens that I have MUCH more money than time.
>
> I wonder if there is already a mechanism for users to pay to get help after 
> it happens that the community is unable to help with a question. (There is 
> only one name on the reference provided by Apache.)
>
> If not, I really really need to hire somebody who has more time than money.
>
> Thanks to the community for all the help I have received, and for all they do 
> in general. I just need to make it more efficient on my end.
>
> Chris Lanz, Assoc. Professor Emeritus
>
> Department of Computer Science
>
> 340 Dunn Hall, SUNY Potsdam
>
> lan...@potsdam.edu
>
> 315 268 1547
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Font size for application

2023-01-18 Thread Radek Čáp
Hi,

it's possible to set up the font size for the application based on the
Netbeans platform by adding the --fontsize parameter into the config file.

I'm looking for a way, to how users can change it from the running
application. I haven't found any font dialog usable for it so I'm looking
for some tips if the platform supports it. It would be nice to do it
without a complete reload of the application but this is acceptable for the
users.

Thank you for any inspiration.

-- 

-- 
Radek Cap


Re: Re: NB16 - java.lang.RuntimeException: Uncompilable code

2023-01-18 Thread Eric Bresie
What version of JUnit is being used? Not sure if JUnit 5 is fully compatible. 
Can try JUnit 4 and see if this resolves the problem with test at least.

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 17, 2023 at 3:12:57 PM CST, Gheorghe TUDOSE  (mailto:tudo@gmail.com)> wrote:
> Hi,
>
> I have the same issue; I can't run unit tests, nor can I run a command line 
> application testing my code.
> As per this SO post (https://stackoverflow.com/q/4386076), deactivating the 
> "Compile on Save" option makes the problem go away kinda - the command line 
> application runs but the tests don't (there's a "No tests executed." message 
> in the test output console).
>
> HTH
> George T.
>
> În vin., 16 dec. 2022 la 00:17 (x-apple-data-detectors://6), Sam Lalani 
> mailto:samlal...@yahoo.com.invalid)> a scris:
> > It is an Ant based project.
> >
> > -Original Message-
> > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > Sent: Thursday, December 15, 2022 2:22 PM
> > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> >
> > No, not a requirement. But there are some problems with Gradle (7.x) and NB 
> > 16
> >
> > So is it an Ant based project or is using Maven?
> >
> > Sam Lalani schrieb am 15.12.2022 um 18:01:
> > > No, I am not using Gradle. Is that a requirement for NB16?
> > >
> > > -Original Message-
> > > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > > Sent: Thursday, December 15, 2022 8:45 AM
> > > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> > >
> > > Are you using Gradle?
> > >
> > >
> > > Sam Lalani schrieb am 15.12.2022 um 15:21:
> > >> I am running NB16 in Windows 10. I have a Java program that is
> > >> giving this
> > >> error:
> > >>
> > >> Exception in thread "Thread-2" java.lang.RuntimeException:
> > >> Uncompilable code
> > >>
> > >> However, the same code in NB15 has no problems.
> > >>
> > >> This issue shows up only when I "Clean and Build" in NB16 "AND" run
> > >> it in NB16.
> > >>
> > >> If I "Clean and Build" in NB15 and run it in NB15 then no problem.
> > >> If I "Clean and Build" in NB15 and run it in NB16 then no problem.
> > >> If I "Clean and Build" in NB16 and run the program using the command
> > >> prompt then no problem.
> > >> If I "Clean and Build" in NB16 and run it in NB16 then it shows the 
> > >> error.
> > >>
> > >> The program is fairly large, and I don't think I can provide the
> > >> source code due to company policies.
> > >>
> > >> Here is some info about my system from the NB16 About page:
> > >>
> > >> Product Version: Apache NetBeans IDE 16
> > >> Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
> > >> Runtime: OpenJDK Runtime Environment 17+35-2724
> > >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> > >> User
> > >> directory: C:\Users\samla\AppData\Roaming\NetBeans\16
> > >> Cache directory: C:\Users\samla\AppData\Local\NetBeans\Cache\16
> > >>
> > >> What else can I provide that would make it easier to find the problem
> > >> in NB16?
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> > --
> > This email has been checked for viruses by Avast antivirus software.
> > www.avast.com (http://www.avast.com)
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >


Re: Re: NB16 - java.lang.RuntimeException: Uncompilable code

2023-01-18 Thread Eric Bresie
Are there any dependencies projects or libraries in use? Maybe they are built 
with a newer/older Java compiler which is not compatible (I.e. dependency 
compiled with newer version not in use with the older version being used).

Can you check the Java Platform to see what’s installed? Can also check 
Help…About to see some of the versions in use.

I believe NB16 does have a dependency on Java 11 in some contexts

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On January 17, 2023 at 3:12:57 PM CST, Gheorghe TUDOSE  (mailto:tudo@gmail.com)> wrote:
> Hi,
>
> I have the same issue; I can't run unit tests, nor can I run a command line 
> application testing my code.
> As per this SO post (https://stackoverflow.com/q/4386076), deactivating the 
> "Compile on Save" option makes the problem go away kinda - the command line 
> application runs but the tests don't (there's a "No tests executed." message 
> in the test output console).
>
> HTH
> George T.
>
> În vin., 16 dec. 2022 la 00:17 (x-apple-data-detectors://6), Sam Lalani 
> mailto:samlal...@yahoo.com.invalid)> a scris:
> > It is an Ant based project.
> >
> > -Original Message-
> > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > Sent: Thursday, December 15, 2022 2:22 PM
> > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> >
> > No, not a requirement. But there are some problems with Gradle (7.x) and NB 
> > 16
> >
> > So is it an Ant based project or is using Maven?
> >
> > Sam Lalani schrieb am 15.12.2022 um 18:01:
> > > No, I am not using Gradle. Is that a requirement for NB16?
> > >
> > > -Original Message-
> > > From: Thomas Kellerer mailto:sham...@gmx.net)>
> > > Sent: Thursday, December 15, 2022 8:45 AM
> > > To: users@netbeans.apache.org (mailto:users@netbeans.apache.org)
> > > Subject: Re: NB16 - java.lang.RuntimeException: Uncompilable code
> > >
> > > Are you using Gradle?
> > >
> > >
> > > Sam Lalani schrieb am 15.12.2022 um 15:21:
> > >> I am running NB16 in Windows 10. I have a Java program that is
> > >> giving this
> > >> error:
> > >>
> > >> Exception in thread "Thread-2" java.lang.RuntimeException:
> > >> Uncompilable code
> > >>
> > >> However, the same code in NB15 has no problems.
> > >>
> > >> This issue shows up only when I "Clean and Build" in NB16 "AND" run
> > >> it in NB16.
> > >>
> > >> If I "Clean and Build" in NB15 and run it in NB15 then no problem.
> > >> If I "Clean and Build" in NB15 and run it in NB16 then no problem.
> > >> If I "Clean and Build" in NB16 and run the program using the command
> > >> prompt then no problem.
> > >> If I "Clean and Build" in NB16 and run it in NB16 then it shows the 
> > >> error.
> > >>
> > >> The program is fairly large, and I don't think I can provide the
> > >> source code due to company policies.
> > >>
> > >> Here is some info about my system from the NB16 About page:
> > >>
> > >> Product Version: Apache NetBeans IDE 16
> > >> Java: 17; OpenJDK 64-Bit Server VM 17+35-2724
> > >> Runtime: OpenJDK Runtime Environment 17+35-2724
> > >> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> > >> User
> > >> directory: C:\Users\samla\AppData\Roaming\NetBeans\16
> > >> Cache directory: C:\Users\samla\AppData\Local\NetBeans\Cache\16
> > >>
> > >> What else can I provide that would make it easier to find the problem
> > >> in NB16?
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
> > --
> > This email has been checked for viruses by Avast antivirus software.
> > www.avast.com (http://www.avast.com)
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> > (mailto:users-unsubscr...@netbeans.apache.org)
> > For additional commands, e-mail: users-h...@netbeans.apache.org 
> > (mailto:users-h...@netbeans.apache.org)
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >


Re: From GlassFish to Tomcat

2023-01-18 Thread Claudia Pastor Ramirez
Hello Amn,

When you say that you want to do it in NetBeans I assume that you mean for
executing the project. If that is the case you need to do three things:

1 - To install the Tomcat server and configure it on NetBeans in the
Servers section, if you do not have it yet.
2 - Choose it as the target server in the project properties.
3 - Add to the project the libraries that Glassfish may provide as a full
stack Javax/Jakarta server, that Tomcat does not have. Which ones to add
would depend on your project necessities. I recommend you to start just
adding the Javax or Jakarta platform and then the rest as the errors start
cropping in execution, to avoid including anything unnecessary.

IMPORTANT: The version of Tomcat to use is affected by the version of the
EE Framework you are using. If you are still in JavaEE, you need to use a
Tomcat version older tan Tomcat10. Tomcat10 needs JakartaEE libraries to
work directly. You can adapt a JavaEE application using the Tomcat
migration tool, but that is an extra step that you need to do manually over
the generated war before deploying, so it is an added complication to a
quick testing environment.

I hope this helps you!


On Sat, 14 Jan 2023 at 16:49, Laszlo Kishalmi 
wrote:

> Open the project properties and on the Run card select Tomcat as server
> instead of Glassfish.
>
> On 1/14/23 06:27, Amn Ojee Uw wrote:
> > I have a small project that uses Glassfish server, however, I would
> > like to change the server to Tomcat; how do I do that in NetBeans 16.
> >
> > Any suggestions would be much, much appreciated.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> > For additional commands, e-mail: users-h...@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: [servlet]

2023-01-18 Thread Carl Mosca
Hi Peter,

Can you confirm that url please.  I am not seeing Java code there; only a
README and attribute file.

Regards,
Carl

On Tue, Jan 17, 2023 at 10:40 PM Peter Scharf 
wrote:

> Thank you for suggesting to put the project on Github.  I have now created
> a public repository at the following url:
>
> https://github.com/the-sanskrit-library/public.git
>
> The project is in the NetBeans directory.
> Yours,
> Peter
>
> **
> Peter M. Scharf, President
> The Sanskrit Library
> sch...@sanskritlibrary.org
> https://sanskritlibrary.org
> **
>
> On Jan 17, 2023, at 2:38 PM, Carl Mosca  wrote:
>
> Hello Peter,
>
> Is the project that you created somewhere (such as Github) such that folks
> could take a look at it?
>
> Regards,
> Carl
>
> On Mon, Jan 16, 2023 at 11:21 PM Peter Scharf 
> wrote:
>
>> I just installed NetBeans 16 on a MacBook Pro with an M chip:
>>
>> *Product Version:* Apache NetBeans IDE 16
>> *Java:* 19.0.1; OpenJDK 64-Bit Server VM 19.0.1
>> *Runtime:* OpenJDK Runtime Environment 19.0.1
>> *System:* Mac OS X version 13.0.1 running on aarch64; UTF-8; en_US (nb)
>>
>> I am trying to create a minimal servlet and war file to use with Tomcat
>>
>> apache-tomcat-10.0.23
>>
>> I worked through half of the demo How to create a webapp tutorial at:
>> https://www.youtube.com/watch?v=eP9oz6ZKUXM
>> which, however, uses NetBeans 12 and other older software than I have
>> installed.
>> I was able to do the first item successfully with minor adaptations:
>> 1. Create a Jave Web project with Maven
>> Got build error:
>>
>> https://stackoverflow.com/questions/66920567/error-injecting-org-apache-maven-plugin-war-warmojo
>> Went to: https://maven.apache.org/plugins/
>> Answer: manually configuring one of the recent war plug-ins in POM.xml
>> Changed 2.3 to 3.3.2
>> Then got the form.
>> I successfully created the Unit Conversion form which opens in Safari
>> (Version 16.1) in tomcat: http://localhost:8080/mavenproject3/
>>
>> But trying the second—third items:
>> 2. Create Java Servlet & JavaServer Page (JSP)
>> 3. Run Java Web App on Tomcat inside NetBeans
>>
>> I got stuck.
>> When I fill in a value in the miles box and click Convert to kilometers,
>> Safari gives me a
>> HTTP Status 404 – Not Found
>> Message The requested resource [/mavenproject3/convert] is not available
>> Description The origin server did not find a current representation for
>> the target resource or is not willing to disclose that one exists.
>>
>> After a couple of days trying to fix it, I’m still at a loss.
>> I did get rid of a problem not finding the native tomcat libraries:
>> INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
>> The Apache Tomcat Native library which allows using OpenSSL was not found
>> on the java.library.path: ...
>> by dowloading and installing The Apache Tomcat Native library
>> following instructions here:
>> https://formulae.brew.sh/formula/tomcat-native
>>
>> However, I still get the 404 not found in Safari.
>> Can anyone help me?
>>
>> I wonder whether these debugger messages indicate a problem using a
>> symbolic link to my real tomcat directory from /Library/Tomcat
>>
>> 16-Jan-2023 11:15:13.009 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dignore.endorsed.dirs=
>> 16-Jan-2023 11:15:13.010 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dcatalina.base=/Library/Tomcat
>> 16-Jan-2023 11:15:13.010 INFO [main]
>> org.apache.catalina.startup.VersionLoggerListener.log Command line
>> argument: -Dcatalina.home=/Library/Tomcat
>>
>> but the infos in the debugger do tell me that it is using the real
>> directories:
>> CATALINA_BASE: /usr/local/apache-tomcat-10.0.23
>> CATALINA_HOME: /usr/local/apache-tomcat-10.0.23
>>
>> I get the following debugger WARNING:
>> WARNING [http-nio-8080-exec-10]
>> org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute
>> with value [/mavenproject3] in deployment descriptor
>> [/usr/local/apache-tomcat-10.0.23/conf/Catalina/localhost/mavenproject3.xml]
>> has been ignored
>>
>> Trying to follow suggestions at:
>> https://stackoverflow.com/questions/11731377/servlet-returns-http-status-404-the-requested-resource-servlet-is-not-availa
>> I’m lost.  I can’t even figure out which versions of Servlet I’m using,
>> and the instructions to find out at.:
>> https://stackoverflow.com/questions/3913485/how-do-i-know-what-version-of-servlet-api-jar-i-have
>>
>> don’t provide enough context for me to know where to put the commands
>> suggested.
>>
>> ===
>> Can anyone help me either (a) work through this tutorial with current
>> versions of software, or (b) give me an example of how to create a servlet
>> or portable war file in NetBeans to use with Tomcat by copying it to its
>> webapps directory using current versions of NetBeans and other software?
>>
>> Thank you in advance.
>>