awesome!

On 12.06.24 03:09, Eirik Bakke wrote:
That worked--thank you, Michael!

-- Eirik

-----Original Message-----
From: Michael Bien <mbie...@gmail.com>
Sent: Monday, June 10, 2024 10:58 PM
To: dev@netbeans.apache.org; Eirik Bakke <eba...@ultorg.com>
Subject: Re: WildFly error when building an old NetBeans version

Hi Eirik,

i can reproduce this using JDK 8 while trying to build NB 12.1.
   "premature end of file... at 1:1" while trying to download 
http://www.jboss.org/schema/jbossas/web-app_3_0.xsd might indicate that the client was 
configured to not follow redirects and is now failing due to the fact that everything is 
using https today.

applying this commit should fix it:
https://github.com/apache/netbeans/commit/9da2c94a5d1cfe2b19a3dac345be1724cc933f63

it will skip the download completely and load the xsds from the local repo.

best regards,
michael


On 10.06.24 21:19, Eirik Bakke wrote:
Hi, NetBeans devs!

While trying to reproduce an old bug [1], I found myself needing to build 
NetBeans 12.1, which was released 4 years ago.

When running "ant" on NetBeans 12.1 with OpenJDK 8 on WSL Ubuntu, I get the 
following error once the build gets to the enterprise/javaee.wildfly module:

========================================================
-do-compile:
[nb-javac] Compiling 134 source files to
/home/ebakke/nbwsl/netbeans/enterprise/javaee.wildfly/build/classes
[nb-javac] [Fatal Error] web-app_3_0.xsd:1:1: Premature end of file.
[nb-javac] [Fatal Error] web-app_3_0.xsd:1:1: Premature end of file.
[nb-javac] [Fatal Error] web-app_4_0.xsd:1:1: Premature end of file.
[nb-javac] [Fatal Error] web-app_4_0.xsd:1:1: Premature end of file.
[nb-javac]
/home/ebakke/nbwsl/netbeans/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/config/WarDeploymentConfiguration.java:38:
 error: cannot find symbol [nb-javac] import 
org.netbeans.modules.javaee.wildfly.config.gen.EjbRefType;
[nb-javac]                                                      ^
[nb-javac]   symbol:   class EjbRefType
[nb-javac]   location: package org.netbeans.modules.javaee.wildfly.config.gen
(...more errors...)
========================================================

Does anyone know what might cause this, and how to fix it?

-- Eirik

[1] https://issues.apache.org/jira/browse/NETBEANS-4754 , which I am trying to 
reproduce in order to see if it will be fixed by PR 
https://github.com/apache/netbeans/pull/652 .




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

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



Reply via email to