wood burning stoves 2.0*
The moose likes Cattle Drive and the fly likes Servlets-3b Ant deploy issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Servlets-3b Ant deploy issue" Watch "Servlets-3b Ant deploy issue" New topic
Author

Servlets-3b Ant deploy issue

John Abong
Ranch Hand

Joined: May 14, 2007
Posts: 79
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

Joined: Mar 15, 2001
Posts: 1194
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

Joined: May 14, 2007
Posts: 79
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

Joined: Jul 22, 2000
Posts: 9044
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
John Abong
Ranch Hand

Joined: May 14, 2007
Posts: 79
Thank you Marilyn and welcome back (sorta). I got it all working now...

John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets-3b Ant deploy issue
 
Similar Threads
I can't build???
Setting up Tomcat/Web project in Eclipse
How do you know the version of Java .class file?
New version of Ant and Assignment 3b
Ant beginner, having problems