Objects using thread on Start/Stop of Tomcat

2004-04-08 Thread Namasivayam, Sudhakar (Cognizant)
hi all, I have a Thread mgr which will create a thread. No if i Start and Stop the Tomcat, The older mgr object seems to be still in the JVM and this causes a problem because a new mgr is created and i have two copies of threads running simultaneously.. Can any one tell me whether

RE: Howto run tomcat 4.06 as windows service

2004-04-08 Thread Carl Olivier
Hi. Visit: http://www.alexandriasc.com/software/JavaService/index.html Download the free JavaService wrapper - read the docs and use it to easily install a service for your tomcat 4 (in fact they have a batch file in their distro that is pre-done for TC4!) Regards, Carl -Original

RE: request.getUserPrincipal();

2004-04-08 Thread Winter, G (Graeme)
Hi, I should probably clarify this. I have hacked the Tomcat 5 RequestHeaderExample servlet so that it prints out these values: request.getAuthType(); request.getRemoteUser(); request.getUserPrincipal(); *but* they all print NULL. Even on the first call - no sessions involved (at least, I

Re: Inter Servlet Communication

2004-04-08 Thread Nikola Milutinovic
Gareth Western wrote: Hi, Can someone fill me in as to what I need to do to make objects that are instanstiated in one servlet available to another servlet? I tried using getServletContext().setAttribute(some.name, myObj) however I was unable to retrieve the object in the other servlet. I

RE: Tomcat 5 out of memory

2004-04-08 Thread Carl Olivier
Hi - maybe try the incremental GC (JVM Hotspot switch: -Xincgc). Carl -Original Message- From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Sent: 08 April 2004 12:17 AM To: 'Tomcat Users List' Subject: Tomcat 5 out of memory Hi, We are having problems with Tomcat when restarting the

Hi, it's me

2004-04-08 Thread tomcat-user
Norton AntiVirus eliminato1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat 5.0.18 java.net.ConnectException:Connection timed out:connect

2004-04-08 Thread Francesco Pellegrini
Hi all, I have one web application that runs on Tomcat 5.0.18. My application should connect to remote host by HTTPS protocol (to retrive some information) during client active session. Sometimes, when I try to connect from my application to remote host, I got the error below, and the client

Re: Tomcat (4.1) doesn't answer

2004-04-08 Thread Gianni Pucciani
Parsons Technical Services wrote: Gianni, Try using the IP. If you can get to it with an IP then your issue is with the DNS otherwise you have an issue with your network. I've tryed also with http://myip:8080 without results. What OS are you running? Linux RH9. Maybe the problem is in my router

Hey

2004-04-08 Thread tomcat-user
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inter Servlet Communication

2004-04-08 Thread Gareth Western
QM wrote: On Wed, Apr 07, 2004 at 11:47:50PM +0100, Gareth Western wrote: : Can someone fill me in as to what I need to do to make objects that are : instanstiated in one servlet available to another servlet? I tried using : getServletContext().setAttribute(some.name, myObj) however I was

Hi!

2004-04-08 Thread tomcat-user
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

servlet error

2004-04-08 Thread Moahmed A. Shalaby
Hii I was using Oracle Application sever 4.0.8 to run my servlets , but When i'm executing my servlet using NetBeans IDE 3.5 and Tomcat it raise the following error : java.lang.NoSuchMethodError: main Exception in thread main how could i solve it ??? thank you

Re: servlet error

2004-04-08 Thread Paul Mansfield
On Thu, 2004-04-08 at 12:44, Moahmed A. Shalaby wrote: Hii I was using Oracle Application sever 4.0.8 to run my servlets , but When i'm executing my servlet using NetBeans IDE 3.5 and Tomcat it raise the following error : java.lang.NoSuchMethodError: main Exception in thread main how

Re: Apache http / mod_rewrite / mod_jk

2004-04-08 Thread Christopher Schultz
Yoav, Do you know if this is supposed to work? JkMount /myapp/*;jsessionid=* workerX It has allegedly worked for some other people. I don't know if it's supposed to work. Is it difficult to test? I have tested it. It does not work for me. Others claim that it does work. I'm wondering if I

Re: Apache http / mod_rewrite / mod_jk

2004-04-08 Thread Christopher Schultz
Kenneth, Instead of directly redirect to mod_jk, can you just use mod_write to insert a directory prefix which can trigger mod_jk? That's an idea. If I did that, how could I get Tomcat to figure out the right path, then? Can I do a reverse rewrite in Tomcat? Thanks, -chris signature.asc

RE: Tomcat (4.1) doesn't answer

2004-04-08 Thread Yang Xiao
-Original Message- From: Gianni Pucciani [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 4:21 AM To: Tomcat Users List Subject: Re: Tomcat (4.1) doesn't answer Parsons Technical Services wrote: Gianni, Try using the IP. If you can get to it with an IP then your issue is

RE: [OT] getBlob() error in Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, Attachments in most forms are removed by the list server, so yours didn't make it (at least on my mail reader). I am using weblog.jar file as suggested by somebody in a forum, Can somebody tell me why I am getting Class Cast Error on RUNTIME? I am able to compile the code. Why don't you ask

RE: Can AccessLogValve Cause Tomcat Performance Hit?

2004-04-08 Thread Shapira, Yoav
Hi, There's negligible performance difference between AccessLogValve and its Extended cousin, at least in my benchmarks. Yoav Shapira Millennium Research Informatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:37 PM To: Tomcat Users

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, You can change fairly easily to run with commons-daemon. Specific instructions are at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html and general instructions for daemon are at http://jakarta.apache.org/commons/daemon/jsvc.html (for unix platforms) and

RE: Getting basic Logging up and running

2004-04-08 Thread Shapira, Yoav
Hi, Try debug=99 perhaps. Yoav Shapira Millennium Research Informatics -Original Message- From: Jason Palmatier [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: Getting basic Logging up and running Hi, I've been trying to get basic

RE: Inter Servlet Communication

2004-04-08 Thread Shapira, Yoav
Hi, You should be able to use the ServletContext as you're trying to do. Two servlets in the same webapp will share the context, and setAttribute/getAttribute is a decent way to go about sharing your objects. Can you write a simple logging ServletContextAttributeListener and see if it shows the

RE: Objects using thread on Start/Stop of Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, It's funny that you wrote your own thread manager and have to ask this question. No, tomcat cannot destroy all your threads and objects referred to from these threads. Tomcat can only destroy daemon threads for you. You need to take care of the rest by yourself. A ServletContextListener's

Snapshot of Tomcat's Sessions

2004-04-08 Thread Michael . Medwith
I would like to do so metrics on the number and size of sessions in Tomcat 4.1.x. Is there any good tools or utilities to use for this? Michael Medwith Flagstar Bank Mortrac 4 - Development Team 248.312.5959 This e-mail may contain data that is confidential, proprietary or non-public

RE: Tomcat 5 out of memory

2004-04-08 Thread Shapira, Yoav
Hi, Incremental GC has nothing to do with it. Rebuilding the cache (whatever that means) has nothing to do with it. This has been discussed numerous times in the past, and has to do with the permanent generation as you've surmised. See for example:

RE: Snapshot of Tomcat's Sessions

2004-04-08 Thread Shapira, Yoav
Hi, There's a kick-ass tool for it that's free and extremely flexible: javax.servlet.http.HttpServlet*Listener. (Where * can be nothing, Activation, Attribute, or Binding). Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: Apache http / mod_rewrite / mod_jk

2004-04-08 Thread Christopher Schultz
All, JkMount /myapp/*;jsessionid=* workerX This particular directive seems to be ignored on my setup. I guess I'll just look at the module source and figure it out myself. It turns out that mod_jk does not consider ;jsessionid= part of the URL when it does matching. :( From mod_jk.log:

Re: mod_jk2 2.0.4 compiler error on RHEL 3.0, Apache 2.0.46

2004-04-08 Thread Chris Egolf
Frank Fischer wrote: did you manage to solve you're problem with this gcc: cannot specify -o with -c or -S and multiple compilations error? I ran into the same problem on Fedora Core 1 with apache rpm. No, I haven't solved the problem on any RHEL 3.0 machines. It seems to work or not work

Re: Connecting the HTTP Server and Tomcat

2004-04-08 Thread David Smith
Hi. I realize you're looking at jsvc right now and thinking about removing the Apache component altogether, but I'll take a shot at this anyway. AddModule appears to have been dropped in Apache 2.0.xx, so just leave it out. I didn't use it in my environment and things are working. Here's

tomcat as j2ee container

2004-04-08 Thread khylandirl
Hi, I'm looking for some architectural guidance. I'm developing a multitier application centred around tomcat. At the lowest level I have mulitple webapps. For the middle tier, I've written a LifecycleListener that invokes my business objects. These will then be available to all the webapps.

[Fwd: Re: servlet error]

2004-04-08 Thread Paul Mansfield
error messages from sci.de domain mail system... xlink - you're in the RIPE records for the IP address of the mail handler for sci.de some retard signed up to the Tomcat Users List ([EMAIL PROTECTED]) and then killed the mailbox without unsubscribing and now anyone who emails the list gets back

RE: Tomcat 5 out of memory

2004-04-08 Thread Angelov, Rossen
Thanks a lot! I appreciate your help. Ross -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 8:03 AM To: Tomcat Users List Subject: RE: Tomcat 5 out of memory Hi, Incremental GC has nothing to do with it. Rebuilding the cache (whatever

Re: Apache http / mod_rewrite / mod_jk [hacked SOLUTION]

2004-04-08 Thread Christopher Schultz
All, Here is my solution to the jsessionid issue discussed in this thread. The problem is that when Tomcat encodes URLs without knowing if the browser supports cookies, it adds ;jsessionid=BLAHBLAH to each encoded URL. This is perfectly normal behavior. However, when using Apache httpd, Apache

RE: question about jsp:element and jsp:attribute

2004-04-08 Thread Yansheng Lin
Hi, I don't think the code makes sense. It is assumed that a jsp action tag starts with a opening tag and ends it somewhere in a logical manner, i.e., during the translation, the jsp engine has to figure out where the start and end are. Since the if statement will not be evaluated until runtime,

RE: [Fwd: Re: servlet error]

2004-04-08 Thread Shapira, Yoav
Hi, [EMAIL PROTECTED] has been unsubscribed already. Yoav Shapira Millennium Research Informatics -Original Message- From: Paul Mansfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 9:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Tomcat Users List

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Wilson, Allen
Not a problem... I wish I could get it working as easily with Apache and Tomcat on Solaris... I think I just missing something..but I cannot put my finger on it. -Original Message- From: Bill Bruns [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 6:31 PM To: Tomcat User

RE: request.getUserPrincipal();

2004-04-08 Thread Yansheng Lin
Yes, you are looking at the right place. Each request carries those information from the client to the server. But those information has to be stored in a session that's asociated with the client somehow once they log in, otherwise how would you know which client it is for a particular request.

Re: RE: question about jsp:element and jsp:attribute

2004-04-08 Thread Giuseppe Briotti
I think that the problem is due to the evaluation of the if, as stated in a previous message. Can you change the code as follows: jsp:element name=fo:table-column jsp:attribute name=column-width jsp:expressionwidths[i]/jsp:expression /jsp:attribute jsp:scriptlet if

Connection pooling and Oracle connection in server.xml

2004-04-08 Thread prasad chaturvedula
Hi guys, I have a problem with connecting to oracle db using the commons dbcp connection pooling. Here is teh content of my server.xml file-- /ResourceParams Resource name=jdbc/myoracle auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle

RE: Tomcat returning absolute http:// URL behind SSL Proxy instead of keeping https://

2004-04-08 Thread Yansheng Lin
hi, for tomcat to accept https protocal, you need to define a SSL connector. take a look in your server.xml to see if the SSL connector was commented out. and the scheme attribute defaults to https. Hope this helps:). -Yan -Original Message- From: Fletcher Cocquyt [mailto:[EMAIL

RE: Connection pooling and Oracle connection in server.xml

2004-04-08 Thread Shapira, Yoav
Hi, Why auth=SERVLET and not CONTAINER if you're supplying the username/password in server.xml? Did you search the list archives about this topic before posting? Yoav Shapira Millennium Research Informatics -Original Message- From: prasad chaturvedula [mailto:[EMAIL PROTECTED] Sent:

My own caching implementation...

2004-04-08 Thread Allistair Crossley
Hi Guys I have been trying to improve the performace of our app the past week and one of the things I did was to cache our vast navigation systems as lots of JSPs each with the page ID as the jsp filename. Annnyway, this works fine but each time a page is accessed where the JSP include for

JSPC not finding servlet files

2004-04-08 Thread Allistair Crossley
Hi Again Guys Last night I used the JSPC ant build to precompile all my JSPs. This created a SRC folder under my WEB-INF and a file called generated_web.xml but no classes? Therefore when I placed the web.xml entries and restarted and tried to run my apps lots of servlet not found exceptions

Re: My own caching implementation...

2004-04-08 Thread Seth Newton
Yeah, that'd be my first guess.set development to false. Why didn't you just try it? It would have taken you just as long to try it as it did for you to write an email and send it. - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: JSPC not finding servlet files

2004-04-08 Thread QM
On Thu, Apr 08, 2004 at 04:27:50PM +0100, Allistair Crossley wrote: : Last night I used the JSPC ant build to precompile all my JSPs. This created a : SRC folder under my WEB-INF and a file called generated_web.xml but no : classes? Therefore when I placed the web.xml entries and restarted and

RE: Tomcat returning absolute http:// URL behind SSL Proxy instead of keeping https://

2004-04-08 Thread Fletcher Cocquyt
Actually I don't care what the Apache==Tomcat connector is talking. I want to avoid the URL being rewritten as http when the original request came in from the users browser as https:// - this is happening when the JkMount is made. I believe the relevant doc says: the servlet container must

Tomcat configuration tuning

2004-04-08 Thread Matt Woodings
Hi guys, I am at stage where I have all my various components talking to one another (Apache http server 2.0.49 - Mod JK2 - Tomcat 4.1.30) and running nicely with each other, but the loads on the server are increasing rapidly in our production environment ( ~2000 logins/day and peak

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Wilson, Allen
Okay...maybe I am missing the boat hereI've got the jsvc built and started to read through the Daemon API to see how to implement the interface for Tomcat-4.1.18. But I do not see how to use it to start my Tomcat session. Is there a for dummies book on this -Original Message-

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hi Matt, Welcome to the list from me. It's funny because you have just listed precisely the same server setup as we are launching our new tomcat based app to this weekend and I have been having nightmares about performance. We have a system like this; user - IIS - JK2 ISAPI -

RE: Tomcat configuration tuning

2004-04-08 Thread Shapira, Yoav
Hi, Welcome to the list from me. It's funny because you have just listed precisely the same server setup as we are launching our new tomcat based You have a wacky definition of precisely because he has Apache at the front-end and you have IIS. Yoav Shapira This e-mail, including any

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, Oh, I thought you were on tomcat 5. In a way, tomcat 4 is easier because it comes with a class that implements the Daemon interface already, so you don't need to write that. See org.apache.catalina.startup.BootstrapService/BootstrapServiceContext. http://www.mail-archive.com/[EMAIL

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, Oh and please start a new thread on this mailing list now that you're working with commons-daemon, for easier reference in the future. Yoav Shapira Millennium Research Informatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 11:50

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Yes ok :) but other than that ;) ADC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 08 April 2004 17:01 To: Tomcat Users List Subject: RE: Tomcat configuration tuning Hi, Welcome to the list from me. It's funny because you have just listed precisely the same

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hey Yes our struts uses the tiles plugin also. And the page load times are as a result of running on the server itself unfortunately. I am using the JTDS driver which apparently is one of the fastest SQL Server 2000 implementations for db connectivity. One of the things about our system is

Tomcat Security Constraints

2004-04-08 Thread Malcolm Warren
Hi, I have been using basic authorization with SSL in Tomcat for some time, quite satisfactorily. However I have found what I feel to be some strange behaviour on the part of Tomcat (I have 4.1.30) in one case. Here's an example: I have a folder, let's say http://www.mysite.com/prot/. I put a

Session behaviour across http/https boundary

2004-04-08 Thread Martin Alley
Hi, I have a small web app that appears to illustrate the following behaviour. Session started in http is carried over to https, but session started in https is *not* carried over to http! Why? Web app has 3 pages Index.jsp Page2.jsp Logout.jsp (does session invalidate forward to index.jsp)

RE: Getting basic Logging up and running

2004-04-08 Thread Jason Palmatier
Hi Yoav, I tried the debug=99 and got the same results as before. Are the steps I outlined the ones people usually use to get logging? Most posts seem to indicate that turning on logging is a no-brainer so I feel like I must be doing something dumb. Is the Global Logger all I should need for

Using Commons Daemon to start Tomcat

2004-04-08 Thread Wilson, Allen
Title: Message *** Note this is a breakoff from the Connecting the HTTP Server and Tomcat thread *** I found the BootstrapService and BootstrapServiceContext files and I will look at them for methods on implementing them. I also looked at the thread from the link you provided

Session behaviour across http/https boundary

2004-04-08 Thread Martin Alley
Hi, I have a small web app that appears to illustrate the following behaviour. Session started in http is carried over to https, but session started in https is *not* carried over to http! Why? Web app has 3 pages Index.jsp Page2.jsp Logout.jsp (does session invalidate forward to index.jsp)

R: Tomcat configuration tuning

2004-04-08 Thread Simone - Dev
Hello, I'm having the same problem with a big news portal I'm developing (goal.com, and a few of other sites - italian soccer team - that share the same content management), and even if it is developed with .NET, the concept is almost the same. I don't know how your environment is set up, but u

Re: Tomcat configuration tuning

2004-04-08 Thread Matt Woodings
Hi Allistair, Thanks for the quick response. My server.xml file is below but to some of the questions you had. One of the biggest speed increases we gained was from SQL optimization and table tuning. One thing about server.xml configuration which I realised is the acceptCount being set too

Re: Tomcat Security Constraints

2004-04-08 Thread QM
On Thu, Apr 08, 2004 at 06:36:16PM +0200, Malcolm Warren wrote: : Surely the authorization should be requested in all places and at all : times, whereever the request is coming from, even if from an include in an : unprotected page? Clearly not, if it's going through. ;) My understanding of

RE: My own caching implementation...

2004-04-08 Thread John Trollinger
Jasper 2 already caches jsp pages. Have you realy noticed a performance increase? -Original Message- From: Seth Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 11:35 AM To: Tomcat Users List Subject: Re: My own caching implementation... Yeah, that'd be my first

httpd trace and tomcat

2004-04-08 Thread Sankaranarayanan \(Ganesh\) Ganapathy
Hi All, It was brought to my attention that tomcat by default runs httpd trace and that it is a potential security hole. I don't understand what httpd trace is - can somebody explain? Is there a way to control this in tomcat (turning it on and off?) Thanks in advance! Ganesh

Re: Tomcat License

2004-04-08 Thread Duncan Krebs
Yan and Bill, Thanks for the input. I'm intriguied by the impact organizations like Apache are having on the industry. This seems to be a pretty strong community of good willed developers that go out of thier way to give something back. Then I look at corporations like IBM that also support Apache

Re: httpd trace and tomcat

2004-04-08 Thread Denis Haskin
A google search on tomcat http trace came up with a slew of pages about this... Did you try that? dwh Sankaranarayanan (Ganesh) Ganapathy wrote: Hi All, It was brought to my attention that tomcat by default runs httpd trace and that it is a potential security hole. I don't understand what

DefaultServlet character encoding

2004-04-08 Thread Hassan Schroeder
Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES Problem: static HTML pages meta-tagged to use Shift_JIS are sent as ISO-8859-1. All the googling I've done turns up the suggestion to start Tomcat with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to make UTF-8 the default.

Apache with JK ApacheConfig Class not found!

2004-04-08 Thread Yang Xiao
Hi list, I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I have added the following lines to the server.xml file: Under Server container Listener className=org.apache.ajp.tomcat5.config.ApacheConfig modJk=/usr/local/apache/modules/mod_jk.so / and under Host Listener

How to change the status code for a specific request ?

2004-04-08 Thread Farid C
Good Morning In the Tomcat log: I noticed the following line written when I tried to use to export image applet feature : 199.99.99.9 - - [06/Apr/2004:13:50:38 +0100] HEAD /webApplication/META-INF/services/javax.imageio.spi.ImageTranscoderSpi HTTP/1.1 302 - Thank you for any ideas

RE: Getting basic Logging up and running

2004-04-08 Thread Shapira, Yoav
Hi, I tried the debug=99 and got the same results as OK. That was worth a try, but the result is not too surprising, since much of tomcat's logging is done via commons-logging now, and the debug level setting has little or no effect. Global Logger all I should need for all my logging or do I

RE: httpd trace and tomcat

2004-04-08 Thread Shapira, Yoav
Hi, Or did you try asking the person who brought the trace issue to your attention in the first place? Yoav Shapira Millennium Research Informatics -Original Message- From: Denis Haskin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 2:06 PM To: Tomcat Users List Subject: Re:

RE: Using Commons Daemon to start Tomcat

2004-04-08 Thread Shapira, Yoav
Hi, The link said the class exists for tomcat 4, but you need to write something like it for tomcat 5. Yoav Shapira Millennium Research Informatics -Original Message- From: Wilson, Allen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 12:41 PM To: Tomcat Users List Subject:

RE: Using Commons Daemon to start Tomcat

2004-04-08 Thread Wilson, Allen
I don't have Tomcat 5..I have Tomcat 4...so the BootstrapServiceContext is the class to use with jsvc.. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 1:26 PM To: Tomcat Users List Subject: RE: Using Commons Daemon to start Tomcat Hi,

RE: How to change the status code for a specific request ?

2004-04-08 Thread Shapira, Yoav
Howdy, Do you know what an HTTP response code is? Why do you want to change it from the server's defaults? You can set the response code from a servlet/JSP using HttpServletResponse#setStatus, but I get the feeling you don't know what you're doing in this area. 302 is a fine code, not a

Re: IIS mod_jk2 2.0.4 Bug???

2004-04-08 Thread E Cunningham
Follow-up: Using stock Tomcat 4.1.30 and a pretty vanilla DocUpload servlet we have been able to upload various sized files with out error. But when adding IIS and the redirector into the mix then we find that the files get corrupted if the size of the file is more than 55.1K (as described

RE: IIS mod_jk2 2.0.4 Bug???

2004-04-08 Thread Shapira, Yoav
Hi, Is MultipartParser the one from com.oreilly.servlets? Is the same behavior observed using commons-fileupload (http://jakarta.apache.org/commons/fileupload/), which is bundled with tomcat so hopefully you can test it easily? Yoav Shapira Millennium Research Informatics -Original

Re: Apache with JK ApacheConfig Class not found!

2004-04-08 Thread Matt Woodings
Hi, Do you have your workers2.properties file setup and have the following entry in your httpd.conf : LoadModule jk2_module modules/mod_jk2.so. With this setup I don't think you need to have any entries in your server.xml file specifically about JK2, the only thing you need to worry about at

RE: Apache with JK ApacheConfig Class not found!

2004-04-08 Thread Yang Xiao
Argh, found through the old archives, it's changed to org.apache.jk.config.ApacheConfig Yang -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 2:16 PM To: 'Tomcat Users List' Subject: Apache with JK ApacheConfig Class not found! Hi list, I'm

RE: [BULK] - Re: httpd trace and tomcat

2004-04-08 Thread Sankaranarayanan \(Ganesh\) Ganapathy
Thank you for your help!. I searched for httpd trace instead of http trace and didn't find anything. Now I think I understand the problem. For tomcat 4.x I see that the suggested solution is to add security constraint in to all our application web.xml - is that correct? Thanks Ganesh

RE: Connecting the HTTP Server and Tomcat

2004-04-08 Thread Wilson, Allen
Not a problemand no..I still do not have it working Here is the workers.properties #BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 #END workers.properties -Original Message- From: Bill

RE: IIS mod_jk2 2.0.4 Bug???

2004-04-08 Thread Allistair Crossley
Yes it is Yoav. The error is stream unexpectedly terminated. I could not find anything on this at all. I resorted to having my multipart form upload to :8080 and then my action redirects back onto the IIS route through :80. Cheers, ADC -Original Message- From:

RE: My own caching implementation...

2004-04-08 Thread Allistair Crossley
I don't think you understood quite what I meant - my JSP beforehand was actually dynamically creating all the nav from the database per request. All I mean by cache in this case is that I wrote a script that goes through the database tree and generates loads of little JSPs so that they do not

FIXED: Tomcat returning absolute http:// URL behind SSL Proxy instead of keeping https://

2004-04-08 Thread Fletcher Cocquyt
Turns out the BigIP SSL proxies have a Rewrite Redirects If you want to configure rewrite redirects, you can specify whether the proxy should rewrite only those URIs matching the URI originally requested by the client (minus the trailing slash), or all URIs. If you select All from the list,

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Slightly off-forum but related to my performance tuning of my tomcat webapp, I am using the JCIFS NTLM authentication servlet as a filter. The filter is mapped to all requests /*. I just thought to myself on the train home whether because NTLM is a 3-way handshake, that this may be causing some

RE: My own caching implementation...

2004-04-08 Thread LILES, DAVID (CONTRACTOR)
Not to get too wrapped up in how-to... since you are already going to the database to identify the nav links for the person, was there a reason why you didn't put the results into a collection and save it to session for the user? That way they are always available during their session. When you

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
I do just what you described below. If the loginContext isn't in the session, I show do a global-forward to the login form. And, because I didn't want to have to put a session check into every Struts action I used AspectJ to weave in a pointcut into every action. Works great. I was

RE: Tomcat configuration tuning

2004-04-08 Thread Shapira, Yoav
Hi, Did you profile the filter versus aspects? Now that's a benchmark I'd be really interested in. To the original poster: assuming your filter is smart enough to check the session for a user is authenticated already token, the /* mapping is not that big a deal. If you're re-authenticating

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
I've never actually used a profiler before. I keep meaning to I swear. Its my next big venture. I just figured out unit testing about 2 weeks ago. We just never have time for that silly testing and profiling stuff at my company. I never actually wrote the filter either. But I have one around

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hi Yoav It's the Samba team JCIFS NTLM servlet filter, so I guess I need to find out from them if the auth is done each time. Cheers, ADC -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thu 08/04/2004 20:39 To: Tomcat Users List Cc: Subject: RE: Tomcat

RE: My own caching implementation...

2004-04-08 Thread Allistair Crossley
The nav is not determined by the user so there is no need to store it in each user session I would say. The database is hit to create these JSPs actually before tomcat is even started up, so there is no cost in doing that. Cheers ADC -Original Message- From: LILES,

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
All our actions extend an abstract base action that handles auth if the session user is null and then delegates to a subclass to do the actial work which is another way of what you describe there. Hm...are you saying you use JCIFS also? Is the loginContext your own or part of the JCIFS API.

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
LoginContext is part of the jdk1.4. javax.security.auth.login.LoginContext. It is usually extended by others. I found the very popular example on javaworld.com where the author created an RDBMDLoginContext. I changed that to my own OJBLoginContext because I use Apache OJB. Its pretty easy to

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
Sorry, I was a little off in that last e-mail. The example on javaworld.com has you extending LoginContext to SessionLoginContext. It extends LoginContext and implements HttpSessionBindingListner. This is done so that when the session is over, the logout method is called from valueUnbound().

Can't access tomcat manager

2004-04-08 Thread Mario St-Gelais
As soon as I click on Tomcat Magager, I get the message The request requires HTTP authentication without even being ask for username and password. I just reinstalled Tomcat 5.0.19 because I wasa getting that messge, but the problem did not get solved. Curiously enough, if I acces Tomcat from

Re: Howto run tomcat 4.06 as windows service

2004-04-08 Thread baldyeti
Thanks, Carl. It worked like a charm. This seems to be what the regular windows installer also uses, isn't it? Cheers, -bald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Conflicting Jar Files

2004-04-08 Thread Aaron Morici
If I have a jar file in the lib folder of my application, and the same jar file in the commons/lib folder under Tomcat, which set of jar files will get priority when I run the application? Also, will Tomcat use jar files that are outside of it's context?

RE: Conflicting Jar Files

2004-04-08 Thread Shapira, Yoav
Hi, If I have a jar file in the lib folder of my application, and the same jar file in the commons/lib folder under Tomcat, which set of jar files will get priority when I run the application? WEB-INF/lib. The order is here:

IllegalStateException

2004-04-08 Thread Dr. Franz X. Steinparz
Hello I urgently need help. I have a problem deploying an application developped under Oracles JDeveloper to Tomcat. The application consists of several servlets, passing over request and esponse objects from one servlet to another. The application works fine within Oracles IDE and it's built

Can someone help me to fix the soft link problem in Tomcat 4.1.27

2004-04-08 Thread Kam Lung Leung
Hi, I installed Tomcat 4.1.27 on our server and drop a myApp.war into the webapps directory. We restart Tomcat and wait for it to finish to unpack all web components, then we stop Tomcat. We create a soft link within our web component to point to directory outside the root context of our web

Details

2004-04-08 Thread tomcat-user
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: IllegalStateException

2004-04-08 Thread QM
On Wed, Jul 07, 2004 at 10:28:25PM +0200, Dr. Franz X. Steinparz wrote: : The application works fine within Oracles IDE and it's built in servlet : runner. However after deploying the app to Tomcat, Tomcat raises an : IllegalStateException : (java.lang.IllegalStateException :

  1   2   >