Try jar cvf project.war *
assuming all your directories are clean and ready for packaging. Donie -----Original Message----- From: micky none [mailto:[EMAIL PROTECTED] Sent: 25 January 2005 15:17 To: Tomcat Users List Subject: Re: Packing web application Hi Friends, I am still waiting for your replies.I am also sendin you my web.xml file: <?xml version="1.0" encoding="ISO-8859-1" ?> - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>TITLE</display-name> <session-timeout>30</session-timeout> - <servlet> <servlet-name>TR</servlet-name> <servlet-class>bean.TR</servlet-class> <servlet-name>A1</servlet-name> <servlet-class>bean.A1</servlet-class> <servlet-name>T1</servlet-name> <servlet-class>bean.T1</servlet-class> <load-on-startup>1</load-on-startup> - <init-param> <param-name>name</param-name> <param-value>value</param-value> </init-param> </servlet> </web-app> When i try to do this: C:\Tomcat 5.0\webapps\project>jar cvf project.war It gives me the error: 'c' flag requires that input files be specified...... Please help me. On Tue, 25 Jan 2005 micky none wrote : >Hi Friends, >I have a application with the following file structure: >Tomcat5.0 > webapps > project > WEB-INF > classes > bean > *.java files > web.xml > *.jsp files > >I want to package in into a war.The more tutorials I go through the more confused I get.I tried using the ant-1.6.2 and in turn busted my server.I even followed a tutorial and tried: ><catalina_home>/webapps:/>jar cvf project.war >But when I tried to rerun it onto different machine,it failed.Can someone please give me directions to the right and easy path.Any help would be appreciated.Thanks. > >p.s:Someone even told me just make a project.zip and rename it to project.war and it should work..... > -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]