Question

I've been trying to set up a Java EE 6 Maven project via New Project -> Maven -> Maven Enterprise Application.

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. 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!

Was it helpful?

Solution

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".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top