Solved

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

Posted on 2008-06-21
3
626 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
how to hide hide popup page refresh second time? 10 111
Where to store the queries for modification of table 4 55
github account with ecipse 1 42
replace a word with other 1 40
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.

910 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

21 Experts available now in Live!

Get 1:1 Help Now