Change default port 8080

34 views
Skip to first unread message

Tobias Daub

unread,
Mar 15, 2009, 3:37:29 PM3/15/09
to lif...@googlegroups.com
Hi Folks,

Does anybody know how I can change the default port 8080?

thanks!
Tobias

TylerWeir

unread,
Mar 15, 2009, 11:30:38 PM3/15/09
to Lift
mvn -Djetty.port=9999 jetty:run

A google search would tell you this as well.

Charles F. Munat

unread,
Mar 16, 2009, 12:16:36 AM3/16/09
to lif...@googlegroups.com
But if you want to change it permanently, you do it in the POM file (for
the dev version that runs via Maven):

<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>5</scanIntervalSeconds>
<connectors>
<connector implementation="org... Connector">

<port>9999</port>

<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>
</plugins>
</build>

If you're running Jetty on the production server, you do it in the
etc/jetty.xml file:

<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="host"><SystemProperty name="jetty.host" /></Set>

<Set name="port">
<SystemProperty name="jetty.port" default="9999"/>
</Set>

<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">5000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
</New>
</Arg>
</Call>

Hope that helps.

Chas.

Tobias Daub

unread,
Mar 16, 2009, 2:48:36 AM3/16/09
to lif...@googlegroups.com
A google search didnt't helped....................thanks anyway!

David Pollak

unread,
Mar 16, 2009, 10:25:51 AM3/16/09
to lif...@googlegroups.com
On Sun, Mar 15, 2009 at 11:48 PM, Tobias Daub <hannes...@gmx.li> wrote:

A google search didnt't helped....................thanks anyway!

Please feel encouraged to post questions like this to this group.

We're here to help and the knowledge base grows.  You're only obligation is to help out other people when they have questions that you know the answer to. :-)
 


> mvn -Djetty.port=9999 jetty:run
>
> A google search would tell you this as well.
>
> On Mar 15, 2:37 pm, Tobias Daub <hannes.flo...@gmx.li> wrote:
>
>> Hi Folks,
>>
>> Does anybody know how I can change the default port 8080?
>>
>> thanks!
>> Tobias
>>
> >
>






--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Reply all
Reply to author
Forward
0 new messages