Reputation: 4906
this might sound like a stupid question, but i want to clarify a concept:
using netbeans 6.9, ive successfully completed a web application project using a glassfish container (locally). when i run the project, everything works well, except it runs on http://localhost:11494/myApp/
. should'nt the accessing task be on http://localhost:8080/myApp/
? when i type http://localhost:8080/myApp/
, it doesnt connect to localhost.. neither does http://localhost:4848
to access the admin console. why is this? i think my concepts on deployment are not that thorough. i didn't manually deploy anything.. thanks in advance!
EDIT: right now, the university module im taking has lecture notes which specify manual deployment. id rather let netbeans handle deployment. perhaps this is the cause of the difference in port numbers?
Upvotes: 4
Views: 39436
Reputation: 121
I think port number 8080 is not assigned to your application, you can assign 8080 to listen to your application by making changes into server.xml, file all you need to do is add a connector or modify the connector entry to listen to 8080 instead of 11494...!!
Upvotes: 1
Reputation: 3271
All of your settings are in the domain.xml so you can look in there. However, the port (8262) your showing in your connection tab should be your admin console, so you can view the settings in there as well.
Upvotes: 2
Reputation: 21300
I think port 8080 is occupied by another process, therefore Glassfish decide to use another port..
Upvotes: 0
Reputation: 21924
When you run the project, do you launch the server from within Netbeans? If so, I'd check there first. If you run from the command line, it has to be a GlassFish configuration issue.
If I got desperate, I'd grep my machine for "11494"!
Remember, the solution should be as simple as possible, but no simpler! ;-)
Upvotes: 0