Re: Client Real Source IP!
Thanks for the information,Anyone can provide more detail on how this can be done? how the code is done perhaps? - Original Message From: Li <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, September 22, 2006 1:42:14 PM Subject: Re: Client Real Source IP! Sorry Alexander, Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your request header is customized one (like those for telecom), you should read it by yourself. On 9/22/06, Peter Rossbach <[EMAIL PROTECTED]> wrote: > > You can access the header with ServletRequest.getHeader, getHeaders, > getHeadersNames. > > Read Servlet Spec 2.4 or 2.5 Headers 4.3 > > > Wrote your own Valve or ServletFilter > > Regards > Peter > > > Am 22.09.2006 um 06:44 schrieb Alexander Khoo: > > > Dear All, > > > > We currently have Tomcat Version5 install behind Pound reverse > > proxy! Our code cant identify the real source client IP instead the > > reverse proxy IP everytime, We understand Pound adds the X- > > Forwarded-for header with the original client address to every > > requestbut how we can identify it? > > > > > > Please Help! > > Alexander Khoo > > > -- When we invent time, we invent death.
Re: Client Real Source IP!
Sorry Alexander, Yeah, as Peter said, you can use getHeader(s) from Servlet API. Only if your request header is customized one (like those for telecom), you should read it by yourself. On 9/22/06, Peter Rossbach <[EMAIL PROTECTED]> wrote: You can access the header with ServletRequest.getHeader, getHeaders, getHeadersNames. Read Servlet Spec 2.4 or 2.5 Headers 4.3 Wrote your own Valve or ServletFilter Regards Peter Am 22.09.2006 um 06:44 schrieb Alexander Khoo: > Dear All, > > We currently have Tomcat Version5 install behind Pound reverse > proxy! Our code cant identify the real source client IP instead the > reverse proxy IP everytime, We understand Pound adds the X- > Forwarded-for header with the original client address to every > requestbut how we can identify it? > > > Please Help! > Alexander Khoo -- When we invent time, we invent death.
Re: Client Real Source IP!
You can access the header with ServletRequest.getHeader, getHeaders, getHeadersNames. Read Servlet Spec 2.4 or 2.5 Headers 4.3 Wrote your own Valve or ServletFilter Regards Peter Am 22.09.2006 um 06:44 schrieb Alexander Khoo: Dear All, We currently have Tomcat Version5 install behind Pound reverse proxy! Our code cant identify the real source client IP instead the reverse proxy IP everytime, We understand Pound adds the X- Forwarded-for header with the original client address to every requestbut how we can identify it? Please Help! Alexander Khoo
Re: Client Real Source IP!
Hi, You need create your own request proecessor to retrieve it. You may have to get http request full length header first and lookup your request header structure and read block by block from the header. A better way is to take a look at few headers and see if the block you need is always after which block and what is the length. Normally if adding extra info into header, the reserved blocks should be appeared before the extra info. Wish it helps On 9/22/06, Alexander Khoo <[EMAIL PROTECTED]> wrote: Dear All, We currently have Tomcat Version5 install behind Pound reverse proxy! Our code cant identify the real source client IP instead the reverse proxy IP everytime, We understand Pound adds the X-Forwarded-for header with the original client address to every requestbut how we can identify it? Please Help! Alexander Khoo -- When we invent time, we invent death.
Client Real Source IP!
Dear All, We currently have Tomcat Version5 install behind Pound reverse proxy! Our code cant identify the real source client IP instead the reverse proxy IP everytime, We understand Pound adds the X-Forwarded-for header with the original client address to every requestbut how we can identify it? Please Help! Alexander Khoo
RE: Upload Exception - Time out error
Hello, Is there any limit configuration on tomcat that restricts uploading the files above 2MB size? Thanks Sandeep Darvekar _ From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] Sent: 21 September, 2006 7:54 PM To: 'users@tomcat.apache.org' Cc: 'Sandeep Darvekar' Subject: Upload Exception - Time out error Hello, We have one web application developed on tomcat which is used for uploading the photos from the end users. We are facing one typical issue when we try to upload a big image photo of size 7MB. We get the exception on the applet (client side) as well as on the server (tomcat Catalina.out). I have attached this exception in the mail. We have modified the tomcat server.xml for the timeout period to reasonably large value. I have monitored the network traffic using ethereal and it shows that client is sending the data and server fails to acknowledge it. Ethereal shows that it happens in the first 40 seconds when the data transferred is not even 40kb. But this behavior is not observed when the image size is 2-3 MB and we are able to upload the images with 2-3 MB size without any issues. Have you guys faced this kind of issue? Do you know what could be the reason why this occurs? Please send me if you have pointers on this. Feel free to write to me if you need more information about this problem. Thanks Sandeep Darvekar DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
Re: Restrict Session In One Browser!
Hi, Thanks,This has been resolve by encode the jsessionid into the a frame,Now when user create a new windows the login page will show. Regards, Alexander - Original Message From: Michael Jouravlev <[EMAIL PROTECTED]> To: Tomcat Users List ; Alexander Khoo <[EMAIL PROTECTED]> Sent: Thursday, September 21, 2006 12:15:01 AM Subject: Re: Restrict Session In One Browser! On 9/20/06, Alexander Khoo <[EMAIL PROTECTED]> wrote: > Dear users, > > Can anyone help on restricting 1 session per browser? > what we are trying to archieve here is when the users sucessfully login to > our server & establish a session, we want that session to lock in that > current browser & when another browser is open it show the previous login > page again!!! > > Please Help!!! Use Firefox, is starts only one session per website. On the other hand, someone recently posted that MSIE starts a new process if you start if from Explorer, and does not start a new process if you open a new window with Ctrl+N. Your experience seem to prove that Ctrl+N actually *do* start a new process. If so, then again, use Firefox. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upload Exception - Time out error
Hello, We have one web application developed on tomcat which is used for uploading the photos from the end users. We are facing one typical issue when we try to upload a big image photo of size 7MB. We get the exception on the applet (client side) as well as on the server (tomcat Catalina.out). I have attached this exception in the mail. We have modified the tomcat server.xml for the timeout period to reasonably large value. I have monitored the network traffic using ethereal and it shows that client is sending the data and server fails to acknowledge it. Ethereal shows that it happens in the first 40 seconds when the data transferred is not even 40kb. But this behavior is not observed when the image size is 2-3 MB and we are able to upload the images with 2-3 MB size without any issues. Have you guys faced this kind of issue? Do you know what could be the reason why this occurs? Please send me if you have pointers on this. Feel free to write to me if you need more information about this problem. Thanks Sandeep Darvekar DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
Re: jsvc-src make error
My guess is either a broken jsvc source download or a broken build environment. Try getting the sources (from http://www.apache.org/commons/daemon) again and see what happens. --David Ryan Suarez wrote: Can someone please help? I cannot find the answer in the archives... much appreciated, Ryan Greetings, I'm trying to compile jsvc-src (from apache-tomcat-5.5.17 binary core distribution) on debian sarge. I've installed jdk-1_5_0_08-linux-i586.bin using make-jpkg. So autoconf and ./configure on jsvc-src works fine. But I'm getting errors when running make: make[1]: *** [jsvc-unix.o] Error 1 make[1]: Leaving directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native' make: *** [native/all] Error 2 What am I doing wrong? How do I compile this succesfully? I've attached the output of configure and make for your perusal. much appreciated, Ryan *** Current host *** checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for javac... /usr/bin/javac checking wether the Java compiler (/usr/bin/javac) works... yes checking for jar... /usr/bin/jar gcc flags added *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue "make" make -C native all make[1]: Entering directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/include -I/usr/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/gconv.h:72: error: syntax error before "size_t" /usr/include/gconv.h:88: error: syntax error before "size_t" /usr/include/gconv.h:97: error: syntax error before "size_t" /usr/include/gconv.h:174: error: syntax error before "size_t" /usr/include/gconv.h:177: error: syntax error before '}' token In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/_G_config.h:47: error: field `__cd' has incomplete type /usr/include/_G_config.h:50: error: field `__cd' has incomplete type In file included from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/libio.h:351: error: syntax error before "size_t" /usr/include/libio.h:360: error: syntax error before "size_t" /usr/include/libio.h:468: error: syntax error before "_IO_sgetn" /usr/include/libio.h:468: error: syntax error before "size_t" In file included from jsvc.h:20, from jsvc-unix.c:17: /usr/include/stdio.h:302: error: syntax error before "size_t" /usr/include/stdio.h:309: error: syntax error before "size_t" /usr/include/stdio.h:351: error: syntax error before "size_t" /usr/include/stdio.h:355: error: syntax error before "size_t" /usr/include/stdio.h:603: error: syntax error before "fread" /usr/include/stdio.h:603: error: syntax error before "size_t" /usr/include/stdio.h:609: error: syntax error before "fwrite" /usr/include/stdio.h:609: error: syntax error before "size_t" /usr/include/stdio.h:631: error: syntax error before "fread_unlocked" /usr/include/stdio.h:631: error: syntax error before "size_t" /usr/include/stdio.h:633: error: syntax error before "fwrite_unlocked" /usr/include/stdio.h:633: error: syntax error before "size_t" In file included from jsvc.h:21, from jsvc-unix.c:17: /usr/include/stdlib.h:137: error: syntax error before "__ctype_get_mb_cur_max" In file included from /usr/include/sys/types.h:266, from /usr/include/stdlib.h:416, from jsvc.h:21, from jsvc-unix.c:17: /usr/include/bits/pthreadtypes.h:50: error: syntax error before "size_t" /usr/include/bits/pthreadtypes.h:53: error: syntax error before "__stacksize" In file included from jsvc.h:21, from jsvc-un
Re: Need Help w. Servlets And The JDBC.
I would be interested in seeing a TypeIV JDBC driver for that DB- yeas ago we had a similar situation using a bridge (JDBC-ODBC) that was considerably slow until the vendor supplied driver was supplied .. M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Steve R Burrus" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, September 21, 2006 6:31 PM Subject: Re: Need Help w. Servlets And The JDBC. > Well this Microsoft SQL Server 2005 JDBC Driver. is it a Type 4 pure > Java driver or not?? I should think that anything from Microsoft would > tend to kind of de-emphasize Java. > > Henry McClain wrote: > >> I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is >> free. >> If you need to connect to a SQL Server 2000 or 2005, this is a good >> driver. >> >> On 9/21/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> >>> >>> > From: Steve R Burrus [mailto:[EMAIL PROTECTED] >>> > Subject: Re: Need Help w. Servlets And The JDBC. >>> > >>> > I don't suppose that on the Tomcat site there is a Type 4 >>> > database driver , which I have read is the preferred driver >>> > to get because it is pure Java, is there instead of the 1 >>> > which I assume I can always get at java.sun.com? >>> >>> Your assumptions are incorrect. Each data base vendor must supply an >>> appropriate JDBC driver, hopefully a type 4 (pure Java) version. There >>> is no generic, all purpose JDBC driver. >>> >>> - Chuck >>> >>> >>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >>> MATERIAL and is thus for use only by the intended recipient. If you >>> received this in error, please contact the sender and delete the e-mail >>> and its attachments from all computers. >>> >>> - >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Need Help w. Servlets And The JDBC.
Well this Microsoft SQL Server 2005 JDBC Driver. is it a Type 4 pure Java driver or not?? I should think that anything from Microsoft would tend to kind of de-emphasize Java. Henry McClain wrote: I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you need to connect to a SQL Server 2000 or 2005, this is a good driver. On 9/21/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: Need Help w. Servlets And The JDBC. > > I don't suppose that on the Tomcat site there is a Type 4 > database driver , which I have read is the preferred driver > to get because it is pure Java, is there instead of the 1 > which I assume I can always get at java.sun.com? Your assumptions are incorrect. Each data base vendor must supply an appropriate JDBC driver, hopefully a type 4 (pure Java) version. There is no generic, all purpose JDBC driver. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help w. Servlets And The JDBC.
The Type 4 drivers are available on Microsoft's web site at the following URL: http://search.microsoft.com/results.aspx?mkt=en-US&setlang=en-US&q=JDBC >>> "Henry McClain" <[EMAIL PROTECTED]> 09/21/06 1:35 PM >>> I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you need to connect to a SQL Server 2000 or 2005, this is a good driver. On 9/21/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Steve R Burrus [mailto:[EMAIL PROTECTED] > > Subject: Re: Need Help w. Servlets And The JDBC. > > > > I don't suppose that on the Tomcat site there is a Type 4 > > database driver , which I have read is the preferred driver > > to get because it is pure Java, is there instead of the 1 > > which I assume I can always get at java.sun.com? > > Your assumptions are incorrect. Each data base vendor must supply an > appropriate JDBC driver, hopefully a type 4 (pure Java) version. There > is no generic, all purpose JDBC driver. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Henry McClain "Life is hard. Wear a helmet" "Tell your wife that she looks pretty, even if she looks like a truck." -- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsvc-src make error
Can someone please help? I cannot find the answer in the archives... much appreciated, Ryan Greetings, I'm trying to compile jsvc-src (from apache-tomcat-5.5.17 binary core distribution) on debian sarge. I've installed jdk-1_5_0_08-linux-i586.bin using make-jpkg. So autoconf and ./configure on jsvc-src works fine. But I'm getting errors when running make: make[1]: *** [jsvc-unix.o] Error 1 make[1]: Leaving directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native' make: *** [native/all] Error 2 What am I doing wrong? How do I compile this succesfully? I've attached the output of configure and make for your perusal. much appreciated, Ryan *** Current host *** checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for javac... /usr/bin/javac checking wether the Java compiler (/usr/bin/javac) works... yes checking for jar... /usr/bin/jar gcc flags added *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue "make" make -C native all make[1]: Entering directory `/apps/apache-tomcat-5.5.17/bin/jsvc-src/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\"i386\" -I/usr/include -I/usr/include/linux -Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/gconv.h:72: error: syntax error before "size_t" /usr/include/gconv.h:88: error: syntax error before "size_t" /usr/include/gconv.h:97: error: syntax error before "size_t" /usr/include/gconv.h:174: error: syntax error before "size_t" /usr/include/gconv.h:177: error: syntax error before '}' token In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/_G_config.h:47: error: field `__cd' has incomplete type /usr/include/_G_config.h:50: error: field `__cd' has incomplete type In file included from /usr/include/stdio.h:72, from jsvc.h:20, from jsvc-unix.c:17: /usr/include/libio.h:351: error: syntax error before "size_t" /usr/include/libio.h:360: error: syntax error before "size_t" /usr/include/libio.h:468: error: syntax error before "_IO_sgetn" /usr/include/libio.h:468: error: syntax error before "size_t" In file included from jsvc.h:20, from jsvc-unix.c:17: /usr/include/stdio.h:302: error: syntax error before "size_t" /usr/include/stdio.h:309: error: syntax error before "size_t" /usr/include/stdio.h:351: error: syntax error before "size_t" /usr/include/stdio.h:355: error: syntax error before "size_t" /usr/include/stdio.h:603: error: syntax error before "fread" /usr/include/stdio.h:603: error: syntax error before "size_t" /usr/include/stdio.h:609: error: syntax error before "fwrite" /usr/include/stdio.h:609: error: syntax error before "size_t" /usr/include/stdio.h:631: error: syntax error before "fread_unlocked" /usr/include/stdio.h:631: error: syntax error before "size_t" /usr/include/stdio.h:633: error: syntax error before "fwrite_unlocked" /usr/include/stdio.h:633: error: syntax error before "size_t" In file included from jsvc.h:21, from jsvc-unix.c:17: /usr/include/stdlib.h:137: error: syntax error before "__ctype_get_mb_cur_max" In file included from /usr/include/sys/types.h:266, from /usr/include/stdlib.h:416, from jsvc.h:21, from jsvc-unix.c:17: /usr/include/bits/pthreadtypes.h:50: error: syntax error before "size_t" /usr/include/bits/pthreadtypes.h:53: error: syntax error before "__stacksize" In file included from jsvc.h:21, from jsvc-unix.c:17: /usr/include/stdlib.h:433: error: syntax error before "size_t" /usr/include/stdlib.h:462: error: syntax error before "size_t" /usr/include/stdlib.h:556: error: syntax error before "__size" /usr/include/stdlib.h:558: error: syntax error before "__nmemb" /usr/include/stdlib.h:567: error: syntax error before "size_t" In file included from /usr/include/std
Re: Need Help w. Servlets And The JDBC.
I am currently using the Microsoft SQL Server 2005 JDBC Driver. It is free. If you need to connect to a SQL Server 2000 or 2005, this is a good driver. On 9/21/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: Need Help w. Servlets And The JDBC. > > I don't suppose that on the Tomcat site there is a Type 4 > database driver , which I have read is the preferred driver > to get because it is pure Java, is there instead of the 1 > which I assume I can always get at java.sun.com? Your assumptions are incorrect. Each data base vendor must supply an appropriate JDBC driver, hopefully a type 4 (pure Java) version. There is no generic, all purpose JDBC driver. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Henry McClain "Life is hard. Wear a helmet" "Tell your wife that she looks pretty, even if she looks like a truck." --
RE: Need Help w. Servlets And The JDBC.
> From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: Need Help w. Servlets And The JDBC. > > I don't suppose that on the Tomcat site there is a Type 4 > database driver , which I have read is the preferred driver > to get because it is pure Java, is there instead of the 1 > which I assume I can always get at java.sun.com? Your assumptions are incorrect. Each data base vendor must supply an appropriate JDBC driver, hopefully a type 4 (pure Java) version. There is no generic, all purpose JDBC driver. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help w. Servlets And The JDBC.
I don't suppose that on the Tomcat site there is a Type 4 database driver , which I have read is the preferred driver to get because it is pure Java, is there instead of the 1 which I assume I can always get at java.sun.com? Sameer Acharya wrote: You can configure a tomcat datasource to get a connection or you can load your database driver and get a connection object. The advantage with using tomcat datasource is that it will handle connection pooling for you. The tomcat docs explain how to define a datasource (you have to do it in context.xml) , also you will need the JDBC drivers for whatever database you are connecting to. -Sameer --- Steve R Burrus <[EMAIL PROTECTED]> wrote: Hi all. I am an admitted newbie when it comes to using a database connection for a servlet to access. So can someone please tell me the basics about how exactly I should go about doing this?? I have been very much "stumped" about how I should do this for quite a long time now! I just know that I should use 1 of 3 getConnection( ) methods to start to do this and create a Connection object but little else. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk_ajp_common.c : Error sending request try another pooled connection
Hi, When I start the Tomcat then Apache the application works fine. but after a while if browse the web application * the tomcat crashs*. The system that I have: *linux fedora core 3, apache 2 and tomcat 5.5.9 * This is what I got from mod_jk.log [Wed Sep 20 16:46:18 2006] worker1 www.mysite.ca 0.000545 [Wed Sep 20 16:49:09 2006] worker1 www.mysite.ca 0.654566 [Wed Sep 20 22:07:00 2006] worker1 www.mysite.ca 0.387269 [Wed Sep 20 22:15:44 2006] worker1 www.mysite.ca 0.146981 [Wed Sep 20 22:18:50 2006] worker1 www.mysite.ca 0.286431 [Wed Sep 20 22:19:13 2006] worker1 www.mysite.ca 0.137191 *[Thu Sep 21 04:34:26 2006] [jk_ajp_common.c (996)]: Error sending request try another pooled connection* [Thu Sep 21 04:34:26 2006] [jk_connect.c (188)]: jk_open_socket, connect() failed errno = 111 [Thu Sep 21 04:34:26 2006] [jk_ajp_common.c (720)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 111 [Thu Sep 21 04:34:26 2006] [jk_ajp_common.c (1024)]: Error connecting to the Tomcat process. [Thu Sep 21 04:34:26 2006] [jk_ajp_common.c (1468)]: sending request to tomcat failed in send loop. err=0 Any help Thanks, Massoud
directory permissions question
hey tomcat-heads, I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users create their applications, they end up in /var/local/user/apache-tomcat-5.5.17/webapps with drwxr-r-x permissions on the directory under webapps. what I want, it for it to show up as drwxrwr-x (group writable). In the startup script for tomcat, I tried setting the umask to 0002, but now when directories get created, they show up like drwxr-sr-x so whats the proper way to accomplish this? regards, Jason - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Replication warning with tomcat cluster FastAsyncSockerSender
Hi all, In a tomcat cluster deployed in production, I'm seeing the following in catalina.out: 2006-09-21 14:31:29,778 WARN FastAsyncSocketSender - Unable to asynchronously send session with id=[A1C6AD293C423C51568CCF24EFBD6064-1158863489776] - message will be ignored. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.(Socket.java:365) at java.net.Socket.(Socket.java:207) at org.apache.catalina.cluster.tcp.DataSender.createSocket(DataSender.java:704) at org.apache.catalina.cluster.tcp.DataSender.openSocket(DataSender.java:679) at org.apache.catalina.cluster.tcp.DataSender.pushMessage(DataSender.java:803) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread.pushQueuedMessages(FastAsyncSocketSender.java:476) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread.run(FastAsyncSocketSender.java:442) I'm getting these at quite an alarming pace at the moment. AFAIK, service is not affected since we ourselves are albe to use the application satisfactorily, and have not had reports of wide-spread failures. This is on Redhat AS3 linux machines with tomcat 5.5.17 with java 1.5.0_06. Following is my cluster configuration (abbreviated): [..cut for brevity..] What should I be looking at changing? Any ideas? Thanks in advance, -- Haroon Rafique <[EMAIL PROTECTED]> - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
hi david, On 9/21/06, David Smith <[EMAIL PROTECTED]> wrote: At most, some links between webapps will have to be updated to reflect the adjustments in path. exactly, and you can save the time updating them I also can't recommend Apache httpd in front unless the site is a mixed bag of technology -- perl, php, java, user client based html authoring, etc., ... well, most systems "in the wild" use at least a mix of html and some dynamic components (most of them java-based). having this situation, it's kinda awkward with tomcat alone. just to give you an example: try to change the headers of static html (i.e. caching-directive) to improve the performance of you web-app: with tomcat, you'll need to write some valve which adjusts the headers accordingly, since afaik there is no possibility to change them using some config-files in tomcat. same goes for url-rwriting etc. here, apache in the frontend comes in handy. besides, from my own experiences i figure that serving static content via apache http performs slightly *cough* better than serving them via tomcat. however, i think apache http PLUS tomcat for dynamic content is a great combination which is likely to satisfy 99% of anyone's requirements. anyways, getting off topic here, and your oppinion is very much appreciated - as always ;) cheers gregor -- what's puzzlin' you, is the nature of my game
RE: System requirements
> From: Stefan Baramov [mailto:[EMAIL PROTECTED] > Subject: Re: System requirements > > Just get a regular AMD64/Pentium Server with at least 2MB Tough to find one that small these days... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System requirements
DEMESY Nicolas wrote: > Hi, > > I would like to know what are the system requirements for using Tomcat > in a production server, with 50-100 users, on a Red Hat Advanced > Server 3. > Where can I find benchmarks ? > > Thank you for your advices, > Nicolas DEMESY > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > I would recommend to load test your application and runtime environment, first. I would get two or more production like servers, and write a load test specifically geared toward your application. Number of tools are available for this. From the open source world, I would try JMeter, Grinder, Solex (eclipse plugin) or even HttpUnit. Once you have your load test, I would play with different Tomcat configurations. Do not forget that sometimes the garbage collection settings are quite important. I would try with at least two or three gc algorithms. So, finding system requirements is quite a project. Of course, if you application is not mission critical, I would not bother. Just get a regular AMD64/Pentium Server with at least 2MB, install a tomcat with 512mb heap, put a decent load balancer at front of it and you are done. - Stefan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
Renaming "everything" is a very simple operation. If the webapp is constructed correctly it should operate regardless of context path and make adjustments as necessary. At most, some links between webapps will have to be updated to reflect the adjustments in path. I also can't recommend Apache httpd in front unless the site is a mixed bag of technology -- perl, php, java, user client based html authoring, etc., ... All I can say is I have a different opinion on this point. --David Gregor Schneider wrote: Hi David, assuming the client gets his software delivered from different vendors, one day changes his mind to make another app his default application, then what? rename everything over again? The best solution is, leave the web-app it's name and forward with a index.jsp inside the ROOT-context to the required app since changing this file is way easier than renaming the wep-apps. Besides, if it's a real-world-app, I suggest having Apache HTTP in front so that you can also use all those feature Tomcat lags, like url-rwriting etc. Just my 0.02 € Gregor -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
Hi David, assuming the client gets his software delivered from different vendors, one day changes his mind to make another app his default application, then what? rename everything over again? The best solution is, leave the web-app it's name and forward with a index.jsp inside the ROOT-context to the required app since changing this file is way easier than renaming the wep-apps. Besides, if it's a real-world-app, I suggest having Apache HTTP in front so that you can also use all those feature Tomcat lags, like url-rwriting etc. Just my 0.02 € Gregor -- what's puzzlin' you, is the nature of my game
Re: URL Redirection
I see the gif image is the only one referenced using the '.' current directory operator. I've found it better to code image urls as "${pageContext.request.contextPath}/images/zapisz.gif". This will render the full path relative to the site and will also change automatically as the webapp's context path changes. --David Ashirvad Uniyal wrote: David Smith wrote: Ok. Can you offer a code snippet showing where you compose the url to the gif image? --David Ashirvad Uniyal wrote: Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded URL in the generated HTML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hello, After spending long time understanding this project i still have no clue. All logic is contained in one file, testpage.jsp. Despite of the size of the application, this file is a relatively small file. It was possible to achieve through the Window Component Framework (WCF). This framework is a set of tags, which enables developing short application code based on JSP. I have problem understanding the testpage.jsp and modifing it. Please find the snippet of the page souce of testpage.jsp, and the code of testpage.jsp respectively id="toolbar01">name="toolbar01.cubeNaviButton" src="/jpivot/toolbar/cube-up.png" border="0" title="Open OLAP Navigator" width="24" height="24">name="toolbar01.mdxEditButton" src="/jpivot/toolbar/mdx-edit-up.png" border="0" title="Show MDX Editor" width="24" height="24">name="toolbar01.sortConfigButton" src="/jpivot/toolbar/sort-asc-up.png" border="0" title="Config OLAP Table" width="24" height="24">src="/jpivot/toolbar/level-style-up.png" border="0" title="Show Parent Members" width="24" height="24">name="toolbar01.hideSpans" src="/jpivot/toolbar/hide-spans-up.png" border="0" title="Hide Spans" width="24" height="24">type="image" name="toolbar01.propertiesButton" src="/jpivot/toolbar/properties-up.png" border="0" title="Show Properties" width="24" height="24">name="toolbar01.nonEmpty" src="/jpivot/toolbar/non-empty-down.png" border="0" title="Suppress Empty Rows / Columns" width="24" height="24">src="/jpivot/toolbar/swap-axes-up.png" border="0" title="Swap Axes" width="24" height="24">src="/jpivot/toolbar/navi-member-up.png" border="0" title="Drill Member" width="24" height="24">name="toolbar01.drillPosition" src="/jpivot/toolbar/navi-position-down.png" border="0" title="Drill Position" width="24" height="24">name="toolbar01.drillReplace" src="/jpivot/toolbar/navi-replace-up.png" border="0" title="Drill Replace" width="24" height="24">name="toolbar01.drillThrough01" src="/jpivot/toolbar/navi-through-up.png" border="0" title="Drill Through" width="24" height="24">src="/jpivot/toolbar/chart-up.png" border="0" title="Show Chart" width="24" height="24">name="toolbar01.chartPropertiesButton01" src="/jpivot/toolbar/chart-config-up.png" border="0" title="Chart Config" width="24" height="24">name="toolbar01.printPropertiesButton01" src="/jpivot/toolbar/print-config-up.png" border="0" title="Configure Print Settings" width="24" height="24">href="./Print?cube=01&type=1">border="0" title="Print this Page via PDF" width="24" height="24">src="/jpivot/toolbar/excel-up.png" border="0" title="Start Excel" width="24" height="24">src="/jpivot/toolbar/swap-axes-up.png" border="0" title="toolb.chart.resize" width="24" height="24"> src="./images/zapisz.gif" onmouseover="changeSrc(this,'images/zapisz_over.gif');" onmouseout="changeSrc(this,'images/zapisz.gif');" width="176" height="24" border="0" alt="Zapisanie aktualnego zapytania MDX" /> height="1" alt=""> <%@ page session="true" contentType="text/html; charset=utf-8" pageEncoding=
Re: URL Redirection
Why is renaming a webapp to ROOT the worst solution? It's a perfectly acceptable solution when you want to access your webapp from the top level and the default ROOT is just a placeholder anyway. --David Gregor Schneider wrote: take a look into your access-logs for a 404-error. then you should see the access-code where tomcat looks for the pics. you'll have to change the links then. btw., renaming your web-app to ROOT is the worst of all solutions: Since this is a standard-app of tomcat, your client will pretty much likely already have a context named ROOT. cheers greg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to test a tomcat virtual host?
Thank you, it should be the answer. I must only find which service or program uses the file "hosts", because I can not modify it (it is not read only)! Sam > If you are using windows you could try added a line like the following > to the c:\WINDOWS\system32\drivers\etc\hosts file. > > 127.0.0.1 www.virtualhost1.com > > Then open www.virtualhost1.com in your web browser. the same this > should be possible from linux but i dont have my linux hat on at the > moment. > > Ben > > On 9/21/06, Samsamoddin Rajaei <[EMAIL PROTECTED]> wrote: >> Hi everybody, >> (I am newbie in this list!) >> >> I am trying to test my virtual hosts and my tomcat configuration on my >> local pc (Windows XP). I am using tomcat 5.0.28 and have configured >> following virtual hosts in my server.xml: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> When I start tomcat they are no exceptions and everything seems to be >> ok. >> When I call the page "http://127.0.0.1:9080/"; I see the defaultHost >> (host1). My Question is: how can I test my other hosts (host2 and host3) >> without declaring them as defarultHost? "http://127.0.0.1:9080/host2"; >> doesn't work! >> >> Thanks for any help, >> Sam >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HSQLDB and Tomcat ServletContextListener
Also for you information ...the auto-commit of HSQLDB is off by default. -Original Message- From: Awaneesh Shatmanyu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 8:15 PM To: Tomcat Users List Subject: RE: HSQLDB and Tomcat ServletContextListener Hi Feris, I am currently working with the HSQLDB for my project. I had similar problem, which got solved. 1. Make sure your jdbc connection is closed every time. 2. Do not run you application as long as you are looking into the HSQLDB, close the DB and then run the application. Regards, Awaneesh Shatmanyu -Original Message- From: Feris Thia [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 7:55 PM To: Tomcat Users List Subject: HSQLDB and Tomcat ServletContextListener Dear All, I'm using HSQLDB as embedded in-process mode for my web application. I used to schedule every 1 minutes to check on the HSQLDB database. I open the db when context initialized and close it when context destroyed. But when the context reloaded I always get Java.lang.NullPointerException when trying to execute SQL statement. What is wrong ?? It looks like everytime the context is destroyed... the hsqldb gets lock. The snippet code like below : === import javax.servlet.ServletContext; import javax.servlet.ServletContextListener; import javax.servlet.ServletContextEvent; import java.nio.channels.ClosedByInterruptException; import java.sql.Connection; import java.sql.DriverManager; import java.util.Random; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class ContextStartUp implements ServletContextListener { private ServletContext context = null; MyThread objThread = null; ResultSet rs = null; Connection conn = null; public void openDB() { try { conn = DriverManager.getConnection("jdbc:hsqldb:file:" + context.getRealPath("/data/testdb") + ";ifexists=true;shutdown=true;", "sa", "phidmspassword"); } catch (SQLException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } } public void closeDB() { Statement stmt = null; try { if(conn!=null) { stmt = conn.createStatement(); stmt.execute("SHUTDOWN COMPACT"); stmt.close(); conn.close(); stmt = null; conn = null; } } catch (SQLException e) { e.printStackTrace(); } } public class MyThread implements Runnable { int nomor = 0; Thread currentthread = null; public MyThread() { if (currentthread == null) { currentthread = new Thread(this); currentthread.setPriority(new Random().nextInt(5) + 1); currentthread.start(); } } public void run() { Statement stmt = null; String sqltodo = ""; Thread myThread = Thread.currentThread(); while (myThread == currentthread) { try { stmt = conn.createStatement(); if (stmt.execute("A select statement.. ")) { rs = stmt.getResultSet(); if (rs.next()) { .. } } sqltodo = Update queries ..; stmt.executeUpdate(sqltodo); stmt.execute("SHUTDOWN"); stmt.close(); } else { stmt.close(); } } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } finally { stmt = null; } try { Thread.sleep(10); } catch (InterruptedException e) { } } } } public void initThread() { openDB(); objThread = new MyThread(); } public void stopThread() { objThread = null; closeDB(); } public void contextDestroyed(ServletContextEvent event) { context = null; stopThread(); } public void contextInitialized(ServletContextEvent event) { try { Class.forName("org.hsqldb.jdbcDriver").newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace()
Re: How to test a tomcat virtual host?
On 9/21/06, Samsamoddin Rajaei <[EMAIL PROTECTED]> wrote: I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). When I start tomcat they are no exceptions and everything seems to be ok. When I call the page "http://127.0.0.1:9080/"; I see the defaultHost (host1). My Question is: how can I test my other hosts (host2 and host3) Add them to your hosts file -- on Windows it's something similar to C: \WINNT\System32\drivers\etc\hosts HTH, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HttpSession loose attributes.
Hello Everybody, Could anybody help to solve the problem. I have apache Tomcat 5.5 . My web application stores some attributes in HttpSession object, for ex. User object , etc. When i updating some java classes (.class) in application (just copy it to WEB-INF / etc) or resources (for ex .properties) session object loose all stored attributes , maybe because session re-opened. When i do the same with jsp or html files everything is OK. Where is my mistake? How to make this "fast deployment" without loosing session. Thanks a lot Dzmitry - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to test a tomcat virtual host?
If you are using windows you could try added a line like the following to the c:\WINDOWS\system32\drivers\etc\hosts file. 127.0.0.1 www.virtualhost1.com Then open www.virtualhost1.com in your web browser. the same this should be possible from linux but i dont have my linux hat on at the moment. Ben On 9/21/06, Samsamoddin Rajaei <[EMAIL PROTECTED]> wrote: Hi everybody, (I am newbie in this list!) I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). I am using tomcat 5.0.28 and have configured following virtual hosts in my server.xml: When I start tomcat they are no exceptions and everything seems to be ok. When I call the page "http://127.0.0.1:9080/"; I see the defaultHost (host1). My Question is: how can I test my other hosts (host2 and host3) without declaring them as defarultHost? "http://127.0.0.1:9080/host2"; doesn't work! Thanks for any help, Sam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HSQLDB and Tomcat ServletContextListener
Hi Feris, I am currently working with the HSQLDB for my project. I had similar problem, which got solved. 1. Make sure your jdbc connection is closed every time. 2. Do not run you application as long as you are looking into the HSQLDB, close the DB and then run the application. Regards, Awaneesh Shatmanyu -Original Message- From: Feris Thia [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 7:55 PM To: Tomcat Users List Subject: HSQLDB and Tomcat ServletContextListener Dear All, I'm using HSQLDB as embedded in-process mode for my web application. I used to schedule every 1 minutes to check on the HSQLDB database. I open the db when context initialized and close it when context destroyed. But when the context reloaded I always get Java.lang.NullPointerException when trying to execute SQL statement. What is wrong ?? It looks like everytime the context is destroyed... the hsqldb gets lock. The snippet code like below : === import javax.servlet.ServletContext; import javax.servlet.ServletContextListener; import javax.servlet.ServletContextEvent; import java.nio.channels.ClosedByInterruptException; import java.sql.Connection; import java.sql.DriverManager; import java.util.Random; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class ContextStartUp implements ServletContextListener { private ServletContext context = null; MyThread objThread = null; ResultSet rs = null; Connection conn = null; public void openDB() { try { conn = DriverManager.getConnection("jdbc:hsqldb:file:" + context.getRealPath("/data/testdb") + ";ifexists=true;shutdown=true;", "sa", "phidmspassword"); } catch (SQLException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } } public void closeDB() { Statement stmt = null; try { if(conn!=null) { stmt = conn.createStatement(); stmt.execute("SHUTDOWN COMPACT"); stmt.close(); conn.close(); stmt = null; conn = null; } } catch (SQLException e) { e.printStackTrace(); } } public class MyThread implements Runnable { int nomor = 0; Thread currentthread = null; public MyThread() { if (currentthread == null) { currentthread = new Thread(this); currentthread.setPriority(new Random().nextInt(5) + 1); currentthread.start(); } } public void run() { Statement stmt = null; String sqltodo = ""; Thread myThread = Thread.currentThread(); while (myThread == currentthread) { try { stmt = conn.createStatement(); if (stmt.execute("A select statement.. ")) { rs = stmt.getResultSet(); if (rs.next()) { .. } } sqltodo = Update queries ..; stmt.executeUpdate(sqltodo); stmt.execute("SHUTDOWN"); stmt.close(); } else { stmt.close(); } } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } finally { stmt = null; } try { Thread.sleep(10); } catch (InterruptedException e) { } } } } public void initThread() { openDB(); objThread = new MyThread(); } public void stopThread() { objThread = null; closeDB(); } public void contextDestroyed(ServletContextEvent event) { context = null; stopThread(); } public void contextInitialized(ServletContextEvent event) { try { Class.forName("org.hsqldb.jdbcDriver").newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } context = event.getServletContext(); initThread(); } } == -- Regards, Feris PT. Putera Handal Ind
How to test a tomcat virtual host?
Hi everybody, (I am newbie in this list!) I am trying to test my virtual hosts and my tomcat configuration on my local pc (Windows XP). I am using tomcat 5.0.28 and have configured following virtual hosts in my server.xml: When I start tomcat they are no exceptions and everything seems to be ok. When I call the page "http://127.0.0.1:9080/"; I see the defaultHost (host1). My Question is: how can I test my other hosts (host2 and host3) without declaring them as defarultHost? "http://127.0.0.1:9080/host2"; doesn't work! Thanks for any help, Sam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom Principal casting problem
Well, I'm not 100% sure about this as I've not proven all of it, but what I believe is happening from the various Tomcat docs I've read is: 1) My custom realm's authenticate() method(s) are invoked and these instantiate and return the custom principal objects (this bit is proven). If I do (principalAboutToBeReturned instanceof I_TestPrincipal) before I return from the authenticate() method then True is returned. I believe that this is happening within the context of the main Catalina classloader (but I've not proven this). 2) When my servlet/JSP is instantiated and invoked, if I do (request.getUserPrincipal() instanceof I_TestPrincipal) then False is returned (this bit is proven). I believe that this is happening within the context of a classloader other than the main Catalina one (but I've not proven this). So, it would totally make sense that the problem is due to different classloaders, but I thought that making my custom principal implement an interface which resides in (and only in) a JAR in common/lib (as per suggestion three in the WIKI http://wiki.apache.org/tomcat/ HowTo#head-cb66e750a22dea34b56f508dd675ed3c2e2e221a) was the way of getting around this problem. Cheers Darren On 21 Sep 2006, at 15:03, Peter Crowther wrote: From: Darren Clarke [mailto:[EMAIL PROTECTED] request.getUserPrincipal().getClass().toString() returns "poc.security.TestPrincipal" (request.getUserPrincipal() instanceof poc.security.I_TestPrincipal returns false Ah. Are you loading everything through the same classloader, or is there the potential for the request's user principal to be loaded through one classloader and your poc.security.I_TestPrincipal to be loaded through another? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HSQLDB and Tomcat ServletContextListener
Dear All, I'm using HSQLDB as embedded in-process mode for my web application. I used to schedule every 1 minutes to check on the HSQLDB database. I open the db when context initialized and close it when context destroyed. But when the context reloaded I always get Java.lang.NullPointerException when trying to execute SQL statement. What is wrong ?? It looks like everytime the context is destroyed... the hsqldb gets lock. The snippet code like below : === import javax.servlet.ServletContext; import javax.servlet.ServletContextListener; import javax.servlet.ServletContextEvent; import java.nio.channels.ClosedByInterruptException; import java.sql.Connection; import java.sql.DriverManager; import java.util.Random; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class ContextStartUp implements ServletContextListener { private ServletContext context = null; MyThread objThread = null; ResultSet rs = null; Connection conn = null; public void openDB() { try { conn = DriverManager.getConnection("jdbc:hsqldb:file:" + context.getRealPath("/data/testdb") + ";ifexists=true;shutdown=true;", "sa", "phidmspassword"); } catch (SQLException e) { e.printStackTrace(); } catch(Exception e) { e.printStackTrace(); } } public void closeDB() { Statement stmt = null; try { if(conn!=null) { stmt = conn.createStatement(); stmt.execute("SHUTDOWN COMPACT"); stmt.close(); conn.close(); stmt = null; conn = null; } } catch (SQLException e) { e.printStackTrace(); } } public class MyThread implements Runnable { int nomor = 0; Thread currentthread = null; public MyThread() { if (currentthread == null) { currentthread = new Thread(this); currentthread.setPriority(new Random().nextInt(5) + 1); currentthread.start(); } } public void run() { Statement stmt = null; String sqltodo = ""; Thread myThread = Thread.currentThread(); while (myThread == currentthread) { try { stmt = conn.createStatement(); if (stmt.execute("A select statement.. ")) { rs = stmt.getResultSet(); if (rs.next()) { .. } } sqltodo = Update queries ..; stmt.executeUpdate(sqltodo); stmt.execute("SHUTDOWN"); stmt.close(); } else { stmt.close(); } } catch (SQLException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } finally { stmt = null; } try { Thread.sleep(10); } catch (InterruptedException e) { } } } } public void initThread() { openDB(); objThread = new MyThread(); } public void stopThread() { objThread = null; closeDB(); } public void contextDestroyed(ServletContextEvent event) { context = null; stopThread(); } public void contextInitialized(ServletContextEvent event) { try { Class.forName("org.hsqldb.jdbcDriver").newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } context = event.getServletContext(); initThread(); } } == -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA
Attempting JAAS Authentication throws ArrayIndexOutOfBoundsException in NTSystem
Gentlemen, I am attempting to authenticate users via JAAS NTLoginModule and repeatedly recieve an ArrayIndexOutOfBoundsException wrapped in a LoginException. The error is (packages removed for confidentiality purposes): javax.security.auth.login.LoginException: java.lang.ArrayIndexOutOfBoundsException at com.sun.security.auth.module.NTSystem.getCurrent(Native Method) at com.sun.security.auth.module.NTSystem.(Unknown Source) at com.sun.security.auth.module.NTLoginModule.login(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at javax.security.auth.login.LoginContext.invoke(Unknown Source) at javax.security.auth.login.LoginContext.access$000(Unknown Source) at javax.security.auth.login.LoginContext$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokePriv(Unknown Source) at javax.security.auth.login.LoginContext.login(Unknown Source) at ---confidential .UserServiceBean.authenticate( UserServiceBean.java:40) at ---confidential .UserServiceBean.registerNewUser( UserServiceBean.java:130) at ---confidential .servlets.AppManagerInitServlet.init( AppManagerInitServlet.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java :243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java :275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege( SecurityUtil.java:161) at org.apache.catalina.security.SecurityUtil.doAsPrivilege( SecurityUtil.java:114) at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1099) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java :932) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java :4201) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java :121) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java :737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java :698) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java :472) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java :442) at org.apache.catalina.core.StandardService.start(StandardService.java :450) at org.apache.catalina.core.StandardServer.start(StandardServer.java :709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) NTSystem.getCurrent(Native Method) is a private method of NTSystem. This code executed as a standalone application works perfectly. This code executed in Tomcat 5.5 (not a servlet) fails. I have exhaustively researched this on the web and have attempted to trace the problem in the JAAS source code. The current operation has a servlet (AppManagerInitServlet) initializing on Tomcat startup that attempts to authenticate a known user (for testing purposes). I am currently executing this code with the Catalina SecurityManager in place, but I have get the exact same results not using the Catalin
Re: High CPU Usage with Apache Portable Runtime
Using Dtrace , I tried to gather some more information. Here is the output of a Dtrace script called dapptrace. It confirms the fact that the tomcat thread spends its cpu time in the Poll functions however I still don't understand why listening to events on port can't use so much cpu. Any hint or clue on how I could understand the reason of this behaviour ? PID/LWP RELATIVE ELAPSDCPU CALL(args) = return 1736/16: 5211128 . . -> libtcnative-1.so.0.1.3:Java_org_apache_tomcat_jni_Poll_poll(0x876717C, 0xD4CCFC44, 0x8 7086B8) 21736/16: 5211131 . . -> libapr-1.so.0.2.7:apr_pollset_poll(0x86BD6E0, 0x7D0, 0x0) 21736/16: 5211133 . . -> libc.so.1:__div64(0x7D0, 0x0, 0xF4240) 21736/16: 5211134 . . -> libc.so.1:divmod64(0xD8FF5680, 0xD5208246, 0x7D0) 21736/16: 5211134 13 0 <- libc.so.1:divmod64 = 48 21736/16: 5211135 37 2 <- libc.so.1:__div64 = 47 21736/16: 5211136 . . -> libc.so.1:__div64(0x7D0, 0x0, 0x3E8) 21736/16: 5211136 . . -> libc.so.1:divmod64(0xD8FF5680, 0xD5208265, 0x7D0) 21736/16: 5211137 13 0 <- libc.so.1:divmod64 = 48 21736/16: 5211137 36 1 <- libc.so.1:__div64 = 47 21736/16: 5211138 . . -> libc.so.1:__rem64(0x2, 0x0, 0x3E8) 21736/16: 5211139 . . -> libc.so.1:divmod64(0x2, 0xD520827D, 0x2) 21736/16: 5211140 13 0 <- libc.so.1:divmod64 = 48 21736/16: 5211140 37 2 <- libc.so.1:__rem64 = 88 21736/16: 5211143 . . -> libc.so.1:port_getn(0x17, 0x86BF6B0, 0x2000) 21736/16: 5211145 . . -> libc.so.1:_portfs(0x6, 0x17, 0x86BF6B0) 21736/16: 5211150 19 5 <- libc.so.1:_portfs = 13 21736/16: 5211151 . . -> libc.so.1:___errno(0x86BD6E0, 0xD522284C, 0x0) 21736/16: 5211151 13 0 <- libc.so.1:___errno = 32 21736/16: 5211152 68 9 <- libc.so.1:port_getn = 112 21736/16: 5211153 . . -> libc.so.1:___errno(0x7D0, 0xD8FF5680, 0xD52749E4) 21736/16: 5211153 12 0 <- libc.so.1:___errno = 32 21736/16: 5211154 261 22 <- libapr-1.so.0.2.7:apr_pollset_poll = 1297 21736/16: 5211154 295 25 <- libtcnative-1.so.0.1.3:Java_org_apache_tomcat_jni_Poll_poll = 525 Yann Yann Rouillard a écrit : Yes from what I understand a native call is used when you use the apache portable runtime with tomcat. Yann David Delbecq a écrit : Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534) can't help you then :) Yann Rouillard a écrit : Here is the jvm thread dump: Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() [0xd4c4b000..0xd4c4bd98] at java.lang.Object.wait(Native Method) - waiting on <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-2" daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait() [0xd4c8d000..0xd4c8dd98] at java.lang.Object.wait(Native Method) - waiting on <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Th
RE: Custom Principal casting problem
> From: Darren Clarke [mailto:[EMAIL PROTECTED] > request.getUserPrincipal().getClass().toString() returns > "poc.security.TestPrincipal" > > (request.getUserPrincipal() instanceof > poc.security.I_TestPrincipal returns false Ah. Are you loading everything through the same classloader, or is there the potential for the request's user principal to be loaded through one classloader and your poc.security.I_TestPrincipal to be loaded through another? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy tomcat unattended install
Hello, I have one problem. I need deploy the apache tomcat to 42 windows computers with full install (core, service, documentation and others) in unattended (silent). But, I have only this command: apache-tomcat-5.5.17.exe /S /D=C:\develop\tomcat5.5 How to I make this? Thanks! Jonildo Santos
Re: Custom Principal casting problem
Hi Martin Thanks for the speedy response. Re there being no guarantee that the type I'm casting is of the appropriate type, I was actually doing an instanceof test, that I omitted to mention and which fails, i.e. request.getUserPrincipal().getClass().toString() returns "poc.security.TestPrincipal" (request.getUserPrincipal() instanceof poc.security.I_TestPrincipal returns false However, taking up your second suggestion, I think I understand up to a point. So I'd create: public interface MyHttpServletRequest implements javax.servlet.http.HttpServletRequest {...} public class MyHttpServlet extends javax.servlet.http.HttpServlet {...} Presumably my servlets then all extend MyHttpServlet, rather than HttpServlet, but I don't see what I put in either my new class or interface that differentiates them from their ancestors, or how my new interface MyHttpServletRequest would get picked up and used by Tomcat when calling my servlet's methods. Actually, now I've written that, I have to take it back - I don't think I understand at all ;-) Sorry if I'm being thick. Darren On 21 Sep 2006, at 13:30, Martin Gainty wrote: Good Morning Darren- You can always downcast but upcasting is always problematic request.getUserPrincipal() returns the base class of java.security.Principal you are trying to upcast to your own derived class which is always dangerous since there is no guarantee the object you are passing is of type yourOwnDerivedClass You can either use classic request.getUserPrincipal() to return legacy javax.security.Principal OR you can implement your own interface MyHttpServletRequest from javax.servlet.http.HttpServletRequest then implement your own MyHttpServlet from javax.servlet.http.HttpServlet which then implements your own customised Interface MyHttpServletRequest comprenez? Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Darren Clarke" <[EMAIL PROTECTED]> To: Sent: Thursday, September 21, 2006 7:53 AM Subject: Custom Principal casting problem Hi Apologies in advance if I'm going over old ground here - I have spent a day and a bit searching the web and have found people with the same problem, but I'm not finding the solution anywhere... I've created my own Tomcat Realm that performs custom authentication. The various authenticate() and getPrinicipal() methods return a custom principal. My custom principal implements a custom interface, which in turn implements the standard Principal, i.e.: package poc.security; public interface I_TestPrincipal extends java.security.Principal { ... } public class TestPrincipal implements I_TestPrincipal { ... } Based on this, I can login to the website and authentication works fully, as do the role checks (such as request.isUserInRole() called from a JSP). However, if I want my page to do anything with my custom principal, I get a ClassCastException. So, for example, the following line will fail: ((I_TestPrincipal) request.getUserPrincipal()).someCustomMethod() The best notes I've found on the subject are those in the Tomcat Wiki HowTo, and I think the most suitable of those suggestions is the solution based on Common Interfaces. So, I've partitioned my code such that: JSPs/Servlets are in a WAR in $TOMCAT/webapps Realm and Principal classes are in a JAR installed in $TOMCAT/server/ lib Principal Interface is in a JAR in $TOMCAT/common/lib If I understand the wiki correctly, this should work. However, although my realm still works fully and authentication succeeds and although my JSP can find/load the interface class, the cast (I_TestPrincipal) request.getUserPrincipal() still fails. In case it helps, I'm running Tomcat 5.5.17 on Mac OS 10.4.7 Thanks in advance Darren Clarke - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
David Smith wrote: Ok. Can you offer a code snippet showing where you compose the url to the gif image? --David Ashirvad Uniyal wrote: Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded URL in the generated HTML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hello, After spending long time understanding this project i still have no clue. All logic is contained in one file, testpage.jsp. Despite of the size of the application, this file is a relatively small file. It was possible to achieve through the Window Component Framework (WCF). This framework is a set of tags, which enables developing short application code based on JSP. I have problem understanding the testpage.jsp and modifing it. Please find the snippet of the page souce of testpage.jsp, and the code of testpage.jsp respectively id="toolbar01">name="toolbar01.cubeNaviButton" src="/jpivot/toolbar/cube-up.png" border="0" title="Open OLAP Navigator" width="24" height="24">src="/jpivot/toolbar/mdx-edit-up.png" border="0" title="Show MDX Editor" width="24" height="24">name="toolbar01.sortConfigButton" src="/jpivot/toolbar/sort-asc-up.png" border="0" title="Config OLAP Table" width="24" height="24">type="image" name="toolbar01.levelStyle" src="/jpivot/toolbar/level-style-up.png" border="0" title="Show Parent Members" width="24" height="24">name="toolbar01.hideSpans" src="/jpivot/toolbar/hide-spans-up.png" border="0" title="Hide Spans" width="24" height="24">type="image" name="toolbar01.propertiesButton" src="/jpivot/toolbar/properties-up.png" border="0" title="Show Properties" width="24" height="24">name="toolbar01.nonEmpty" src="/jpivot/toolbar/non-empty-down.png" border="0" title="Suppress Empty Rows / Columns" width="24" height="24">src="/jpivot/toolbar/swap-axes-up.png" border="0" title="Swap Axes" width="24" height="24">src="/jpivot/toolbar/navi-member-up.png" border="0" title="Drill Member" width="24" height="24">name="toolbar01.drillPosition" src="/jpivot/toolbar/navi-position-down.png" border="0" title="Drill Position" width="24" height="24">name="toolbar01.drillReplace" src="/jpivot/toolbar/navi-replace-up.png" border="0" title="Drill Replace" width="24" height="24">type="image" name="toolbar01.drillThrough01" src="/jpivot/toolbar/navi-through-up.png" border="0" title="Drill Through" width="24" height="24">src="/jpivot/toolbar/chart-up.png" border="0" title="Show Chart" width="24" height="24">name="toolbar01.chartPropertiesButton01" src="/jpivot/toolbar/chart-config-up.png" border="0" title="Chart Config" width="24" height="24">name="toolbar01.printPropertiesButton01" src="/jpivot/toolbar/print-config-up.png" border="0" title="Configure Print Settings" width="24" height="24">href="./Print?cube=01&type=1">border="0" title="Print this Page via PDF" width="24" height="24">src="/jpivot/toolbar/excel-up.png" border="0" title="Start Excel" width="24" height="24">src="/jpivot/toolbar/swap-axes-up.png" border="0" title="toolb.chart.resize" width="24" height="24"> onmouseover="changeSrc(this,'images/zapisz_over.gif');" onmouseout="changeSrc(this,'images/zapisz.gif');" width="176" height="24" border="0" alt="Zapisanie aktualnego zapytania MDX" /> height="1" alt=""> <%@ page session="true" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://www.tonbeller.com/jpivot"; prefix="jp" %> <%@ taglib uri="http://www.tonbeller.com/wcf"; prefix="wcf" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> <%-- JPivot / WCF comes with its own "expression language", which simply is a path of properties. E.g. #{customer.address.name} is translated into: session.ge
Re: URL Redirection
Ok. Can you offer a code snippet showing where you compose the url to the gif image? --David Ashirvad Uniyal wrote: Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded URL in the generated HTML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom Principal casting problem
Good Morning Darren- You can always downcast but upcasting is always problematic request.getUserPrincipal() returns the base class of java.security.Principal you are trying to upcast to your own derived class which is always dangerous since there is no guarantee the object you are passing is of type yourOwnDerivedClass You can either use classic request.getUserPrincipal() to return legacy javax.security.Principal OR you can implement your own interface MyHttpServletRequest from javax.servlet.http.HttpServletRequest then implement your own MyHttpServlet from javax.servlet.http.HttpServlet which then implements your own customised Interface MyHttpServletRequest comprenez? Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Darren Clarke" <[EMAIL PROTECTED]> To: Sent: Thursday, September 21, 2006 7:53 AM Subject: Custom Principal casting problem > Hi > > Apologies in advance if I'm going over old ground here - I have spent > a day and a bit searching the web and have found people with the same > problem, but I'm not finding the solution anywhere... > > I've created my own Tomcat Realm that performs custom > authentication. The various authenticate() and getPrinicipal() > methods return a custom principal. My custom principal implements a > custom interface, which in turn implements the standard Principal, i.e.: > > package poc.security; > > public interface I_TestPrincipal extends java.security.Principal > { ... } > > public class TestPrincipal implements I_TestPrincipal { ... } > > > Based on this, I can login to the website and authentication works > fully, as do the role checks (such as request.isUserInRole() called > from a JSP). > > However, if I want my page to do anything with my custom principal, I > get a ClassCastException. So, for example, the following line will > fail: > > ((I_TestPrincipal) request.getUserPrincipal()).someCustomMethod() > > > The best notes I've found on the subject are those in the Tomcat Wiki > HowTo, and I think the most suitable of those suggestions is the > solution based on Common Interfaces. > > So, I've partitioned my code such that: > JSPs/Servlets are in a WAR in $TOMCAT/webapps > Realm and Principal classes are in a JAR installed in $TOMCAT/server/ > lib > Principal Interface is in a JAR in $TOMCAT/common/lib > > If I understand the wiki correctly, this should work. However, > although my realm still works fully and authentication succeeds and > although my JSP can find/load the interface class, the cast > (I_TestPrincipal) request.getUserPrincipal() > still fails. > > > In case it helps, I'm running Tomcat 5.5.17 on Mac OS 10.4.7 > > Thanks in advance > Darren Clarke > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: URL Redirection
Hello, If the application is renamed say for example "Test" or anything, everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded URL in the generated HTML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom Principal casting problem
Hi Apologies in advance if I'm going over old ground here - I have spent a day and a bit searching the web and have found people with the same problem, but I'm not finding the solution anywhere... I've created my own Tomcat Realm that performs custom authentication. The various authenticate() and getPrinicipal() methods return a custom principal. My custom principal implements a custom interface, which in turn implements the standard Principal, i.e.: package poc.security; public interface I_TestPrincipal extends java.security.Principal { ... } public class TestPrincipal implements I_TestPrincipal { ... } Based on this, I can login to the website and authentication works fully, as do the role checks (such as request.isUserInRole() called from a JSP). However, if I want my page to do anything with my custom principal, I get a ClassCastException. So, for example, the following line will fail: ((I_TestPrincipal) request.getUserPrincipal()).someCustomMethod() The best notes I've found on the subject are those in the Tomcat Wiki HowTo, and I think the most suitable of those suggestions is the solution based on Common Interfaces. So, I've partitioned my code such that: JSPs/Servlets are in a WAR in $TOMCAT/webapps Realm and Principal classes are in a JAR installed in $TOMCAT/server/ lib Principal Interface is in a JAR in $TOMCAT/common/lib If I understand the wiki correctly, this should work. However, although my realm still works fully and authentication succeeds and although my JSP can find/load the interface class, the cast (I_TestPrincipal) request.getUserPrincipal() still fails. In case it helps, I'm running Tomcat 5.5.17 on Mac OS 10.4.7 Thanks in advance Darren Clarke - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No response from server
We got no more response from any application after a while, but the processor load was low. Nor did we get any usefull log messages. The problem seems to be solved: We got a deadlock of all the http-connector threads. It was caused by an access to a LONG_RAW field on the oracle database, while concurrently the same or other requests fetched different data through the same database connection. The internal connection of the driver got stuck. The synchronisation does not work correctly with accessing LONG_RAW fields. Some additional details can be found on Metalink BugNo 4388999 Thanx Stefan Schmitz-Linneweber Li-3 wrote: > > not respond means: > it can not process any request of any deployed application > > or > > it can not process any request of a specific? > > ... > > > On 9/21/06, Emre Ersoz <[EMAIL PROTECTED]> wrote: >> >> Anything on the logs? >> >> $TOMCAT_HOME/logs >> >> >> On 9/19/06, SSL <[EMAIL PROTECTED]> wrote: >> > >> > >> > >> > Hello there, >> > >> > we experience the situation that our Tomcat server does not respond >> > anymore >> > after some time. >> > We already tried a few things to track the problem, like lambdaProbe, >> the >> > latest tomcat version, memory seetings, ... but to no avail. >> > Do you have an idea what the problem could be? >> > >> > Thanks >> > Stefan Schmitz-Linneweber >> > -- >> > View this message in context: >> > http://www.nabble.com/No-response-from-server-tf2299857.html#a6391134 >> > Sent from the Tomcat - User mailing list archive at Nabble.com. >> > >> > >> > - >> > To start a new topic, e-mail: users@tomcat.apache.org >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> > > > -- > When we invent time, we invent death. > > -- View this message in context: http://www.nabble.com/No-response-from-server-tf2299857.html#a6426092 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No response from server
not respond means: it can not process any request of any deployed application or it can not process any request of a specific? ... On 9/21/06, Emre Ersoz <[EMAIL PROTECTED]> wrote: Anything on the logs? $TOMCAT_HOME/logs On 9/19/06, SSL <[EMAIL PROTECTED]> wrote: > > > > Hello there, > > we experience the situation that our Tomcat server does not respond > anymore > after some time. > We already tried a few things to track the problem, like lambdaProbe, the > latest tomcat version, memory seetings, ... but to no avail. > Do you have an idea what the problem could be? > > Thanks > Stefan Schmitz-Linneweber > -- > View this message in context: > http://www.nabble.com/No-response-from-server-tf2299857.html#a6391134 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- When we invent time, we invent death.
Re: No response from server
Anything on the logs? $TOMCAT_HOME/logs On 9/19/06, SSL <[EMAIL PROTECTED]> wrote: Hello there, we experience the situation that our Tomcat server does not respond anymore after some time. We already tried a few things to track the problem, like lambdaProbe, the latest tomcat version, memory seetings, ... but to no avail. Do you have an idea what the problem could be? Thanks Stefan Schmitz-Linneweber -- View this message in context: http://www.nabble.com/No-response-from-server-tf2299857.html#a6391134 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Clustering SSH
Massimiliano Berruti wrote: You're perfectly right...the problem is we must do this because this is a sample application we're developping for our university and they asked to use ssh tunnel or something else to secure connection in the cluster... Thanx for help! So use VPN to create separate and secure network. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat Clustering SSH
You're perfectly right...the problem is we must do this because this is a sample application we're developping for our university and they asked to use ssh tunnel or something else to secure connection in the cluster... Thanx for help! 2006/9/21, Mikolaj Rydzewski <[EMAIL PROTECTED]>: Massimiliano Berruti wrote: > We'd like to make the communications between cluster's members > encrypted to prevent sniffing the session's messages. Why? This would slow down operations. Put cluster's nodes in a separate network segment. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> -- Massimiliano Berruti Email: [EMAIL PROTECTED] Fax: (+39)02-700432720 Novara - Italy "Lavora come se non avessi bisogno dei soldi. Ama come se nessuno ti abbia mai fatto soffrire. Balla come se nessuno ti stesse guardando. Canta come se nessuno ti stesse sentendo. Vivi come se il Paradiso fosse sulla Terra." - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Clustering SSH
Massimiliano Berruti wrote: We'd like to make the communications between cluster's members encrypted to prevent sniffing the session's messages. Why? This would slow down operations. Put cluster's nodes in a separate network segment. -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat Clustering SSH
could please point me to some refs describing ssh tunnels integration on tomcat's cluster members? Thanx 2006/9/21, Peter Rossbach <[EMAIL PROTECTED]>: Use ssh tunnels! but better use an isolate network... Regards Peter Am 21.09.2006 um 11:15 schrieb Massimiliano Berruti: > Hello, > > we set up a simple web cluster with the following configuration: a > Apache ssl server acts as a load balancer towards two tomcat workers > in order the support failover and high availability. > > We used the built-in mechanism available from tomcat 5.x to implement > clustering. From what we have understood from the docs, the > communications between each cluster member is obtained through the > SimpleTcpCluster class and is not encrypted. > > We'd like to make the communications between cluster's members > encrypted to prevent sniffing the session's messages. > > We have no idea how to implemet this, we're looking for tips and > suggestions. > > Thank you > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Massimiliano Berruti Email: [EMAIL PROTECTED] Fax: (+39)02-700432720 Novara - Italy "Lavora come se non avessi bisogno dei soldi. Ama come se nessuno ti abbia mai fatto soffrire. Balla come se nessuno ti stesse guardando. Canta come se nessuno ti stesse sentendo. Vivi come se il Paradiso fosse sulla Terra." - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Clustering SSH
Use ssh tunnels! but better use an isolate network... Regards Peter Am 21.09.2006 um 11:15 schrieb Massimiliano Berruti: Hello, we set up a simple web cluster with the following configuration: a Apache ssl server acts as a load balancer towards two tomcat workers in order the support failover and high availability. We used the built-in mechanism available from tomcat 5.x to implement clustering. From what we have understood from the docs, the communications between each cluster member is obtained through the SimpleTcpCluster class and is not encrypted. We'd like to make the communications between cluster's members encrypted to prevent sniffing the session's messages. We have no idea how to implemet this, we're looking for tips and suggestions. Thank you - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
take a look into your access-logs for a 404-error. then you should see the access-code where tomcat looks for the pics. you'll have to change the links then. btw., renaming your web-app to ROOT is the worst of all solutions: Since this is a standard-app of tomcat, your client will pretty much likely already have a context named ROOT. cheers greg -- what's puzzlin' you, is the nature of my game
Tomcat Clustering SSH
Hello, we set up a simple web cluster with the following configuration: a Apache ssl server acts as a load balancer towards two tomcat workers in order the support failover and high availability. We used the built-in mechanism available from tomcat 5.x to implement clustering. From what we have understood from the docs, the communications between each cluster member is obtained through the SimpleTcpCluster class and is not encrypted. We'd like to make the communications between cluster's members encrypted to prevent sniffing the session's messages. We have no idea how to implemet this, we're looking for tips and suggestions. Thank you - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: High CPU Usage with Apache Portable Runtime
Yes from what I understand a native call is used when you use the apache portable runtime with tomcat. Yann David Delbecq a écrit : Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534) can't help you then :) Yann Rouillard a écrit : Here is the jvm thread dump: Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() [0xd4c4b000..0xd4c4bd98] at java.lang.Object.wait(Native Method) - waiting on <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-2" daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait() [0xd4c8d000..0xd4c8dd98] at java.lang.Object.wait(Native Method) - waiting on <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534) "ajp-8009-1" daemon prio=5 tid=0x087646c0 nid=0xf in Object.wait() [0xd4d11000..0xd4d11d98] at java.lang.Object.wait(Native Method) - waiting on <0xd906b2c0> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd906b2c0> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-Acceptor-0" daemon prio=5 tid=0x086bd478 nid=0xe runnable [0xd4d53000..0xd4d53d98] at org.apache.tomcat.jni.Socket.accept(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) at java.lang.Thread.run(Thread.java:534) "http-8080-1" daemon prio=5 tid=0x086b98d0 nid=0xd in Object.wait() [0xd4d95000..0xd4d95d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0bb8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd8ff0bb8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "http-8080-Sendfile-0" daemon prio=5 tid=0x083cf830 nid=0xc in Object.wait() [0xd4dd7000..0xd4dd7d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0c20> (a org.apache.tomcat.util.net.AprEndpoint$Sendfile) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Sendfile.run(AprEndpoint.java:1486) - locked <0xd8ff0c20> (a org.apache.tomcat.util.net.AprEndpoint$Sendfile) at java.lang.Thread.run(Thread.java:534) "http-8080-Poller-0" daemon prio=5 tid=0x083c4eb0 nid=0xb in Object.wait() [0xd4e19000..0xd4e19d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0c98> (a org.apache.tomcat.util.net.AprEndpoint$Poller) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1127) - locked <0xd8ff0c98> (a org.apache.tomcat.util.net.AprEndpoint$Poller) at java.lang.Thread.run(Thread.java:534) "http-8080-Acceptor-0" daemon prio=5 tid=0x083a1d58 nid=0xa runnable [0xd4e5b000..0xd4e5bd98] at org.apache.tomcat.jni.Socket.accept(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) at java.lang.Thread.run(Thread.java:534) "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=5 tid=0x0839d4b8 nid=0x9 waiting on condition [0xd4e9d000..0xd4e9dd98] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547) at java.lang.Thread.run(Thread.java:534) "Signal Dispatcher" daemon prio=10 tid=0x08116e10 nid=0x6 waiting on condition [0x..0x
Re: High CPU Usage with Apache Portable Runtime
Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534) can't help you then :) Yann Rouillard a écrit : > Here is the jvm thread dump: > > Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): > > "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() > [0xd4c4b000..0xd4c4bd98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd5e5c1f8> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) > > - locked <0xd5e5c1f8> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) > at java.lang.Thread.run(Thread.java:534) > > "ajp-8009-2" daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait() > [0xd4c8d000..0xd4c8dd98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd62a0060> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) > > - locked <0xd62a0060> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) > at java.lang.Thread.run(Thread.java:534) > > "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable > [0xd4ccf000..0xd4ccfd98] > at org.apache.tomcat.jni.Poll.poll(Native Method) > at > org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) > at java.lang.Thread.run(Thread.java:534) > > "ajp-8009-1" daemon prio=5 tid=0x087646c0 nid=0xf in Object.wait() > [0xd4d11000..0xd4d11d98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd906b2c0> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) > > - locked <0xd906b2c0> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) > at java.lang.Thread.run(Thread.java:534) > > "ajp-8009-Acceptor-0" daemon prio=5 tid=0x086bd478 nid=0xe runnable > [0xd4d53000..0xd4d53d98] > at org.apache.tomcat.jni.Socket.accept(Native Method) > at > org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) > at java.lang.Thread.run(Thread.java:534) > > "http-8080-1" daemon prio=5 tid=0x086b98d0 nid=0xd in Object.wait() > [0xd4d95000..0xd4d95d98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd8ff0bb8> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) > > - locked <0xd8ff0bb8> (a > org.apache.tomcat.util.net.AprEndpoint$Worker) > at > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) > at java.lang.Thread.run(Thread.java:534) > > "http-8080-Sendfile-0" daemon prio=5 tid=0x083cf830 nid=0xc in > Object.wait() [0xd4dd7000..0xd4dd7d98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd8ff0c20> (a > org.apache.tomcat.util.net.AprEndpoint$Sendfile) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Sendfile.run(AprEndpoint.java:1486) > > - locked <0xd8ff0c20> (a > org.apache.tomcat.util.net.AprEndpoint$Sendfile) > at java.lang.Thread.run(Thread.java:534) > > "http-8080-Poller-0" daemon prio=5 tid=0x083c4eb0 nid=0xb in > Object.wait() [0xd4e19000..0xd4e19d98] > at java.lang.Object.wait(Native Method) > - waiting on <0xd8ff0c98> (a > org.apache.tomcat.util.net.AprEndpoint$Poller) > at java.lang.Object.wait(Object.java:429) > at > org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1127) > - locked <0xd8ff0c98> (a > org.apache.tomcat.util.net.AprEndpoint$Poller) > at java.lang.Thread.run(Thread.java:534) > > "http-8080-Acceptor-0" daemon prio=5 tid=0x083a1d58 nid=0xa runnable > [0xd4e5b000..0xd4e5bd98] > at org.apache.tomcat.jni.Socket.accept(Native Method) > at > org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) > at java.lang.Thread.run(Thread.java:534) > > "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=5 > tid=0x0839d4b8 nid=0x9 waiting on condition [0xd4e9d000..0xd4e9dd98] > at java.lang.Thread.sleep(Native Method) > at > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547) > > at java.lang.Thread.run(Thread.java:534) > > "Signal Dispatcher"
Re: High CPU Usage with Apache Portable Runtime
Here is the jvm thread dump: Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() [0xd4c4b000..0xd4c4bd98] at java.lang.Object.wait(Native Method) - waiting on <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd5e5c1f8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-2" daemon prio=5 tid=0x087813b0 nid=0x11 in Object.wait() [0xd4c8d000..0xd4c8dd98] at java.lang.Object.wait(Native Method) - waiting on <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd62a0060> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534) "ajp-8009-1" daemon prio=5 tid=0x087646c0 nid=0xf in Object.wait() [0xd4d11000..0xd4d11d98] at java.lang.Object.wait(Native Method) - waiting on <0xd906b2c0> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd906b2c0> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "ajp-8009-Acceptor-0" daemon prio=5 tid=0x086bd478 nid=0xe runnable [0xd4d53000..0xd4d53d98] at org.apache.tomcat.jni.Socket.accept(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) at java.lang.Thread.run(Thread.java:534) "http-8080-1" daemon prio=5 tid=0x086b98d0 nid=0xd in Object.wait() [0xd4d95000..0xd4d95d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0bb8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1255) - locked <0xd8ff0bb8> (a org.apache.tomcat.util.net.AprEndpoint$Worker) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1280) at java.lang.Thread.run(Thread.java:534) "http-8080-Sendfile-0" daemon prio=5 tid=0x083cf830 nid=0xc in Object.wait() [0xd4dd7000..0xd4dd7d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0c20> (a org.apache.tomcat.util.net.AprEndpoint$Sendfile) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Sendfile.run(AprEndpoint.java:1486) - locked <0xd8ff0c20> (a org.apache.tomcat.util.net.AprEndpoint$Sendfile) at java.lang.Thread.run(Thread.java:534) "http-8080-Poller-0" daemon prio=5 tid=0x083c4eb0 nid=0xb in Object.wait() [0xd4e19000..0xd4e19d98] at java.lang.Object.wait(Native Method) - waiting on <0xd8ff0c98> (a org.apache.tomcat.util.net.AprEndpoint$Poller) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1127) - locked <0xd8ff0c98> (a org.apache.tomcat.util.net.AprEndpoint$Poller) at java.lang.Thread.run(Thread.java:534) "http-8080-Acceptor-0" daemon prio=5 tid=0x083a1d58 nid=0xa runnable [0xd4e5b000..0xd4e5bd98] at org.apache.tomcat.jni.Socket.accept(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Acceptor.run(AprEndpoint.java:999) at java.lang.Thread.run(Thread.java:534) "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=5 tid=0x0839d4b8 nid=0x9 waiting on condition [0xd4e9d000..0xd4e9dd98] at java.lang.Thread.sleep(Native Method) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1547) at java.lang.Thread.run(Thread.java:534) "Signal Dispatcher" daemon prio=10 tid=0x08116e10 nid=0x6 waiting on condition [0x..0x] "Finalizer" daemon prio=8 tid=0x0810fba0 nid=0x4 in Object.wait() [0xfc06d000..0xfc06dd98] at java.lang.Object.wait(Native Method) - waiting on <0xd85bb9d0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
Re: High CPU Usage with Apache Portable Runtime
Could you send us a few jvm thread dumps while the CPU usage, i bet this an be more helpful than an os dump. To generate a Thread dump, simply send the signal 3 to the java process (assuming you use a SUN jvm or derivative) Yann Rouillard a écrit : > Did you tried it with Tomcat 5.5.17? >>> >>> No but I can try. Some modifications have been on this area ? >>> >> >> Yes, a lots of them, see the: >> http://tomcat.apache.org/tomcat-5.5-doc/changelog.html >> >> The way how Poller is handled has changed, so just try the >> 5.5.17. > > Ok, I have tried with 5.5.17 and the problem is still present. > The thread using the CPU is still the thread doing the polling: > > - lwp# 16 / thread# 16 > fef3fff7 portfs (6, 17, 86bf6b0, 2000, 1, d4ccfbb4) > d52083d6 apr_pollset_poll (86bd6e0, 7d0, 0, d4ccfc04, d4ccfc10) + 1fe > d524ccec Java_org_apache_tomcat_jni_Poll_poll (876717c, d4ccfc44, > 87086b8, 0, 7d0, 0) + 64 > > > Yann > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: High CPU Usage with Apache Portable Runtime
Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications have been on this area ? Yes, a lots of them, see the: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html The way how Poller is handled has changed, so just try the 5.5.17. Ok, I have tried with 5.5.17 and the problem is still present. The thread using the CPU is still the thread doing the polling: - lwp# 16 / thread# 16 fef3fff7 portfs (6, 17, 86bf6b0, 2000, 1, d4ccfbb4) d52083d6 apr_pollset_poll (86bd6e0, 7d0, 0, d4ccfc04, d4ccfc10) + 1fe d524ccec Java_org_apache_tomcat_jni_Poll_poll (876717c, d4ccfc44, 87086b8, 0, 7d0, 0) + 64 Yann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need Help w. Servlets And The JDBC.
You can configure a tomcat datasource to get a connection or you can load your database driver and get a connection object. The advantage with using tomcat datasource is that it will handle connection pooling for you. The tomcat docs explain how to define a datasource (you have to do it in context.xml) , also you will need the JDBC drivers for whatever database you are connecting to. -Sameer --- Steve R Burrus <[EMAIL PROTECTED]> wrote: > Hi all. I am an admitted newbie when it comes to > using a database > connection for a servlet to access. So can someone > please tell me the > basics about how exactly I should go about doing > this?? I have been very > much "stumped" about how I should do this for quite > a long time now! I > just know that I should use 1 of 3 getConnection( ) > methods to start to > do this and create a Connection object but little > else. > > > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use mod_jk
If I write JkMount /MyApp/* worker1 can I load all the page contained in the directory $CATALINA_HOME/webapps/ MyApp/ or I have a row for every directories? for example: JkMount /MyApp/dir1/* worker1 JkMount /MyApp/dir2/* worker1 thanks Raffo On 9/21/06, Santosh Puranshettiwar <[EMAIL PROTECTED]> wrote: Sorry I didn't get you question well but see if this helps. http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html#adapter_jk_vs_js Santosh. Raffaele Viola wrote: > Hi all, > > I Apache web server with Tomcat and mod_jk. > The row > > JkMount /MyApp/* worker1 > > in the httpd.conf file is it enought to allow the loading of all the web > application from Apache? > > Thanks > Raffo > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrade from 2000 to 2003; .NET2 ?
I found the problem. IIS6 was in IIS5 isolation mode. Turning off, solved. Piero [EMAIL PROTECTED] ha scritto: I haven't done any specific testing, however I am running one of my servers with .Net 1.1 and .Net 2 (two application pools) along with Tomcat. What are you doing with the .Net page to Tomcat? Maybe I can put together a simple/similar example and test it out. I have 1.2.15 working correctly on WindowsXP, and on another machine, Win2003 (and .NET1.1). But I'm in trouble with a machine with Win2003 (IIS6) and .NET2 ( still jk1.2.15 and Tomcat 5.5.17). Randomly (often) I have from IIS a Bad Request resposne (and isapi_log doesn't log anything). The http header requests are correct. In the past anyone wasn't able to help me, so now the question is: does anayone tested on Win2003 and .NET2 ? Piero Steven Bell ha scritto: I use the redirector version 1.2.15 or 1.2.14, with a binary installer (msi.) 1.2.18 does not appear to have a .msi installer yet. I have Tomcat 5.5.17 running on several windows servers, some with IIS 6, some with 5 and one with 5.1 (my windows xp system.) On all, I used the .msi installer. I would recommend using 1.2.15 for ease of setup. Here is a short guide to getting started. First, download the msi package and run it. This will install the files, and make some necessary registry entries. Then: Steps in IIS (these steps are generally done for the default site by the installer.): 1a. Create a virtual directory called jakarta. Make sure it points to the bin directory from the install (typically this is x:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\bin) 2a. Add an ISAPI filter to the site. Steps in the x:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\conf directory. 1b. Configure the worker files. (I can provide examples if you need some Windows specific) 2b. Configure the URIMap file. (Again I can provide examples.) Steps to get everything working: 1c. Restart Tomcat (make sure that in server.xml you have uncommented the redirector connector, and specified a port (typically it points to 8009). This port should be the same as the port for the worker in worker file in step 1b. 2c. Restart IIS Admin in Control Panel > Administration > Services. You should now be able to browse over to any mapped url. I haven't tried to get the administration and manager web apps to work, figuring the less accessible they are the better off I am. Whenever you make a change to the files in 1b or 2b, you must restart IIS Admin (or world wide web publishing) for the changes to take effect. In the system registry, HKey_Local_Machine\Software\Apache Software Foundation\Jakarta Isapi Redirector\1.0 there are several useful entries. 1. log_file -> this key holds the file path to your log file. Very useful for tracking down why a redirect may not be working. 2. log_level -> I set this to debug during setup and configuration. The most verbose output, the most detail. After everything is working, I change it to Info. 3. extension_uri, names the dll for redirection. I wouldn't change this. 4. worker_file, path to worker file. I wouldn't change this. 5. worker_mount_file, path to the URIMap file. I wouldn't change this. I hope this helps out. If you have any questions, or would like to see some sample configs, please let me know I would be happy to share the information with you. Steven. Charles Morris wrote: *** Your mail has been scanned by InterScan VirusWall. ***-*** Hi guys, I am new to tomcat. Trying to install TOMCAT 5.5.17 onto a Windows Server 2003 with Java 1.5.0_06 and a connector of 1.2.18. We are using the Microsoft Web Services (IIS 6.0). Can't seem to find any complete installation instructions, specifically regarding configuring the all the .properties and .xml files in the conf directory as well as the registry. I have been all over the apache web site and found some documentation but it pertains to connector 2.0. the documentation talks about isapi_redirector2.dll. Some of the properties files were not included in the download, just pathetic download. I think I have all the pieces downloaded now but I need some clear documentation about installing and configuring it. Any help would be appreciated. -- Charles Morris Programmer Analyst Vertical Market Software Pensacola, FL 32514 Phone: 850-476-0094 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Il contenuto di questo messaggio e' confid
Re: High CPU Usage with Apache Portable Runtime
Yann Rouillard wrote: Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications have been on this area ? Yes, a lots of them, see the: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html The way how Poller is handled has changed, so just try the 5.5.17. Regards, Mladen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: use mod_jk
Sorry I didn't get you question well but see if this helps. http://tomcat.apache.org/tomcat-3.2-doc/tomcat-apache-howto.html#adapter_jk_vs_js Santosh. Raffaele Viola wrote: Hi all, I Apache web server with Tomcat and mod_jk. The row JkMount /MyApp/* worker1 in the httpd.conf file is it enought to allow the loading of all the web application from Apache? Thanks Raffo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection
Caldarale, Charles R wrote: From: Ashirvad Uniyal [mailto:[EMAIL PROTECTED] Subject: Re: URL Redirection I renamed the application to ROOT and everything works fine except that all the images (gif) have all together vanished How are you referencing the images? Do you have a hard-coded URL in the generated HTML? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hello, If the application is renamed say for example "Test" or anything everything works fine and the gif appear but they just vanish if the application is renamed as ROOT. Regards, Ash - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: High CPU Usage with Apache Portable Runtime
Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications have been on this area ? Yann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use mod_jk
Hi all, I Apache web server with Tomcat and mod_jk. The row JkMount /MyApp/* worker1 in the httpd.conf file is it enought to allow the loading of all the web application from Apache? Thanks Raffo