Problem with localhost 4848, 8080

this may seem like a silly question, but I want to clarify the concept: using netbeans 6.9, ive successfully completed the web application project using a glass fish container (locally). when I run the project, everything works well, except that it works on http://localhost:11494/myApp/ . should the access task be on http://localhost:8080/myApp/ ? when I type http://localhost:8080/myApp/ it does not connect to localhost .. and does not have access to the admin console http://localhost:4848 . Why is this? I think my deployment concepts are not so thorough. I didn’t use anything manually .. thanks in advance!

EDIT:. Currently, im university module is accepting lecture notes that indicate manual deployment. An identifier would rather allow netbeans to handle the deployment. perhaps this is the reason for the difference in port numbers?

+4
source share
4 answers

All your settings are in domain.xml so you can look there. However, the port (8262) displayed on the connection tab should be your admin console, so you can also view the settings there.

+2
source

I think that the port number 8080 is not assigned to your application, you can assign 8080 to listen to your application by making changes to the server.xml file, and all you need to do is add a connector or change the connector entry to listen to 8080 instead of 11494 ... !!

+1
source

When you start a project, do you start a server from Netbeans? If so, I would check there first. If you run from the command line, this should be a GlassFish configuration problem.

If I despaired, I would start my car for "11494"!

Remember that the solution should be as simple as possible, but not easier !; -)

0
source

I think port 8080 is busy with another process, so Glassfish decided to use a different port.

0
source

Source: https://habr.com/ru/post/1334389/


All Articles