简体   繁体   English

Netbeans中的Java EE 6 Maven项目设置-一些配置问题?

[英]Java EE 6 Maven Project Setup in Netbeans - some configuration issues?

I've been trying to set up a Java EE 6 Maven project via New Project -> Maven -> Maven Enterprise Application. 我一直在尝试通过New Project-> Maven-> Maven Enterprise Application建立Java EE 6 Maven项目。

However, when I try to run the application I've been running into a couple problems: 但是,当我尝试运行该应用程序时,遇到了一些问题:

  1. I had to change the the http port that Glassfish listens on because the port it chose (8080) was already used. 我必须更改Glassfish侦听的http端口,因为它选择的端口(8080)已被使用。 I went into the domain.xml file and changed the port to 8081. But when I try and run the application, netbeans is opening the browser with port 8080 still. 我进入domain.xml文件,并将端口更改为8081。但是,当我尝试运行该应用程序时,netbeans仍然使用8080端口打开浏览器。 Is there a way to change this, so netbeans opens the browser with port 8081? 有没有办法更改此设置,以便netbeans使用端口8081打开浏览器?

  2. Why when I run the web application why is https being used instead of http? 为什么当我运行Web应用程序时为什么使用https而不是http? When https is being used its not finding the index.jsp page... 当使用https时,找不到index.jsp页面...

Thanks for any help! 谢谢你的帮助!

Go to the "Services" tab, under "Servers" find the item that represents your Glassfish instance. 转到“服务”选项卡,在“服务器”下找到代表您的Glassfish实例的项目。 Right-click on it, select "Properties". 右键单击它,选择“属性”。 Change the location field to "localhost:8081". 将位置字段更改为“ localhost:8081”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM