| Author |
Building Beer App from HeadFirst in Eclipse
|
Rite Sara
Ranch Hand
Joined: Feb 13, 2010
Posts: 56
|
|
Hi,
I am trying to replicate the Beer example given in Head First Servlets ans JSP book in Eclipse. I copied all the code in respective folders. The project is saved without any errors.
But I am not able to run the code on web browser. Can anyone please list out the steps to build and run the web app in Eclipse ??
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2691
|
|
|
"shraddha aa", please check your private messages regarding an important administrative matter.
|
Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
What is the message it is showing, when you run it in browser, is it, resource not available, if yes, can you please check your server log, and see whether the application is properly deployed or is there any error..
Regards,
Prasad.
|
Regards, Prasad
SCJP 5 (93%)
|
 |
Rite Sara
Ranch Hand
Joined: Feb 13, 2010
Posts: 56
|
|
|
Yes..I am getting resource not available error. There are no errors in the project. Can you please let me know how to run it on server using browser in case of Eclipse. I tried opening Html page with Eclipse browser and typed localHost:8080 . Its correctly giving startup home page for tomcat but when I type http://localhost:8080/BeerApp/form.html ...It gives error.(here BeerApp is project name )
|
 |
Kumar Raja
Ranch Hand
Joined: Mar 18, 2010
Posts: 457
|
|
Shraddha,
What did you do to deploy the war file? As suggested, have you confirmed, if the application is properly deployed.
|
Regards
KumarRaja
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
|
In Eclipse, if you have configured the application server, then you can just right click on the server, and choose add or remove projects, and you can add your project to the server (provided, that project is an web application).. so, can you please let us know, how you have developed your project in eclipse, and how you deployed into tomcat...
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2691
|
|
|
"shraddha aa", please understand that it's mandatory to follow the instructions of the private message that I sent to you before.
|
 |
 |
|
|
subject: Building Beer App from HeadFirst in Eclipse
|
|
|