开发者

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.

However, when I t开发者_如何学Gory 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. 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. Is there a way to change this, so netbeans opens the browser with port 8081?

  2. Why when I run the web application why is https being used instead of http? When https is being used its not finding the index.jsp page...

Thanks for any help!


Go to the "Services" tab, under "Servers" find the item that represents your Glassfish instance. Right-click on it, select "Properties". Change the location field to "localhost:8081".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜