On Fri, Aug 20, 2010 at 3:01 PM, Rajagopal Swaminathan
<[email protected]> wrote:
> On 8/20/10, Ranjith Kumar <[email protected]> wrote:
>> Hi Bala
>> I want to execute this unicorn project in console application instead of
>> running it on tomcat server
> I invoke the right to be wrong.
>
> How can anybody expect the WAR file to run on command line?
>
> I could be absolutely wrong, but IMHO .WAR file is supposed to be Web ARchive.
>

Mr. Rajagopal, you are absolutely correct. A WAR file is a WEB
Archive, and it needs a JEE/J2EE Application server such as Tomcat or
JBOSS or Websphere or Weblogic or SunOne or Jetty to run.

You can NEVER run a WAR from commandline. You need some J2EE Server to run it.


Technical Details:
For a Java program to run from the command line, you need atleast one
Java Class with a MAIN function.

A WAR file is essentially a collection of Java classes . JAR files and
property files (along with CSS, JS and IMG files),  These Java files
do not have a MAIN method. Instead these are invoked by the
"container", which can be any JEE server such as TomCat.

Question:
Why do you want to run UniCorn from command line? You can always run
it as a server and invoke it from the commandline, isn't it? I have
not gone through the source code of Unicorn, since it's open source, I
am sure, you can write your own commandline interface for it.

with regards,
Natarajan.
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to