无法将Glassfish服务器添加到Netbeans IDE 14

发布于 2025-02-11 04:45:58 字数 7356 浏览 1 评论 0 原文

作为标题,我无法将Glassfish服务器添加到NetBeans IDE 14中。我按了“添加服务器...”菜单条目,然后在“选择服务器”屏幕上选择“ GlassFish Server”。然后,显示“不是有效的Glassfish服务器安装”。我可以单击“下一个”按钮,但屏幕不继续。有人知道如何解决吗?谢谢。

版本

Java版本

Java版本 Java类版本 Java EE版本 Glassfish Fish Fish 17 Fish Tomcat
(Java SE 17) 10(雅加达EE 10)
13 57
12 56
11(Java SE 11) 55 10(Jakarta EE 10)
11(Java SE 11) 55 9.1(Jakarta EE 9.1) 6.1
9 53
8(Java SE 8 ) 52 9.1(Jakarta EE 9.1) 6.1
8(Java SE 8) 52 9(Jakarta EE 9)(Jakarta EE 9) 6
8(Java SE 8(Java SE 8) 52 8(Jakarta EE 8) 5
8(Java SE 8) 52 8(Java EE 8) 5
7(Java SE 7) 7(Java EE 7) 4
6(Java SE 6) 6(Java EE 6) 3
5(Java SE 5) 5(Java EE 5)
4(J2SE 1.4) 4(J2EE 1.4)
3(J2SE 1.3) 3(J2EE 1.3)
2(J2SE 1.2) 2(J2EE 1.2)

研究工作

奖励阅读

java

在netbeans中:

所以我右键单击项目,然后单击解决缺少服务器问题...

预设我的对话告诉我,告诉我该对话我需要添加合适的服务器实例(无论服务器是什么,什么实例):

”在此处输入图像说明”

所以我单击 添加服务器,i i' m显示了一个对话框,我可以选择服务器:

https://i.sstatic.net/jnnyp.png“ alt =”在此处输入图像说明“>

我选择 glassfish ,然后单击 next ,我向我展示了一个对话框,可以选择下载玻璃鱼:

“在此处输入图像说明”

所以我检查我已经阅读并接受了许可协议...(单击),然后单击立即下载... 。它继续下载内容:

”在此处输入图像描述”

然后告诉我 “不是有效的Glassfish服务器安装”

因此,我注意到选择要下载的服务器的下拉下拉:,所以我尝试从顶部“ Glassfish Server 6.1”

和重新检查我已经阅读并接受了许可协议...(单击)*复选框,然后单击立即下载*,但没有发生:

< a href =“ https://i.sstatic.net/wn2mu.png” rel =“ nofollow noreferrer”>

所以我单击 back ,然后确保仍然选择 Glassfish Server ,然后单击 Next

现在NetBeans只是说不是有效的Glassfish服务器安装。

“在此处输入图像说明”

,所以我再次单击下一个,并警告消息消失了,但是向导不会移动到下一页:

​代码>来自我的计算机的文件夹:

”在此处输入图像描述”

然后我重新发布NetBeans,然后重复您在上面看到的过程。

然后,我创建了一个新的Stackoverflow问题,并重复了您在上面看到的步骤。

As the title, I cannot add the Glassfish server to NetBeans IDE 14. I pressed the "Add Server..." menu entry, then on the "Choose Server" screen I selected "GlassFish Server". Then, "Not a valid GlassFish Server installation" is shown. I can click the "next" button but the screen does not move on. Anyone know how to fix it? Thank you.

Versions

enter image description here

Java versions

Java version Java class version Java EE Version Glassfish TomEE Tomcat
17 (Java SE 17) 10 (Jakarta EE 10)
13 57
12 56
11 (Java SE 11) 55 10 (Jakarta EE 10)
11 (Java SE 11) 55 9.1 (Jakarta EE 9.1) 6.1
9 53
8 (Java SE 8) 52 9.1 (Jakarta EE 9.1) 6.1
8 (Java SE 8) 52 9 (Jakarta EE 9) 6
8 (Java SE 8) 52 8 (Jakarta EE 8) 5
8 (Java SE 8) 52 8 (Java EE 8) 5
7 (Java SE 7) 7 (Java EE 7) 4
6 (Java SE 6) 6 (Java EE 6) 3
5 (Java SE 5) 5 (Java EE 5)
4 (J2SE 1.4) 4 (J2EE 1.4)
3 (J2SE 1.3) 3 (J2EE 1.3)
2 (J2SE 1.2) 2 (J2EE 1.2)

Research Effort

Bonus Reading

Steps to Reproduce the Problem

Open the project in NetBeans:

enter image description here

So i right-click the project and click Resolve Missing Server Problem...:

enter image description here

Which presets a dialog telling me that i need to add a suitable server instance (whatever servers are, and whatever instances are):

enter image description here

So i click Add Server, where i'm presented with a dialog where i can Choose a server:

enter image description here

I select Glassfish, and click Next, where i'm presented with a dialog where i can choose to download Glassfish:

enter image description here

So i check I have read and accept the license agreement...(click), and click Download Now.... It proceeds to download stuff:

enter image description here

And then it tells me "Not a valid GlassFish server installation":

enter image description here

So i notice a drop-down of Choose server to download:, so i try selecting the 2nd one from the top "GlassFish Server 6.1":

enter image description here

and the re-check the I have read and accept the license agreement...(click)* checkbox, and click Download Now*, but nothing happens:

enter image description here

So i click Back, and then ensure that GlassFish Server is still selected, and click Next:

enter image description here

And now NetBeans simply says Not a valid GlassFish server installation.:

enter image description here

And so i click Next again, and the warning message disappears, but the wizard does not move to the next page:

enter image description here

So i close NetBeans, and delete the C:\Users\Ian\GlassFish_Server folder from my computer:

enter image description here

I then re-launch NetBeans, and repeat the process you see above.

I then created a new Stackoverflow question, and repeated the steps you see above.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

再见回来 2025-02-18 04:45:58

添加玻璃鱼的遵循的步骤看起来正确,但您的环境无效。

首先,您的帮助&gt;大约屏幕截图显示您正在使用不支持的JDK 1.8.0_332运行NetBeans 14。 netbeans 14 的发行说明:

The Apache NetBeans 14 binary releases require JDK 11+, and officially support running on JDK 11 and JDK 17.

来自 6.1.0的发布文档中

GlassFish 6.1 will require JDK 11 as a minimum version.

://projects.eclipse.org/projects/ee4j.glassfish/releases/6.1.0“ rel =“ nofollow noreferrer”>从玻璃鱼 Netbeans 14上的6.1.0是JDK 11和JDK 17。

对于我的Netbeans 14安装,我编辑了 netbeans.conf 使用JDK 11( NetBeans_jdkhome =” C:/java/jdk-11.0。 12“ 在我的情况下),然后重新启动Netbeans,下载并安装了Glassfish 6.1.0,没有任何问题。仅供参考,这是Glassfish服务器的属性屏幕看起来像:

“

,这是在端口8080上连接到localhost时显示的屏幕:

注释:

  • 尽管与您的问题没有直接相关,但我注意到 http:// localHost:http:// localhost,在查看Glassfish Admin Console时(右键单击服务器节点,然后选择 view> view dive domain admin console 我只得到一个空白屏幕。
  • 不幸的是,由于不支持Netbeans,Netbeans甚至在JDK 1.8上运行。如果Netbeans拒绝从“使用JDK 1.8”之类的错误消息开始。不允许使用JDK 11或更高。”
  • 确保删除任何目录在您在JDK 11或JDK 17下重新安装玻璃鱼之前未能成功安装玻璃鱼的尝试中创建。

The steps you followed to add GlassFish look correct, but your environment is invalid.

First, your Help > About screen shot shows that you are running NetBeans 14 using JDK 1.8.0_332, which is unsupported. From the Release Notes for NetBeans 14:

The Apache NetBeans 14 binary releases require JDK 11+, and officially support running on JDK 11 and JDK 17.

Second, from the release documentation for GlassFish 6.1.0:

GlassFish 6.1 will require JDK 11 as a minimum version.

So the only supported platforms when running Glassfish 6.1.0 on NetBeans 14 are JDK 11 and JDK 17.

For my NetBeans 14 installation I edited netbeans.conf to use JDK 11 (netbeans_jdkhome="C:/Java/jdk-11.0.12" in my case), and then restarted NetBeans and downloaded and installed GlassFish 6.1.0 without any problems. FYI, this is what the Properties screen for the GlassFish server looked like:

GlassFish properties

And this is the screen shown when connecting to localhost on port 8080:

localhost:8080

Notes:

  • Though not directly related to your question, I noticed that when viewing the GlassFish admin console (right click the server node and select View Domain Admin Console) on http://localhost:4848/ I just get a blank screen.
  • It's unfortunate that NetBeans even runs on JDK 1.8 since it is not supported. It would be much more helpful to developers if NetBeans refused to start with an error message such as "JDK 1.8 being used. This is not allowed. Use JDK 11 or greater."
  • Be sure to delete any directories created during your unsuccessful attempts to install GlassFish before reinstalling under JDK 11 or JDK 17.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文