aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Building Beer App from HeadFirst in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Building Beer App from HeadFirst in Eclipse" Watch "Building Beer App from HeadFirst in Eclipse" New topic
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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3168
    
  47

"shraddha aa", please check your private messages regarding an important administrative matter.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 538

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.
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: 519
    
    2

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: 538

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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3168
    
  47

"shraddha aa", please understand that it's mandatory to follow the instructions of the private message that I sent to you before.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Building Beer App from HeadFirst in Eclipse