• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Context hell

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I've got a provider who chose to configure Apache/Tomcat such that the application base seems to be /htdocs, but Tomcat only 'listens' on /htdocs/webapps. Now I'm trying to get an Ant task 'deploy' to upload my WAR with the right context.

htdocs
\- webapps
\- context
\- myapp

Under the context directory, I find entries named 'webapps#example.xml', containing a Context element with path="/webapps/example" and docBase="webapps/probe". So that's my target: create a context/webapps#myapp.xml with path="/webapps/myapp".

Running



fails:

FAIL - Failed to deploy application at context path /webapps/myapp

Changing the path to /myapp will deploy the application at htdocs/myapp with a context file myapp.xml, instead of htdocs/webapps/myapp and context file webapps#myapp.xml.

Changing the path to /webapps#myapp will deploy the application at htdocs/webapps#myapp with a context file webapps#myapp.xml. This option not only doesn't work, the Tomcat manager fails to undeploy the app!

There are quite a few how-to on deployment and context.xml on the web, but they all pretty much end after hello-world. And ideas?

This is on Linux with Tomcat 5.5.7. I've already set permissions on the webapps folder to 777, so imho the first option cannot fail due to permission problems.

Where do I look to see why deployment fails for the first option? Remember this is on a provider's host, don't have much access there.

Thanks
Simon Niederberger
[ July 14, 2007: Message edited by: Simon Niederberger ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic