Re: [java] [tomcat] Is there a trick to deploying a web app to Tomcat?

2020-05-26 Thread Geertjan Wielenga
Can you try this scenario with 12.0 Beta 5? There has been a recent fix in
this area.

bit.ly/download-12-0-beta-5

Gj

On Wed, 27 May 2020 at 04:25, René Aravena  wrote:

> Hi, I had that problem with the apache-tomcat-9.0.35 (last) version, I
> went back to the apache-tomcat-9.0.30 and it worked ok, however I didn't
> have time to investigate what it was about.
> Maybe if you just need it to work the deployment this information will be
> useful.
>
> René Aravena
>
>
> El mar., 26 de may. de 2020 a la(s) 21:11, Matt Baron (
> mbaron.netbe...@fastmail.com) escribió:
>
>> Software: NetBeans 11.3, Tomcat 8.8.55.
>>
>> I have a simple, out of the box Maven web/servlet app that is effectively
>> a "Hello world" app.
>>
>> When I set it up to run in a Wildfly or GlassFish server it deploys and
>> runs fine, with no special configuration other than setting up the "Server"
>> in NetBeans.
>>
>> When I set it up to run in Tomcat, the entire deployment  (as in when I
>> hit the Run button) seems to hang.  It will start the Tomcat server, but
>> the war file is never copied anywhere in $CATALINA_HOME.  The NetBeans GUI
>> hourglasses, saying "Waiting for tomcat", despite the Catalina log saying
>> the server started just fine.
>>
>> If I manually copy the war file to $CATALINA_HOME/webapps, Tomcat will
>> automatically deploy the war file with no issues.
>>
>> Any ideas on how to get this to work?
>>
>>
>>
>>


Re: [java] [tomcat] Is there a trick to deploying a web app to Tomcat?

2020-05-26 Thread René Aravena
Hi, I had that problem with the apache-tomcat-9.0.35 (last) version, I went
back to the apache-tomcat-9.0.30 and it worked ok, however I didn't have
time to investigate what it was about.
Maybe if you just need it to work the deployment this information will be
useful.

René Aravena


El mar., 26 de may. de 2020 a la(s) 21:11, Matt Baron (
mbaron.netbe...@fastmail.com) escribió:

> Software: NetBeans 11.3, Tomcat 8.8.55.
>
> I have a simple, out of the box Maven web/servlet app that is effectively
> a "Hello world" app.
>
> When I set it up to run in a Wildfly or GlassFish server it deploys and
> runs fine, with no special configuration other than setting up the "Server"
> in NetBeans.
>
> When I set it up to run in Tomcat, the entire deployment  (as in when I
> hit the Run button) seems to hang.  It will start the Tomcat server, but
> the war file is never copied anywhere in $CATALINA_HOME.  The NetBeans GUI
> hourglasses, saying "Waiting for tomcat", despite the Catalina log saying
> the server started just fine.
>
> If I manually copy the war file to $CATALINA_HOME/webapps, Tomcat will
> automatically deploy the war file with no issues.
>
> Any ideas on how to get this to work?
>
>
>
>


Re: How do you setup JUnit with Maven?

2020-05-26 Thread Ty Young


On 5/21/20 11:49 AM, John Mc wrote:

What version of JUnit are you using?

If its JUnit 5, then you need to be running the Maven Surefire plugin 
> version 2.22


See 
https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html. 
Note this is referencing the latest version


Also JUnit has a sample project for JUnit 5 and maven: 
https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-maven



I'm getting an error with surefire 2.22.1:


Unsupported class file major version 59


So I guess I can't use jUnit with JDK 15?




Regards

John

On Thu, 21 May 2020 at 16:53, Ty Young > wrote:



On 5/21/20 10:07 AM, Luff,Chris wrote:
> No, nothing like that should be needed. Make sure your source
packages are mirrored in the test sources. Prefix your classes
with Test. Maven should run them fine.


To be clear, a test package must be 1:1 to be seen by Maven? For
example:


Source com.foo.bar


Test: com.foo.bar


?


And the tests class must be called "TestBar.java"?


>
>
>
>> On 21 May 2020, at 15:30, Ty Young mailto:youngty1...@gmail.com>> wrote:
>>
>> Hi,
>>
>>
>> Can anyone tell me how to setup Maven with Netbeans? I've tried
multiple times and the result is always the same: it tries to test
but doesn't seem to be able to find them and doesn't do anything.
>>
>>
>> I'm guessing I need to override the default package name JUnit
uses to look for classes to run, but I'm not sure where that is.
>>
>>
>>
-
>> 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://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7Cedddf29ac5ef4d6312d408d7fd93a0a5%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C637256682807874580&sdata=Z8J%2FjPHzPGi76mwCvCegEFOF3BcfPin2Npdg%2BPSML7A%3D&reserved=0
>>
>
>
> CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use
of such information is strictly prohibited and may be unlawful. If
you are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. Cerner Limited, Registered in England no 2519305,
Registered Office 37 North Wharf Road, London W2 1AF.

-
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



[java] [tomcat] Is there a trick to deploying a web app to Tomcat?

2020-05-26 Thread Matt Baron
Software: NetBeans 11.3, Tomcat 8.8.55.

I have a simple, out of the box Maven web/servlet app that is effectively a 
"Hello world" app. 

When I set it up to run in a Wildfly or GlassFish server it deploys and runs 
fine, with no special configuration other than setting up the "Server" in 
NetBeans.

When I set it up to run in Tomcat, the entire deployment (as in when I hit the 
Run button) seems to hang. It will start the Tomcat server, but the war file is 
never copied anywhere in $CATALINA_HOME. The NetBeans GUI hourglasses, saying 
"Waiting for tomcat", despite the Catalina log saying the server started just 
fine.

If I manually copy the war file to $CATALINA_HOME/webapps, Tomcat will 
automatically deploy the war file with no issues.

Any ideas on how to get this to work?




Re: What is GLib and GtkWidget?

2020-05-26 Thread Bayless Kirtley
Thanks to your suggestion Ty, I thin I have solved the problem. I 
changed one old project to Java 11 and it still seems to run all right 
and I don't get those errors. Apparently there is something missing or 
messed up in Open JDK 8. I suspect the remaning projects will also be 
all right with java 11 and will proceed along those lines.


Thanks Bayless


On 5/23/20 11:42 AM, Ty Young wrote:


On 5/13/20 9:03 AM, Bayless Kirtley wrote:
I'm still getting multiple error messages whenever I run a Java 
project under Netbeans 11.1 on Linux Mint 19.3, OpenJDK 8. These are 
samples of the messages.


(java:3065): GLib-GObject-WARNING **: 08:52:31.588: 
../../../../gobject/gsignal.c:1253: unable to lookup signal 
"window-state-event" of unloaded type 'GtkWidget'


(java:3065): GLib-GObject-CRITICAL **: 08:52:31.588: 
g_signal_add_emission_hook: assertion 'signal_id > 0' failed


(java:3065): GLib-GObject-WARNING **: 08:52:33.532: invalid cast from 
'GtkToplevelAccessible' to 'JawToplevel'


That last one repeats over and over. I have never knowingly used 
GLib, GtkWidget or JawTopLevel. What is going on here?


Bayless



TL;DR:


Swing/AWT/JavaFX aren't magically cross-platform: they have to do 
basic integration with each underlying platform's UI API. 
GLib/GTKGtkWidget are a dependency/component of GTK. GTK is the major 
Linux UI API used by various desktops and applications.



What seems to be happening here is that something broke in that 
integration layer(bindings), which allow Java to communicate with GTK, 
is broken somehow. What I don't understand is why it's only happening 
when running a project, Netbeans probably shouldn't be running either.



I wonder, did you install updates without rebooting? That tends to 
introduce issues like this.



Otherwise it might be Linux distros packaging something wrong, as 
others have suggested. Maybe try installing and using Java 11 instead?









-
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



-
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: Apache NetBeans 12.0 Beta 5

2020-05-26 Thread Don
I downloaded Beta 5 and unzipped it.  All seems well except on first 
run, the console showed:


WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by 
org.netbeans.swing.plaf.gtk.ThemeValue 
(jar:file:.../netbeans-12.0-beta5-bin/netbeans/platform/modules/org-netbeans-swing-plaf.jar!/) 
to method 
javax.swing.plaf.synth.SynthStyle.getColorForState(javax.swing.plaf.synth.SynthContext,javax.swing.plaf.synth.ColorType)


WARNING: Please consider reporting this to the maintainers of 
org.netbeans.swing.plaf.gtk.ThemeValue


WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations


WARNING: All illegal access operations will be denied in a future release

I would have noted it in the survey but it says it's closed.

Don

On 5/25/20 6:49 AM, Geertjan Wielenga wrote:

Hi all,

The 5th Beta for Apache NetBeans 12 is out. We hope it fixes the blocker.

Source and binaries are here:

https://builds.apache.org/view/M-R/view/NetBeans/job/netbeans-TLP/job/netbea
ns/job/release120/16/artifact/dist/netbeans/ 



binaries sha512
49be4866cac811c3eb1d435f2c0ac422e31aa705529def17c1610a3820f7728f694d7b1e06e9
6d25b8688b1bce48b86a47b61411f8dc25d9bf594f5cbb1eda57

source sha512
dbb531db3a9dc1368ea96d5e026ba6431219e995c4ca7146fbf3a2b423eecd52bd1178882e40
ec33417113e807c23272c2bc14a69746374efbaac6eb957f8412

Installer (not certified, no sha512):

https://builds.apache.org/view/M-R/view/NetBeans/job/netbeans-TLP/job/netbea
ns/job/release120/16/artifact/dist/installers/ 



What is included in Beta 5 that was not in Beta 4:

https://github.com/apache/netbeans/pull/2146

Do not forget the survey, please fill it in: 
https://forms.gle/k7JnPCSQh5MJUCzh8


Hopefully we'll send out the voting thread to release 12.0 this week.

Thanks,

Gj