Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Cannot deploy .war with 1 jsp file (context path failure)

David W. Brown

2005-02-11

Replies:

Hello TC gurus, I am willing to try this again. I am sure this has shown up a few thousand times but I have just downloaded the TC 5.5 in hopes that my little JSP app I am dreaming up will run on the servlet server. Here is the problem: I cannot get the context path right no matter what and the TC manager just claims: Failed to deploy application at context. I have set the context path to many different paths but nothing works. I have embedded <echo /> statements all through the build.xml hoping to see the pattern. My JSP app is so small it is patterned right after the Hello World (/sample) sample.war file application that comes with TC. I have used the standard on all the configuration: build.xml, web.xml and build.properties (which probably is not necessary). I can only get the following error condition: Failed to deploy application at context path /inventory. The build.xml file I am using is the modified starter build.xml file. I can runn all of the ant build commands successfully (ant, ant clean, ant dist) When I run ant install all fails because the app will not deploy.

Like the sample.war I only have a single jsp and a (dot).html file. The sample.war file will deploy at: /sample but my inventory.war only fails with the error condition noted above. I cannot seem to control the context path what-so-ever. Ant environment vars follow:

[echo] Using user.home=C:\Documents and Settings\hbd6345
[echo] Using dist.home=C:\Documents and Settings\hbd6345\My Documents\general\dev\inventory/dist
[echo] Using build.home=C:\Documents and Settings\hbd6345\My Documents\general\dev\inventory/build
[echo] Using app.path=/inventory

Any and all remedies, rants or raves welcomed.

Please advise,

David.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.