You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "David W. Brown" <dw...@webitplanet.com> on 2005/02/11 17:28:00 UTC

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

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@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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

Posted by Jason Bainbridge <jb...@gmail.com>.
On Fri, 11 Feb 2005 19:07:27 +0000 (UTC), David W. Brown
<dw...@webitplanet.com> wrote:
> Hello Jason, thanks for the speedy reply and help. The only context.xml I can find is @: /Apache Software Foundation/Tomcat5.5/conf/context.xml the xml parameter you have quoted below is not present. There are not such directories: META-INF anywhere in the tomcat installation directories on in my /build or /dist directories (just web.xml). I pasted the xml string you supplied into context.xml at the TC conf directory context.xml file and issued ant install and still get the error condition: Fail - unable to install app at /inventory.

For Tomcat 5.5. the context.xml should be located within your webapp
within the META-INF folder so you will need to create it in your case
and the context.xml only needs that one single line in it.

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - webmaster@kde

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


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

Posted by Jason Bainbridge <jb...@gmail.com>.
On Fri, 11 Feb 2005 16:28:00 +0000 (UTC), David W. Brown
<dw...@webitplanet.com> wrote:
> 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). 

Do you have a META-INF/context.xml with

<context path="/inventory" docBase="inventory" debug="1" reloadable="true">
?

Regards,
-- 
Jason Bainbridge
KDE - Conquer Your Desktop - http://kde.org
KDE Web Team - webmaster@kde

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