Web applications starts on port 8080, where can I change it?

前端 未结 5 1170
感情败类
感情败类 2021-01-15 13:02

I have Netbeans IDE version 6.8, and Glassfish version 3. My glassfish listener is set to port 81, but when I try to run the simplest web application via the Netbenas IDE it

5条回答
  •  醉酒成梦
    2021-01-15 13:24

    I'm a bit late, too, but I'll add my comments just-the-same in case anyone runs across this issue in the future. I'm running Windows 7 with NetBeans 6.9.1 and GlassFish 3 locally on a different port (2118) as not to conflict with my Tomcat server on default (8080). If you navigate to /.netbeans//config/GlassFishEE6/Instances, you'll find your .nbattrs file.

    Edit to reflect the desired port. Save the file. Restart your server and you should be able to deploy/test your web apps, as desired, using NetBeans.

    Incidentally, poking around under /.netbeans//config/J2EE/InstalledServers, you'll see another .nbattrs file and because I have two app servers installed locally, I see for Tomcat and for GlassFish. XML entries and reflect the respective assigned ports for each server and the change made in the previous .nbattrs file.

    Hope this helps.

提交回复
热议问题