RE: Default Servlet

2002-02-08 Thread Loc Lefvre

Hello Odo,
1. First of all, you can't make apache AND tomcat listen on the same port at the same 
time.

2. You can use a rewrite rule. Look at this url: 
http://httpd.apache.org/docs/mod/mod_rewrite.html

Cheers,
Loïc Lefèvre

-Message d'origine-
De : Odo [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 8 février 2002 10:33
À : Tomcat Users List
Objet : Default Servlet


Dear gurus.
I am running Apache+Tomcat4.

Please help me on the following:
1.How should I configure tomcat and apache to run on the same port 80.
2.If both in port 80, How should I configure apache that every request
like http://test.myserver.com will be redirected to only one servlet
http://test.myserver.com/servlet/Myservlet not using web.xml's welcome?

(In my case I ought not use web.xml because I want every request sholud
passed to servlet Myservlet only directly!)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Double loading when loading servlet on startup

2001-08-08 Thread Loc Lefvre

Got the same problem :(( (on v3.2.3 - NT)

-Message d'origine-
De : Alexander Cherinko [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 8 aout 2001 16:38
A : [EMAIL PROTECTED]
Objet : Double loading when loading servlet on startup


Hi
problem is that when I mark servlets as load-on-startup they are loaded
twice in jvm.
I want this servlet to serve as initializer i.e. to initialize some other
classes in its init method.
The worst is that that classes are double loaded too. I.e. I want to init
class which is Thread subclass to perform periodical custom action. As
result I have double threads running in jvm and making the same things! That
was obviousely not my real intention.
From the other hand when I launch that initializer from common servlet (not
loaded on startup) the problem is not present.
The most strange thing about it is that in both cases all classes are loaded
with the same ClassLoader.
I cannot understand is it a bug or just I don't understand something.
Please help.
--Che




RE: class path to the servlet Directory

2001-08-03 Thread Loc Lefvre

In fact, you need a jar package for your application to work.
In this case, you can put your jar package in the %TOMCAT_HOME%/lib
directory. Tomcat will load it at startup.

Loïc Lefèvre

-Message d'origine-
De : anupama [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 2 août 2001 12:54
À : [EMAIL PROTECTED]
Objet : class path to the servlet Directory


Hi,

how do I set the classpath to the directory where I have my servlets.This
has to be the directory other than the default webapps directory

thanks
Aditya