Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

localhost:8080 issue...

Posted on 2012-03-27
Last Modified: 2012-08-14
I have trouble using  http:/localhost:8080/FolderName/SomeFile.html  or

My environmental setings are:

C:\Program Files\Apache Software Foundation\Tomcat 5.0\

C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\;C:\j2sdk1.4.2_01\bin


PATH   (there is another path I couldn't edit. But javac works okay)

Question: What kind of changes I can apply to either my settings or to my url to view the page?

Thank you.
Question by:Mike Eghtebas
  • 6
  • 3
LVL 47

Expert Comment

ID: 37773715
>I have trouble using ...

what that means ? what do you observe?

did you start Tomcat?

if you did what do you see if you just typed

LVL 34

Author Comment

by:Mike Eghtebas
ID: 37773792
In the process of answering your question, I sort of figured out what I was doing wrong. The following url works:


If I may, I like to aske some questions to solidify my understanding of the process. Knowing there are usually two types of files for jsp pages (.jsp and class). Please comment in the following:

1) jsp files could be put into any folder we like to name so long as in it under
...Tomcat 5.0\webapps    folder.   if the folder is myProjectFolder, then
...Tomcat 5.0\webapps\myProjectFolder\myproject.jsp

and later, to be called as    http://localhost:8080/myProjectFolder\myproject.jsp

2) the classes are coppied to either:

       ...Tomcat 5.0\bin   or Tomcat 5.0\common\classes\myProjectFolder

I appreciate some comment on these two items.

Thank you,

LVL 47

Expert Comment

ID: 37773814
jsp can inded be put in any folder under webapps/MyAppFolder
and they can be accessed as


Not so with classes
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

LVL 34

Author Comment

by:Mike Eghtebas
ID: 37773818
My be classes could be anywhere so long as we have a proper link to it in our jsp file when we are trying to instantiate an object of theat class. Any comment on this one?
LVL 47

Expert Comment

ID: 37773821
classes should be in
LVL 47

Expert Comment

ID: 37773829
Then the name of the servlet which you'll us in the action of your form should be mapped to the name of the class of the servlet in web.xml file aslo sitting in WEB-INF
LVL 47

Accepted Solution

for_yan earned 500 total points
ID: 37773835
No classes should be in

and this folder is the root of your classptah, so that if you hacve pacjages - you should havecorresponding  folders under MyAppFolder/WEB-INF/classes and in those folder corresponding classe, just like in java apllications
LVL 47

Expert Comment

ID: 37773871
check this about folder structure of the web application:

LVL 34

Author Closing Comment

by:Mike Eghtebas
ID: 37773882
thank you.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 63
What's wrong with this code? 4 26
Selenium docs api java index 3 48
Java class and jar 3 23
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

860 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