Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
method argument as final 1 62
bunnyEars challenge 6 65
countAbc challenge 9 49
java set up 1 47
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 …
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…
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now