This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

deploy application using eclipse but can't deploy directly

 
rewati raman
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am able to deploy application using eclipse but i cant deploy simply through command prompt. I am new to this and i am using Head first servlet and jsp book.
Please help.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course you can. Do you think that real servers execute in eclipse?

The Servlet spec outlines the folder structure you must use to deploy a web application. At minimum, you need a WEB_INF folder in the context root and an deployment descriptor (web.xml) in that folder.
 
rewati raman
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know we can run it from out side of eclipse. but i am not able to deploy my app.
here is my webapp project discription:

folder : beerv1----- form.html
|__________folder : WEB-INF
|__________ web.xml


still i ma getting 404 error.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot tell from your diagram, but it looks like the web.xml may not be in the WEB-INF folder.

Again, please reference the Servlet Specification, or the Tomcat documentation.
 
rewati raman
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry
this is the directory structure

.....................webapp
..........................|
.........._________|__________
..........|.................................|
......form.html......................WEB-INF
.............................................|
.........................................web.xml
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What/where is the webapp folder?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic