Page 1 of 1

port already used by Tomcat

Posted: Mon Mar 10, 2014 10:23 am
by gowthamgutha
I have Tomcat installed on port 8080 and now my eclipse broadleaf site is trying to execute in the same framework. Some times, i see it executed but some times not.

I would like to know how could I change the port for my broadleaf site? Thanks in advance.

Re: port already used by Tomcat

Posted: Sun Mar 23, 2014 7:05 pm
by phillipuniverse
Look at pom.xml in the 'site' project. At the top is are 2 variables:

Code: Select all

    <properties>
        <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <!-- httpsPort and httpPort are used by embeded jetty server.-->
        <httpsPort>8443</httpsPort>
        <httpPort>8080</httpPort>
    </properties>


Change those and you should be good. You might also have to modify the values in applicationContext-security.xml to set up the correct port mapping for SSL. Also note that the admin uses 8081 and 8444 so you'll run into another collision if you try to use that.