Results 1 to 5 of 5
  1. #1
    aks_1 is offline Member
    Join Date
    Apr 2010
    Posts
    16
    Rep Power
    0

    Default problem deploying war module

    i have created a folder in C:\>howdyapp
    created folders within this main folder SRC, WEB, WEB-INF.
    and then sub folders in WEB-INF -> CLASSES, LIB, ETC.
    i have compiled HowdyServlet.java and copied it's classs to =>C:\>howdyapp\WEB_INF\Classes
    i have created web.xml and copied it to WEB_INF folder.

    created a war file on the command prompt as:
    c:\jwork\howdyapp\>jar cvf howdyapp.war src web WEB_INF
    created a howdyapp.war file in the directory-howdyapp.

    when i am deploying the above war file in the sun's Application server it displays the following error:-

    Trying to upload an illegal war archive. Make sure the archive file contains the descriptor file web.xml.

    what could have gone wrong with the above procedure.
    please help me.
    Last edited by aks_1; 05-04-2010 at 02:12 PM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default

    Does it have a web.xml?

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    828
    Rep Power
    6

    Default

    just check...u have mentioned WEB_INF and WEB-INF....


    it should be WEB-INF
    Ramya:cool:

  4. #4
    aks_1 is offline Member
    Join Date
    Apr 2010
    Posts
    16
    Rep Power
    0

    Default

    yes it does have web.xml file which looks like this:-
    ?xml version="1.0" encoding="ISO-8859-1"?>

    <!DOCTYPE web-app
    PUBLIC"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

    <web-app>
    <servlet>
    <servlet-name>fred<servlet-name>
    <servlet-class>HowdyServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>fred</servlet-name>
    <url-pattern>/jabber/Howdy</url-pattern>
    </servlet-mapping>
    </web-app>
    i have corrrected the directory name as said by RamyaSivakanth.(It was a written mistake)
    My apologies.
    the problem still exist

  5. #5
    aks_1 is offline Member
    Join Date
    Apr 2010
    Posts
    16
    Rep Power
    0

Similar Threads

  1. problem in deploying WAR file in server
    By pan in forum Advanced Java
    Replies: 8
    Last Post: 10-12-2009, 12:17 PM
  2. Problem deploying applet to browser
    By nfteodoro in forum Java Applets
    Replies: 4
    Last Post: 09-25-2009, 10:03 AM
  3. Replies: 2
    Last Post: 09-23-2008, 01:00 PM
  4. Having problem hot-deploying JSP's
    By kurt_cobain in forum Eclipse
    Replies: 0
    Last Post: 04-03-2008, 05:55 PM
  5. Netbeans platform - JDBC module
    By sara in forum NetBeans
    Replies: 2
    Last Post: 07-10-2007, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •