How to change AJP13 port

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change AJP13 port

Xu, Lei-Ming (TSG-GDCC-SH)
 
Hi All,
I want to install Hudson 1.261 into my windows server with single server mode.
I mean use Winstone Servlet Engine not any servlet container.
but I have installed JBoss in this server.
I got below error message.
How to deal with it?
 
[Winstone 2008/11/13 15:00:34] - HTTP Listener started: port=9091
[Winstone 2008/11/13 15:00:34] - Error during AJP13 listener init or shutdown
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at winstone.ajp13.Ajp13Listener.run(Ajp13Listener.java:98)
        at java.lang.Thread.run(Unknown Source)
 
 
 
Reply | Threaded
Open this post in threaded view
|

Re: How to change AJP13 port

Scott Tatum-2
If you're running it with winstone, you can pass in the --ajp13Port
parameter, like this:

java -jar hudson.war --ajp13Port=8010

Also, if you have installed it as a windows service, look for
hudson.xml in your hudson home dir. In there, find the arguments
element (you should see httpPort there). You can add
--ajp13Port=your-new-port to that element and it will get picked up
the next time you start the service. You can also set it to -1 to
disable it entirely. I assume you'd only want it enabled if you plan
on hooking up to a web server like apache.

For all options available when running with winstone, run:

java -jar hudson.war --help

-Scott

On Thu, Nov 13, 2008 at 8:23 PM, Xu, Lei-Ming (TSG-GDCC-SH)
<[hidden email]> wrote:

>
> Hi All,
> I want to install Hudson 1.261 into my windows server with single server
> mode.
> I mean use Winstone Servlet Engine not any servlet container.
> but I have installed JBoss in this server.
> I got below error message.
> How to deal with it?
>
> [Winstone 2008/11/13 15:00:34] - HTTP Listener started: port=9091
> [Winstone 2008/11/13 15:00:34] - Error during AJP13 listener init or
> shutdown
> java.net.BindException: Address already in use: JVM_Bind
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(Unknown Source)
>         at java.net.ServerSocket.bind(Unknown Source)
>         at java.net.ServerSocket.<init>(Unknown Source)
>         at java.net.ServerSocket.<init>(Unknown Source)
>         at winstone.ajp13.Ajp13Listener.run(Ajp13Listener.java:98)
>         at java.lang.Thread.run(Unknown Source)
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]