Re: [platform] Settings dir for platform applications

2020-10-26 Thread Laszlo Kishalmi
I think most of the platform applications would do fine with the same 
userdir. At least I'm using netbeans-dev Snap for quite a while now 
which uses the same user directory for more than a year now through many 
NetBeans releases. it just runs fine, just make sure that you can read 
your old configs. On the platform side I'd not expect big changes, it is 
pretty stable for years.



On 10/25/20 5:09 AM, Patrik Karlström wrote:

The NetBeans IDE doesn't use old settings directories for later versions,
is it advised for a platform application to do the same?

Perhaps change it (the settings dir) every time one uses a new RELEASE 
of the platform?


I'm able to handle my own changes in the preferences, but I don't know 
what's going on in the NetBeans (Platform) settings.


How do you handle it in platform apps?

/Patrik


-
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: Stopping Tomcat

2020-10-26 Thread HRH


Mark, 
Likewise, I always try to installthe binaries and certainly avoid using space 
in directory names. Vis-a-visTomcat, I started that way, however, the 
localhost:8080 would not bring up theserver management GUI per documentation. 
Finally, coerced by frustration, Idecided to wipe out everything and use the 
installer instead. Now, that I havediscerned more about Tomcat, I am sure on 
the next official release, I willrevert to using the zipped binaries than the 
installer.

 

Thanks for sharing your heuristics.

 

 
   On Monday, October 26, 2020, 8:01:40 PM GMT+3:30, Mark Eggers 
 wrote:  
 
 HRH,

In general I don't recommend running Tomcat as a service on any platform 
when it's controlled by NetBeans.

1. On Windows

I create a directory (called Apache) somewhere where there's no spaces 
in the directory path. This is no longer strictly necessary, but it's 
nice to keep all the tools in one place.

I then download the zip archive of the Tomcat that I'm interested in.

I unzip it, and make the appropriate modifications in tomcat-users.xml. 
I edit the tomcat-users.xml file by hand.

I also put jars in %CATALINA_HOME%\lib, like the MySQL JDBC jar, 
activation jar (since I'm running on JDK 11 mostly), and mail jars. Add 
more (postgresql, sql), if you're running more services.

Finally, I point my NetBeans to this installation.

2. On Linux

See the above, use the tar.gz archive instead, and place the directory 
in an area under your user's control.

This has several advantages. I don't use a system account to control 
Tomcat. Starting and stopping can be done through NetBeans or the 
command line (nice when I have to switch to JDK 8 for legacy work). I 
can easily browse both the Tomcat logs and application logs.

Finally, I can configure multiple versions of Tomcat. I normally run 
only one development Tomcat at a time, so I don't bother changing the ports.

Right now I have one Tomcat for each of the major released versions 
(7.0, 8.5, 9.0), and an additional 8.5 version that is being tweaked to 
log via log4j2 and fluentd. Next on the list is Tomcat 10.

In short, I don't recommend running Tomcat as a service in a developer 
environment.

. . . just my two cents
/mde/
On 10/26/2020 8:51 AM, HRH wrote:
>  Connor,In my case, the Tomcat shutdown port was configured to 8005 by the 
>installer, however, I took your advise and set it to a different port. It's 
>working fine now.
> The user and password was setup properly by the installer, so I did not have 
> to change anything in the server.xml file. So it seems that the shutdown port 
> was the only culprit in my configuration.
> 
> Thanks for the helpful insight.
> 
> 
>      On Monday, October 26, 2020, 6:55:29 PM GMT+3:30, Connor Cook 
> wrote:
>  
>  Hi HRH,
> Below are two things I had to do to get Tomcat to be usable for me, though 
> this is in Netbeans 11.1 so the process may have changed.
> In order to get Tomcat to be stoppable and restartable by Netbeans, I needed 
> to set the shutdown port in Netbeans (right-click on Tomcat in the 'Services' 
> tab, click Properties, and the shutdown port is one of those properties) and 
> in Tomcat's server.xml (I was able to right-click on Tomcat in the 'Services' 
> tab and change the server.xml, I found the file in "C:\Program Files\Apache 
> Software Foundation\Tomcat 9.0\conf" if you need it).
> I also needed to set up a user for Tomcat with the manager-script permission 
> in tomcat-users.xml (for me that's in "C:\Program Files\Apache Software 
> Foundation\Tomcat 9.0\conf" like server.xml), and then set that user and 
> password in the properties for Tomcat in Netbeans.
> Hopefully that helps,
> Connor
> On Sat, Oct 24, 2020 at 8:55 AM HRH  wrote:
> 
>  There are a few issues that I am experiencing in regards to controlling the 
>Tomcat server from within the IDE:1- The Tomcat Server Log from 
>Services->Servers->Apache Tomcat or TomEE->View Server Logs doesn't show any 
>content from the log file in the output window.
> 2- The option to start the Tomcat server in debug mode is disabled and there 
> is no way I can activate this option.3- When I try to debug a servlet in the 
> IDE, the debug session hangs because it is waiting for the Tomcat server, 
> which is already up and running.
> I have removed and re-installed the Tomcat server a few times hoping for 
> better luck but these issues seem persistent. I have searched the web on 
> these issues and it seems they date back all the way to 2009.  I am 
> completely stuck. Any help would be great.
> Thanks
> 
>      On Saturday, October 24, 2020, 4:37:00 PM GMT+3:30, HRH 
> wrote:
>  
>  Hi,
> Using the Netbeans 12 on Windows 10. I have added Apache Tomcat 9.0.30 server 
> to the IDE, however, if I try to stop the server from 
> Services->Servers->Apache Tomcat->Stop, it just spins for a very long time, 
> until I close the IDE. Once the IDE starts back up if I try to restart the 
> server, it returns with "failed to stop the server"? Any 

Re: Stopping Tomcat

2020-10-26 Thread Mark Eggers

HRH,

In general I don't recommend running Tomcat as a service on any platform 
when it's controlled by NetBeans.


1. On Windows

I create a directory (called Apache) somewhere where there's no spaces 
in the directory path. This is no longer strictly necessary, but it's 
nice to keep all the tools in one place.


I then download the zip archive of the Tomcat that I'm interested in.

I unzip it, and make the appropriate modifications in tomcat-users.xml. 
I edit the tomcat-users.xml file by hand.


I also put jars in %CATALINA_HOME%\lib, like the MySQL JDBC jar, 
activation jar (since I'm running on JDK 11 mostly), and mail jars. Add 
more (postgresql, sql), if you're running more services.


Finally, I point my NetBeans to this installation.

2. On Linux

See the above, use the tar.gz archive instead, and place the directory 
in an area under your user's control.


This has several advantages. I don't use a system account to control 
Tomcat. Starting and stopping can be done through NetBeans or the 
command line (nice when I have to switch to JDK 8 for legacy work). I 
can easily browse both the Tomcat logs and application logs.


Finally, I can configure multiple versions of Tomcat. I normally run 
only one development Tomcat at a time, so I don't bother changing the ports.


Right now I have one Tomcat for each of the major released versions 
(7.0, 8.5, 9.0), and an additional 8.5 version that is being tweaked to 
log via log4j2 and fluentd. Next on the list is Tomcat 10.


In short, I don't recommend running Tomcat as a service in a developer 
environment.


. . . just my two cents
/mde/
On 10/26/2020 8:51 AM, HRH wrote:

  Connor,In my case, the Tomcat shutdown port was configured to 8005 by the 
installer, however, I took your advise and set it to a different port. It's 
working fine now.
The user and password was setup properly by the installer, so I did not have to 
change anything in the server.xml file. So it seems that the shutdown port was 
the only culprit in my configuration.

Thanks for the helpful insight.


 On Monday, October 26, 2020, 6:55:29 PM GMT+3:30, Connor Cook 
 wrote:
  
  Hi HRH,

Below are two things I had to do to get Tomcat to be usable for me, though this 
is in Netbeans 11.1 so the process may have changed.
In order to get Tomcat to be stoppable and restartable by Netbeans, I needed to set the 
shutdown port in Netbeans (right-click on Tomcat in the 'Services' tab, click Properties, 
and the shutdown port is one of those properties) and in Tomcat's server.xml (I was able 
to right-click on Tomcat in the 'Services' tab and change the server.xml, I found the 
file in "C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf" if you 
need it).
I also needed to set up a user for Tomcat with the manager-script permission in 
tomcat-users.xml (for me that's in "C:\Program Files\Apache Software 
Foundation\Tomcat 9.0\conf" like server.xml), and then set that user and password in 
the properties for Tomcat in Netbeans.
Hopefully that helps,
Connor
On Sat, Oct 24, 2020 at 8:55 AM HRH  wrote:

  There are a few issues that I am experiencing in regards to controlling the Tomcat 
server from within the IDE:1- The Tomcat Server Log from Services->Servers->Apache 
Tomcat or TomEE->View Server Logs doesn't show any content from the log file in the 
output window.
2- The option to start the Tomcat server in debug mode is disabled and there is 
no way I can activate this option.3- When I try to debug a servlet in the IDE, 
the debug session hangs because it is waiting for the Tomcat server, which is 
already up and running.
I have removed and re-installed the Tomcat server a few times hoping for better 
luck but these issues seem persistent. I have searched the web on these issues 
and it seems they date back all the way to 2009.  I am completely stuck. Any 
help would be great.
Thanks

 On Saturday, October 24, 2020, 4:37:00 PM GMT+3:30, HRH 
 wrote:
  
  Hi,

Using the Netbeans 12 on Windows 10. I have added Apache Tomcat 9.0.30 server to the IDE, however, 
if I try to stop the server from Services->Servers->Apache Tomcat->Stop, it just spins 
for a very long time, until I close the IDE. Once the IDE starts back up if I try to restart the 
server, it returns with "failed to stop the server"? Any idea how to stop and restart 
Tomcat server?
Thanks


   





OpenPGP_0x41466EC60D793C2D.asc
Description: application/pgp-keys


OpenPGP_signature
Description: OpenPGP digital signature


Re: Stopping Tomcat

2020-10-26 Thread HRH
 Connor,In my case, the Tomcat shutdown port was configured to 8005 by the 
installer, however, I took your advise and set it to a different port. It's 
working fine now.
The user and password was setup properly by the installer, so I did not have to 
change anything in the server.xml file. So it seems that the shutdown port was 
the only culprit in my configuration.

Thanks for the helpful insight.


On Monday, October 26, 2020, 6:55:29 PM GMT+3:30, Connor Cook 
 wrote:  
 
 Hi HRH,
Below are two things I had to do to get Tomcat to be usable for me, though this 
is in Netbeans 11.1 so the process may have changed.
In order to get Tomcat to be stoppable and restartable by Netbeans, I needed to 
set the shutdown port in Netbeans (right-click on Tomcat in the 'Services' tab, 
click Properties, and the shutdown port is one of those properties) and in 
Tomcat's server.xml (I was able to right-click on Tomcat in the 'Services' tab 
and change the server.xml, I found the file in "C:\Program Files\Apache 
Software Foundation\Tomcat 9.0\conf" if you need it).
I also needed to set up a user for Tomcat with the manager-script permission in 
tomcat-users.xml (for me that's in "C:\Program Files\Apache Software 
Foundation\Tomcat 9.0\conf" like server.xml), and then set that user and 
password in the properties for Tomcat in Netbeans.
Hopefully that helps,
Connor
On Sat, Oct 24, 2020 at 8:55 AM HRH  wrote:

 There are a few issues that I am experiencing in regards to controlling the 
Tomcat server from within the IDE:1- The Tomcat Server Log from 
Services->Servers->Apache Tomcat or TomEE->View Server Logs doesn't show any 
content from the log file in the output window.
2- The option to start the Tomcat server in debug mode is disabled and there is 
no way I can activate this option.3- When I try to debug a servlet in the IDE, 
the debug session hangs because it is waiting for the Tomcat server, which is 
already up and running.
I have removed and re-installed the Tomcat server a few times hoping for better 
luck but these issues seem persistent. I have searched the web on these issues 
and it seems they date back all the way to 2009.  I am completely stuck. Any 
help would be great.
Thanks

On Saturday, October 24, 2020, 4:37:00 PM GMT+3:30, HRH 
 wrote:  
 
 Hi,
Using the Netbeans 12 on Windows 10. I have added Apache Tomcat 9.0.30 server 
to the IDE, however, if I try to stop the server from Services->Servers->Apache 
Tomcat->Stop, it just spins for a very long time, until I close the IDE. Once 
the IDE starts back up if I try to restart the server, it returns with "failed 
to stop the server"? Any idea how to stop and restart Tomcat server?
Thanks


  

RE: Problem with netbeans flagging list with red underline

2020-10-26 Thread Nelligan, Steven M

Found that if I restore the default .m2 location,  the source validates 
correctly (no red lines).

How do I configure Netbeans to use the redirected .m2 folder for the source 
scan?

From: Nelligan, Steven M 
Sent: Saturday, October 24, 2020 11:06 AM
To: NetBeans Mailing List 
Subject: Problem with netbeans flagging list with red underline


Not sure if this is a Maven or a NetBeans issue/feature/problem.

I am running Netebeans 12.0, java 8, and Maven version 3.6.3.

If I clear the Cache the project shows up with no red underlines.

If I run with no Maven “Global Execution Options” I can build a project with 
Clean and Build.
It builds correctly, and the source does not show any red underlines.

If I add the following to “Global Execution Options”:  -gs 
C:\dev\Projects-java8\.m2\settings.xml -s 
C:\dev\Projects-java8\.m2\settings.xml,
Copy the default .m2 folder to the new location, change the setting.xml file in 
the new location as needed and rename the default .m2 folder to save_m2

The build works, but then the red under lines show up in the Netbeans project.
Just a NOTE, a new .m2 folder does not show up in the default location.  I’m 
assuming the above settings are working.

We are upgrading our projects from Java 7 to Java 8 and want to be able to run 
multiple instances of Netbeans without either touching  or accessing the 
other’s data.

Any suggestions or assistance would be appreciated,
Steven M Nelligan
APPLICATION DEVELOPER

Facilities and Services
Information Technology Services
University of Illinois at Urbana-Champaign
Facilities and Services
1501 S. Oak Street | M/C 800
Champaign, IL 61820
217.244.8097 | other: 217.244.8097 | 
snell...@illinois.edu
www.fs.illinois.edu

[facebook]
[twitter]  [instagram] 
 [youtube] 


[https://webtools.illinois.edu/webservices/js/ds/signature_logo.png]

Under the Illinois Freedom of Information Act any written communication to or 
from university employees regarding university business is a public record and 
may be subject to public disclosure.



Re: Stopping Tomcat

2020-10-26 Thread Connor Cook
Hi HRH,

Below are two things I had to do to get Tomcat to be usable for me, though
this is in Netbeans 11.1 so the process may have changed.

In order to get Tomcat to be stoppable and restartable by Netbeans, I
needed to set the shutdown port in Netbeans (right-click on Tomcat in the
'Services' tab, click Properties, and the shutdown port is one of those
properties) and in Tomcat's server.xml (I was able to right-click on Tomcat
in the 'Services' tab and change the server.xml, I found the file in
"C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf" if you need
it).

I also needed to set up a user for Tomcat with the manager-script
permission in tomcat-users.xml (for me that's in "C:\Program Files\Apache
Software Foundation\Tomcat 9.0\conf" like server.xml), and then set that
user and password in the properties for Tomcat in Netbeans.

Hopefully that helps,

Connor

On Sat, Oct 24, 2020 at 8:55 AM HRH  wrote:

> There are a few issues that I am experiencing in regards to controlling
> the Tomcat server from within the IDE:
> 1- The Tomcat Server Log from Services->Servers->Apache Tomcat or
> TomEE->View Server Logs doesn't show any content from the log file in the
> output window.
> 2- The option to start the Tomcat server in debug mode is disabled and
> there is no way I can activate this option.
> 3- When I try to debug a servlet in the IDE, the debug session hangs
> because it is waiting for the Tomcat server, which is already up and
> running.
>
> I have removed and re-installed the Tomcat server a few times hoping for
> better luck but these issues seem persistent. I have searched the web on
> these issues and it seems they date back all the way to 2009.  I am
> completely stuck. Any help would be great.
>
> Thanks
>
>
> On Saturday, October 24, 2020, 4:37:00 PM GMT+3:30, HRH
>  wrote:
>
>
> Hi,
>
> Using the Netbeans 12 on Windows 10. I have added Apache Tomcat 9.0.30
> server to the IDE, however, if I try to stop the server from
> Services->Servers->Apache Tomcat->Stop, it just spins for a very long time,
> until I close the IDE. Once the IDE starts back up if I try to restart the
> server, it returns with "failed to stop the server"? Any idea how to stop
> and restart Tomcat server?
>
> Thanks
>