Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building Beer App from HeadFirst in Eclipse

 
Rite Sara
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4408
251
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shraddha aa", please check your private messages regarding an important administrative matter.
 
Prasad Krishnegowda
Ranch Hand
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shraddha,

What did you do to deploy the war file? As suggested, have you confirmed, if the application is properly deployed.
 
Prasad Krishnegowda
Ranch Hand
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4408
251
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shraddha aa", please understand that it's mandatory to follow the instructions of the private message that I sent to you before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic