Re: New ROOT

2002-01-22 Thread Guillermo Labatte
John Kolvereid wrote: Hi GL, I tried it again. This time it worked. Now, instead of tricking Tom, how can I simply change the default directory from webapps/ROOT to (say) /home/httpd/jsp. And then how can I address jsp files from non-jsp files. Do I have to a

New ROOT

2002-01-21 Thread Patrick Santana
Hello! I need to change my folder root to /home/web. How Can I do it? Thanks! -- Patrick Santana TAU CSI [EMAIL PROTECTED] Phone: 55 19 32514001 Mobile: 55 19 91223757 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional

Re: New ROOT

2002-01-21 Thread Guillermo Labatte
Patrick Santana wrote: Hello! I need to change my folder root to /home/web. How Can I do it? Thanks! Maybe there is a better way, but I do it using a symbolic link. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list:

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi, I am also interested in knowing how to do this. I know I can link to the JSPs using something like: a href=http://hostname.any.jsp:8080 Unfortunately, I don't know how to construct a return reference. Changing the [webapps]/ROOT would eliminate the need for this. I suspect it has

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi, Tried to do that but it failed for me. I created ln from /webapps/ROOT to /home/httpd/jsp and moved all the ROOT files there. When I tried to start Tom it said it couldn't find any files. Then I returned all the files to /webapps/ROOT (as a legit dir), and Tom found them again. Am I

Re: New ROOT

2002-01-21 Thread Guillermo Labatte
mv /tomcatdir/webapps/ROOT /home/httpd/. mv /home/httpd/ROOT /home/httpd/jsp ln -s /home/httpd/jsp /tomcatdir/webapps/ROOT should do the trick. Tomcat (being a Java application) cannot tell the difference between a regular directory and a linked directory. So maybe you set the link wrong, or

Re: New ROOT

2002-01-21 Thread Guillermo Labatte
Look into the server.xml file. There you will find several Context entries. The ROOT context has the path element with value (empty string). Change the docBase attribute of that context and use anything you like instead of ROOT. As far as I know the directory you use as docBase should be

Re: New ROOT

2002-01-21 Thread Christopher K. St. John
John Kolvereid wrote: How does one respecify the default directory which is shipped as: $CATALINA_HOME/webapps/ROOT In server.xml: Context path= docBase=SOMEOTHERROOT/ Is it in the server.xml, or the web.xml, or somewhere else. I sure can't find it. Somewhere else. If you

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi GL, I tried it again. This time it worked. Now, instead of tricking Tom, how can I simply change the default directory from webapps/ROOT to (say) /home/httpd/jsp. And then how can I address jsp files from non-jsp files. Do I have to a href=http://hostname/a.jsp:8080 And if so,

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi again, Seems to be a buffering problem. When I mv'd ROOT back to its original location and retried Tom, it couldn't find it, even after restarting the browser, and restarting Tom. Then all of a sudden out of the blue it was ok. Guess I'll just have to try any new changes several times

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi GL, I'd like to think it was as simple as that. My server.xml does have a Root Context and a docBase of ROOT, but it is commented out. That was my very 1st try - but that didn't pan out - obviously. I suspect that the default directory is either hard-wired (heaven forbid), or located in

Re: New ROOT

2002-01-21 Thread John Kolvereid
Hi, Thanks that works. I hadn't tried the obvious. Now, is there a way to respecify where the root context is located, or is it always in webapps? Short of finding the answer, I know I can specify a ln. Also, (and this IS a related question), does anyone know how to specify a relative URL