Solved

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

Posted on 2008-06-21
3
628 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 120
countHi challenge 25 122
json example 39 149
ForLoop Example 3 49
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

777 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