Results 1 to 5 of 5
Thread: problem deploying war module
- 05-04-2010, 06:16 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 16
- Rep Power
- 0
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.
- 05-04-2010, 10:37 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Does it have a web.xml?
- 05-04-2010, 11:00 AM #3
just check...u have mentioned WEB_INF and WEB-INF....
it should be WEB-INFRamya:cool:
- 05-04-2010, 02:17 PM #4
Member
- Join Date
- Apr 2010
- Posts
- 16
- Rep Power
- 0
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
- 05-04-2010, 05:58 PM #5
Member
- Join Date
- Apr 2010
- Posts
- 16
- Rep Power
- 0
Similar Threads
-
problem in deploying WAR file in server
By pan in forum Advanced JavaReplies: 8Last Post: 10-12-2009, 12:17 PM -
Problem deploying applet to browser
By nfteodoro in forum Java AppletsReplies: 4Last Post: 09-25-2009, 10:03 AM -
Problem deploying: com/sun/corba/se/internal/io/ValueHandlerIm
By prufrock in forum Advanced JavaReplies: 2Last Post: 09-23-2008, 01:00 PM -
Having problem hot-deploying JSP's
By kurt_cobain in forum EclipseReplies: 0Last Post: 04-03-2008, 05:55 PM -
Netbeans platform - JDBC module
By sara in forum NetBeansReplies: 2Last Post: 07-10-2007, 01:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks