Solved

JBuilder Tomcat port configuration

Posted on 2004-10-07
5
766 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:DASARI_R
  • 2
  • 2
5 Comments
 

Author Comment

by:DASARI_R
Comment Utility
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.
//-----------------
0
 
LVL 3

Accepted Solution

by:
applekanna earned 500 total points
Comment Utility
Hi DASARI_R,
I have had this problem before,even when the app is closed the server keep running for some unknow reason.
I usually shut down my machine and the restart windows as well as JBUilder and it works fine then.

try this as well
go to Project-> Project Properties -> Run -> clik on the project u r workingin -> Edit -> clijk  on the JSP/Servelt on th eleft pane. You will be able to change the Server port this way.

Cheers!
0
 
LVL 11

Expert Comment

by:sompol_kiatkamolchai
Comment Utility
for server.xml, JBuilder will look for server????.xml which ???? is port number that you config in Project Properties like apple said.
0
 

Author Comment

by:DASARI_R
Comment Utility
Thanks !! changing the port worked !
0
 
LVL 3

Expert Comment

by:applekanna
Comment Utility
DASARI_R,
Glad it worked....
Thx for the points :)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now