Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Changing Resin's Default Webapp

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that Resin's default /webapps is very confusing... ie:

When you install Resin, the default /webapps, "resin-doc", is setup via the /conf/resin.conf file to point to the /doc directory.
The /doc directory has one index.jsp file that does a "forward" to page in the actual webapp ie: /webapps/resin-doc/

In the Resin tutorial, they tell you to simply create a directory under /webapps, for example: /webapps/superapp/, drop a .jsp file in this directory, and you can go on your merry way of accessing this new webapp by going to:
http://localhost:8080/superapp

Yes, this works, but nobody wants to have to type in the /superapp in order to access your new webapp.

I searched and searched and searched online, but couldn't find an easy way to access your new webapp (/webapps/superapp/), via just typing in:
http://localhost:8080/

I know this question is of uber-newb status, but I thought it would be nice if this was documented

Any quick answer !?
 
Dylan Stamatopolis
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok... I'd thought I'd drop by and answer my own question

You need to change this line:
<document-directory>doc</document-directory>

To be:
<document-directory>webapps/yourproject</document-directory>

This will ensure that anytime you type in:
http://localhost:8080, that you'll be directed to your own webapp instead of the default resin-doc webapp pre-configured.

That stumped me for a while.
If this helped anybody else but me, definintely let me know
 
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic