AW: Sharing Data Sources

2005-05-12 Thread Pfingstl Gernot
Did you try to define your datasource in ? And then you only have to define a resource-link in your contexts. -Ursprüngliche Nachricht- Von: Cook, Jared [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 12. Mai 2005 21:23 An: 'tomcat-user@jakarta.apache.org' Betreff: Sharing Data Sources

AW: Sessions and keep-alives

2005-05-12 Thread Pfingstl Gernot
Wen launching webapp B (from A), you can pass jsessionid as url parameter (not as jsessionid) to B; with this jsessionid you can call A from B for keep-alive. Gernot -Ursprüngliche Nachricht- Von: Patrick Lacson [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Mai 2005 06:57 An: Tomcat U

Re: Cannot access Tomcat from remote box

2005-05-12 Thread Vincent Yau
Are you really sure that there is no firewall running? And what does you mean when mentioning that HTTPD traffic passes through? Have you also checked port 8080 which is Tomcat's default port? Here is output of iptables: Chain INPUT (policy ACCEPT) target prot opt source destinat

Re: Sessions and keep-alives

2005-05-12 Thread Frank W. Zammetti
If you can use Javascript (and can require it), what you could do is set a timer in app B's onLoad event to call a Javascript function in app A from app B (parent.myFunction();)... This function could refresh whatever the current page is in some interval less than your timeout period. You'll ha

Re: Sessions and keep-alives

2005-05-12 Thread Frank W. Zammetti
If you can use Javascript (and can require it), what you could do is set a timer in app B's onLoad event to call a Javascript function in app A from app B (parent.myFunction();)... This function could refresh whatever the current page is in some interval less than your timeout period. You'll ha

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
Tim Funk wrote: ~user/public_html/META-INF/context.xml might do the trick. So, the magical name of the UserDir context is "context"? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
I've considered iframes, but unfortunately not an option for us. >From what I understand AJAX can make async calls to the HTTP server from the webapplication only, not on behalf of another. So if the popup application is webapp B, and the parent webapp A, how can I call the webapp A server from w

Re: database - jdbc setup help

2005-05-12 Thread Lutz Zetzsche
Hi Bagus, Am Freitag, 13. Mai 2005 04:04 schrieb Bagus: > Wow, great. > > That worked like a charm. After following your simple instructions, > your script listed my database tables. Amazing! Many thanks for the compliment. :-) I have worked this out for me from the various how-tos. The problem

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Lutz Zetzsche
Hi Peter, Am Freitag, 13. Mai 2005 01:02 schrieb PAlvin: > Thanks, but it still doesn't work! I removed the RewriteRule from > httpd.conf and added the welcome-file-list section to the web.xml > file. Now, when I go to my vanilla domain (www.smartmicro.com) I > get this message: > > Forbidden >

Re: Cannot access Tomcat from remote box

2005-05-12 Thread Lutz Zetzsche
Hi Vincent, Am Freitag, 13. Mai 2005 00:35 schrieb Vincent Yau: > Today, I got hold of 2 boxes that I need to setup tomcat. Both are > Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box > with Tomcat up and running that I setup a few months ago (version > 5.0.28). > > So I downlo

Re: Looking for way to constrain bandwidth from a tomcat servlet

2005-05-12 Thread Will Hartung
> From: "Kellner, Peter" <[EMAIL PROTECTED]> > Sent: Thursday, May 12, 2005 6:14 PM > I have a particular web page that hits a servlet and I'm finding that > certain users suck out huge bandwidth. Does anyone know of any products > or open source projects that work with tomcat that will allow me

RE: database - jdbc setup help

2005-05-12 Thread Bagus
Wow, great. That worked like a charm. After following your simple instructions, your script listed my database tables. Amazing! I don't quite get the JSTL stuff tho... Your script says: > <%-- > The taglib directive below imports the JSTL library. If you uncomment it, > you must also add the JS

Re: question about load-on-startup in web.xml

2005-05-12 Thread QM
On Wed, May 11, 2005 at 08:53:43PM -0500, Caldarale, Charles R wrote: : > any one know if there's a way to make webappY get installed before : > webappX? : : If you want to synchronize application deployment, I think you're going : to have to do that within the app itself, possibly with context :

Looking for way to constrain bandwidth from a tomcat servlet

2005-05-12 Thread Kellner, Peter
I have a particular web page that hits a servlet and I'm finding that certain users suck out huge bandwidth. Does anyone know of any products or open source projects that work with tomcat that will allow me to "throttle" bandwidth to certain users based on some criteria? (like total bandwidth alr

Re: Realms and Filters question

2005-05-12 Thread Will Hartung
> From: "Tim Funk" <[EMAIL PROTECTED]> > Sent: Thursday, May 12, 2005 5:17 PM > The realm logic will be called before the filter logic. No way around it. Yup, my major complaint with Servlet Authentication. You either use all of it or none of it. I'd like to think that they'd make it a little mor

Re: Sessions and keep-alives

2005-05-12 Thread Tim Funk
The simplest kludge is an iframe that is "hidden" and uses a META refresh. Or look at using ajax. -Tim Patrick Lacson wrote: hi All! I'm involved in a project that integrates two disparate web applications: webapp A is using WebSphere and webapp B is using Tomcat. The integration involves Single Si

Re: Realms and Filters question

2005-05-12 Thread Tim Funk
The realm logic will be called before the filter logic. No way around it. -Tim Brett Parsons wrote: Hi All, I've implemented a custom realm and a custom filter for my webapp. The idea is, I want the filter to handle incoming requests for ALL resources within the webapp while the realm is only go

Re: Cannot access Tomcat from remote box

2005-05-12 Thread Hassan Schroeder
Vincent Yau wrote: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got "Connection Refused" when trying t

Form Based Authentication

2005-05-12 Thread David B. Saul
Having a problem being challenged on Linux. Form based using the tomcat-users.xml file works under windows. However, when same code is deployed to Linux the page is never challenged. I checked server.xml on both platforms as well as the specific webapp. Even built a Hello World example to elimin

RE: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Thanks, but it still doesn't work! I removed the RewriteRule from httpd.conf and added the welcome-file-list section to the web.xml file. Now, when I go to my vanilla domain (www.smartmicro.com) I get this message: Forbidden You don't have permission to access / on this server. Apache/2.0.47 (U

RE: Form Based Authentication

2005-05-12 Thread David B. Saul
Never Mind - It was permissions on the tomcat-users.xml file. Duh! -Original Message- From: David B. Saul [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 7:37 PM To: 'Tomcat Users List' Subject: Form Based Authentication Having a problem being challenged on Linux. Form based

Cannot access Tomcat from remote box

2005-05-12 Thread Vincent Yau
Hi: I have a very odd error hope someone can tell me how to fix it. I am not a new Tomcat user, been using it on and off for the last few years. I never really dive into the setup as my need had always been very simple. Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One

Realm and Filter question

2005-05-12 Thread Brett Parsons
Hi All, I've implemented a custom realm and a custom servlet filter for my webapp. The idea is, I want the filter to handle incoming requests for ALL resources within the webapp while the realm is only going to handle several resources within the webapp. The problem is, I need the filter to be c

Sessions and keep-alives

2005-05-12 Thread Patrick Lacson
hi All! I'm involved in a project that integrates two disparate web applications: webapp A is using WebSphere and webapp B is using Tomcat. The integration involves Single Sign On, with webapp A being the primary webapp from which webapp B is launched. webapp B is launched as a popup-window. My

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Jason Bainbridge
On 5/12/05, PAlvin <[EMAIL PROTECTED]> wrote: > Removing the [R] from the RewriteRule breaks everything and no page > is served: > > RewriteRule ^/$ /home.htm **does not work** > > I'm curious: how does everyone else map the domain request to an > actual page??? > > domain.com -

RE: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Trung Nguyen
Put these lines into web.xml file home.htm Hope this help! Trung -Original Message- From: PAlvin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 5:31 PM To: Tomcat Users List Subject: Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread PAlvin
Removing the [R] from the RewriteRule breaks everything and no page is served: RewriteRule ^/$ /home.htm **does not work** I'm curious: how does everyone else map the domain request to an actual page??? domain.com --to--> domain.com/home.htm Everyone must be doing this, right?

Re: Session Creation fails without proxy

2005-05-12 Thread Kannan V
Hello: Problem Identified. The application works fine with or without proxies with Mozilla. So we narrowed down our problem to Browser and found that the privacy setting of IE should be low to allow a third part cookie and that "solved" the problem. thanks and regards, -- Kannan. - Origi

Re: SSL on multiple IP addreses?

2005-05-12 Thread jejones
On Solaris: Lets say the default interface is hme0, then all the aliases are hme0:1, hme0:2, hme0:3 - and so on... ifconfig hme0:1 netmask up ifconfig hme0:2 netmask up each aliases having a different IP of course! -jrj Will Hartung wrote: From: "David Wall" <[EMAIL PROTECTED]> Sent: Thursday

Re: SSL on multiple IP addreses?

2005-05-12 Thread David Wall
That's very cool. Didn't even know it was possible. I hope the original question has been answered in terms of creating multiple SSL connectors and having each point to a different keystore, since each keystore will hold the cert for each domain name. Trung Nguyen wrote: You can configure mu

Sharing Data Sources

2005-05-12 Thread Cook, Jared
I have a lot of virtual hosts that need access to a lot of the same databases. Security isn't an issue because they are all trusted sites. I would like to be able to share the ResourceLinks across all the virtual hosts without having to have them all defined in every ROOT.xml. Is there a way t

Admin Application messes up HTTPS Connectors in server.xml

2005-05-12 Thread Ankit Shah
Hi, The Tomcat admin utility doesn't save the HTTPS connectors properly. It misses out the 'sslProtocol' attribute and this results in the failed connector. Does anyone have a fix around this? The following is the current state of our server: Tomcat 5.5.9 with 1.4.2 compatibility add-on. JRE ver

Realms and Filters question

2005-05-12 Thread Brett Parsons
Hi All, I've implemented a custom realm and a custom filter for my webapp. The idea is, I want the filter to handle incoming requests for ALL resources within the webapp while the realm is only going to handle several resources within the webapp. The problem is, I need the filter to be called

Re: SSL on multiple IP addreses?

2005-05-12 Thread Will Hartung
> From: "David Wall" <[EMAIL PROTECTED]> > Sent: Thursday, May 12, 2005 10:31 AM > How will you configure multiple IP addresses on a single NIC? Normally, > you have one NIC per IP address. You will need to use two keystores for > each system, and configure the keystores as you normally would un

Re: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Will Hartung
> From: Millies, Sebastian [mailto:[EMAIL PROTECTED] > Sent: 12 May 2005 15:57 > Can a client recapture his Tomcat session after he has accidentally closed > the browser, provided that the session object still exists on the server? If the client authenticates to your server (i.e. they log in), th

RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)

2005-05-12 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
I just want to say thanks very much for the help! Not sure how I missed this in the Tomcat Docs but that did fix my problem. -SB -Original Message- From: Marquez, Omar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 12:45 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.7 will

Session Creation fails without proxy

2005-05-12 Thread Kannan V
Hello: I am facing a very strange problem in our production environment. We are using Tomcat 4.1.29 version. We have two applications, one modelled with SOFIA and another with Webwork. The two applications are running on different servers and from the SOFIA application, the WebWork applica

Re: .asp and tomcat 5.5.9

2005-05-12 Thread Will Hartung
> From: "Trung Nguyen" <[EMAIL PROTECTED]> > Sent: Thursday, May 12, 2005 6:56 AM > Thanks again. What I'm trying to do is write code in Java and > name it .asp because our client wanted to have .asp instead of .jsp :-) Well that certainly can meet the letter of the request, if not the spirit!

Re: Basic load balancing

2005-05-12 Thread Peter Lin
If you can afford it, go with hardware load balancing. it's easier to setup and configure. it's also more reliable and robust. of course, you have to open up your wallet and let the money fall out. if you really want sophisticated load balancing that allows you to schedule a server to go down, i

Re: Basic load balancing

2005-05-12 Thread Will Hartung
> From: "Harry Mantheakis" <[EMAIL PROTECTED]> > Sent: Thursday, May 12, 2005 1:51 AM > What load balancing system would you recommend? (Is there some consensus, > cost issues aside, as to what the best type of load balancing system is?) I wish I could say. We use a pair of redundant BigIP's fro

Re: Common vs. Shared

2005-05-12 Thread Gabriel Belingueres
Yes, it works this way for javax.mail.Session too. You need to put mail.jarand activation.jar in lib/common so as you can find the Session from JNDI. On 5/6/05, Michael Echerer <[EMAIL PROTECTED]> wrote: > > Ron Heeb wrote: > > my understanding comes from this book i got: 'common is responsibl

RE: SSL on multiple IP addreses?

2005-05-12 Thread Caldarale, Charles R
> From: David Wall [mailto:[EMAIL PROTECTED] > Subject: Re: SSL on multiple IP addreses? > > How will you configure multiple IP addresses on a single NIC? IP addresses are a figment of the software TCP stack's imagination. All real operating systems provide the capability of assigning multiple

RE: SSL on multiple IP addreses?

2005-05-12 Thread Trung Nguyen
You can configure multiple IP adresses on a single NIC and add new IP/domain name to the server.xml To configure multiple IP address on a single NIC on Linux (RHEL): 1. cd /etc/sysconfig/network-scripts 2. Make a copy of ifcfg-eth0 to ifcfg-eth0:0 3. Edit ifcfg-eth0:0 and change DEVICE to eth0

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
I'm using the binary version of mod_jk. Apache v2.0.54 Tomcat v5.5 JK v1.2.12 Thank you, Edlira --- Mladen Turk <[EMAIL PROTECTED]> wrote: > Edlira Kumbarÿe7e wrote: > > I don't think it's the session timeout on tomcat > > because, as I said in my previous message,I don't > see > >

RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)

2005-05-12 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
I am actually just copying the war file to the webapps directory. This is the way I have always done it in the past but with 5.5.7 it doesnt seem to be working. Thanks, SB -Original Message- From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 12:

RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)

2005-05-12 Thread Marquez, Omar
I used to have this problem. It was solved when I moved the context entries out of server.xml and into conf/Catalina/localhost as pointed out by: >Contexts hardcoded in server.xml are not autodeployed or manageable >(except to some extent through the admin webapp). They are hardcoded >and always

RE: Tomcat 5.5.7 will not autodeploy war files (UNCLASSIFIED)

2005-05-12 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification: UNCLASSIFIED Caveats: NONE Looking at your server.xml file, it should actually autodeploy it. How are you updating the war file ? Copy/paste ? Or you're actually Letting your IDE auto deploy to the "webapps" directory ? -Original Message- From: BATCHELOR, SCOTT (CONTRA

Re: SSL on multiple IP addreses?

2005-05-12 Thread David Wall
How will you configure multiple IP addresses on a single NIC? Normally, you have one NIC per IP address. You will need to use two keystores for each system, and configure the keystores as you normally would under the SSL connector. I'm not sure how to configure the CoyoteConnector so that it

Tomcat 5.5.7 will not autodeploy war files

2005-05-12 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
I apologize up front if this has been answered at some other time. This is my first day on the list and I could not locate a search function for the archives. I am running Tomcat 5.5.7 with Apache 2.0.52 and ModJk 1.2.6 For some reason when I drop a war file in the webapps directory it will not

SSL on multiple IP addreses?

2005-05-12 Thread Paul Singleton
I'm trying to set up several SSL-enabled virtual hosts under Tomcat 5.5.9 (Linux), each on a different IP address (all via the same NIC). I think I need a separate certificate (self-signed is OK) for each, but cannot see how to associate them... Do I have to create separate keystores? or is there a

Apache2+Tomcat5.0.19+mod_jk+windows loadbalancing

2005-05-12 Thread Rehman Adil \(KI/EAB\)
Hi I am trying to use Apache 2.0 on windows to load balance three tomcat workers using mod_jk(mod_jk_1.2.6_2.0.50.dll). When I browse the URL (http://localhost/jsp-examples/index.jsp), Apache does not forward the request as I get the following in the Apache log file. File does not exist: C:/

Apache2+Tomcat5.0.19+mod_jk+windows loadbalancing

2005-05-12 Thread Rehman Adil \(KI/EAB\)
Hi I am trying to use Apache 2.0 on windows to load balance three tomcat workers using mod_jk(mod_jk_1.2.6_2.0.50.dll). When I browse the URL (http://localhost/jsp-examples/index.jsp), Apache does not forward the request as I get the following in the Apache log file. File does not exist: C:/apa

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Mladen Turk
Edlira Kumbarÿe7e wrote: I don't think it's the session timeout on tomcat because, as I said in my previous message,I don't see a pattern in the time pages are served from the same tomcat. In other words, a page gets served from tomcat1 maybe 4 times (each page refresh), then 2 time

How to use Admin and Manager app. when $CATALINA_BASE is redefined ?

2005-05-12 Thread MERCADIER Didier ROSI/SIFAC
Hi, We use Tomcat 4.1.24 and JSDK 1.4.1.07 on Windows 2000. In our project, we have redefined $CATALINA_BASE to point to our webapp directory outside of $CATALINA_HOME. It works perfectly. So now, we want to use administration and manager web applications. But /admin and /manager are searched

Re: Apache2+Tomcat5.5+mod_jk loadbalancing: Sticky sessions not working

2005-05-12 Thread Kumbarÿffffffffffffffffe7e
Thank you for your reply. I don't think it's the session timeout on tomcat because, as I said in my previous message,I don't see a pattern in the time pages are served from the same tomcat. In other words, a page gets served from tomcat1 maybe 4 times (each page refresh), then 2 times from tomcat2,

Re: Common vs. Shared

2005-05-12 Thread Dakota Jack
I have not read all the responses, but: Bootstrap | System | Common / \ Catalina Shared / \ Webapp1 Webapp2 ... On 5/5/05, Michael Oliver <[EMAIL PROTECTED]> wrote: > > > > I am quite sure this has been asked and answe

RE: Two instances configuration

2005-05-12 Thread Peter Crowther
> From: Diogo Martinez [mailto:[EMAIL PROTECTED] > does anybody know how to set up two instances of Tomcat > in a same > machine, listening to different ports? As well as configuring the connector, check and change the shutdown port (near the top of conf/server.xml). Each instance needs a

RE: tomcat 5.5.9 version stable?

2005-05-12 Thread Allistair Crossley
yes, it says so on the tomcat homepage. > -Original Message- > From: Woodchuck [mailto:[EMAIL PROTECTED] > Sent: 12 May 2005 16:57 > To: tomcat > Subject: tomcat 5.5.9 version stable? > > > hihi all, > > is the tomcat 5.5.9 version a 'stable' version? > > when i go to browse the downlo

Two instances configuration

2005-05-12 Thread Diogo Martinez
Hi, does anybody know how to set up two instances of Tomcat in a same machine, listening to different ports? I already tried to configure server.xml as following: ... ... When I shut down one instance, both are shut down together, and the same happens when I

tomcat 5.5.9 version stable?

2005-05-12 Thread Woodchuck
hihi all, is the tomcat 5.5.9 version a 'stable' version? when i go to browse the download folder i see versions marked with '-alpha' and '-beta'... but none marked with '-stable' does that mean 'stable' versions are the ones without any markings (ie. 'alpha' or 'beta')? thanks in advance! wood

Re: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Lutz Zetzsche
Hi Tim, Am Donnerstag, 12. Mai 2005 17:20 schrieb Tim Diggins: > Using IP sounds a bit scary as a lookup - think of all the users with > equivalent IP addresses (because of NATing routers/firewalls, etc.). > Plus it would be a strikes me it would be a nightmare to test... > > But, if instead you w

Re: tomcat and security

2005-05-12 Thread Lutz Zetzsche
Hi Lapo, Am Donnerstag, 12. Mai 2005 17:10 schrieb Lapo TIN: > I would like to "limit" tomcat features as much as possible for > avoiding undesiderables external accesses to the web server. I want > that only 2 servlets have to run on HTTPS, port 8443. And these two > servlets are simply replying

Re: Memory for JSP Compliation in 4.1

2005-05-12 Thread Wendy Smoak
From: "Will Hartung" <[EMAIL PROTECTED]> > Um...how big is the JSP that you're compiling? Is there perhaps a way to > make it smaller? Perhaps including some of the static content at runtime > rather than compile? (I'm trying to fathom a big enough JSP that would blow > up the compiler, but who kno

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Thanks all of you. I did create a simple context and named all the files with *.asp instead of *.jsp and mapped .asp to servlet. It worked. thanks again, Trung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
I agree, actually once I posted it I thought the same thing. What I suggested is not particularly useful but I have seen it done :-( I guess, in the end this whole session persistence is just a bad idea. Arup -Original Message- From: Tim Diggins [mailto:[EMAIL PROTECTED] Sent: 12 May 20

Re: Help needed with Hibernate persistent servlet

2005-05-12 Thread David Haynes
Allistair Crossley wrote: Hi, Hibernate needs a bunch of other jar files too. There is a text file in the H3 distrib indicating which are requisite and which are mandatory. You do not menion whether this HibernateUtil you are using as a servlet has an overridden init() method that creates the Ses

RE: Basic load balancing

2005-05-12 Thread Faine, Mark
Thanks for the tip, we will look at it. -Mark -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 1:40 PM To: Tomcat Users List Subject: Re: Basic load balancing Joe Plautz wrote: > From what I understand load balancing is done at the router,

RE: Setting an environment variable in tomcat 5.5 service?

2005-05-12 Thread Mufaddal Khumri
Que: Am I understanding this right, the environment entries you can set in tomcat web.xml are not the same as the ones you would be setting from under Windows->startup->control panel->system->Advanced?? Basically I am trying to set a environment variable to a particular file. In my webapp I use so

Re: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Tim Diggins
Using IP sounds a bit scary as a lookup - think of all the users with equivalent IP addresses (because of NATing routers/firewalls, etc.). Plus it would be a strikes me it would be a nightmare to test... But, if instead you wanted to have a session that wasn't linked to tomcat's notion of a ses

RE: database - jdbc setup help

2005-05-12 Thread Geoff Wiggs
Lutz, Thank you for the excellent primer on Tomcat DB setup. I'm going to keep this around forever. Quick question, how can you tell that it is really using the db pool? Is there a monitoring tool somewhere that would show the number of connections in use? Geoff Wiggs Orcas Technologies, Inc

Re: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Lutz Zetzsche
Hi Sebastian, Am Donnerstag, 12. Mai 2005 16:57 schrieb Millies, Sebastian: > Can a client recapture his Tomcat session after he > has accidentally closed the browser, provided that > the session object still exists on the server? > > Would this be a browser-specific thing? After all, > I guess I'

tomcat and security

2005-05-12 Thread Lapo TIN
I would like to "limit" tomcat features as much as possible for avoiding undesiderables external accesses to the web server. I want that only 2 servlets have to run on HTTPS, port 8443. And these two servlets are simply replying to a GET with a static XML. Nothing more. I define the ssl connector

RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
I am not sure if this can be done... I guess you could build framework where the user's session id and ip is logged (unless they logout) and then when the user comes back you could use the old session. I have never tried this but this personally but I don’t see why it should not work. Arup -

Re: .asp and tomcat 5.5.9

2005-05-12 Thread Tim Funk
Add this to you web.xml jsp *.asp This assumes you name all your jsp files with a file extension of asp. Otherwise you would need a filter which would trap *.asp and forward to the filename name with the jsp extension. -Tim Trung Nguyen wrote: Charlie, Thank you very muc

Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Millies, Sebastian
Can a client recapture his Tomcat session after he has accidentally closed the browser, provided that the session object still exists on the server? Would this be a browser-specific thing? After all, I guess I'd need to tell the browser to persist the session cookie or some such thing. Or would i

Re: .asp and tomcat 5.5.9

2005-05-12 Thread Jess Holle
Trung Nguyen wrote: Charlie, Thank you very much for the reply. This is what we want, we just want people think that the site is written in .asp but it is really java. How do I mapy .extension to servlet? You could likely have the files names .jsp and have a filter that forwards all *.asp req

Re: .asp and tomcat 5.5.9

2005-05-12 Thread David Smith
You could just add this to your web.xml file in the proper place: jsp *.asp --David Trung Nguyen wrote: >Peter, > >Thanks again. What I'm trying to do is write code in Java and name it .asp >because our client wanted to have .asp instead of .jsp > > > >-Original Message- >From:

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Peter Crowther
> From: Trung Nguyen [mailto:[EMAIL PROTECTED] > What we're trying to > do here is one of our client requested to show .asp instead > of .jsp I know this is crazy, but I guess they're Microsoft > company :) > > Of course all our files end with .jsp Ah! OK, so what I think you want is to

Re: tomcat-user Digest 12 May 2005 01:34:48 -0000 Issue 5616

2005-05-12 Thread Ankit Shah
Hi Mark, My jar file is placed in $CATALINA_HOME/server/lib/ Here is the slice of my server.xml Thanks, Ankit [EMAIL PROTECTED] 05/11/2005 09:34 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To tomcat-user@jakarta.apache

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Charlie, Thank you very much for the reply. This is what we want, we just want people think that the site is written in .asp but it is really java. How do I mapy .extension to servlet? Thanks, Trung -Original Message- From: Charles Harvey III [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Peter, Thanks again. What I'm trying to do is write code in Java and name it .asp because our client wanted to have .asp instead of .jsp -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 9:41 AM To: Tomcat Users List Subject: RE: .asp and t

Re: .asp and tomcat 5.5.9

2005-05-12 Thread Charles Harvey III
You can map any .extension to a servlet. It can be .asp, .php, .do, .html or .java. Now, that DOES NOT mean that Tomcat will render an actual .asp page written in VBScript. It just means that you can have people think that your website is written in .asp but it is really java. Charlie Arup Vidy

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Thank you very much for the fast reply. What we're trying to do here is one of our client requested to show .asp instead of .jsp I know this is crazy, but I guess they're Microsoft company :) Of course all our files end with .jsp -Original Message- From: Peter Crowther [mailto:[EM

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Peter Crowther
> From: Trung Nguyen [mailto:[EMAIL PROTECTED] > Is there a way to configure tomcat 5.5.9 to support .asp extension? If you mean 'serve static content that has a .asp suffix as MIME type x/y', yes. Configure a MIME-type in Tomcat's conf/web.xml (or your webapp's web.xml) and you're done. If you

RE: .asp and tomcat 5.5.9

2005-05-12 Thread Arup Vidyerthy
Why would anybody want that? You should be writing your application in Java :-D Sorry couldn't help. And no, I do not know if Tomcat can support .asp! Arup -Original Message- From: Trung Nguyen [mailto:[EMAIL PROTECTED] Sent: 12 May 2005 14:36 To: tomcat-user@jakarta.apache.org Subjec

.asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Hello, Is there a way to configure tomcat 5.5.9 to support .asp extension? Thanks, Trung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: question about load-on-startup in web.xml

2005-05-12 Thread Michael Oliver
If I were doing it I would put a singleton class in the /common/lib/ that had a Hashtable and in my application's startup I would get the singleton and have the first application I want to load put a string "loading" (or whatever) in the Hashtable of the singleton with the key "webappY". The secon

Re: database - jdbc setup help

2005-05-12 Thread Terence M. Bandoian
For information about JDBC, you may want to try the Sun JDBC tutorial - http://java.sun.com/docs/books/tutorial/jdbc/ -Terence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: how to access JSPs using servername/~username

2005-05-12 Thread Tim Funk
~user/public_html/META-INF/context.xml might do the trick. -Tim Nikola Milutinovic wrote: Tim Funk wrote: There is the concept of user dirs ... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html See the section "User Web Applications" I stand corrected. I still prefer explicit contex

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Mario Ivankovits
Nikola Milutinovic wrote: You could try JPackage, but be prepared for dependency nightmare. But SuSE 9.3 uses JPackage, am I wrong? I managed to setup the SuSE 9.3 tomcat&java but there where a couple of missing libraries. And a missing link to correctly startup java at all. In fact SuSE installe

RE: ClassLoading in webapps

2005-05-12 Thread Arup Vidyerthy
Yes, all you need to do is get the Tomcat System class loader to load it. If you are on Windows put these extra jar files as class path entries inside the setclasspath.bat file. On Linux either setclasspath.sh or catalina.sh Hope this helps... Arup -Original Message- From: Narayan, Sat

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Paul Puschmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Quinton Delpeche wrote: > When I install Tomcat 5 (base, examples, and admin) I get an error with the > packages. I read that this is to do with incorrect directory names or link > names. > > On one of my other test machines I keep getting a socket

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Nikola Milutinovic
Quinton Delpeche wrote: On Thursday 12 May 2005 14:12, Bjïrn T Johansen wrote: But why do you use the Tomcat that comes with SuSE 9.3?? I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's version...) Yeah ... I asked myself that same question 3 minutes ago. :( I gues

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
Tim Funk wrote: There is the concept of user dirs ... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html See the section "User Web Applications" I stand corrected. I still prefer explicit context mappings. How would you deploy JNDI resources in userdir case? Nix. --

Re: RE : Common vs. Shared

2005-05-12 Thread Nikola Milutinovic
LERBSCHER Jean-Pierre wrote: -Message d'origine- De : Ron Heeb [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 mai 2005 18:18 À : tomcat-user@jakarta.apache.org Objet : RE: Common vs. Shared my understanding comes from this book i got: 'common is responsible for classes that are used by To

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Quinton Delpeche
On Thursday 12 May 2005 14:12, Bjørn T Johansen wrote: > But why do you use the Tomcat that comes with SuSE 9.3?? > I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's > version...) Yeah ... I asked myself that same question 3 minutes ago. :( I guess I will go to a NON-SuS

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Bjørn T Johansen
But why do you use the Tomcat that comes with SuSE 9.3?? I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's version...) BTJ Quinton Delpeche wrote: > On Thursday 12 May 2005 13:32, Raghupathy,Gurumoorthy wrote: > >>Wht is the problem ? > > > When I install Tomcat 5 (b

Re: how to access JSPs using servername/~username

2005-05-12 Thread Tim Funk
There is the concept of user dirs ... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html See the section "User Web Applications" -Tim Nikola Milutinovic wrote: Akhthar Parvez. K wrote: Hi, I used to access the html webpages using servername.(http://servername/~username) But I am not

RE: how to access JSPs using servername/~username

2005-05-12 Thread Raghupathy,Gurumoorthy
No this is not true http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html Its says ... == Many web servers can automatically map a request URI starting with a tilde character ("~") and a username

RE : Common vs. Shared

2005-05-12 Thread LERBSCHER Jean-Pierre
-Message d'origine- De : Ron Heeb [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 mai 2005 18:18 À : tomcat-user@jakarta.apache.org Objet : RE: Common vs. Shared my understanding comes from this book i got: 'common is responsible for classes that are used by Tomcat and publicly available

  1   2   >