Link to home
Start Free TrialLog in
Avatar of DASARI_R
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:invoker]: 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.socketBind(Native Method)

      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)

      at java.net.ServerSocket.bind(ServerSocket.java:318)

      at java.net.ServerSocket.<init>(ServerSocket.java:185)

      at org.apache.catalina.core.StandardServer.await(StandardServer.java:276)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:794)

      at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

      at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



Thanks
Dasari
Avatar of DASARI_R
DASARI_R

ASKER

Hi Again,

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.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
Change the port 8080 to someother port.
//-----------------
ASKER CERTIFIED SOLUTION
Avatar of applekanna
applekanna

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sompol_kiatkamolchai
for server.xml, JBuilder will look for server????.xml which ???? is port number that you config in Project Properties like apple said.
Thanks !! changing the port worked !
DASARI_R,
Glad it worked....
Thx for the points :)