Project

General

Profile

Using different port than 8080

NW NE
Added about 5 years ago

Hi,

i have installed the latest tigase 5.2.0 server, but i get following error: WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use.

I have tomcat running on port 8080. Is there a way to tell to tigase to use different port than 8080?

Thanks for any help!

nwne


Replies (4)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 5 years ago

This error message is not generated by Tigase. It comes from Jetty which is sometimes installed and run with Tigase. Could you please show me your Tigase configuration file and tell me how you installed Tigase XMPP Server?

Added by NW NE about 5 years ago

Hi,

init.properties


--comp-class-1 = tigase.muc.MUCComponent

--virt-hosts = assister.devassister.co

--user-db-uri = jdbc:postgresql://localhost/tigasedb?user=tigase&password=xxxxxxxxx

--user-db = pgsql

--admins = admin@assister.devassister.co

--comp-name-6 = message-archive

--comp-name-5 = rest

--comp-name-4 = stun

--comp-name-3 = proxy

config-type = --gen-config-all

--comp-name-2 = pubsub

--comp-name-1 = muc

--cluster-mode = true

--sm-plugins = +message-archive-xep-0136,+presence,-zlib

--comp-class-6 = tigase.archive.MessageArchiveComponent

--debug = server,xmpp.impl,db

--comp-class-5 = tigase.http.rest.RestMessageReceiver

--comp-class-4 = tigase.stun.StunComponent

--comp-class-3 = tigase.socks5.Socks5ProxyComponent

--comp-class-2 = tigase.pubsub.PubSubComponent

tigase.config


#osgiEnabled=(true|false)

#osgiEnabled=false

OSGI=false

ENC="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"

DRV="-Djdbc.drivers=com.mysql.jdbc.Driver:org.postgresql.Driver:org.apache.derby.jdbc.EmbeddedDriver"

#GC="-XX:+UseBiasedLocking -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelCMSThreads=2 -XX:-ReduceInitialCardMarks"

#EX="-XX:+OptimizeStringConcat -XX:+DoEscapeAnalysis -XX:+UseNUMA"

JAVA_HOME="/usr/lib/jvm/java-7-oracle"

CLASSPATH=""

JAVA_OPTIONS="${GC} ${EX} ${ENC} ${DRV} -server -Xms100M -Xmx200M -XX:PermSize=32m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=128m "

TIGASE_CONFIG="etc/tigase.xml"

TIGASE_OPTIONS=" --property-file etc/init.properties "

I installed tigase with java -jar tigase.jar -console.

It seems to me I checked http component to install (maybe this is it: --comp-class-5 = tigase.http.rest.RestMessageReceiver) and this requires jetty.

So if I do not install http components jetty is not started with tigase and all of the 8080 problem go away, am i right?

What's the case if I need http components but I need to run bounded jetty on different port? Am I free to configure jetty itself? Is there any inner bind between tigase and jetty?

Thanks,

nwne

Added by Wojciech Kapcia TigaseTeam about 5 years ago

Your guess about HttpApiComponent is correct - it by defaults try to bind to port 8080. However, as Configuration explains you can change it to different port:

rest/port[I]=8081

Added by NW NE about 5 years ago

Thank you!

    (1-4/4)