aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Changing Resin's Default Webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Changing Resin Watch "Changing Resin New topic
Author

Changing Resin's Default Webapp

Dylan Stamatopolis
Greenhorn

Joined: Aug 04, 2003
Posts: 15
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 !?


/* the more you know, the less you need */
Dylan Stamatopolis
Greenhorn

Joined: Aug 04, 2003
Posts: 15
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Resin's Default Webapp