Solved

problem while running the tomcat web server?

Posted on 2013-01-05
4
362 Views
Last Modified: 2013-02-11
Hi All,

I installed tomcat 6 in my system(extracted the zip file). I am running the server with run.bat, in bin folder, and i can open the manager application successfully.with the link http://localhost:8080

But when i configured the same server in eclipse, and started the server in eclipse, now trying to open the link
http://localhost:8080  i am getting 404 error.

Please do needful.
0
Comment
Question by:prabhualla
4 Comments
 
LVL 26

Expert Comment

by:dpearson
ID: 38748092
Are you actually getting a 404 error (resource not found) or a "Could not connect to server" error?

If it is truly a 404 then the server is running (since you need a web server to be present for it to respond with a specific error code like 404) but it has no contents within its webapps folder.
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 38748104
When running Tomcat standalone it will start all the apps that are in it's 'webapps' folder. This includes the 'manager' app and the default start page that you see when navigate to the URL that you mentioned above (it is in webapps/ROOT directory and I believe it is the default.htm file).

When run under Eclipse, it is told to basically use a different 'webapps' folder, one that contains only the application that Eclipse is trying to run. Therefore, what you are seeing is correct because the 'manager' application is not running and that default.htm page is not there.

Is there some reason that you need that manager application to be accessible or were you just doing this to 'verify' that Tomcat is working? As stated above, because you are getting 404 page (rather that a connection timed out error) means that Tomcat IS working!
0
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 38758378
So , as mccarl suggested , your app should be running currently and should be accessible when you type the URL for your app
0
 

Author Closing Comment

by:prabhualla
ID: 38829556
it is working fine
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Python Assistance 7 73
unix in java example 9 52
Why method in Java which is called from Runnable run() doesn't need to be 'static'? 1 22
Windows 10 and JDK 7 7u85 4 31
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

912 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

16 Experts available now in Live!

Get 1:1 Help Now