This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlets-3b Ant deploy issue

 
John Abong
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this
In the c:\java directory, type "ant ffbuild deploy"
a typo? It only builds successfully if I run it from the c:\java\bee directory. But also, even though it builds successfully I get the dreaded HTTP 500 complaint when testing orion. I've even gone as far as re-doing assignments Servlets-1, Servlets-2, and Servlets-3 to make sure files and directories were in tact.

One more thing, ...\web\WEB-INF\web.xml file missing error message came up during first attempt to build bee.war file...was not instructed to create that part of directory structure.
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been a while since I had to set this stuff up, I seem to remember having trouble with this too. Let me check my posts and see if it was the same issue. I'll get back to you.
 
John Abong
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carol. I printed out all of your posts .
I haven't found any specifics yet, though. I'll re-read that stack...

John
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this

quote:In the c:\java directory, type "ant ffbuild deploy"

a typo?


Good catch, John. It is indeed a typo. You need to run ant from the bee directory.

One more thing, ...\web\WEB-INF\web.xml file missing error message came up during first attempt to build bee.war file...was not instructed to create that part of directory structure.

It's under WAR FILES

The static HTML files and JSPs are stored in the top level directory.
The Servlet and related Java class files must be stored in the WEB-INF/classes directory.
Any auxiliary library JAR files must be stored in the WEB-INF/lib directory.
The deployment descriptor is stored as a file named web.xml in the WEB-INF directory.
 
John Abong
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Marilyn and welcome back (sorta). I got it all working now...

John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic