Tomcat processes

2002-08-14 Thread Amit Lonkar

Hi
is it possible to increases the number of processes
tomcat can handle. If yes the How?

Thanks
Amit Lonkar



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.com

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




Re: AW: Apache+Tomcat+mod_jk

2002-08-14 Thread Christoph Fischer

Thanks for the reply,

I did define the jvmRoute, but that didn't solve the problem.
Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost 
debug=0

My form is looking like that:
FORM  action=/servlet/myservlet method=POST
...
I don't use cookies, anyhow can cookies solve the routing problem to
stick with the tomcat I started the session with?

Thanks
Chris

Ralph Einfeldt wrote:

Did you define a unique jvmroute for each in server.xml ?

Engine jvmRoute=tomcat1 ...
Engine jvmRoute=tomcat2 ...

Have you encoded the action for the form(s) ?
Otherwise you will have problems if cookies 
are diabled.

  

-Ursprüngliche Nachricht-
Von: Christoph Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 17:19
An: [EMAIL PROTECTED]
Betreff: Apache+Tomcat+mod_jk


I'm using apache connected to two tomcat's via mod_jk and ajp13.
My webpages sends some formular-data to tomcat which generates a
new html-form. The problem is that when sending the new html-form 
back, apache redericts it to the second server. Apache is switching 
back and forth between the two tomcats after each reply.



--
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]




AW: Load Balancing Concepts

2002-08-14 Thread Ralph Einfeldt

mod_jk and mod_jk2 are currently the only connectors 
that supports activeliy load balancing.

What's easy to achive is the following:

- one apache/mod_jk as web server for static content 
  and load balancer for dynamic requests.
- Many Tomcat 4.0.4 instances to serve dynamic
  content

In this szenario you don't need an external 
loadbalancer.

As I understand it, mod_jk encodes the value of the
jvmroute of the engine tag in server.xml in the 
session id and uses that to route incoming requests
to the correct tomcat.

So your scenario should be possible. (I've not tried it)

What's currently not clear to me is, if it is possible 
to achive your goal with one AJPConnector in each 
tomcat instance for all apaches. (That's what I would 
try first, as in this case the configuration of
the mod_jk is the same across all apaches) 

Otherwise you can try to use one AJPConnector for
each apache instance and modify the mod_jk configuration
for each apache instance accordingly.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Schnitzer, Jeff [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 01:58
 An: '[EMAIL PROTECTED]'
 Betreff: Load Balancing Concepts

 This works because WebLogic session ids encode the IP of the 
 WL instance, enabling any NES to always forward to the correct 
 WL.

 Does this work:

 Non-sticky load balancer
 Several Apache/mod_jk instances
 Many Tomcat 4.0.4 instances  
 Do mod_jk and Tomcat 4.0.4 work the same way?
 

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




WG: AW: Apache+Tomcat+mod_jk

2002-08-14 Thread Ralph Einfeldt

If you don't use cookies you have to 
encode the form action:

FORM action=%= response.encodeUrl(/servlet/myservlet) %
method=POST

That's always recommended, as it up to the 
surfer if he enables or disables cookies.

 -Ursprüngliche Nachricht-
 Von: Christoph Fischer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 09:00
 An: Tomcat Users List; Ralph Einfeldt
 Betreff: Re: AW: Apache+Tomcat+mod_jk
 
 
 Thanks for the reply,
 
 I did define the jvmRoute, but that didn't solve the problem.
 Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost 
 debug=0
 
 My form is looking like that:
 FORM  action=/servlet/myservlet method=POST
 ...
 I don't use cookies, anyhow can cookies solve the routing problem to
 stick with the tomcat I started the session with?
 
 Thanks
 Chris
 
 Ralph Einfeldt wrote:
 

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




Tomcat 4.0.4 + Apache 2.0.39 + mod_webapp

2002-08-14 Thread mk

Hello List

I am new to the list and I am also new with Tomcat 4.0.4 + Apache 2.0.39 + mod_webapp. 
I have a tomcat 3.x + apache 1.3.x with mod_jk running under Debian 2.0 and it works 
fine. Now  I try to setup a Tomcat 4.0.4 + Apache 2.0.39 + mod_webapp under Debian 
Linux 3.0 stable (woody). I found a mod_webapp.so file on on the server of apache.org 
but when I try to load the module in the httpd.conf file I get the following error:

Cannot load mod_webapp.so into server:
mod_webapp.so: undefined symbol: ap_table_get

Is there a howto about mod_webapp with apache 2.0.x or can someone help me to solve 
the problem. Thanks.

Best regards

marcus


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




Out of Memory Error

2002-08-14 Thread # Lalit Nagpal #

hello

I simply try to access a jsp page which is in the
folder $TOMCAT_HOME/webapps/ROOT and what i get on the
browser is  Out of Memory Error 
what could be a possible solution

thanx in advance


=
# Lalit Nagpal #

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: Mapping directory

2002-08-14 Thread Taral Shah

Hi Andreas,

Thanks a lot for your solution. It worked for me.
I did the exact same thing and its working perfectly.

Now I am facing some typical problem, In my application peviously cgi file
was running with vqserver as cgi server.
Now When I mapped directory specified by you, I am able to run the
application but it throws native library error some times.
I am loading dll in my application, And when I excute the servlet it gives
me error that dll is already loaded,

If i restart tomcat it works fine. Surprsingly this error doesnot come with
older specifications.
i.e. running with vq server+tomcat.

Has anybody having any idea for loading dll problem in tomcat.

Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.

- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 5:42 PM
Subject: AW: Mapping directory


If your context happens to be cgi that should be possible. Put something
like this in your web.xml:

servlet
servlet-namemyServlet/servlet-name
servlet-classcom.YourInstitution.servlet.myServlet/servlet-class
/servlet

servlet-mapping
servlet-namemyServlet/servlet-name
url-pattern/vq/ca.exe/url-pattern
/servlet-mapping

Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.

Andreas Mohrig

-Ursprüngliche Nachricht-
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory


Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/context/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks
Taral Shah



--
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]



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




Re: WG: AW: Apache+Tomcat+mod_jk

2002-08-14 Thread Christoph Fischer

I'm using only servlets, but I also did try the session tracking via
HttpSession session = request.getSession(true);
 
Apache keeps switching between tomcat1 and 2 after each reply from the 
browser,
and in tomcat 'session.isNew()' returns always 'true'.

So this also didn't solve the problem, I think it's some configuration
I've missed in apache like 'keepalive' or someplace else.




Ralph Einfeldt wrote:

If you don't use cookies you have to 
encode the form action:

FORM action=%= response.encodeUrl(/servlet/myservlet) %
method=POST

That's always recommended, as it up to the 
surfer if he enables or disables cookies.

  

-Ursprüngliche Nachricht-
Von: Christoph Fischer [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 14. August 2002 09:00
An: Tomcat Users List; Ralph Einfeldt
Betreff: Re: AW: Apache+Tomcat+mod_jk


Thanks for the reply,

I did define the jvmRoute, but that didn't solve the problem.
Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost 
debug=0

My form is looking like that:
FORM  action=/servlet/myservlet method=POST
...
I don't use cookies, anyhow can cookies solve the routing problem to
stick with the tomcat I started the session with?

Thanks
Chris

Ralph Einfeldt wrote:




--
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]




what is url rewriting

2002-08-14 Thread Rum Pel

Can somebody tell me what is url rewriting? and does it
solve my problem:

I want to change the URL in the browser addressbar depending
on what the servlet outputs. ie., is there any provision
in the http spec for sending an url back to the client along
with the content?

Is this possible?

thanks.
--rp



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Way to specify realms for dynamically installed apps?

2002-08-14 Thread Chris Nokleberg

I'm using the new ant tasks to install and deploy web apps from
ant. One of my applications needs a JDBCRealm, but there doesn't seem
to be a way to supply the manager with additional bits it might need
to stick into server.xml, is that right? I can add the realm at the
engine level, but I'd rather not.

Chris

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




AW: WG: AW: Apache+Tomcat+mod_jk

2002-08-14 Thread Ralph Einfeldt

The session id holds the information which route
should be used. So there must be either a cookie
with a session id or an url that contains the 
session id.

If you don't use cookies you have to encode the url.

So either if the form is generated by your servlet
use response.encodeUrl() to create the action url 
or if the form is static html change that to a jsp 
file and use a scriptlet to create the ation url.

There is !NO! other way. (Beside forcing the user to 
use cookies.

Note that this is even a problem without loadbalancing,
as each time the user submits this form he will loose
his session.

 -Ursprüngliche Nachricht-
 Von: Christoph Fischer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 10:40
 An: Tomcat Users List; Ralph Einfeldt
 Betreff: Re: WG: AW: Apache+Tomcat+mod_jk
 
 
 I'm using only servlets, but I also did try the session tracking via
 HttpSession session = request.getSession(true);
  
 Apache keeps switching between tomcat1 and 2 after each reply 
 from the 
 browser,
 and in tomcat 'session.isNew()' returns always 'true'.
 

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




Bean on Tomcat

2002-08-14 Thread Vishal Mukherjee

Hi all

Can anyone tell me how to configure beans om Tomcat 4.0.4

Thanks  Regards
Vishal Mukherjee


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




Persistant sessions after restart

2002-08-14 Thread Colin Chalmers

Hi,

I've still got a problem with sessions that get reactivated after a
shutdown. I posed this question earlier  and discovered the session.ser
file.

I've now migrated to 4.1.8 to see if anything has changed. I also looked
into the PersistantManager settings in the server.xml conf file.
Unfortunately the sessions are still being reactivated after a shutdown.

Is there something else I should be configuring or is this the functionality
that's expected?

Colin Chalmers
Maxware Benelux



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




RE: Mapping directory

2002-08-14 Thread Andreas Mohrig

I'm afraid I don't have any expertise whatsoever concerning vq server, and
don't have to trouble with loading dlls either (all my servers run under
unix). But my guess would be that vq server somehow knows which dll it has
already loaded and refrains from loading it again, whereas tomcat does not
check for this. Maybe you can figure out a way to determine if the dll has
already been loaded (or which dlls are present in the system) and make the
loading dependent on the outcome of this check. It would be a good idea to
make this thread-safe as well, i.e. to use some kind of locking mechanism. 

Alternatively you could place an object in application scope to indicate if
the dll has already been loaded (by your servlet) if you do not get access
to the information about which dlls are already present in the system and if
you are sure that your servlet/application is the only one loading this
particular dll. If you initialize this object with an form of
application-initialization-servlet during startup, you could use it as a
semaphore (synchronization object / monitor) as well.

I'm not aware of any standard mechanism helping with such problems.

Hope that helps.

Andreas Mohrig

-Original Message-
From: Taral Shah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:06 AM
To: Tomcat Users List
Subject: Re: Mapping directory


Hi Andreas,

Thanks a lot for your solution. It worked for me.
I did the exact same thing and its working perfectly.

Now I am facing some typical problem, In my application peviously cgi file
was running with vqserver as cgi server.
Now When I mapped directory specified by you, I am able to run the
application but it throws native library error some times.
I am loading dll in my application, And when I excute the servlet it gives
me error that dll is already loaded,

If i restart tomcat it works fine. Surprsingly this error doesnot come with
older specifications.
i.e. running with vq server+tomcat.

Has anybody having any idea for loading dll problem in tomcat.

Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.

- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 5:42 PM
Subject: AW: Mapping directory


If your context happens to be cgi that should be possible. Put something
like this in your web.xml:

servlet
servlet-namemyServlet/servlet-name
servlet-classcom.YourInstitution.servlet.myServlet/servlet-class
/servlet

servlet-mapping
servlet-namemyServlet/servlet-name
url-pattern/vq/ca.exe/url-pattern
/servlet-mapping

Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.

Andreas Mohrig

-Ursprüngliche Nachricht-
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory


Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/context/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks
Taral Shah



--
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]



--
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]




AW: what is url rewriting

2002-08-14 Thread Ralph Einfeldt

url rewriting is mostly done by a module that intecepts 
incoming requests and changes it the before the request 
is forwarded to the application. The Application doesn't 
see the original request. (Look for mod_rewrite for apache)

What you look for is redirection. The server tells the 
browser to look at a different location for a given url. 
This is part of the HTTP Spec:

HTTP 1.0 http://www.faqs.org/rfcs/rfc1945.html
HTTP 1.1 http://www.faqs.org/rfcs/rfc2068.html

In servlets and jsp's it can be used through 
response.sendRedirect().

 -Ursprüngliche Nachricht-
 Von: Rum Pel [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 10:46
 An: [EMAIL PROTECTED]
 Betreff: what is url rewriting
 
 
 Can somebody tell me what is url rewriting? and does it
 solve my problem:
 
 I want to change the URL in the browser addressbar depending
 on what the servlet outputs. ie., is there any provision
 in the http spec for sending an url back to the client along
 with the content?
 

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




Re: AW: what is url rewriting

2002-08-14 Thread Rum Pel


url rewriting is mostly done by a module that intecepts
incoming requests and changes it the before the request
is forwarded to the application. The Application doesn't
see the original request. (Look for mod_rewrite for apache)


Oh I see. So it acts as a kind of filter. Thanks for the info.


What you look for is redirection. The server tells the
browser to look at a different location for a given url.

NO. I know about redirection and do not want it. I have
a servlet which is very general and takes a general
input and generates different outputs. I want the servlet
to send a url back to browser along with the output.
This way, I need not bother the client with different
URLs for the same servlet, this is anyway handled by
the html form. Now you might ask, why I need this: just
for the sake of visual convinience :-), and match the url
with the content.



This is part of the HTTP Spec:

HTTP 1.0 http://www.faqs.org/rfcs/rfc1945.html
HTTP 1.1 http://www.faqs.org/rfcs/rfc2068.html

In servlets and jsp's it can be used through
response.sendRedirect().

  -Ursprüngliche Nachricht-
  Von: Rum Pel [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 10:46
  An: [EMAIL PROTECTED]
  Betreff: what is url rewriting
 
 
  Can somebody tell me what is url rewriting? and does it
  solve my problem:
 
  I want to change the URL in the browser addressbar depending
  on what the servlet outputs. ie., is there any provision
  in the http spec for sending an url back to the client along
  with the content?
 

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




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


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




Session and IP

2002-08-14 Thread Roland Carlsson

Hi!
I'm trying to trace a strange behavior from a couple of error reports from
the users of a system.

The problem is that they seems to share the same session on our server.
Different computers, on different location, sharing a public ip-number
(corporate intranet through VPN to a single internet-node).

The company has IE4 as their default browser.

My questions are:

Is it possible that tomcat let those users share the same session since they
share the same public IP-number? Under what circumstances would that
behavior occur?

Thanks in advance
Roland Carlsson


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




Re: Mapping directory

2002-08-14 Thread Taral Shah

Hi,
Vq server is the server to execute cgi.
In that cgi, I was just calling servlet by opening a socket through cgi.
That servlet loads the dll and sends data back to cgi. cgi prints the data
on browser.
Now here in this case , i aint using any cgi, All exe extensions are mapped
to servlet so I dont need any more cgi.
Thus in both cases servlet was playing major part, it was loading the dll
but in later case(i.e. mapping directory case) its giving the error.  Even
if i open new browser still it gives me same error but when, I restart
tomcat it works fine.

If any one has faced such problem then pl. help me(the problem is mentioned
in the mails shown below)

Thanks

Taral Shah

- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 2:29 PM
Subject: RE: Mapping directory


I'm afraid I don't have any expertise whatsoever concerning vq server, and
don't have to trouble with loading dlls either (all my servers run under
unix). But my guess would be that vq server somehow knows which dll it has
already loaded and refrains from loading it again, whereas tomcat does not
check for this. Maybe you can figure out a way to determine if the dll has
already been loaded (or which dlls are present in the system) and make the
loading dependent on the outcome of this check. It would be a good idea to
make this thread-safe as well, i.e. to use some kind of locking mechanism.

Alternatively you could place an object in application scope to indicate if
the dll has already been loaded (by your servlet) if you do not get access
to the information about which dlls are already present in the system and if
you are sure that your servlet/application is the only one loading this
particular dll. If you initialize this object with an form of
application-initialization-servlet during startup, you could use it as a
semaphore (synchronization object / monitor) as well.

I'm not aware of any standard mechanism helping with such problems.

Hope that helps.

Andreas Mohrig

-Original Message-
From: Taral Shah [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:06 AM
To: Tomcat Users List
Subject: Re: Mapping directory


Hi Andreas,

Thanks a lot for your solution. It worked for me.
I did the exact same thing and its working perfectly.

Now I am facing some typical problem, In my application peviously cgi file
was running with vqserver as cgi server.
Now When I mapped directory specified by you, I am able to run the
application but it throws native library error some times.
I am loading dll in my application, And when I excute the servlet it gives
me error that dll is already loaded,

If i restart tomcat it works fine. Surprsingly this error doesnot come with
older specifications.
i.e. running with vq server+tomcat.

Has anybody having any idea for loading dll problem in tomcat.

Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.

- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 5:42 PM
Subject: AW: Mapping directory


If your context happens to be cgi that should be possible. Put something
like this in your web.xml:

servlet
servlet-namemyServlet/servlet-name
servlet-classcom.YourInstitution.servlet.myServlet/servlet-class
/servlet

servlet-mapping
servlet-namemyServlet/servlet-name
url-pattern/vq/ca.exe/url-pattern
/servlet-mapping

Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.

Andreas Mohrig

-Ursprüngliche Nachricht-
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory


Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/context/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks
Taral Shah






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




fixed classes

2002-08-14 Thread Juergen . Praska

Hello,

I have to fix some bugs in our application.
But I don't want create all jar-files again.
I want to pack all fixed classes into one jar-file.

In which directory I have to put this jar-file.

thanks
jürgen

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: Session and IP

2002-08-14 Thread Roland Carlsson

I forgot to tell what my server runs:

Jsdk 1.4.0
Tomcat 4.0.4
Apache 1.3.23
Windows NT 4 sp6

Thanks in advance
Roland

- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 11:19 AM
Subject: Session and IP


 Hi!
 I'm trying to trace a strange behavior from a couple of error reports from
 the users of a system.

 The problem is that they seems to share the same session on our server.
 Different computers, on different location, sharing a public ip-number
 (corporate intranet through VPN to a single internet-node).

 The company has IE4 as their default browser.

 My questions are:

 Is it possible that tomcat let those users share the same session since
they
 share the same public IP-number? Under what circumstances would that
 behavior occur?

 Thanks in advance
 Roland Carlsson


 --
 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]




jsp:forward to TOP-Frame

2002-08-14 Thread Harry Knörrer

Hello!

I want to forward the request to a page but it should be shown in my
top-frame.

e.g href=logindialogController.jsp?formcommand=logout target = _top

How can i solve this with jsp:forward

or any other solution?



Thanks
Harry Knoerrer



RE: what is url rewriting

2002-08-14 Thread Jan Willem Penterman

I'd say make it work the other way around. If you want those URL's to be
meaningful to the servlet (think search engines or referring to a
specific call to your servlet), you'd have to do that anyway.

So instead of trying to rewrite the URL in the addressbar, you make your
servlet generate the URL's you want in your address bar and put those in
the HREFs/ACTIONs on your form. Then (if neccesary, ) after the request
you map the URL to your servlet parameters.

JW

 -Original Message-
 From: Rum Pel [mailto:[EMAIL PROTECTED]]
 Sent: woensdag 14 augustus 2002 10:46
 To: [EMAIL PROTECTED]
 Subject: what is url rewriting
 
 
 Can somebody tell me what is url rewriting? and does it
 solve my problem:
 
 I want to change the URL in the browser addressbar depending on what 
 the servlet outputs. ie., is there any provision in the http spec for 
 sending an url back to the client along with the content?
 
 Is this possible?
 
 thanks.
 --rp
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




RE: Session and IP

2002-08-14 Thread Andreas Mohrig

Afaik tomcat uses either cookies or url-encoding to get the session-id from
the users requesting a resource, which has nothing to do with the ip
address. The only circumstances I could imagine therefore are two differente
browsers having installed the same session-cookie (which is quite unlikely
and would require the users to actively copy those cookie from one machine
to the other) or (which is much more likely) two users using the same
encoded urls. This might happen if one user sends another the complete(!)
link containing the session id by copying it out of the address-field of his
browser, e.g.:

http://www.yourserver.com/yourcontext/someresource.jsp;jsessionid=C21CC5E4A5
890818B3E56426925E86F9

This would let the other user share the same session as long as it has not
timed out.

best regards

Andreas Mohrig

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:20 AM
To: Tomcat Users List
Subject: Session and IP


Hi!
I'm trying to trace a strange behavior from a couple of error reports from
the users of a system.

The problem is that they seems to share the same session on our server.
Different computers, on different location, sharing a public ip-number
(corporate intranet through VPN to a single internet-node).

The company has IE4 as their default browser.

My questions are:

Is it possible that tomcat let those users share the same session since they
share the same public IP-number? Under what circumstances would that
behavior occur?

Thanks in advance
Roland Carlsson


--
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]




RE: forward to TOP-Frame

2002-08-14 Thread Barney Hamish

You can't solve this with forward. You need to do this client side with
either javascript or by changing whatever link the user clicks on to to
include a target.
Hamish

-Original Message-
From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:27 AM
To: Tomcat-Liste (E-Mail)
Subject: jsp:forward to TOP-Frame


Hello!

I want to forward the request to a page but it should be shown in my
top-frame.

e.g href=logindialogController.jsp?formcommand=logout target = _top

How can i solve this with jsp:forward

or any other solution?



Thanks
Harry Knoerrer

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




disable directory indexing in Tomcat 4.0

2002-08-14 Thread ToFu


Anybody!!

Racking my brain trying to find a directive, attribute or whatever to turn
off directory indexing in Tomcat 4.0.

I've got apache configured properly for -Indexing, but Tomcat just won't
budge.  Does anyone know how to do this??  Please!!

Todd


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




AW: disable directory indexing in Tomcat 4.0

2002-08-14 Thread Holger Klein-Altstedde

Try
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

in your web.xml

Regs 
Holger

 -Ursprüngliche Nachricht-
 Von: ToFu [mailto:[EMAIL PROTECTED]] 
 Gesendet: Mittwoch, 14. August 2002 11:29
 An: [EMAIL PROTECTED]
 Betreff: disable directory indexing in Tomcat 4.0
 
 
 
 Anybody!!
 
 Racking my brain trying to find a directive, attribute or 
 whatever to turn off directory indexing in Tomcat 4.0.
 
 I've got apache configured properly for -Indexing, but Tomcat 
 just won't budge.  Does anyone know how to do this??  Please!!
 
 Todd
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




tomcat stops randomly. why??

2002-08-14 Thread Serdar BOZDA

Hi All,

I have installed Apache Tomcat 4.0.4 web server to my computer. Tomcat is running as a 
service on this NT machine. But sometimes it does not respond. I have no explanation 
for it. 
I looked at the log files to find out sth. The only thing that I found is in the 
localhost_examples_log.2002-08-13.txt file. There is a recurring error. But the time 
that the error occur at is not the time that the server is unreacheable.
(In the services window it is seemed as working properly.)

What may the reason for this problem?
--The following error
--NT machine
--High Load(In fact load is not so high)
--Or what ???

Thanks in advance,

Serdar

By the way the error is that is in localhost_examples_log.2002-08-13.txt :

!--StartFragment--2002-08-13 20:58:36 StandardWrapperValve[default]: 
Servlet.service() for servlet default threw exception
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at 
org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:674)
at 
org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:764)
at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647)
at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312)
at 
org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:189)
at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1903)
at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1652)
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1197)
at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)




Re: Session and IP

2002-08-14 Thread Roland Carlsson

Thanks for your answer.

We are not using url-encoding, only cookies.

Is it possible that a proxy can catch the page and fool the cookie system?
We have not set any commands to proxys but the default that tomcat uses?

Thanks
Roland Carlsson


- Original Message -
From: Andreas Mohrig [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 11:31 AM
Subject: RE: Session and IP


 Afaik tomcat uses either cookies or url-encoding to get the session-id
from
 the users requesting a resource, which has nothing to do with the ip
 address. The only circumstances I could imagine therefore are two
differente
 browsers having installed the same session-cookie (which is quite unlikely
 and would require the users to actively copy those cookie from one machine
 to the other) or (which is much more likely) two users using the same
 encoded urls. This might happen if one user sends another the complete(!)
 link containing the session id by copying it out of the address-field of
his
 browser, e.g.:


http://www.yourserver.com/yourcontext/someresource.jsp;jsessionid=C21CC5E4A5
 890818B3E56426925E86F9

 This would let the other user share the same session as long as it has not
 timed out.

 best regards

 Andreas Mohrig

 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 11:20 AM
 To: Tomcat Users List
 Subject: Session and IP


 Hi!
 I'm trying to trace a strange behavior from a couple of error reports from
 the users of a system.

 The problem is that they seems to share the same session on our server.
 Different computers, on different location, sharing a public ip-number
 (corporate intranet through VPN to a single internet-node).

 The company has IE4 as their default browser.

 My questions are:

 Is it possible that tomcat let those users share the same session since
they
 share the same public IP-number? Under what circumstances would that
 behavior occur?

 Thanks in advance
 Roland Carlsson


 --
 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]



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




Re: forward to TOP-Frame

2002-08-14 Thread mk

Hello Harry

 You can't solve this with forward.
 You need to do this client side with
 either javascript ...

Here is a example of a javascript function.

Must run on the client side.

script language=javascript
!--
 function logout() {
  thePage = http://www.thewebsite.com;
  top.location.href=thePage;
 }
// --
/script

Marcus


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




re: tomcat stops randomly. why??

2002-08-14 Thread Mark O'Driscoll

I have a similar but different problem.

Running 4.0.3 on solaris 8 standalone with jdk 1.4

Occasionally, tomcat dies with no error message in any log file. It is as if
someone has kill -9'ed the jvm.

Has anyone seen anything like this?

People here are getting very wary of tomcat. I need some resolution to this.




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




AW: forward to TOP-Frame

2002-08-14 Thread Harry Knörrer

This is a problem cause the forward should happen when the session is
invalid.
I check this in my controller.jsp

 -Ursprüngliche Nachricht-
 Von: Barney Hamish [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:29
 An: 'Tomcat Users List'
 Betreff: RE: forward to TOP-Frame


 You can't solve this with forward. You need to do this client
 side with
 either javascript or by changing whatever link the user
 clicks on to to
 include a target.
 Hamish

 -Original Message-
 From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 11:27 AM
 To: Tomcat-Liste (E-Mail)
 Subject: jsp:forward to TOP-Frame


 Hello!

 I want to forward the request to a page but it should be shown in my
 top-frame.

 e.g href=logindialogController.jsp?formcommand=logout
 target = _top

 How can i solve this with jsp:forward

 or any other solution?



 Thanks
 Harry Knoerrer

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



Re: tomcat stops randomly. why??

2002-08-14 Thread Remy Maucherat

Serdar BOZDA wrote:
 Hi All,
 
 I have installed Apache Tomcat 4.0.4 web server to my computer. Tomcat is running as 
a service on this NT machine. But sometimes it does not respond. I have no 
explanation for it. 
 I looked at the log files to find out sth. The only thing that I found is in the 
localhost_examples_log.2002-08-13.txt file. There is a recurring error. But the time 
that the error occur at is not the time that the server is unreacheable.
 (In the services window it is seemed as working properly.)
 
 What may the reason for this problem?
 --The following error
 --NT machine
 --High Load(In fact load is not so high)
 --Or what ???

It's not the error you mention, that's for sure. (that one only means a 
client disconnected while a request was processed)

I have no idea what could cause your Tomcat to stop working. You could 
try to see if it's a memory problem, or if the VM just crashes.

You could try the Tomcat 4.1.x betas and see if it helps.
4.1.8 Beta: 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.8-beta/
4.1.9 Test: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.9/

Remy


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




AW: forward to TOP-Frame

2002-08-14 Thread Harry Knörrer

And javascript isn't allowed

 -Ursprüngliche Nachricht-
 Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:45
 An: 'Tomcat Users List'
 Betreff: AW: forward to TOP-Frame


 This is a problem cause the forward should happen when the session is
 invalid.
 I check this in my controller.jsp

  -Ursprüngliche Nachricht-
  Von: Barney Hamish [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:29
  An: 'Tomcat Users List'
  Betreff: RE: forward to TOP-Frame
 
 
  You can't solve this with forward. You need to do this client
  side with
  either javascript or by changing whatever link the user
  clicks on to to
  include a target.
  Hamish
 
  -Original Message-
  From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 14, 2002 11:27 AM
  To: Tomcat-Liste (E-Mail)
  Subject: jsp:forward to TOP-Frame
 
 
  Hello!
 
  I want to forward the request to a page but it should be shown in my
  top-frame.
 
  e.g href=logindialogController.jsp?formcommand=logout
  target = _top
 
  How can i solve this with jsp:forward
 
  or any other solution?
 
 
 
  Thanks
  Harry Knoerrer
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]




RE: forward to TOP-Frame

2002-08-14 Thread Barney Hamish

You can't do this server side with out using javascript then.

The only way you're going to be able to do what you want without using
javascript is to get rid of the frames and put the whole site in one window.

-Original Message-
From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:49 AM
To: 'Tomcat Users List'
Subject: AW: forward to TOP-Frame


And javascript isn't allowed

 -Ursprüngliche Nachricht-
 Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:45
 An: 'Tomcat Users List'
 Betreff: AW: forward to TOP-Frame


 This is a problem cause the forward should happen when the session is
 invalid.
 I check this in my controller.jsp

  -Ursprüngliche Nachricht-
  Von: Barney Hamish [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:29
  An: 'Tomcat Users List'
  Betreff: RE: forward to TOP-Frame
 
 
  You can't solve this with forward. You need to do this client
  side with
  either javascript or by changing whatever link the user
  clicks on to to
  include a target.
  Hamish
 
  -Original Message-
  From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 14, 2002 11:27 AM
  To: Tomcat-Liste (E-Mail)
  Subject: jsp:forward to TOP-Frame
 
 
  Hello!
 
  I want to forward the request to a page but it should be shown in my
  top-frame.
 
  e.g href=logindialogController.jsp?formcommand=logout
  target = _top
 
  How can i solve this with jsp:forward
 
  or any other solution?
 
 
 
  Thanks
  Harry Knoerrer
 
  --
  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]




Re: forward to TOP-Frame

2002-08-14 Thread Mark O'Driscoll

Is this a game? You are trying to manipulate client side functionality
without using the only client side programming feature (javascript) you
have.

Trying to develop any system with a browser front end without using
javascript is a futile exercise.

Tell whoever mandated the ban on javascript that he is a muppet and should
seek alternative employment in McDonalds. You can tell him I said so!


- Original Message -
From: Harry Knörrer [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:49 AM
Subject: AW: forward to TOP-Frame


 And javascript isn't allowed

  -Ursprüngliche Nachricht-
  Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:45
  An: 'Tomcat Users List'
  Betreff: AW: forward to TOP-Frame
 
 
  This is a problem cause the forward should happen when the session is
  invalid.
  I check this in my controller.jsp
 
   -Ursprüngliche Nachricht-
   Von: Barney Hamish [mailto:[EMAIL PROTECTED]]
   Gesendet: Mittwoch, 14. August 2002 11:29
   An: 'Tomcat Users List'
   Betreff: RE: forward to TOP-Frame
  
  
   You can't solve this with forward. You need to do this client
   side with
   either javascript or by changing whatever link the user
   clicks on to to
   include a target.
   Hamish
  
   -Original Message-
   From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, August 14, 2002 11:27 AM
   To: Tomcat-Liste (E-Mail)
   Subject: jsp:forward to TOP-Frame
  
  
   Hello!
  
   I want to forward the request to a page but it should be shown in my
   top-frame.
  
   e.g href=logindialogController.jsp?formcommand=logout
   target = _top
  
   How can i solve this with jsp:forward
  
   or any other solution?
  
  
  
   Thanks
   Harry Knoerrer
  
   --
   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]




RE: forward to TOP-Frame

2002-08-14 Thread Andreas Mohrig

I'm afraid tomcat itself can't help you with this at all, since you really
have to convince the client browser to use the top frame to display your
page. Once the browser has requested your page to display within a subframe,
your page doesn't even know it is to be displayed within this subframe. You
would have to send back a page that instructs the browser to reaload another
(or the same) page in the top frame. Without JavaScript I would imagine this
to be quite difficult.

If this is _really_ important to you there may be another way, though. You
may be able to emulate your frame-structure by composing your jsp-pages
dynamically via jsp:include page=somepage/ and/or %@ include
file=somefile%. I admit this would be a painful course of action if you
have already designed your application to use frames, but then you could
just send back a page missing alle the included parts, which will make it
top.

greetings

Andreas Mohrig

-Original Message-
From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:49 AM
To: 'Tomcat Users List'
Subject: AW: forward to TOP-Frame


And javascript isn't allowed

 -Ursprüngliche Nachricht-
 Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:45
 An: 'Tomcat Users List'
 Betreff: AW: forward to TOP-Frame


 This is a problem cause the forward should happen when the session is
 invalid.
 I check this in my controller.jsp

  -Ursprüngliche Nachricht-
  Von: Barney Hamish [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:29
  An: 'Tomcat Users List'
  Betreff: RE: forward to TOP-Frame
 
 
  You can't solve this with forward. You need to do this client
  side with
  either javascript or by changing whatever link the user
  clicks on to to
  include a target.
  Hamish
 
  -Original Message-
  From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 14, 2002 11:27 AM
  To: Tomcat-Liste (E-Mail)
  Subject: jsp:forward to TOP-Frame
 
 
  Hello!
 
  I want to forward the request to a page but it should be shown in my
  top-frame.
 
  e.g href=logindialogController.jsp?formcommand=logout
  target = _top
 
  How can i solve this with jsp:forward
 
  or any other solution?
 
 
 
  Thanks
  Harry Knoerrer
 
  --
  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]




AW: forward to TOP-Frame

2002-08-14 Thread Ralph Einfeldt

Then you just can't do it.

This is a client site problem. 
Tomcat (as any web server) doesn't know anything 
about targets (It's not part of the HTTP protocoll). 
So every response is send back to the frame that 
send the request. The !ONLY! way to change that, is 
to use javascript.

 -Ursprüngliche Nachricht-
 Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:49
 An: 'Tomcat Users List'
 Betreff: AW: forward to TOP-Frame
 
 
 And javascript isn't allowed
 

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




AW: Session and IP

2002-08-14 Thread Ralph Einfeldt

What makes you think that they share the session ?

In mosts cases I have seen in the past this kind 
of problems came from the application that stored 
something in a way that wasn't session safe.

On additional type of problem:
Pages with personalized data can sometimes be cached 
by proxies, so make shure that you disable the caching
by setting the apropriate headers.

 -Ursprüngliche Nachricht-
 Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:20
 An: Tomcat Users List
 Betreff: Session and IP
 
 The problem is that they seems to share the same session on 
 our server.

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




RE: Session and IP

2002-08-14 Thread Mark Goking

im using tomcat 4.04

and this is my code for using the jdbc realm in the server.xml

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.driver.OracleDriver
   connectionURL=jdbc:oracle:thin:@dev10:1521:dev10
connectionName=custcare
 connectionPassword=custcare
  userTable=custcare.users userNameCol=username userCredCol=password
  userRoleTable=custcare.groups roleNameCol=groupid /
--


however once i log in it always gives a null pointer exception and i cant trace the 
source of the error coz it goes directly to the error page itself.

im not sure but my doubt is that this will only work with 4.03 or maybe less. it wont 
work with the 4.04 version

now i also tried the 4.04 sample code

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.driver.OracleDriver
  
connectionURL=jdbc:oracle:thin:dev10:1521:ORCL?user=custcare;password=custcare
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=groups roleNameCol=groupid /

this gives me a different error. invalid call argument. anyone help me with this? 
would be appreciated. thanks

-- mark

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 

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




JDCB realm problem

2002-08-14 Thread Mark Goking





im using tomcat 4.04

and this is my code for using the jdbc realm in the server.xml

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.driver.OracleDriver
   connectionURL=jdbc:oracle:thin:@dev10:1521:dev10
connectionName=custcare
 connectionPassword=custcare
  userTable=custcare.users userNameCol=username userCredCol=password
  userRoleTable=custcare.groups roleNameCol=groupid /
--


however once i log in it always gives a null pointer exception and i cant trace the 
source of the error coz it goes directly to the error page itself.

im not sure but my doubt is that this will only work with 4.03 or maybe less. it wont 
work with the 4.04 version

now i also tried the 4.04 sample code

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.driver.OracleDriver
  
connectionURL=jdbc:oracle:thin:dev10:1521:ORCL?user=custcare;password=custcare
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=groups roleNameCol=groupid /

this gives me a different error. invalid call argument. anyone help me with this? 
would be appreciated. thanks

-- mark

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 

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




AW: forward to TOP-Frame

2002-08-14 Thread Harry Knörrer
Title: AW: forward to TOP-Frame






Ok!

Thanks a lot!


I forward to a page which displays an message and a submit button which links to my login-controller with target=_top


I hope the customer is happy.



 -Ursprüngliche Nachricht-

 Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]

 Gesendet: Mittwoch, 14. August 2002 12:29

 An: Tomcat Users List

 Betreff: AW: forward to TOP-Frame

 

 

 Then you just can't do it.

 

 This is a client site problem. 

 Tomcat (as any web server) doesn't know anything 

 about targets (It's not part of the HTTP protocoll). 

 So every response is send back to the frame that 

 send the request. The !ONLY! way to change that, is 

 to use javascript.

 

  -Ursprüngliche Nachricht-

  Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]

  Gesendet: Mittwoch, 14. August 2002 11:49

  An: 'Tomcat Users List'

  Betreff: AW: forward to TOP-Frame

  

  

  And javascript isn't allowed

  

 

 --

 To unsubscribe, e-mail: 

 mailto:[EMAIL PROTECTED]

 For additional commands, e-mail: 

 mailto:[EMAIL PROTECTED]

 



attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Connection pooling using Jakarta commons

2002-08-14 Thread Capr1ce

Hi,

I'm new here. My name's Mel. Hi!

Anyway, I have a question that I cannot find an answer for anywhere.
I've implemented connection pooling using Tomcat 4.0 and the required 
projects from Jakarta commons as instructed in the JNDI resources how to 
that can be found with in the Tomcat documentation. 
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html)
I have edited my server.xml and web.xml files and it works perfectly. How 
comes the time for my project to be transferred onto the new web hosting 
companys web site. This is where I have hit a problem. I cannot edit their 
server.xml. Only my own web.xml. So i've added the resource-ref element 
to web.xml:

resource-ref
 res-ref-namejdbc/ocb_clients/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref

However, server.xml contains many parameters:

ResourceParams name=jdbc/ocb_clients
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
  nameusername/name
  valueusername here/value
 /parameter
 parameter
  namepassword/name
  valuepassword_here/value
 /parameter
 parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:mysql://localhost:3306/ocb_clients/value
 /parameter
/ResourceParams

Can these be included in web.xml somehow? Or do I need to take a different 
approach?
Thanks very much for any help,
Mel.




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




Block a dir to not display its content

2002-08-14 Thread D Bamud

Tomcat4.0.4 / J2SDK1.4.0/W2K

My application is webapps/bbc. It works just fine. The dirs inside it are
jsp and WEB-INF. Inside the jsp dir I have my *.jsp files and also some
directories like doc, src, images etc. These are the directories that
the end user should not see content of via the browser. If someone make a
URL like /bbc/jsp/doc the contents are displayed on the browser and the user
could see/save them. I want to prevent them IN THE SAME WAY AS WEB-INF dir
is now (Tomcat4.x onwards). How to do it.

One way is of-course put default file like index.html (based on the
configuration). But I am looking for more better way (WEB-INF way). Where
and what I need to delcare.

--
Thanks



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




AW: Block a dir to not display its content

2002-08-14 Thread Holger Klein-Altstedde

Try
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

in your web.xml. This will force Tomcat not indexing your directory.

Regs 
Holger

 -Ursprüngliche Nachricht-
 Von: D Bamud [mailto:[EMAIL PROTECTED]] 
 Gesendet: Mittwoch, 14. August 2002 13:21
 An: Tomcat Users List
 Betreff: Block a dir to not display its content
 
 
 Tomcat4.0.4 / J2SDK1.4.0/W2K
 
 My application is webapps/bbc. It works just fine. The dirs 
 inside it are jsp and WEB-INF. Inside the jsp dir I have 
 my *.jsp files and also some directories like doc, src, 
 images etc. These are the directories that the end user 
 should not see content of via the browser. If someone make a 
 URL like /bbc/jsp/doc the contents are displayed on the 
 browser and the user could see/save them. I want to prevent 
 them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x 
 onwards). How to do it.
 
 One way is of-course put default file like index.html (based 
 on the configuration). But I am looking for more better way 
 (WEB-INF way). Where and what I need to delcare.
 
 --
 Thanks
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [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]




Re: Block a dir to not display its content

2002-08-14 Thread R.C.Nougain

holger.klein

I tried but. Where inside web.xml I need to put!

--



- Original Message -
From: Holger Klein-Altstedde [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 4:53 PM
Subject: AW: Block a dir to not display its content


Try
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

in your web.xml. This will force Tomcat not indexing your directory.

Regs
Holger

 -Ursprüngliche Nachricht-
 Von: D Bamud [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 13:21
 An: Tomcat Users List
 Betreff: Block a dir to not display its content


 Tomcat4.0.4 / J2SDK1.4.0/W2K

 My application is webapps/bbc. It works just fine. The dirs
 inside it are jsp and WEB-INF. Inside the jsp dir I have
 my *.jsp files and also some directories like doc, src,
 images etc. These are the directories that the end user
 should not see content of via the browser. If someone make a
 URL like /bbc/jsp/doc the contents are displayed on the
 browser and the user could see/save them. I want to prevent
 them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x
 onwards). How to do it.

 One way is of-course put default file like index.html (based
 on the configuration). But I am looking for more better way
 (WEB-INF way). Where and what I need to delcare.

 --
 Thanks



 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [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]



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




Re: Session and IP

2002-08-14 Thread Roland Carlsson

Thanks for your answer.

We have now put a header with nocache. One of the users that have reported
the error of getting someone else data says that it works like it should so
it seems like if the problem was in a proxy.

I would like to ask for tomcat as default to uses nocache since that is the
behavior at least I assume that a dynamic webserver to have. But I'll guess
that there are arguments to not to do that. But to me it seems more
logically to tell when to allow caching then when not to since the reason to
use dynamic webservers are that the pages changes.

Thanks again all who have helped!

Roland Carlsson

- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 12:35 PM
Subject: AW: Session and IP


 What makes you think that they share the session ?

 In mosts cases I have seen in the past this kind
 of problems came from the application that stored
 something in a way that wasn't session safe.

 On additional type of problem:
 Pages with personalized data can sometimes be cached
 by proxies, so make shure that you disable the caching
 by setting the apropriate headers.

  -Ursprüngliche Nachricht-
  Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 11:20
  An: Tomcat Users List
  Betreff: Session and IP
 
  The problem is that they seems to share the same session on
  our server.

 --
 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]




AW: Block a dir to not display its content

2002-08-14 Thread Holger Klein-Altstedde

I attached the file /conf/web.xml
Ist in the servlet section.

Regs
Holger

 -Ursprüngliche Nachricht-
 Von: R.C.Nougain [mailto:[EMAIL PROTECTED]] 
 Gesendet: Mittwoch, 14. August 2002 13:27
 An: Tomcat Users List
 Betreff: Re: Block a dir to not display its content
 
 
 holger.klein
 
 I tried but. Where inside web.xml I need to put!
 
 --
 
 
 
 - Original Message -
 From: Holger Klein-Altstedde [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 4:53 PM
 Subject: AW: Block a dir to not display its content
 
 
 Try
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param
 
 in your web.xml. This will force Tomcat not indexing your directory.
 
 Regs
 Holger
 
  -Ursprüngliche Nachricht-
  Von: D Bamud [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 13:21
  An: Tomcat Users List
  Betreff: Block a dir to not display its content
 
 
  Tomcat4.0.4 / J2SDK1.4.0/W2K
 
  My application is webapps/bbc. It works just fine. The dirs 
 inside it 
  are jsp and WEB-INF. Inside the jsp dir I have my *.jsp 
 files and 
  also some directories like doc, src, images etc. 
 These are the 
  directories that the end user should not see content of via the 
  browser. If someone make a URL like /bbc/jsp/doc the contents are 
  displayed on the browser and the user could see/save them. 
 I want to 
  prevent them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x
  onwards). How to do it.
 
  One way is of-course put default file like index.html (based on the 
  configuration). But I am looking for more better way (WEB-INF way). 
  Where and what I need to delcare.
 
  --
  Thanks
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail: 
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app


  !--  Introduction == --


  !-- This document defines default values for *all* web applications  --
  !-- loaded into this instance of Tomcat.  As each application is --
  !-- deployed, this file is processed, followed by the--
  !-- /WEB-INF/web.xml deployment descriptor from your own   --
  !-- applications.--


  !-- == Built In Servlet Definitions  --


  !-- The default servlet for all web applications, that serves static --
  !-- resources.  It processes all requests that are not mapped to other   --
  !-- servlets with servlet mappings (defined either here or in your own   --
  !-- web.xml file.  This servlet supports the following initialization--
  !-- parameters (default values are in square brackets):  --
  !--  --
  !--   debug   Debugging detail level for messages logged --
  !--   by this servlet.  [0]  --
  !--  --
  !--   input   Input buffer size (in bytes) when reading  --
  !--   resources to be served.  [2048]--
  !--  --
  !--   listingsShould directory listings be produced if there --
  !--   is no welcome file in this directory?  [true]  --
  !--  --
  !--   output  Output buffer size (in bytes) when writing --
  !--   resources to be served.  [2048]--
  !--  --
  !--   readonlyIs this context read only, so HTTP   --
  !--   commands like PUT and DELETE are   --
  !--   rejected?  [true]  --

  servlet
servlet-namedefault/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
load-on-startup1/load-on-startup
  /servlet


  !-- The invoker servlet, which executes anonymous servlet classes  --
  !-- that have not been defined in a 

Re: Block a dir to not display its content

2002-08-14 Thread R.C.Nougain

Many thanks!



- Original Message -
From: Holger Klein-Altstedde [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 5:01 PM
Subject: AW: Block a dir to not display its content


I attached the file /conf/web.xml
Ist in the servlet section.

Regs
Holger

 -Ursprüngliche Nachricht-
 Von: R.C.Nougain [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 13:27
 An: Tomcat Users List
 Betreff: Re: Block a dir to not display its content


 holger.klein

 I tried but. Where inside web.xml I need to put!

 --



 - Original Message -
 From: Holger Klein-Altstedde [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 4:53 PM
 Subject: AW: Block a dir to not display its content


 Try
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param

 in your web.xml. This will force Tomcat not indexing your directory.

 Regs
 Holger

  -Ursprüngliche Nachricht-
  Von: D Bamud [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 13:21
  An: Tomcat Users List
  Betreff: Block a dir to not display its content
 
 
  Tomcat4.0.4 / J2SDK1.4.0/W2K
 
  My application is webapps/bbc. It works just fine. The dirs
 inside it
  are jsp and WEB-INF. Inside the jsp dir I have my *.jsp
 files and
  also some directories like doc, src, images etc.
 These are the
  directories that the end user should not see content of via the
  browser. If someone make a URL like /bbc/jsp/doc the contents are
  displayed on the browser and the user could see/save them.
 I want to
  prevent them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x
  onwards). How to do it.
 
  One way is of-course put default file like index.html (based on the
  configuration). But I am looking for more better way (WEB-INF way).
  Where and what I need to delcare.
 
  --
  Thanks
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 


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



 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [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]


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




AW: Session and IP

2002-08-14 Thread Ralph Einfeldt

- I don't think that 'no cache' is a usefull default for 
  most applications, as in most applications the pages 
  that contain personalized data are the minority.
  (Beside thhe problem mostly happens together with 
  forms with method=post as in this case the url
  doesn't change) 

- Yes, I would like an option where the behaviour
  can be defined globally for .
  To do this on your own you could write a filter 
  that sets the headers before calling doChain().

- To be very shure that no caching happens in dialogs
  we use sequence numbers that we append as parameters
  to the url. This way the url changes with every 
  request and is never cached at all.

 -Ursprüngliche Nachricht-
 Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 13:28
 An: Tomcat Users List
 Betreff: Re: Session and IP
 
 
 Thanks for your answer.
 
 We have now put a header with nocache. One of the users that 
 have reported
 the error of getting someone else data says that it works 
 like it should so
 it seems like if the problem was in a proxy.
 
 I would like to ask for tomcat as default to uses nocache 
 since that is the
 behavior at least I assume that a dynamic webserver to have. 
 But I'll guess
 that there are arguments to not to do that. But to me it seems more
 logically to tell when to allow caching then when not to 
 since the reason to
 use dynamic webservers are that the pages changes.
 
 Thanks again all who have helped!
 
 Roland Carlsson
 
 - Original Message -
 From: Ralph Einfeldt [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 12:35 PM
 Subject: AW: Session and IP
 
 
  What makes you think that they share the session ?
 
  In mosts cases I have seen in the past this kind
  of problems came from the application that stored
  something in a way that wasn't session safe.
 
  On additional type of problem:
  Pages with personalized data can sometimes be cached
  by proxies, so make shure that you disable the caching
  by setting the apropriate headers.
 
   -Ursprüngliche Nachricht-
   Von: Roland Carlsson [mailto:[EMAIL PROTECTED]]
   Gesendet: Mittwoch, 14. August 2002 11:20
   An: Tomcat Users List
   Betreff: Session and IP
  
   The problem is that they seems to share the same session on
   our server.
 
  --
  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]



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




RE: Application running on Tomcat 4.1.3 stops resonding when installed with the Manager app

2002-08-14 Thread Collins, Jim

Hi,

I have taken Andrews advise and upgraded Tomcat. I am now using version
4.1.8, however I am still getting the same problem. I believe that I have
narrowed the problem down to using JNDIRealm to authenticate users, in the
past I used Apache to authenticate a user against LDAP but now I am running
Tomcat stand alone and it authenticates against LDAP. This is the only thing
I can think of because I have never had this problem before with earlier
versions of Tomcat, and the Manager app also fails and that is using
JNDIRealm to authenticate.

If anyone has any ideas about this it would be great.

Thanks.

Jim.

 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: 13 August 2002 08:57
 To: 'Tomcat Users List'
 Subject: Application running on Tomcat 4.1.3 stops resonding when
 installe d with the Manager app
 
 
 Hi,
 
 I have a an application running on Tomcat 4.1.3 that frequently stops
 responding for approximately 8 minutes. Tomcat itself is 
 still running OK
 and I can access the example servlets and JSP's with no problem. My
 application is deployed as a WAR file using the Manager 
 servlets install
 command, and I don't know if it could be something to do with 
 this. Below is
 a stack trace from catalina.out that I get when the app stops 
 responding: 
 
 java.net.SocketException: Software caused connection abort
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSo
 cket(DefaultSe
 rverSocketFactory.java:107)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTc
 pEndpoint.java
 :335)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:483)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:518)
 at java.lang.Thread.run(Thread.java:536)
 
 If anyone has any idea why this is happening it would be appreciated.
 
 Thanks
 
 Jim.
 
 PS I am still working on the app and installing it and 
 removing it quiet a
 lot as develop and at times the install and remove commands 
 don't respond
 for about 8 minutes.
 
 
 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not 
 an intended
 recipient of this email you must not copy, distribute or take any 
 further action in reliance on it and you should delete it and 
 notify the
 sender immediately. Email is not a secure method of communication and 
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please 
 examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura 
 International plc is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




RE: Block a dir to not display its content

2002-08-14 Thread Shapira, Yoav

Hi,
What if I want a solution that applies to only one webapp, FooApp for example, and not 
the whole server?  Where in FooApp's web.xml would I put the listings = false 
directive?

Thanks,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Holger Klein-Altstedde [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 7:31 AM
To: 'Tomcat Users List'
Subject: AW: Block a dir to not display its content

I attached the file /conf/web.xml
Ist in the servlet section.

Regs
Holger

 -Ursprüngliche Nachricht-
 Von: R.C.Nougain [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 13:27
 An: Tomcat Users List
 Betreff: Re: Block a dir to not display its content


 holger.klein

 I tried but. Where inside web.xml I need to put!

 --



 - Original Message -
 From: Holger Klein-Altstedde [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 4:53 PM
 Subject: AW: Block a dir to not display its content


 Try
 init-param
   param-namelistings/param-name
   param-valuefalse/param-value
 /init-param

 in your web.xml. This will force Tomcat not indexing your directory.

 Regs
 Holger

  -Ursprüngliche Nachricht-
  Von: D Bamud [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 13:21
  An: Tomcat Users List
  Betreff: Block a dir to not display its content
 
 
  Tomcat4.0.4 / J2SDK1.4.0/W2K
 
  My application is webapps/bbc. It works just fine. The dirs
 inside it
  are jsp and WEB-INF. Inside the jsp dir I have my *.jsp
 files and
  also some directories like doc, src, images etc.
 These are the
  directories that the end user should not see content of via the
  browser. If someone make a URL like /bbc/jsp/doc the contents are
  displayed on the browser and the user could see/save them.
 I want to
  prevent them IN THE SAME WAY AS WEB-INF dir is now (Tomcat4.x
  onwards). How to do it.
 
  One way is of-course put default file like index.html (based on the
  configuration). But I am looking for more better way (WEB-INF way).
  Where and what I need to delcare.
 
  --
  Thanks
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 


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



 --
 To unsubscribe, e-mail:
 mailto:tomcat-user- [EMAIL PROTECTED]
 For
 additional commands,
 e-mail: mailto:[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


JNDIRealm causing this: RE: Application running on Tomcat 4.1.3 stops resonding when inst alled with the Manager app

2002-08-14 Thread Collins, Jim

Hi again,

I am 99% sure that it is the JNDIRealm code that is causing my application
to stop responding for approximately 8 minutes at regular intervals. I will
try and look at the source to see if I can locate the problem. If anyone
else has had similar problems using JNDIRealm I would like to know.

Thanks

Jim.

 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: 14 August 2002 13:23
 To: 'Tomcat Users List'
 Subject: RE: Application running on Tomcat 4.1.3 stops resonding when
 inst alled with the Manager app
 
 
 Hi,
 
 I have taken Andrews advise and upgraded Tomcat. I am now 
 using version
 4.1.8, however I am still getting the same problem. I believe 
 that I have
 narrowed the problem down to using JNDIRealm to authenticate 
 users, in the
 past I used Apache to authenticate a user against LDAP but 
 now I am running
 Tomcat stand alone and it authenticates against LDAP. This is 
 the only thing
 I can think of because I have never had this problem before 
 with earlier
 versions of Tomcat, and the Manager app also fails and that is using
 JNDIRealm to authenticate.
 
 If anyone has any ideas about this it would be great.
 
 Thanks.
 
 Jim.
 
  -Original Message-
  From: Collins, Jim [mailto:[EMAIL PROTECTED]]
  Sent: 13 August 2002 08:57
  To: 'Tomcat Users List'
  Subject: Application running on Tomcat 4.1.3 stops resonding when
  installe d with the Manager app
  
  
  Hi,
  
  I have a an application running on Tomcat 4.1.3 that 
 frequently stops
  responding for approximately 8 minutes. Tomcat itself is 
  still running OK
  and I can access the example servlets and JSP's with no problem. My
  application is deployed as a WAR file using the Manager 
  servlets install
  command, and I don't know if it could be something to do with 
  this. Below is
  a stack trace from catalina.out that I get when the app stops 
  responding: 
  
  java.net.SocketException: Software caused connection abort
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
  at java.net.ServerSocket.implAccept(ServerSocket.java:438)
  at java.net.ServerSocket.accept(ServerSocket.java:409)
  at
  org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSo
  cket(DefaultSe
  rverSocketFactory.java:107)
  at
  org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTc
  pEndpoint.java
  :335)
  at
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
  nt.java:483)
  at
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
  ThreadPool.jav
  a:518)
  at java.lang.Thread.run(Thread.java:536)
  
  If anyone has any idea why this is happening it would be 
 appreciated.
  
  Thanks
  
  Jim.
  
  PS I am still working on the app and installing it and 
  removing it quiet a
  lot as develop and at times the install and remove commands 
  don't respond
  for about 8 minutes.
  
  
  PLEASE READ: The information contained in this email is confidential
  and intended for the named recipient(s) only. If you are not 
  an intended
  recipient of this email you must not copy, distribute or take any 
  further action in reliance on it and you should delete it and 
  notify the
  sender immediately. Email is not a secure method of 
 communication and 
  Nomura International plc cannot accept responsibility for 
 the accuracy
  or completeness of this message or any attachment(s). Please 
  examine this
  email for virus infection, for which Nomura International 
 plc accepts
  no responsibility. If verification of this email is sought 
 then please
  request a hard copy. Unless otherwise stated any views or opinions
  presented are solely those of the author and do not 
 represent those of
  Nomura International plc. This email is intended for informational
  purposes only and is not a solicitation or offer to buy or sell
  securities or related financial instruments. Nomura 
  International plc is
  regulated by the Financial Services Authority and is a member of the
  London Stock Exchange.
  
  
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 
 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not 
 an intended
 recipient of this email you must not copy, distribute or take any 
 further action in reliance on it and you should delete it and 
 notify the
 sender immediately. Email is not a secure method of communication and 
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please 
 examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or 

RE: fixed classes

2002-08-14 Thread Shapira, Yoav

Hi,
In general it's better to re-compile, re-pack jars, re-deploy jars, restart app.  It's 
clean, quick and safe, especially if you have ant targets for all of this ;)

As a temporary fix, you can put the fixed classes themselves, unpacked, in the 
/WEB-INF/classes directory of your application.  The classloader will look there prior 
to /WEB-INF/lib, per the servlet specification.  You will still have to restart your 
application.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 5:21 AM
To: [EMAIL PROTECTED]
Subject: fixed classes

Hello,

I have to fix some bugs in our application.
But I don't want create all jar-files again.
I want to pack all fixed classes into one jar-file.

In which directory I have to put this jar-file.

thanks
jürgen

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Out of Memory Error

2002-08-14 Thread Shapira, Yoav

Hi,
What is the JSP page supposed to do? ;)  Could it possibly do something
that exceeds 64MB in memory requirements?  That's the default JVM max
heap allocation.  If you need more memory, use the -Xmx java runtime
option via the JAVA_OPTS variable in catalina.sh.

By the way, you would probably get a lot more specific and helpful
replies if you were to post more details, e.g. tomcat version, server
hardware, code of the JSP you mention, etc.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 4:03 AM
To: [EMAIL PROTECTED]
Subject: Out of Memory Error

hello

I simply try to access a jsp page which is in the
folder $TOMCAT_HOME/webapps/ROOT and what i get on the
browser is  Out of Memory Error 
what could be a possible solution

thanx in advance


=
# Lalit Nagpal #

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll

I am trying to keep track of the current sessions that are active in my web
application.

I have a HttpSessionListener that is correctly called on
sessionCreated/sessionDeleted. I keep a reference to each session in the
servletContext as a Vector.

If tomcat is restarted then the sessions are persisted fine. However my
vector of sessions is lost so I have no record of sessions that were created
during a previous tomcat run.

Any idea how I could find or keep the list of previously created sessions?

Is there any way I can find a list of the current sessions without keeping a
list (that would be my preference)

TIA

- Mark


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




RE: Tomcat processes

2002-08-14 Thread Shapira, Yoav

Howdy,
You will need to be a bit more specific regarding what the definition of
number of processes.  I assume you mean concurrent user requests.  If
that's the case, check the documentation for minProcessors,
maxProcessors, and acceptCount at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

You will also want to take a look at the Coyote HTTP connector
information in the 4.1.x release notes and docs.  4.1.x is not a
production release yet, but it's been in beta for a while and getting
pretty close.

And needless to say, your hardware and JVM have a lot to do with this.
;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Amit Lonkar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 2:27 AM
To: [EMAIL PROTECTED]
Subject: Tomcat processes

Hi
is it possible to increases the number of processes
tomcat can handle. If yes the How?

Thanks
Amit Lonkar


___
_
Want to sell your car? advertise on Yahoo Autos Classifieds. It's
Free!!
   visit http://in.autos.yahoo.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: How to keep track of sessions

2002-08-14 Thread Ben Walding

You could use an application context listener to write out the sessions 
when the context is shutdown and reread them when it starts up.

I tried to work out how the manager application (part of  the 
distribution) worked (as it knows about sessions), but gave up as it 
looked like to much work and too much poking about inside tomcat.

for my tastes (which didn't include
Mark O'Driscoll wrote:

I am trying to keep track of the current sessions that are active in my web
application.

I have a HttpSessionListener that is correctly called on
sessionCreated/sessionDeleted. I keep a reference to each session in the
servletContext as a Vector.

If tomcat is restarted then the sessions are persisted fine. However my
vector of sessions is lost so I have no record of sessions that were created
during a previous tomcat run.

Any idea how I could find or keep the list of previously created sessions?

Is there any way I can find a list of the current sessions without keeping a
list (that would be my preference)

TIA

- Mark


--
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]




Re: Access Parameter

2002-08-14 Thread Cédric Viaud

As JSP are compiled as servlets, you can do with JSP everything you can do
with servlets.

Check for the exact syntax.

Regards,

   Cédric

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 6:32 PM
Subject: Access Parameter


 Can I use something like this in my jsp page (instead of a java sevlet) to

 get the parameter name?,
 before that I set the parameter in my web.xml file like this:

 context-param
   param-nameparameter name/param-name
   param-valuelocalhost/param-value
 /context-param

 String value =  getServletContext().getInitParameter(parameter name);

 is it only works in a sevlet or will it work in a jsp page too???

 thanks again
 Alex Tomita




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




RE: How to keep track of sessions

2002-08-14 Thread Shapira, Yoav

Hi,
So my first question is, why?  If you could describe the motivation /
requirements / goals for your need to keep track of all the sessions,
perhaps someone could suggest an alternative approach.

If tomcat is restarted then the sessions are persisted fine. However my
vector of sessions is lost so I have no record of sessions that were
created
during a previous tomcat run.

Any idea how I could find or keep the list of previously created
sessions?

Sessions are not meant to be persisted across server restarts.  

Perhaps you are only interested in specific attributes of the sessions?
In that case, the Singleton pattern comes to mind to be used as follows:

- Have an object, MySessionInfoHolder, that holds the stuff you need
about the session, for example some attributes.  You probably do *not*
want to keep the session ID.

- Have a singleton, MySessionInfoManager, that keeps a set (no
duplicates) of these MySessionInfoManager objects.

- Your session listener (either a Session or a SessionAttribute
listener, or both) would extract the proper info from a Jakarta session
object and store it in the manager.

- On context shutdown, persist the stuff in MySessionInfoManager using
castor (or any of the other similar packages) or your own serialization
/ XML / JDBC / whatever mechanism.

- On context startup, recall the stuff from XML / the database /
wherever into the manager.

Would that approach work for your needs?

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: Bean on Tomcat

2002-08-14 Thread Cédric Viaud

Hi,

may you precise what your aiming at ?

If you want tu use EJBs, Tomcat is not en EJB container. You then should
find one (JBoss is free).

Regards,

   Cédric

- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:51 AM
Subject: Bean on Tomcat


 Hi all

 Can anyone tell me how to configure beans om Tomcat 4.0.4

 Thanks  Regards
 Vishal Mukherjee


 --
 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]




AW: How to keep track of sessions

2002-08-14 Thread Ralph Einfeldt

You can implement a ContextListener that persists your Vector
when the Context is shutdown.

A quite dirty trick would be to store a reference to the 
Vector in each session and let tomcat do the work for you.

 -Ursprüngliche Nachricht-
 Von: Mark O'Driscoll [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 14:45
 An: Tomcat Users List
 Betreff: How to keep track of sessions
 
 I have a HttpSessionListener that is correctly called on
 sessionCreated/sessionDeleted. I keep a reference to each 
 session in the servletContext as a Vector.
 

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




AW: How to keep track of sessions

2002-08-14 Thread Ralph Einfeldt

See below

 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 14:59
 An: Tomcat Users List
 Betreff: RE: How to keep track of sessions
 
 Sessions are not meant to be persisted across server restarts.  
 

Obviously other people have other opinions about that.

Session persistence is implemented in tomcat, if there 
would be no need that wouldn't exist :).

 - Have an object, MySessionInfoHolder, that holds the stuff you need
 about the session, for example some attributes.  You probably do *not*
 want to keep the session ID.
 
 - Have a singleton, MySessionInfoManager, that keeps a set (no
 duplicates) of these MySessionInfoManager objects.
 
 - Your session listener (either a Session or a SessionAttribute
 listener, or both) would extract the proper info from a 
 Jakarta session object and store it in the manager.

That was not the problem, this part works. It's the vector of 
sessions that is missing as it is stored ouside the session.
So your next paragraph is a possible solution.

 
 - On context shutdown, persist the stuff in MySessionInfoManager using
 castor (or any of the other similar packages) or your own 
 serialization
 / XML / JDBC / whatever mechanism.
 
 - On context startup, recall the stuff from XML / the database /
 wherever into the manager.
 

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




RE: Access Parameter

2002-08-14 Thread Shapira, Yoav

Hi,

As JSP are compiled as servlets, you can do with JSP everything you
can
do
with servlets.

... but you shouldn't.  

JSPs are designed mostly for presentation and some associated logic.
Stuff like if this field in the database is this value, then show these
values in HTML.  

Servlets are designed for more powerful and involved processing,
back-end stuff, and not as much presentation.  

Sometimes knowing the conceptual differences between the technologies
and their intended uses can save you a ton of headaches down the road.
While Cedric's comment above has merits, I would say be very careful
before venturing down that path.

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: How to keep track of sessions

2002-08-14 Thread Shapira, Yoav

Howdy,


 Sessions are not meant to be persisted across server restarts.


Obviously other people have other opinions about that.

Which is why I still suggested a solution I've used in the past ;)  

Even though I disagree with the approach of persisting someone else's
proprietary internal objects, I assume that whoever asked the question
has a reasonable and well-thought out cause, so I try to help.

I'm still unclear as to why one would want to save the session object
itself, as opposed to only the parts of interest from it.  Does it have
to do with load-balancing, wanting to somehow augment / superimpose on
the built-in mechanism?

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


filter

2002-08-14 Thread Felipe Schnack

  I'm using Tomcat 4.0.4
  I'm trying to declare a filter in web.xml file, but it refuses to
work. Here is what I wrote:
  filter
filter-nametestFilter/filter-name
filter-classcom.test.FilterTest/filter-name
  /filter
  When I start Tomcat it says my XML is invalid. What I'm doing wrong?

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




Re: How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll

I am using the sessions to keep track of who is logged on, for how long and
what they have done. Obviously there are other non servlet ways to do this
but as tomcat gives the opportunity to track sessions, I thought I'd use it.
Session persistence highlights a 'hole' in the sessionListener interface.

BTW: I'm surprised you think sessions should not be persisted. I think it's
cool!

Thanks for the help.
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 2:17 PM
Subject: RE: How to keep track of sessions


Howdy,


 Sessions are not meant to be persisted across server restarts.


Obviously other people have other opinions about that.

Which is why I still suggested a solution I've used in the past ;)

Even though I disagree with the approach of persisting someone else's
proprietary internal objects, I assume that whoever asked the question
has a reasonable and well-thought out cause, so I try to help.

I'm still unclear as to why one would want to save the session object
itself, as opposed to only the parts of interest from it.  Does it have
to do with load-balancing, wanting to somehow augment / superimpose on
the built-in mechanism?

Yoav Shapira
Millennium ChemInformatics







 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:
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]




Re: filter

2002-08-14 Thread Capr1ce


Hi, do you have the elements in the correct order as specified by the 
web.xml's DTD?
Refer to section 13.3 of the Servlet (2.3) spec.


At 10:21 AM 14/08/2002 -0300, you wrote:
   I'm using Tomcat 4.0.4
   I'm trying to declare a filter in web.xml file, but it refuses to
work. Here is what I wrote:
   filter
 filter-nametestFilter/filter-name
 filter-classcom.test.FilterTest/filter-name
   /filter
   When I start Tomcat it says my XML is invalid. What I'm doing wrong?

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
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]




Re: filter

2002-08-14 Thread Mark O'Driscoll

filter-classcom.test.FilterTest/filter-name
^^^ //
should be /filter-class
Failing that, i'd have to see the error but my guess is that you have the
order of things in your web.xml wrong.

filter tags should appear after context-param and before listener
tags. See your dtd for more details. I use
http://java.sun.com/web-app_2_3.dtd

- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 2:21 PM
Subject: filter


   I'm using Tomcat 4.0.4
   I'm trying to declare a filter in web.xml file, but it refuses to
 work. Here is what I wrote:
   filter
 filter-nametestFilter/filter-name
 filter-classcom.test.FilterTest/filter-name
   /filter
   When I start Tomcat it says my XML is invalid. What I'm doing wrong?

 --

 Felipe Schnack
 Analista de Sistemas
 [EMAIL PROTECTED]
 Cel.: (51)91287530
 Linux Counter #281893

 Faculdade Ritter dos Reis
 www.ritterdosreis.br
 [EMAIL PROTECTED]
 Fone/Fax.: (51)32303328


 --
 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]




Re: Access Parameter

2002-08-14 Thread Cédric Viaud

I totaly agree with Yoav comment.

I just say that technicaly, it's exactly the same, and you should be aware
of it.

In fact, i have ever initiated a project where we finaly only use JSP for
many reasons (principaly , the team was very new to Java/Internet/...), and
make it work. BUT the result was poor, and some month later, we have to make
it again because it was hard to make to code evoluate to fit the new needs.

So, better use JSP for what it is good at : presentation and only
presentation.

In fact, since i know model 2 (also called MVC), i use it without limit. And
refactoring or making my code evoluate  is never a problem.

Regards,

Cédric


- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 3:13 PM
Subject: RE: Access Parameter


Hi,

As JSP are compiled as servlets, you can do with JSP everything you
can
do
with servlets.

... but you shouldn't.

JSPs are designed mostly for presentation and some associated logic.
Stuff like if this field in the database is this value, then show these
values in HTML.

Servlets are designed for more powerful and involved processing,
back-end stuff, and not as much presentation.

Sometimes knowing the conceptual differences between the technologies
and their intended uses can save you a ton of headaches down the road.
While Cedric's comment above has merits, I would say be very careful
before venturing down that path.

Yoav Shapira
Millennium ChemInformatics







 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:
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]




Re: filter

2002-08-14 Thread Cédric Viaud

filter-classcom.test.FilterTest/filter-name

Your end tag dosen't fit your start tag.

change it to :
filter-classcom.test.FilterTest/filter-class

regards,

  Cédric

- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 3:21 PM
Subject: filter


   I'm using Tomcat 4.0.4
   I'm trying to declare a filter in web.xml file, but it refuses to
 work. Here is what I wrote:
   filter
 filter-nametestFilter/filter-name
 filter-classcom.test.FilterTest/filter-name
   /filter
   When I start Tomcat it says my XML is invalid. What I'm doing wrong?

 --

 Felipe Schnack
 Analista de Sistemas
 [EMAIL PROTECTED]
 Cel.: (51)91287530
 Linux Counter #281893

 Faculdade Ritter dos Reis
 www.ritterdosreis.br
 [EMAIL PROTECTED]
 Fone/Fax.: (51)32303328


 --
 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]




AW: How to keep track of sessions

2002-08-14 Thread Ralph Einfeldt

E.G. if you want to implement a session monitor.

Depending on the kind of information you want to
display it gets at sime point annoying to to copy 
everthing from the session to a store and to remove 
it from the store when the session ends.
  - More code = more possible error, less perfomance
  - More memory = less performance

Even if you do it, the problem of the original poster 
is the same. Now he has a Vector of SessionInfo 
objects that have to be persisted if the server is 
shut down. The other option is to recreate the 
Vector on the SessionActivated event (don't nail
me on the exact name I don't have that at hand)
which is fired each time when a session is recreated 
from a persistent store.

BTW.: I just act as an advocat in this case, 
personally I have never felt the need to do that, 
as we store everthing that we need from a session 
in the database.

 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 15:18
 An: Tomcat Users List
 Betreff: RE: How to keep track of sessions
 
 
 Howdy,
 
 
  Sessions are not meant to be persisted across server restarts.
 
 
 Obviously other people have other opinions about that.
 
 Which is why I still suggested a solution I've used in the past ;)  
 
 Even though I disagree with the approach of persisting someone else's
 proprietary internal objects, I assume that whoever asked the question
 has a reasonable and well-thought out cause, so I try to help.
 
 I'm still unclear as to why one would want to save the session object
 itself, as opposed to only the parts of interest from it.  
 Does it have
 to do with load-balancing, wanting to somehow augment / superimpose on
 the built-in mechanism?
 
 Yoav Shapira
 Millennium ChemInformatics
 

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




Re: filter

2002-08-14 Thread Felipe Schnack

  Yes, the order of mostly everything was wrong, thank you very much :-)
  Anyway, the tag thing was an typo.

On Wed, 2002-08-14 at 10:24, Mark O'Driscoll wrote:
 filter-classcom.test.FilterTest/filter-name
 ^^^ //
 should be /filter-class
 Failing that, i'd have to see the error but my guess is that you have the
 order of things in your web.xml wrong.
 
 filter tags should appear after context-param and before listener
 tags. See your dtd for more details. I use
 http://java.sun.com/web-app_2_3.dtd
 
 - Original Message -
 From: Felipe Schnack [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 14, 2002 2:21 PM
 Subject: filter
 
 
I'm using Tomcat 4.0.4
I'm trying to declare a filter in web.xml file, but it refuses to
  work. Here is what I wrote:
filter
  filter-nametestFilter/filter-name
  filter-classcom.test.FilterTest/filter-name
/filter
When I start Tomcat it says my XML is invalid. What I'm doing wrong?
 
  --
 
  Felipe Schnack
  Analista de Sistemas
  [EMAIL PROTECTED]
  Cel.: (51)91287530
  Linux Counter #281893
 
  Faculdade Ritter dos Reis
  www.ritterdosreis.br
  [EMAIL PROTECTED]
  Fone/Fax.: (51)32303328
 
 
  --
  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]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




RE: How to keep track of sessions

2002-08-14 Thread Shapira, Yoav

Hi,
I like this thread as a theoretical discussion, so let's pursue it a bit
more ;)

Depending on the kind of information you want to
display it gets at sime point annoying to to copy
everthing from the session to a store and to remove
it from the store when the session ends.
  - More code = more possible error, less perfomance
  - More memory = less performance

More code, yes.  But I think the SessionInfo-type objects would be
trivial.  The manager would be very easy to write as well.  As they are
simple and completely under your control, you could make the processing
and persistence operations very fast.

Having tried that approach on long-running servers with many users and
delayed session expiration (120min), leading to many SessionInfo objects
that had to be persisted on context shutdown and restored on context
startup, I can safely say that performance was not a problem for us.
Even for thousands of SessionInfo object, the persistence operations
were only a few seconds.  And that's on a fairly small server box, JDK
1.2.2 without much tuning.  (Although it was a custom SAXParser and not
Castor, as I suggested before.  Would've been nice to compare them ;)).

Even if you do it, the problem of the original poster
is the same. Now he has a Vector of SessionInfo

I agree.  You have to worry about persistence either way.  However,
persisting your own objects is typically a lot easier than persisting
third party objects such as tomcat's session implementation.

The part that I think makes his use-case very interesting and
non-trivial is the requirement to record (and thus persist) the user's
click-stream.  I'm not sure off the top of my head how that fits into
the SessionInfo object, except maybe as a list of URLs the user visited?
We did not have this requirement in the aforementioned system, and so I
can't speak to it...

I'd be interested to hear from the original poster when a solution is
implemented and tested...

Yoav Shapira
Millennium ChemInformatics



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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: Access Parameter

2002-08-14 Thread TOMITA_ALEX_NONLILLY

thanks to all...

finally I resolved my problem, to get a parameter I used 
application.getIniParameter(parameter name)  in my jsp page..


thanks again
Alex





Cédric Viaud [EMAIL PROTECTED]
14/08/2002 07:57 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Access Parameter



As JSP are compiled as servlets, you can do with JSP everything you can 
do
with servlets.

Check for the exact syntax.

Regards,

   Cédric

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 6:32 PM
Subject: Access Parameter


 Can I use something like this in my jsp page (instead of a java sevlet) 
to

 get the parameter name?,
 before that I set the parameter in my web.xml file like this:

 context-param
   param-nameparameter name/param-name
   param-valuelocalhost/param-value
 /context-param

 String value =  getServletContext().getInitParameter(parameter name);

 is it only works in a sevlet or will it work in a jsp page too???

 thanks again
 Alex Tomita




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







Re: How to keep track of sessions

2002-08-14 Thread Mark O'Driscoll

This is all very interesting but.

The sessions are currently persisted or serialized on tomcat exit, fine.

I have a collection of session object references.

If I save the references they will be invalid when tomcat starts up.
If I save (serialize) the objects then I am duplicating what tomcat does.

In either case, it's an arse.

Am I missing something...

- Mark
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 3:05 PM
Subject: RE: How to keep track of sessions


Hi,
I like this thread as a theoretical discussion, so let's pursue it a bit
more ;)

Depending on the kind of information you want to
display it gets at sime point annoying to to copy
everthing from the session to a store and to remove
it from the store when the session ends.
  - More code = more possible error, less perfomance
  - More memory = less performance

More code, yes.  But I think the SessionInfo-type objects would be
trivial.  The manager would be very easy to write as well.  As they are
simple and completely under your control, you could make the processing
and persistence operations very fast.

Having tried that approach on long-running servers with many users and
delayed session expiration (120min), leading to many SessionInfo objects
that had to be persisted on context shutdown and restored on context
startup, I can safely say that performance was not a problem for us.
Even for thousands of SessionInfo object, the persistence operations
were only a few seconds.  And that's on a fairly small server box, JDK
1.2.2 without much tuning.  (Although it was a custom SAXParser and not
Castor, as I suggested before.  Would've been nice to compare them ;)).

Even if you do it, the problem of the original poster
is the same. Now he has a Vector of SessionInfo

I agree.  You have to worry about persistence either way.  However,
persisting your own objects is typically a lot easier than persisting
third party objects such as tomcat's session implementation.

The part that I think makes his use-case very interesting and
non-trivial is the requirement to record (and thus persist) the user's
click-stream.  I'm not sure off the top of my head how that fits into
the SessionInfo object, except maybe as a list of URLs the user visited?
We did not have this requirement in the aforementioned system, and so I
can't speak to it...

I'd be interested to hear from the original poster when a solution is
implemented and tested...

Yoav Shapira
Millennium ChemInformatics








 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:
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]




Re: Bean on Tomcat

2002-08-14 Thread TOMITA_ALEX_NONLILLY

I'm using java beans in Tomcat (not EJB), and I just put them in 
WEB-INF/classes...

regards
Alex







Cédric Viaud [EMAIL PROTECTED]
14/08/2002 07:59 a.m.
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Bean on Tomcat



Hi,

may you precise what your aiming at ?

If you want tu use EJBs, Tomcat is not en EJB container. You then should
find one (JBoss is free).

Regards,

   Cédric

- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:51 AM
Subject: Bean on Tomcat


 Hi all

 Can anyone tell me how to configure beans om Tomcat 4.0.4

 Thanks  Regards
 Vishal Mukherjee


 --
 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]







.htaccess files and Compact Privacy Policies

2002-08-14 Thread Mark_DiBattista

Hi,

I've been trying to set up a .htaccess file to append a P3P compact privacy
policy to the header of a JSP.

So far, I've placed the .htaccess file in my F:/Apache/htdocs directory and
I'm getting back the compact privacy policy in the header when I go to the
http://foo.mycompany.com, default index page.

However, I can't seem to figure out where to place the .htaccess file so it
works for the applications being served up by Tomcat...e.g
http://foo.mycompany.com/application/applicationsss

Any ideas or comments would be greatly appreciated.

Thanks,
Mark


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




Re: Bean on Tomcat

2002-08-14 Thread Capr1ce


Theres not any configuration needed.

Ok, so say you put your bean in WEB-INF/classes/beans
and your bean is called FooBean.java
You would use it like this within your JSP:

jsp:useBean id=foo scope=page class=beans.FooBean /

jsp:getProperty name=foo property=aProperty /

Is that what you're after?




At 09:14 AM 14/08/2002 -0500, you wrote:
I'm using java beans in Tomcat (not EJB), and I just put them in
WEB-INF/classes...

regards
Alex







Cédric Viaud [EMAIL PROTECTED]
14/08/2002 07:59 a.m.
Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Bean on Tomcat



Hi,

may you precise what your aiming at ?

If you want tu use EJBs, Tomcat is not en EJB container. You then should
find one (JBoss is free).

Regards,

Cédric

- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, August 14, 2002 10:51 AM
Subject: Bean on Tomcat


  Hi all
 
  Can anyone tell me how to configure beans om Tomcat 4.0.4
 
  Thanks  Regards
  Vishal Mukherjee
 
 
  --
  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]



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




Bandwidth calculations

2002-08-14 Thread David Oxley

I need to do some bandwidth calculations for our web app that take into
account the browsers cache. So, I think I need some sort of TCP/IP sniffer.
Does anyone know of a decent one I can use for this purpose?

 

Dave




RE: Bandwidth calculations

2002-08-14 Thread Shapira, Yoav

Hi,
I've used ethereal before, it's decent and free ;)
http://www.ethereal.com/

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:38 AM
To: 'Tomcat Users List'
Subject: Bandwidth calculations

I need to do some bandwidth calculations for our web app that take into
account the browsers cache. So, I think I need some sort of TCP/IP
sniffer.
Does anyone know of a decent one I can use for this purpose?



Dave



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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


AW: Bandwidth calculations

2002-08-14 Thread Ralph Einfeldt

Another option on a different level use a weblog analyser 
like webalizer http://www.mrunix.net/webalizer/ or 
awstats http://awstats.sourceforge.net/.

Hammer the site with some thing you think is a typical 
load and look at the numbers that are generated by them.
This may be not so precise but much easier to interpret.

 -Ursprüngliche Nachricht-
 Von: David Oxley [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 16:38
 An: 'Tomcat Users List'
 Betreff: Bandwidth calculations
 
 
 I need to do some bandwidth calculations for our web app that 
 take into
 account the browsers cache. So, I think I need some sort of 
 TCP/IP sniffer.
 Does anyone know of a decent one I can use for this purpose?
 
  
 
 Dave
 
 

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




RE: Quick Question

2002-08-14 Thread Durham David Cntr 805CSS/SCBE

post questions to the list please.  

It will work in a bean if you pass a reference to the servlet context to it.  I'm not 
all that familiar with using beans in jsp but I think that you will have to break out 
of the bean tags and actually make a method call like:  % 
myBean.setServletContext(getServletContext()) %


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 5:21 PM
To: Durham David Cntr 805CSS/SCBE
Subject: RE: Quick Question



the getServletContext.getRealPath will work in a java bean?? 

I'm trying to read a txt file from a java bean instead of a java servlet.   then I 
use the bean in a jsp page. 

thanks 
Alex 









Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] 
12/08/2002 05:12 p.m. 
Please respond to Tomcat Users List 

To:Tomcat Users List [EMAIL PROTECTED] 
cc: 
Subject:RE: Quick Question 




getServletContext.getRealPath(/config.txt) will return the path to config.txt in the 
root of your apps directory.



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, August 12, 2002 5:00 PM
 To: Tomcat Users List
 Subject: Quick Question
 
 
 Hi all,
 
 I wrote a simple java bean that reads a txt file, the problem 
 is where do 
 I need to put the txt file??...
 What is the default directory in Tomcat??
 
 when I put something like this in my java bean : 
 FileReader(config.txt) 
 Where does tomcat look for that file?
 
 thanks
 Alex
 

--
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]




AW: How to keep track of sessions

2002-08-14 Thread Ralph Einfeldt

See below:

 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 16:06
 An: Tomcat Users List
 Betreff: RE: How to keep track of sessions
 
 More code, yes.  But I think the SessionInfo-type objects would be
 trivial.  The manager would be very easy to write as well.  

I'm a bit paranoic at this point. The best lines of code
are those that don't exist. (I have developed some 6 years
products for the medical environment where bugs could kill 
people)

 
 I agree.  You have to worry about persistence either way.  However,
 persisting your own objects is typically a lot easier than persisting
 third party objects such as tomcat's session implementation.

In general you are right. If they are serializable (Session is)
it's not such a big point. If my dirty hack (storing a reference
to the vector in the session) works, it could be even simple and 
performant, if tomcat is clever enought to store just the 
references, the sessions are made persistent anyway)

 
 The part that I think makes his use-case very interesting and
 non-trivial is the requirement to record (and thus persist) the user's
 click-stream.  I'm not sure off the top of my head how that fits into
 the SessionInfo object, except maybe as a list of URLs the 
 user visited?
 We did not have this requirement in the aforementioned 
 system, and so I can't speak to it...

We do, but again we store the data in a database.
(I don't like to hold that much information in memory, 
even in times of boards with 4 Gig memory, for me 
memory is a valuable resource that I don't like to 
waste.)

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




RE: j_username in session cookie - where did it go?

2002-08-14 Thread Mark Schmeets

whoa, that seems like a very oversimplified answer. Some of us require
security at the data level too. A solution like that makes Tomcat's
authentication useless in that situation...


Mark


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 11:11 PM
To: Tomcat Users List
Subject: Re: j_username in session cookie - where did it go?




On Tue, 13 Aug 2002, Ed Thompson wrote:

 Date: Tue, 13 Aug 2002 22:56:32 -0400
 From: Ed Thompson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: j_username in session cookie - where did it go?

 I was also scrapping the password - used j_userbane and j_passwd  for
 database access.


There is no portable way to do that.  And Tomcat 4 does not expose them,
because the password because it is none of the app's business -- the user
is either authenticated or not.

 Any hints on that one?

Re-architect your app so that it needs only the username.

Craig



 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, August 13, 2002 10:41 PM
 Subject: Re: j_username in session cookie - where did it go?


 
 
  On Tue, 13 Aug 2002, Ed Thompson wrote:
 
   Date: Tue, 13 Aug 2002 21:57:53 -0400
   From: Ed Thompson [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Subject: j_username in session cookie - where did it go?
  
   I have just upgraded (uninstalled and reintsalled) from Tomcat 3.2 to
   Tomcat 4.0.4.
  
   I am using form based authentication, and found under 3.2 I could pull
   j_username out of the session cookie after authenticaion was done.
  
 
  That's not how it really worked under 3.2, although if you are using
BASIC
  authentication you could decode the username out of the Authorization
  header.
 
   Now under Tomcat 4 it doesn't seem to be there.  I know I tried it
under
   Tomcat 4.0.1 before I upgraded and it worked, but not after
uninstalling
 3.2
   and installing 4.0.4 from scratch..
  
   Can anyone shed light on what is (not) happening?  Have the rules
 changed or
   have I not cfg'd something properly?
  
 
  The portable way to get ahold of the authenticated username is to call
  request.getRemoteUser().  See the servlet spec for more details on
  container managed security:
 
  http://java.sun.com/products/servlet/download.html
 
   Thanx!
   Ed
 
  Craig
 
 
  --
  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]




--
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]




session timeout

2002-08-14 Thread Koes, Derrick

How closely does Tomcat follow the servlet specification concerning web.xml?

 

I added the following to my web.xml, but the session seems to timeout
immediately (0 minutes).

  session-config

session-timeout0/session-timeout

  /session-config

 

However, the servlet 2.3 spec states:

 

If the timeout is 0 or less, the container ensures the default behaviour of
sessions is never to time out.

 

The bottom line is I need to know how to make my webapp's session never
timeout.

Can anyone help?




RE: Writing files from a class

2002-08-14 Thread Stephen Bacon

Thanks for the reply,

I see that the spec mentions private temporary directory - I need a
permananent directory - by temporary I take it to mean that I can't
count on the files sticking around. Is my understanding here flawed?

Also, I'd like to be able to specify the name and location.
I had seen the javax.servlet.ServletContext.log() methods, but they seem
to offer no control over where the output is placed. I'd rather have a
debug file per class than have all messages sent to a single file.

And finally, I have servlets that take data from a db and place it in a
(text) file for the user to download - so once again a file creation
issue where I need a general file i/o solution.

thanks,
-Steve

On Tue, 2002-08-13 at 20:15, Sexton, George wrote:
 From the servlet 2.3 Specification:
 
 SRV.3.7.1 Temporary Working Directories
 
 A temporary storage directory is required for each servlet context. Servlet
 containers must provide a private temporary directory per servlet context,
 and make
 it available via the javax.servlet.context.tempdir context attribute. The
 objects
 associated with the attribute must be of type java.io.File.
 
 
 -Original Message-
 From: Stephen Bacon [mailto:[EMAIL PROTECTED]]
 Sent: 13 August, 2002 5:20 PM
 To: [EMAIL PROTECTED]
 Subject: Writing files from a class
 
 
 Hello,
   I'm trying to migrate from Tomcat 3 to Catalina (under Linux) and I've
 hit a snag. Several of my custom classes which I use from JSPs (e.g.
 ConnectionPool) print messages to debug files which I access via:

snip



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




RE: Quick Question

2002-08-14 Thread Larry Meadors

IMO, it seems like a bad idea to me to tie your bean 
code to a servlet context unless you REALLY need to.

To me, a better way would be to put the file in a 
directory under classes, and use the classloader of 
the current thread to get to the file.

This way, you do not need servlet.jar to use your bean 
if you every decide to use it outside of a servlet.

This is a very simple process. Here is an example:

private InputStream getFile(String name){
 return Thread.
  currentThread().
  getContextClassLoader().
  getResourceAsStream(name);
}

To read a properties file classes/myprops.properties 
for instance, you just do this:

Properties p = new Properties();
p.load(getFile(myprops.properties));

Larry

 [EMAIL PROTECTED] 08/14/02 08:42 AM 
It will work in a bean if you pass a reference 
to the servlet context to it...

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




Re: How to keep track of sessions

2002-08-14 Thread Ashish Kulkarni

Hi 
Can some one provide with some java code where in they
have used HttpSessionListener, and then stored the
sessions in a vector when a new session is created,
and remove it when it is invalidated.
i m developing a webapplication where in the database
is as400, so when ever a user logs in a job is run on
as/400, but if the user just closes the browser
without signing out, then this job runs on as/400
untill i restart tomcat,  so i would like to know when
the user closes the browser, but there is no way i 
can find it out, so i think i will store all the
sessions created in a vector, and when the user
signoff I will remove the session from vector and then
also run schedule job say after 30 min which will
check the session from the vector,to find when was it
used last time, and if it is more then some time say
30 min, invalidate that session, which will stop the
job running on as400
is there a better way of doing it..
Ashish
--- Mark O'Driscoll [EMAIL PROTECTED] wrote:
 I am trying to keep track of the current sessions
 that are active in my web
 application.
 
 I have a HttpSessionListener that is correctly
 called on
 sessionCreated/sessionDeleted. I keep a reference to
 each session in the
 servletContext as a Vector.
 
 If tomcat is restarted then the sessions are
 persisted fine. However my
 vector of sessions is lost so I have no record of
 sessions that were created
 during a previous tomcat run.
 
 Any idea how I could find or keep the list of
 previously created sessions?
 
 Is there any way I can find a list of the current
 sessions without keeping a
 list (that would be my preference)
 
 TIA
 
 - Mark
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: session timeout

2002-08-14 Thread Shapira, Yoav

Hi,
(Too lazy to dig up the spec for the nth time today)

I thought the spec said -1 ensures they never expire.  Not 0 or less.
Did you try -1?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: session timeout

How closely does Tomcat follow the servlet specification concerning
web.xml?



I added the following to my web.xml, but the session seems to timeout
immediately (0 minutes).

  session-config

session-timeout0/session-timeout

  /session-config



However, the servlet 2.3 spec states:



If the timeout is 0 or less, the container ensures the default
behaviour
of
sessions is never to time out.



The bottom line is I need to know how to make my webapp's session never
timeout.

Can anyone help?



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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


AW: How to keep track of sessions

2002-08-14 Thread Ralph Einfeldt

I think you make it a bit to comlicated.

The session is invalidated automatically by tomcat.
(See session-timeout in web.xml)

The only thing that you have to do is implement a 
HttpSessionBindingListener store an instance of
this class in the session.

What job are you talking about? Do you start an
operation system job whenever a session is started? 
Or do start a java thread or what ?

 -Ursprüngliche Nachricht-
 Von: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 17:14
 An: Tomcat Users List
 Betreff: Re: How to keep track of sessions
 
 
 Hi 
 Can some one provide with some java code where in they
 have used HttpSessionListener, and then stored the
 sessions in a vector when a new session is created,
 and remove it when it is invalidated.
 i m developing a webapplication where in the database
 is as400, so when ever a user logs in a job is run on
 as/400, but if the user just closes the browser
 without signing out, then this job runs on as/400
 untill i restart tomcat,  so i would like to know when
 the user closes the browser, but there is no way i 
 can find it out, so i think i will store all the
 sessions created in a vector, and when the user
 signoff I will remove the session from vector and then
 also run schedule job say after 30 min which will
 check the session from the vector,to find when was it
 used last time, and if it is more then some time say
 30 min, invalidate that session, which will stop the
 job running on as400 is there a better way of doing it..
 Ashish

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




RE: session timeout

2002-08-14 Thread Koes, Derrick


-1 seems to work, at least I have much better results than with 0.
I quoted directly from the servlet 2.3 FCS spec.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 14, 2002 11:17 AM
To: Tomcat Users List
Subject: RE: session timeout

Hi,
(Too lazy to dig up the spec for the nth time today)

I thought the spec said -1 ensures they never expire.  Not 0 or less.
Did you try -1?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:12 AM
To: '[EMAIL PROTECTED]'
Subject: session timeout

How closely does Tomcat follow the servlet specification concerning
web.xml?



I added the following to my web.xml, but the session seems to timeout
immediately (0 minutes).

  session-config

session-timeout0/session-timeout

  /session-config



However, the servlet 2.3 spec states:



If the timeout is 0 or less, the container ensures the default
behaviour
of
sessions is never to time out.



The bottom line is I need to know how to make my webapp's session never
timeout.

Can anyone help?



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




Directory indexing in Tomcat 4.0

2002-08-14 Thread Todd Fulton

How does one turn off directory indexing in Tomcat 4.0?

I've been asking this question for a bit now..  Looking on google groups,
all the Tomcat-users mail archives, and everywhere else I know.  Nobody
seems to know.

Anyone?

Todd



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




Compiling mod_webapp on Solaris 7

2002-08-14 Thread Raúl Mateos

Hello!

We are just compiling mod_webapp of Tomcat 4.0.4, but an error appears:
make: Fatal error: Unknown option `-C'

We use ant, then ./configure and the error appears with make (we use
/usr/css/bin/make)

Any idea?

Thanks.


-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGPfreeware 5.5.3i for non-commercial use http://www.pgpi.com

mQGiBD0/zAIRBADMHF1qK6ssLjCMEDK3WUF/OUfM0eBnRTdx76NufNwGC1ghrQvW
6eQgsbc6bS0SVv7fvwu59ufhpJCKoAB15+EAlqgev8s20zRmMZIqsYAcPqL1k/u/
dEuuiPsWKjCyS6R1A/MAlHhxwcNhbKdmiiKMH4uPEQ5Cd0WQERLCdzw38QCg//zl
3HbywqOGx0eyJTTFBBKXs20EAIbsXXO8tXuH4R/gWZDbzC/vVIWI3xYhdmFOmuov
wF9fJBEXwMPVKSbaCzzfY8Cq5ipCrmoyZc9QpeDlGOqp96ZH0rF2b43qyK+4aXFE
bwFdOF0YcwpiJBDjWQ7SfYm+bNPlLe1Xm7yGLuHqtMJkP4hhKw3v02NBUb1lleCi
76PgA/4rWfNBEqyGQvDrnRgze6hIWXkfgsf8fIsGm/uDNXsZrPCWUMtlKdB4ubh7
9bwTHOAhjeUd1+eFRYXNk40bVrouwbEYyhtsbnaNpY/N++Y0V2KcPNWucZpONYPF
7x5Axm2VZYHjVZQH8uO09ihH3fcmNm7DYHQXJHBkVbQpFiNKnrQcUmH6bCBNYXRl
b3MgPHJtYXRlb3NAYW9sLmVzPokASwQQEQIACwUCPT/MAgQLAwIBAAoJEJT+xZZs
3K5L5Q4An3JBGtbkntDzdZnxwi4mPnmo7ULjAKDt0K3aaawnFvcnRSykOE5CvI4h
ULkCDQQ9P8wCEAgA9kJXtwh/CBdyorrWqULzBej5UxE5T7bxbrlLOCDaAadWoxTp
j0BV89AHxstDqZSt90xkhkn4DIO9ZekX1KHTUPj1WV/cdlJPPT2N286Z4VeSWc39
uK50T8X8dryDxUcwYc58yWb/Ffm7/ZFexwGq01uejaClcjrUGvC/RgBYK+X0iP1Y
TknbzSC0neSRBzZrM2w4DUUdD3yIsxx8Wy2O9vPJI8BD8KVbGI2Ou1WMuF040zT9
fBdXQ6MdGGzeMyEstSr/POGxKUAYEY18hKcKctaGxAMZyAcpesqVDNmWn6vQClCb
AkbTCD1mpF1Bn5x8vYlLIhkmuquiXsNV6TILOwACAggA2xWg1FTA5oXssTPdX7YU
t6u3LRL+Y7HCDOPTwU6kSQbjb+xj6GPlh/T3E30Yb/4jVj8srQB0IADLAuMlCZYk
Z7uJyUZ9y31p4i8Yv76cwQ43U6DtCVV4h3RlyYcRaIDK7SN4E6UG/p5RLKhSHGFy
oUbIB9v3jE134QJ+u1xDw8M6XzUvfD5nTX7WwXIdE7CdpgTWpCSvyE6/whMOx84s
uk7deBmZnNIS8Po9UJLACDStJczgkiz9cItPJAsK9L7zdfFFTFNLI0li25gxeRbA
a+kCzeqo0ymLdUE/KS/Mv911geb1afzmcN0BE1SmJ3dfSgAi42QnU5VvYbHW09Ap
AIkARgQYEQIABgUCPT/MAgAKCRCU/sWWbNyuS2wsAKCNip/rPy7YeWSHaTqbZn3k
cNYZxwCcCimZonqcFkAAmVHBYxILqBZkTmM=
=AUNJ
-END PGP PUBLIC KEY BLOCK-




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Writing files from a class

2002-08-14 Thread Shapira, Yoav

Hi,

I see that the spec mentions private temporary directory - I need a
permananent directory - by temporary I take it to mean that I can't
count on the files sticking around. Is my understanding here flawed?

Your understanding as far as a temporary directory is correct.  If you
need a permanent directory, you can:

- Specify one as a parameter (resource-ref, init-param to a servlet,
context-param etc.).

- Use another storage medium, e.g. a database.

Also, I'd like to be able to specify the name and location.
I had seen the javax.servlet.ServletContext.log() methods, but they
seem
to offer no control over where the output is placed. I'd rather have a
debug file per class than have all messages sent to a single file.

I'm sorry, I don't have your original message in front of me.  Are you
using a logging solution e.g. log4j or commons-logging, or are you
constricted to relying only on the ServletContext.log() methods?  Log4j
etc will let you configure the log files to whatever detail level you
want, including path and separate log files per class.

And finally, I have servlets that take data from a db and place it in a
(text) file for the user to download - so once again a file creation
issue where I need a general file i/o solution.

Why can't you use the temporary directory for this?  Unless you want to
files to persist across server restarts, in which case you would either
put them in a DB or tell your servlets what directory to use via the
param methods mentioned above.

Yoav Shapira
Millennium ChemInformatics


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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


AW: Directory indexing in Tomcat 4.0

2002-08-14 Thread Ralph Einfeldt

Search for welcome-file

 -Ursprüngliche Nachricht-
 Von: Todd Fulton [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 17:35
 An: Tomcat Users List
 Betreff: Directory indexing in Tomcat 4.0
 
 
 How does one turn off directory indexing in Tomcat 4.0?
 
 I've been asking this question for a bit now..  Looking on 
 google groups, all the Tomcat-users mail archives, and 
 everywhere else I know.  Nobody seems to know.

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




Re: How to keep track of sessions

2002-08-14 Thread Luminous Heart

Is this a bug in tomcat 4.0.4? Notice that these two
errors that am posting are from two different
applications in the same context.

Please help.

Thanks.


Apache Tomcat/4.0.4 - HTTP Status 500 - Internal
Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error
(Internal Server Error) that prevented it from
fulfilling this request.

exception 

javax.servlet.ServletException:
java.lang.NullPointerException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1043)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.Exception: java.lang.NullPointerException
at
org.apache.jsp.inbox$jsp._jspService(inbox$jsp.java:1032)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at

RE: Directory indexing in Tomcat 4.0

2002-08-14 Thread Shapira, Yoav

Hi,
One way to do it:
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param

In the default servlet section of $CATALINA_HOME/conf/web.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Todd Fulton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:35 AM
To: Tomcat Users List
Subject: Directory indexing in Tomcat 4.0

How does one turn off directory indexing in Tomcat 4.0?

I've been asking this question for a bit now..  Looking on google
groups,
all the Tomcat-users mail archives, and everywhere else I know.  Nobody
seems to know.

Anyone?

Todd



--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Quick Question

2002-08-14 Thread Durham David Cntr 805CSS/SCBE

good point, although if you need to write to the file, getResourceAsStream doesn't 
work.  Is there something else along the same lines that will?


 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Quick Question
 
 
 IMO, it seems like a bad idea to me to tie your bean 
 code to a servlet context unless you REALLY need to.
 
 To me, a better way would be to put the file in a 
 directory under classes, and use the classloader of 
 the current thread to get to the file.
 
 This way, you do not need servlet.jar to use your bean 
 if you every decide to use it outside of a servlet.
 
 This is a very simple process. Here is an example:
 
 private InputStream getFile(String name){
  return Thread.
   currentThread().
   getContextClassLoader().
   getResourceAsStream(name);
 }
 
 To read a properties file classes/myprops.properties 
 for instance, you just do this:
 
 Properties p = new Properties();
 p.load(getFile(myprops.properties));
 
 Larry
 
  [EMAIL PROTECTED] 08/14/02 08:42 AM 
 It will work in a bean if you pass a reference 
 to the servlet context to it...
 
 --
 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]




Re: AW: How to keep track of sessions

2002-08-14 Thread Ashish Kulkarni

Hi,
Does this mean like implementing a ActionListener
interface in swing, once i write a class which
implements this listener automtically events will be
caught when a new session is created or session is
getting invalidated...

In AS/400 when ever i create a user login, there is 
job which is started in the subsystem. and this job
remains in the subsystem untill the user signsoff, i
have tried using the session-timeout in web.xml, but
found that even after the session is invalidated in
tomcat, but still this job is running on as/400 so i
want to write some code which will mkae sure that i
kill this job running on as/400 when the session is
being invalidated
also is there a way i can find out the number of
active sessions in tomcat???

Ashish

Ralph Einfeldt [EMAIL PROTECTED] wrote:
 I think you make it a bit to comlicated.
 
 The session is invalidated automatically by tomcat.
 (See session-timeout in web.xml)
 
 The only thing that you have to do is implement a 
 HttpSessionBindingListener store an instance of
 this class in the session.
 
 What job are you talking about? Do you start an
 operation system job whenever a session is started? 
 Or do start a java thread or what ?
 
  -Ursprüngliche Nachricht-
  Von: Ashish Kulkarni
 [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 14. August 2002 17:14
  An: Tomcat Users List
  Betreff: Re: How to keep track of sessions
  
  
  Hi 
  Can some one provide with some java code where in
 they
  have used HttpSessionListener, and then stored the
  sessions in a vector when a new session is
 created,
  and remove it when it is invalidated.
  i m developing a webapplication where in the
 database
  is as400, so when ever a user logs in a job is run
 on
  as/400, but if the user just closes the browser
  without signing out, then this job runs on as/400
  untill i restart tomcat,  so i would like to know
 when
  the user closes the browser, but there is no way i
 
  can find it out, so i think i will store all the
  sessions created in a vector, and when the user
  signoff I will remove the session from vector and
 then
  also run schedule job say after 30 min which will
  check the session from the vector,to find when was
 it
  used last time, and if it is more then some time
 say
  30 min, invalidate that session, which will stop
 the
  job running on as400 is there a better way of
 doing it..
  Ashish
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: Quick Question

2002-08-14 Thread Shapira, Yoav

Howdy,

good point, although if you need to write to the file,
getResourceAsStream
doesn't work.  Is there something else along the same lines that will?

How's about:

URL destinationURL = ...getResource(...);
URLConnection destinationConnection = URL.openConnection();
destinationConnection.setDoOutput();
OutputStream outputStream = destinationConnection.getOutputStream();
...

You are not guaranteed this will always work across containers.  I don't
think the spec says the container *has* to give you write permission to
URLs obtained this way.

Yoav Shapira
Millennium ChemInformatics



 -Original Message-
 From: Larry Meadors [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 14, 2002 10:11 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Quick Question


 IMO, it seems like a bad idea to me to tie your bean
 code to a servlet context unless you REALLY need to.

 To me, a better way would be to put the file in a
 directory under classes, and use the classloader of
 the current thread to get to the file.

 This way, you do not need servlet.jar to use your bean
 if you every decide to use it outside of a servlet.

 This is a very simple process. Here is an example:

 private InputStream getFile(String name){
  return Thread.
   currentThread().
   getContextClassLoader().
   getResourceAsStream(name);
 }

 To read a properties file classes/myprops.properties
 for instance, you just do this:

 Properties p = new Properties();
 p.load(getFile(myprops.properties));

 Larry

  [EMAIL PROTECTED] 08/14/02 08:42 AM 
 It will work in a bean if you pass a reference
 to the servlet context to it...

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


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  1   2   3   >