DASARI_R
asked on
JBuilder Tomcat port configuration
Hi Expert,
I am using JBuilder Enterpirse Studio 7. I configured Tomcat 4.0 to run my web applicaiton. But getting the following exception. I looked at all the configurations to see if I can change the port number, but couldn't find any. When I go to http://localhost:8080 - nothing is configured but http://localhost:8081 something is already occupied that port. I just want to use a new port.
Help is greatly appreciated
tandardWrapper[/webapp:inv oker]: Loading container servlet invoker
HttpConnector[8080] Starting background thread
StandardServer.await: create[8081]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.s ocketBind( Native Method)
at java.net.PlainSocketImpl.b ind(PlainS ocketImpl. java:331)
at java.net.ServerSocket.bind (ServerSoc ket.java:3 18)
at java.net.ServerSocket.<ini t>(ServerS ocket.java :185)
at org.apache.catalina.core.S tandardSer ver.await( StandardSe rver.java: 276)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :794)
at org.apache.catalina.startu p.Catalina .execute(C atalina.ja va:681)
at org.apache.catalina.startu p.Catalina .process(C atalina.ja va:179)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:243)
Thanks
Dasari
I am using JBuilder Enterpirse Studio 7. I configured Tomcat 4.0 to run my web applicaiton. But getting the following exception. I looked at all the configurations to see if I can change the port number, but couldn't find any. When I go to http://localhost:8080 - nothing is configured but http://localhost:8081 something is already occupied that port. I just want to use a new port.
Help is greatly appreciated
tandardWrapper[/webapp:inv
HttpConnector[8080] Starting background thread
StandardServer.await: create[8081]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.s
at java.net.PlainSocketImpl.b
at java.net.ServerSocket.bind
at java.net.ServerSocket.<ini
at org.apache.catalina.core.S
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.catalina.startu
Thanks
Dasari
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
for server.xml, JBuilder will look for server????.xml which ???? is port number that you config in Project Properties like apple said.
ASKER
Thanks !! changing the port worked !
DASARI_R,
Glad it worked....
Thx for the points :)
Glad it worked....
Thx for the points :)
ASKER
Just to give some more info:
I tried this option also but it throwed FileNotFoundException saying that it could find server8080.xml file
//--------------------
Change tomcat port in server.xml and it should be like this :
<Connector className="org.apache.cata
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/
Change the port 8080 to someother port.
//-----------------