How to run a Servlet Project's .war from Command Line??

Hi there,,
Can anybody help me with how to run a Servlet Project's .war file from command line??In fact I tried it using the following command,
java -jar TestServProj.war
but I get the following error,,,
Failed to load Main-Class manifest attribute
I can't find the project''s manifest file in the META-INF folder.
Moreover,plz help me about know how to execute a single servlet class from command line...
Thanks in advance...

you cant run a .war file from command prompt
.war files should be executed in a server
how to execute a single servlet class
do you mean to run the servlet or compile the servlet?
any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
http://tomcat.apache.org/

Similar Messages

  • How to run adt.bat created installer silently from command line?

    All,
    I totally get how to create an installer like so:
    adt -package -target native c:\AirExe\myApp.exe c:\AirExe\myAirApp.air
    Is it possible to run the installer silently from the command line?  Part of our smoke test process is to do nightly builds which would include the adt command above.  What we're missing right now is automatically copying the installer to a QA machine and silently install from the command line.  Currently, we have a QA engineer manually running the GUI installer.
    We want to automate as much of our process as possible and without installing silently from the command line, we're kind of dead in the water for automating this process.  Thanks...
    Matt

    Spent an hour last Friday on hold with Adobe support, bounced around to 4 different CSR's and no love getting my question answered.
    I spent part of my weekend solving this.  I'm sure there are other solutions, but here goes:
    1) Downloaded the 7-Zip utility from here: http://www.7-zip.org/
    2) Added c:/Program Files/7-Zip to my path (this helped with interactive testing from the command line)
    3) Made the following edit to my ant build.properties file:
         a) 7_ZIP_HOME=C:/Program Files/7-Zip
    4) Made the following edit to my ant build.xml file:
         a) <exec executable="${7_ZIP_HOME}/7z.exe">
               <arg line="x build/INSTALLER_CREATED_WITH_ADT.exe -obuild -y"/>
             </exec>
    Hope this saves someone else a little time...
    -M    

  • How to launch a specific TestStand sequence file from command line?

    I've written a TestStand sequence file launching other sequence files.
    When I launch it via the TestStand GUI, it works well.
    Now, I would like to launch it via command line. Could you indicate me how to proceed?

    Hi,
    I think this link can help you:
    How to Run a Sequence File When Opened from Windows Explorer
    http://digital.ni.com/public.nsf/websearch/146D372C1F807E6D862567E7004881AB?OpenDocument
    regards,
    Alexandre D
    NIF

  • Error while running a Discoverer Workbook with parameter from command line

    I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
    dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
    Parameter value is entered in correct format(Jan-07).
    When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
    Did anybody come across this issue before?

    Hello,
    If you have a few minutes, Windows is also aborting for me:
    the differences are, my situation is:
    a) am running the command line from a .bat file
    b) am NOT running with parms, want the discoverer query to come up for the user
    c) am running a query from the database
    i am signing in as myself BUT running a query that was created by a generic user called SREG
    c) if i run the .bat file from Windows Explorer, the query opens fine
    d) if i execute the .bat file from within Microsoft Access using the shell command,
    the query opens and then aborts RIGHT BEFORE the parm screen would display
    e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
    from vb using SHELL command works
    Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
    this is what i posted yesterday, tx: Re: Running Discoverer command line
    tx, sandra

  • How to run EJB through a ide and not command line

    I have been trying out a simple Cart EJB. I have no problem running the whole thing through command line using the runclient script. But when i compile and run the same code in my ide it chucks the following error
    Caught an unexpected exception!
    javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/SimpleCart
         at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
         at javax.naming.InitialContext.lookup(InitialContext.java:350)
         at CartClient.main(CartClient.java:26)
    Is there any reasons you cant run an EJB client code through an ide. This is the code i am using
    // Decompiled by DJ v3.0.0.63 Copyright 2002 Atanas Neshkov Date: 8/20/2002 2:33:45 PM
    // Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: CartClient.java
    import java.io.PrintStream;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.ejb.EJBObject;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class CartClient
    public CartClient()
    public static void main(String args[])
    try
    InitialContext initialcontext = new InitialContext();
    Object obj = initialcontext.lookup("java:comp/env/ejb/SimpleCart");
    CartHome carthome = (CartHome)PortableRemoteObject.narrow(obj, CartHome.class);
    Cart cart = carthome.create("Duke DeEarl", "123");
    cart.addBook("The Martian Chronicles");
    cart.addBook("2001 A Space Odyssey");
    cart.addBook("The Left Hand of Darkness");
    Vector vector = new Vector();
    vector = cart.getContents();
    String s;
    for(Enumeration enumeration = vector.elements(); enumeration.hasMoreElements(); System.out.println(s))
    s = (String)enumeration.nextElement();
    cart.removeBook("Alice in Wonderland");
    cart.remove();
    catch(BookException bookexception)
    System.err.println("Caught a BookException: " + bookexception.getMessage());
    catch(Exception exception)
    System.err.println("Caught an unexpected exception!");
    exception.printStackTrace();
    }

    Are you setting the system properties for your Java runtime in the IDE?
    You might need some command-line options along the lines of
    Djava.naming.provider.url=BAR -Djava.naming.factory.initial=FOO
    Failing that you might have to do a global JNDI lookup instead of a local one but that'd be far from ideal.

  • How to run jFram created by Netbeans in the command line or Jcreator

    Dear Friends
    I have designed a fram in Netbeans and the fram have many Jbox and Jcheck Boxes and Text areas. Net beans uses it is oun library. However after I used the facilities and finished the design I am looking to run it in faster IDE, such as Jcreator.
    The problem is that Netbean uses its library and Jcreator is not identifying it. My question, How to have it working else outside netbeans.
    here is the main problem, not sure how to have it available out side netbeans,ext such as
    getContentPane().add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 120, 50, 20));
    Thanks for any help

    Dear Friends
    I have designed a fram in Netbeans and the fram have
    many Jbox and Jcheck Boxes and Text areas. Net beans
    uses it is oun library. However after I used the
    facilities and finished the design I am looking to
    run it in faster IDE, such as Jcreator. This is bullshit. You shouldn't run apps from within an IDE. And there's certainly no speed difference for your app.
    The problem is that Netbean uses its library and
    Jcreator is not identifying it. My question, How to
    have it working else outside netbeans.Import the library orjust use standard classes.

  • Calling this simple servlet from command line -- ERRORS!

    Below is my servlet. I call from command line via:
    java BatchServlet
    and I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: BatchServlet
    IS there a reason for this
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class BatchServlet extends HttpServlet implements Runnable{
    static Thread t = null;
    public void init(ServletConfig c) throws ServletException{
    super.init(c);
    if (t==null){
    t = new Thread(this);
    t.start();
    public void run(){
    while (true){
    try{
    Thread.sleep(5000);
    }catch (InterruptedException ie){
    ie.printStackTrace();
    System.out.println("Wake up");

    Same error with this little prog.....
    Notice main method
    package wch.util;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class test {
    public void main(){
    System.out.println("test");

  • How to shutdown startup 11g OEM/GRID from Command Line

    Please describe how to shutdown and startup OEM/GRID 11g from command line and how to startup all of its services. Thanks in advance!

    After a some tests i found this method...
    SHUTDOWN
    srvctl stop listener -l LISTENER_NAME
    srvctl stop database -d DBNAME
    srvctl stop diskgroup -g VGGROUP
    srvctl stop asm
    crsctl stop has
    STARTUP
    crsctl start has
    srvctl start asm
    srvctl start database -d DBNAME
    Pls try before to use it and i hope it isn't late...

  • How to run a servlet in Tomcat 5.0 server

    HI Everybody,
    I want to know how to run the servlet file on my tomcat 5.0 server. that is where to place a class file and deployment details.
    Thanks In ADVANCE

    Sourav_cs wrote:
    I am a biginner to start servlet i get confusion to configure servlet in tomcat 5 where it should be saved in tomcat directory and how to execute that as first timeHi,
    goto
    tomcat 5.0\webappsnow create a folder here. this is your webapplication project name. Let's suppose it as "TestApp"
    inside this create directories as follows :
    TestApp
            |
            |-----JSP/htmls( if you have any )
            |
            |-----WEB-INF(File Folder)
                       |
                       |-----web.xml
                       |-----lib ( Directory. place all the .jar files which are required for this project(if any) )
                       |-----classes ( .class files. )[all of your java code should be placed here.](servlets / beans/ pojo )this is the general Directory structure of a web application. now you've to place the compiled .class file of your servlet in the "TestApp\WEB-INF\classes" directory. make sure that you've configured the servlet in Deploment Desctiptor, i.e, web.xml.
    now start the server and type the url like : "http://localhost:8080/TestApp/TestServlet"
    the port no. 8080 is the default port no. of tomcat. you have to give your port no. if u've modified it. and TestServlet is the <url-pattern> of your servlet.
    go through some tutorials .. then you can easily know that
    Diablo

  • How to run the ejb project in j2ee server

    How to run the EJB project.
    I give like
    java conveterClient converterClient.jar
    here conveterClient is class file name and converterClient.jar is deployed file
    like wise i give some exception is come
    give some help pls friends

    Navigate to the "DBOrders" module in the catalog, right click on the "ORDERS" database below and click "Export Schema Stucture". That will produce a file containing the DML needed to create the database

  • How to run a servlet in tomcat 5.0.

    Hi all,
    how to run a servlet in tomcat 5.0
    please tell me the entire procedure....(directory structure)
    step by step....

    hi :-)
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    or
    http://www.google.com.ph/search?hl=en&q=java+servlet+tutorial&btnG=Google+Search&meta=
    regards,

  • How to run a servlet in vqserver????

    any one know how to run a servlet using vqserver..pleazzzzzzzzzz..

    Why not read the doc at vqserver.com??
    But its' really simple:
    copy classes into vq/servlet directory
    open http://localhost:9090
    create an alias to your servlet
    and test

  • How to run the Servlet program?

    hi, all, I am new to servlet, and I want to know how to run the servlet program. I got the TomCat and Java JDK install in my computer, something else I need for create and run the servlet program?

    no that is all u need to run servlets. u can try few of the servlets that come with tomcat

  • How to run JSP/Servlet in AIX?

    how to run JSP/Servlet in AIX?
    I am no ideas about it,
    can anyone tell me?
    what webserver i should use?
    have to install JDK?

    The only successful way that I have been able to run servlets in an AIX environment is with the IBM Http Server (specific version of Apache)/WebSphere combination, with WebSphere as the servlet engine. I have tried (unsuccessfully) to use JRun and Apache in AIX environment, but could never get JRun to function properly.

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

Maybe you are looking for

  • How can i reset password????

    I have been having connectivity problems and worked with Comcast last night to try and resolve.They internally somehow re-set everything in my computer, now it wants my secured network password. We had original problems getting everyting to work when

  • Automatic Reservation at the time of process order creation

    Hi Experts, As you are aware, when we create a process order and save, system automatically generates the reservation and the reservation will be for movement type 261. My requirement is like this. When system creates reservation, system should consi

  • Problems with e-mail folders

    Hi, I hope someone can point me in the right direction here. We use windows 7 and Outlook 2010 at home. My other half has a Nokia 635 and I have an -iphone (supplied by work. ) We both have the same e-mail address at home  of the form << [email prote

  • About Commit work

    Hi. Suppose, my program inserts records into several tables and at the end of insertion commit work. is executed. After this new process is started that is invisible for us  and where records insertion is really executed. How in the new SAP LUW deter

  • RFC Structure

    Hi All, Actually, I am working on FILE->XI->RFC scenerio.The custom Function module created is the merging of 3 BAPIS which is used at the receiving end.But ,the Custom Function Module is having the response structure also while I need to work on Asy