• 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

Deploying webapp

 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

One beginner problem here: how to deploy multiple webapps in different directorys?

I have configured my tomcat5 in linux so that I can put my webapp to directory /home/juhan/public_html so the url is http://localhost/~juhan/

I made a small servlet test and it worked fine.
The directory structure was like that:
/home/juhan/public_html/WEB-INF/classes/hello/web/Hello.class
/home/juhan/public_html/WEB-INF/web.xml
/home/juhan/public_html/index.html

index.html

Hello.class just had one doGet() method that printed out some text.

And web.xml


So everithing is ok, but what if I want to do try making several webapps and putting them to different directorys? So I assume I simply create one folder "test" to my public_html folder and copy index.html and whole WEB-INF to that directory and everithing should run in http://localhost/~juhan/test/ smoothly, but once I click on the link and get to the location http://localhost/~juhan/test/hello.do - I get 404 error.

Please help me what should I change to make it work.

[ August 28, 2005: Message edited by: Juhan Voolaid ]

[ August 28, 2005: Message edited by: Juhan Voolaid ]

[ August 28, 2005: Message edited by: Juhan Voolaid ]
[ August 29, 2005: Message edited by: Juhan Voolaid ]
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Help ... anyone?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seem u try to deploy multiple webapp in the same context.
Regarding the spec I think it wouldn't work.
It'd work if u deploy it in deferent context insteads deploy it under u'r /public_html directory.

in Tomcat 5.0 there is a directory call $TOMCAT_HOME$/webapps. U can deploy your webapp under that directory and It should work well.

rgds
wyasa
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course you can achieve your aim.but first you should configure your tomcat server.
in the web.xml or server.xml u should deploy your "..test" as a new context root directory
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oooh ... thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic