aspose file tools*
The moose likes Tomcat and the fly likes Error in installing Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Error in installing Tomcat" Watch "Error in installing Tomcat" New topic
Author

Error in installing Tomcat

Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
Hello friends,
I installed tomact5.5 server and when I am giving the path in url as http://localhost:8080, it is asking username password when I gave the name it displaying unauthorized I tried with all I remember but unable to get. In console I got the following
service.getName():"Catalina": Protocal handler start failed: Java.net.BindException: Address already in use: JVM_Bind:80
How can I over come this.Please help me.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

NetBindException means that something else has already grabbed that port.

I'm guessing that Tomcat is not running and that something else is bound to port 8080 and is prompting you for the username and password.

Tomcat's default (ROOT) app doesn't require a login.

Try using netstat -ab to see what is bound to port 8080.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
HI Ben,
How to overcome this problem.
will be waiting for your reply.
Bhargavi.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you run netstat to find out what application is already bound to that Port?

Once you do, one of them will have to run on a different port.
If you want to change the port Tomcat uses, you can do so by editing the server.xml file.
Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
Hi Ben,
Can I know from where I have to run this netstat -ab. Please guide me.

Thanks,
 
 
subject: Error in installing Tomcat