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
Solved

How do I deploy and run this JSP Web Application locally?

Posted on 2008-06-21
3
629 Views
Last Modified: 2013-11-24
I am using Tomcat 6.0 through port 8282.  I am able to deploy and run other JSP Web Applications without errors.  The attachment is located at I:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ on my local machine.  When I attempt to deploy and run the attached JSP Web Application locally (http://localhost:8282/GasCalculator2/gasCalculator2.jsp), I get the error below.  What is causing this error?  Thank you in advance!  
HTTP Status 500 - 
 
--------------------------------------------------------------------------------
 
type Exception report
 
message 
 
description The server encountered an internal error () that prevented it from fulfilling this request.
 
exception 
 
org.apache.jasper.JasperException: /gasCalculator2.jsp(43,18) File "/currentTime.jspf" not found

Open in new window

GasCalculator2.zip
0
Comment
Question by:CharleneS77
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 500 total points
ID: 21839036
>         <p>As of <%@include file="currentTime.jspf" %>, gas costs $${gas.pricePerGallon} per gallon</p>  
I guess that is line 43 that produced the error.   When using a relative path the file currentTime.jspf should be in the same folder as the file gasCalculator2.jsp.   Why do you have the  extension txt on your JSPs and java source file ?   Is it because you haven't registered the jsp and java extensions with your file editor ?   What is your Operating System  ?
0
 

Author Comment

by:CharleneS77
ID: 21839060
>>>>  When using a relative path the file currentTime.jspf should be in the same folder as the file gasCalculator2.jsp.

That did it thank you!


>>>>Why do you have the  extension txt on your JSPs and java source file ?

So I could upload the zipped file here.  The other extensions are not supported.
0
 

Author Closing Comment

by:CharleneS77
ID: 31469471
Thank you for the fast and accurate response!
0

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
Unable to open debugger port in Intellij idea 6 333
mapShare challenge 13 125
ArrayIndexOutOfBoundException 9 92
throw exception 21 58
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

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