You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gordon Vidaver <gv...@bbn.com> on 2003/04/15 04:06:19 UTC

Help with deploying a web app

Hi,
         I've extended the tomcat sample build.xml, but I'm having a 
problem where I can use an ant target to deploy a web app:

   <target name="deploy" description="Deploy the application to the servlet 
container">
     <install url="${manager.url}"
         username="${manager.username}"
         password="${manager.password}"
             path="${app.path}"
              war="file://${basedir}/dist/MyApp.war"/>
   </target>

         and this works fine, BUT if I copy the war into the webapps 
directory, I get a 404.  Is there any fundamental step I'm missing here?

         I can see tomcat expanding the war and all the pieces seem to be 
there.

         I turned the debug level to 99 on the obviously relevant 
server.xml elements, but nothing in the logs say "I'm throwing an exception 
so I won't work, etc."

         Any help anyone can provide would be most appreciated.

         Thanks,

         Gordon


Gordon Vidaver                  BBN Technologies
gvidaver@bbn.com                Office 6/323
617 873-3558                    10 Moulton St.
617 873-2616 (fax)              Cambridge, MA 02138
866-322-9311 (toll free)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Help with deploying a web app

Posted by Gordon Vidaver <gv...@bbn.com>.
Hi,
         Please disregard this message - the real problem was there was a 
mismatch between the war name, which was actually MyApp-0.1.war and the 
web-resource-name in the web.xml file, which was just MyApp.  So when the 
war was unpacked, the directory was called MyApp-0.1 - and of course tomcat 
couldn't find the web resource named MyApp.

         Gordon

At 10:06 PM 4/14/2003 -0400, you wrote:
>Hi,
>         I've extended the tomcat sample build.xml, but I'm having a 
> problem where I can use an ant target to deploy a web app:
>
>   <target name="deploy" description="Deploy the application to the 
> servlet container">
>     <install url="${manager.url}"
>         username="${manager.username}"
>         password="${manager.password}"
>             path="${app.path}"
>              war="file://${basedir}/dist/MyApp.war"/>
>   </target>
>
>         and this works fine, BUT if I copy the war into the webapps 
> directory, I get a 404.  Is there any fundamental step I'm missing here?
>
>         I can see tomcat expanding the war and all the pieces seem to be 
> there.
>
>         I turned the debug level to 99 on the obviously relevant 
> server.xml elements, but nothing in the logs say "I'm throwing an 
> exception so I won't work, etc."
>
>         Any help anyone can provide would be most appreciated.
>
>         Thanks,
>
>         Gordon
>
>
>Gordon Vidaver                  BBN Technologies
>gvidaver@bbn.com                Office 6/323
>617 873-3558                    10 Moulton St.
>617 873-2616 (fax)              Cambridge, MA 02138
>866-322-9311 (toll free)
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Gordon Vidaver                  BBN Technologies
gvidaver@bbn.com                Office 6/323
617 873-3558                    10 Moulton St.
617 873-2616 (fax)              Cambridge, MA 02138
866-322-9311 (toll free)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org