Hi,
You can set the Directory listing to false in Web.xml file in order
to avoid displaying Directory contents.
Use the Param-name element to
servlet
servlet-namedefault/servlet-name
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
Hi All
I am using tomcat 5.0.30 for a web application.
Currently anyone can brows the Root directory of my application and server.
For example by typing the url http://127.0.0.1/PrjectName/
Is their any way to avoid this? Making the user access the home page and
then navigating and not seeing all
Subscriber [EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 7:48 PM
Subject: Re: Root directory...
Hi,
What do you mean by this?
thanks,
Luc.
- Original Message -
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 07, 2004
Create a context for your app with path=. That makes it the root app.
- Original Message -
From: Luc Vantroys [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 06, 2004 9:40 PM
Subject: Root directory...
Hi,
I work in a regular directory but I'm
Hi,
What do you mean by this?
thanks,
Luc.
- Original Message -
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 7:44 PM
Subject: Re: Root directory...
Create a context for your app with path=. That makes it the root
Hi,
I work in a regular directory but I'm tired to have to reload the
application all the time after I recompiled the source code...
I don't understand how I am suppose to work with the ROOT directory, I've
heard that when the classes are in the ROOT directory, they are relaoded
each time you
by deleting its directory, and define your
Context to have path=. That's it. Tomcat won't create a ROOT
directory.
Yoav
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail
in the 'webapps' directory.
Depending on the case it is directly copied or extracted from a
war file.
However when the application is deployed a 'ROOT' directory is automatically
created. Its content duplicates the one in 'my_app'.
When I update something in 'my_app' the copy in 'ROOT' is not synchronized
Quoting Jean-Paul Le Fèvre [EMAIL PROTECTED]:
- Is there a way to get rid of the 'ROOT' directory.
- Is it possible to specify unambiguously the name of the default directory.
If you are using a UNIX-like OS I have had good luck by just create symbolic
links for the ROOT directory and point
) I declare a default context
with :
Context path = docBase = my_app ...
The directory 'my_app' is available in the 'webapps' directory.
Depending on the case it is directly copied or extracted from a
war file.
However when the application is deployed a 'ROOT' directory is automatically
created
On Saturday 18 September 2004 14:13, John Villar wrote:
Your path attribute should have / and not .
No. According to the tomcat config doc :
If you specify a context path of an empty string (), you are defining the
default web application for this Host...
Docbase should be (for
your case, i
What's your tomcat version? could you post your server.xml file to see
if there's something wrong? i'm using virtual hosts with default apps on
tomcat 5.0.18 and used the configuration i told you, and works pretty
well..
John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058
On Saturday 18 September 2004 16:42, John Villar wrote:
What's your tomcat version? could you post your server.xml file to see
if there's something wrong? i'm using virtual hosts with default apps on
tomcat 5.0.18 and used the configuration i told you, and works pretty
well..
Host name=edbg.fr debug = 0 appBase=webapps/eros
unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=eros- suffix=.log /
Context path = docBase = edbg.war debug = 0
-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 11:13 PM
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of
localhost?
::
:: I am not using Apache although I wish we were, my boss believes
in an all
can correct and delete the
original
email. Thank you.
:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 11:13 PM
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of
localhost
the
original
email. Thank you.
:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 11:13 PM
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of
localhost?
::
:: I am
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of
localhost?
::
:: I am not using Apache although I wish we were, my boss believes
in an all
:: windows enviroment, so this is on server 2003 with IIS, I havent
set up
tomcat
:: with IIS yet, because
Hi
Thanks Stephen, it did. except now I have no standard out. ugh..
Sorry, what do you mean?
Regards,
Steffen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all, this is exacly what im trying to do with my servlet for
webMathematica. It is located in $CATALINA_HOME/webapps/webMathematica.
However, I can't find the option in any config file to make that servlet
become the default for tomcat. Right now tomcat defaults to
.
:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 10:56 PM
:: To: Tomcat Users List
:: Subject: Re: How do I run servlets on the root directory of localhost?
::
:: Hi all, this is exacly what im trying to do with my servlet
,
please notify me immediately so that I can correct and delete the original
email. Thank you.
:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 10:56 PM
:: To: Tomcat Users List
:: Subject: Re: How do I run servlets on the root
I am not using Apache although I wish we were, my boss believes in an all
windows enviroment, so this is on server 2003 with IIS, I havent set up tomcat
with IIS yet, because of this problem. I will look at that file server.xml but
I've been in there before (to change from port 8080 to 80) and
and delete the original
email. Thank you.
:: -Original Message-
:: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 11:13 PM
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of localhost?
::
:: I am not using Apache
Users List'
:: Subject: RE: How do I run servlets on the root directory of localhost?
::
:: I am not using Apache although I wish we were, my boss believes in an all
:: windows enviroment, so this is on server 2003 with IIS, I havent set up
tomcat
:: with IIS yet, because of this problem. I
I would suggest you look at the server.xml, I am not 100% sure but there
should be a place where the ROOT directory is set-up to be the default
directory that is served.
Sorry I cannot be of more help.
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4
Seth Carter wrote:
i can get to webMathematica right now by going to
http://localhost/webMathematica , what I want is
when I go to http://localhost
it would bring up webMathematica.
Copying everything to the ROOT subdirectory, which you've already noted
is the default root webapp, should
correct and delete the original
email. Thank you.
:: -Original Message-
:: From: Wendy Smoak [mailto:[EMAIL PROTECTED]
:: Sent: Monday, June 14, 2004 11:37 PM
:: To: Tomcat Users List
:: Subject: RE: How do I run servlets on the root directory of localhost?
::
:: Seth Carter wrote:
:: i can
From: Schalk [mailto:[EMAIL PROTECTED]
This brings up an interesting point. Is it possible to edit
which is the default app?
Yes, you can change it in server.xml:
Context path= docBase=ROOT debug=0/
Change 'ROOT' to something else.
But that was in the message you replied to, so maybe I
and delete the original
email. Thank you.
:: -Original Message-
:: From: Wendy Smoak [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, June 15, 2004 12:34 AM
:: To: Tomcat Users List
:: Subject: RE: How do I run servlets on the root directory of localhost?
::
:: From: Schalk [mailto:[EMAIL
I don't want to go to a jsp model. This works fine on internet. It also
works fine if i add a path like localhost:8080/home
So if '/' is a bad servlet mapping what should it be for the root?
Thanks much for your help.
On Sat, 12 Jun 2004 21:34:08 -0500, QM [EMAIL PROTECTED] wrote:
On Sat, Jun
Hi
So if '/' is a bad servlet mapping what should it be for the root?
Thats a problem i was suffering a long time from when porting to tomcat
comming from resin.
Resin allowed regular expression matching on paths, tomcat does not.
Anyway, since Tomcat 5.0 (at least) it is possible to set a
Thanks Stephen, it did. except now I have no standard out. ugh..
Thanks everybody for your help.
Jarl
On Sun, 13 Jun 2004 21:09:40 +0200, SH Solutions [EMAIL PROTECTED]
wrote:
Hi
So if '/' is a bad servlet mapping what should it be for the root?
Thats a problem i was suffering a long time
http://localhost:8080/
I actually got this to work, but it images, etc can't be found.
Thanks for your help.
Jarl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and delete the original
email. Thank you.
:: -Original Message-
:: From: Jarl Skogsholm [mailto:[EMAIL PROTECTED]
:: Sent: Sunday, June 13, 2004 12:35 AM
:: To: Tomcat Users List
:: Subject: How do I run servlets on the root directory of localhost?
::
:: http://localhost:8080/
::
:: I actually
email. Thank you.
:: -Original Message-
:: From: Schalk [mailto:[EMAIL PROTECTED]
:: Sent: Sunday, June 13, 2004 12:51 AM
:: To: 'Tomcat Users List'
:: Subject: RE: How do I run servlets on the root directory of localhost?
:: Importance: High
::
:: Is your webapp located in
c:/your-Tomcat
What happens if you just enter: http://localhost:8080/
I located it in c:/your-Tomcat-install-directory/webapps/ROOT/
What happens if you just enter: http://localhost:8080/
It runs my servlet except without images, .css, .js files.
--
They that can give up essential liberty to obtain a little
Jarl Skogsholm wrote:
What happens if you just enter: http://localhost:8080/
It runs my servlet except without images, .css, .js files.
Sounds like the paths in your servlet are wrong; are they relative
or absolute? What do the 404 entries in your logs say?
--
Hassan Schroeder
The paths in my servlet are relative. I didn't see any 404 entries in my
logs. Is that a different debug level?
If I try to access an image directly it still brings up my servlet.
On Sat, 12 Jun 2004 17:02:39 -0700, Hassan Schroeder
[EMAIL PROTECTED] wrote:
Jarl Skogsholm wrote:
What happens
Jarl Skogsholm wrote:
The paths in my servlet are relative. I didn't see any 404 entries in
my logs. Is that a different debug level?
The standard Web logs from AccessLogValve -- if you haven't yet
configured one, it'd probably be a good idea :-)
But you can tell the effective URL of the image
Here is my log entry:
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] GET / HTTP/1.1 200 3567
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] GET /css/style.css HTTP/1.1
200 3567
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] GET /js/functions.js HTTP/1.1
200 3567
127.0.0.1 - - [12/Jun/2004:20:39:50 -0500]
On Sat, Jun 12, 2004 at 08:11:57PM -0400, Jarl Skogsholm wrote:
: The paths in my servlet are relative.
Be careful with that -- the definition of relative within a servlet is
sketchy, at best.
I don't remember the specifics right now, but there's a way to get a
context-relative path within the
Update to my original post: your problem likely lies in your servlet
mapping:
: servlet-mapping
: servlet-nameHome/servlet-name
: url-pattern//url-pattern
: /servlet-mapping
Mapping the servlet to / will pass *every* request through that
servlet.
In a message I said my problem into migrate a application from windows to a
linux server. I think the problem is about the root directory where the
servlets try to find the files. How can I know the dafault route for my
application and how can I modify it?
Thanks
On Wed, May 26, 2004 at 03:21:43PM +0200, Francisco Jos? Arnau Vives wrote:
: In a message I said my problem into migrate a application from windows to a
: linux server. I think the problem is about the root directory where the
: servlets try to find the files. How can I know the dafault route
In a servlet, you can use
getServletContext().getRealPath(/) to get the root of the web's docBase
- Original Message -
From: Francisco José Arnau Vives [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 9:21 PM
Subject: How can I Know the servlet root directory
Hi,
Remember, getRealPath doesn't work in a packed WAR file.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: stan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 9:43 AM
To: Tomcat Users List
Subject: Re: How can I Know the servlet root directory
Ive managed to use modjk to link tomcat apache and let tomcat process
all .jsp from tomcat/webapps/* but what configuration do i need if i
want to let apache process *.jsp from the apache's webroot (e.g.
/var/www/html). Whenever i put any jsp page on apache root directory, it
doesnt process
I have created a symlink for Tomcat root directory
/home/vsaxena/jakarta-tomcat-5.0.12/webapps/ROOT to DSpace (Application that
I am working upon) directory containing all the JSP and required HTML.
(index.html is one of these)
However, as I try to access index.html from browser (accessing the URL
Following up to myself here...
On Thu, 7 Aug 2003, Fredrik Jonson wrote:
I'm trying to get tomcat (from sun's jwsdp1.2) to do a default mapping.
I (and a lot of other people, apparently =) have tried:
servlet-mapping
servlet-nameMainView/servlet-name
Alternatively, having a zero-length index.html file in your directory,
together with a servlet-mapping should also work.
Shapira, Yoav [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Howdy,
Today I changed it to:
servlet-mapping
Howdy,
Today I changed it to:
servlet-mapping
servlet-nameMainView/servlet-name
url-pattern/index.html/url-pattern
/servlet-mapping
And, as I understand it, tomcat(?) returns that servlet mapping for
requests for the root catalog. Well, it is
it
that pattern is already taken by the default servlet. It doesn't
work.
I have had little succes searching google, and the documentation for
solutions. Is it at all possible, or does everyone just use a dummy
index.html in the root directory and forwards the users to the real
content serving
hello, I have installed tomcat standalone, and i have it to listen to my
default port 80.
but I want to change my welcome page.
Instead of showing index.html that comes with tomcat,
I want to show another directory.
My purpose is to make /cocoon that default page for my localhost:80/
Thank you
hope this helps you ...
Lars.
-Ursprungliche Nachricht-
Von: Andreas Panagiotidis [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Januar 2002 13:50
An: [EMAIL PROTECTED]
Betreff: change root directory
hello, I have installed tomcat standalone, and i have it to listen to my
default
PROTECTED]]
Sent: Tuesday, August 07, 2001 5:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: web app in root directory
I have my IIS pointing to TOMCAT_HOME\webapps\myapp and also set
server.xml to
Context path=/
docBase=webapps/myapp
crossContext=true
debug=0
reloadable
Hi,
I'm interested in putting my web app in the root directory so that people
can get to it via http://x.com/index.html instead of
http://x.com/myapp/index.html
Whenever I change the server.xml file:
Context path=
docBase=webapps/myapp
crossContext=true
debug=0
reloadable=true
in root directory
Hi,
I'm interested in putting my web app in the root directory so
that people
can get to it via http://x.com/index.html instead of
http://x.com/myapp/index.html
Whenever I change the server.xml file:
Context path=
docBase=webapps/myapp
crossContext=true
I'm using IIS4.0 with Tomcat using isapi_redirect.
-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 3:03 PM
To: '[EMAIL PROTECTED]'
Subject: RE: web app in root directory
Since you are not including a port in the URL, it
would appear
a version of
Tomcat 3.2.x.
Cheers,
Larry
-Original Message-
From: Zhi Shen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: web app in root directory
I'm using IIS4.0 with Tomcat using isapi_redirect.
-Original Message
PM
To: '[EMAIL PROTECTED]'
Subject: RE: web app in root directory
I assume your IIS Home Directory is set to something other
than TOMCAT_HOME\webapps\ROOT, such as the IIS default
C:\Inetpub\wwwroot. Since IIS will serve static resources,
a URL like http:/x.com/images/index.html will look
happens.
-zhi
-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 4:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: web app in root directory
I assume your IIS Home Directory is set to something other
than TOMCAT_HOME\webapps\ROOT, such as the IIS
Hi
where can i change the tomcat root directory value.
How can i remove IOException errors for gifs/images of socket errors.
For accessing one page i am getting so many errors like this. To be
frank, it should not be displayed at the clients machine.
looking for appreciation..
venkatesh
the tomcat root directory
Hi
where can i change the tomcat root directory value.
How can i remove IOException errors for gifs/images of socket errors.
For accessing one page i am getting so many errors like this. To be
frank, it should not be displayed at the clients machine.
looking
I'm running tomcat in proc on IIS/Win2K - it works
fine however I can only get the examples.war to work
when the ROOT.war is also in the webapps directory.
It hangs and I get an error in stderr about not being
able to find a facade manager.
This doesn't seem to make sense to me - does anyone
When I hit a servlet in my webapp, I get the following message from tomcat:
No root directory specified in XML file, using "".
The directory specified by is incorrect. In server.xml, I have the
following:
Context path="/MyApp" docBase="webapps/MyApp&qu
Hi, I'm using Tomcat by itself, and I need to change the server root
directory to maybe "D:\abc" instead of the default
"C:\jakarta-tomcat\".
This sounds simple but I just couldn't find info how this is done
anywhere.
Could anyone be kind enuf to
]'
Subject: RE: Changing root directory
Should not be a problem. just make sure that any path settings and
classpath settings reflect your change. In particular Startup.bat and
tomcat.bat
-Original Message-
From: kt [SMTP:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 200
Guillaume Barreau wrote:
Dear tomcat users,
How do I find the root directory of the application to which a servlet belongs?
I know that the following works:
getServletContext().getRealPath("")
But the documentation on getRealPath warns me that this is not going to w
Hello,
I have created my own log file via setting the System.setErr with a new
FileOutputStream.
FileOutputStream fout = new FileOutputStream("mylog.txt", true);
System.setErr(new PrintStream(fout));
Giving it only the file-name, the log-file will be created in the
tmocat/bin
ot; [EMAIL PROTECTED]
Subject: Logfile root-directory-setting
Hello,
I have created my own log file via setting the System.setErr with a
new
FileOutputStream.
FileOutputStream fout = new FileOutputStream("mylog.txt", true);
System.setErr(new PrintStream(fout));
Giving it only th
Howdy,
I am setting up a standalone tomcat 3.2.1 with virtual
hosts. I have set the 'home' attribute in ContextManager
to /home/webmaster, and moved the webapps directory there.
The default index.html is now coming from /home/webmaster/webapps/ROOT
but I don't know why its looking there.
I
Help! I've installed Tomcat and the mod_jserv into Apache. The examples
on the Tomcat side works, but it won't serve JSP pages from my Apache root
directory.
I solved this by adding a virtual host to my server.xml file. I don't know
if this is the Right Way to do this, but nobody has told
To: [EMAIL PROTECTED]
Sent: Tuesday, December 19, 2000 7:19 AM
Subject: RE: Tomcat won't serve JSP's from my web server's root directory
Help! I've installed Tomcat and the mod_jserv into Apache. The
examples
on the Tomcat side works, but it won't serve JSP pages from my Apache
root
directory.
How do you add a virtual host to the server.xml file?
I added the following, which I don't know is a Right Way to do this,
but for my purposes (testing JSP as a platform) it is working fine.
(I put it immediately after the virtual host example.)
Host name="127.0.0.1"
Context path=""
Help! I've installed Tomcat and the mod_jserv into Apache. The examples
on
the Tomcat side works, but it won't serve JSP pages from my Apache root
directory.
Here is a brief snippet of the automatically genrated config file:
#Reference to .jsp added
AddType text/jsp .jsp
AddHandler
(I posted this question a few days ago but received no reply - It's really
messing me up though, so I'm trying again)
Hi-
I would like to provide .jsp files in my documentroot directory. For
example, setting a home page to:
http://mymachine.org/index.jsp
my jk_mod.conf contains the
77 matches
Mail list logo