Re: tomcat datasource, find active connections
2010/7/14 Caldarale, Charles R chuck.caldar...@unisys.com: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: tomcat datasource, find active connections As much fun as that sounds, the OP could just use the default DataSourceFactory which is based upon DBCP. Does that require setting the Context privileged attribute to true in 5.5? (Looks like it shouldn't make a difference in 6.0 and 7.0.) naming-factory-dbcp.jar is in common/lib/ in TC 5.5, so setting privileged=true is not needed, I think. privileged is used to get access to jars that are in server/lib Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat not working after moving installation folder
Yes, after reboot the service no longer appeared, and I did a service.bat install to install the D: tomcat and it said it was successfully installed. However when I hit a web page I get a weird exceptionjava.lang.NullPointerException org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:548) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:453) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.arcot.admin.framework.web.utils.FrameworkSessionFilter.doFilter(FrameworkSessionFilter.java:71) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) --- On Wed, 14/7/10, Konstantin Kolinko knst.koli...@gmail.com wrote: From: Konstantin Kolinko knst.koli...@gmail.com Subject: Re: Tomcat not working after moving installation folder To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, 14 July, 2010, 5:50 AM 2010/7/13 Kannan J kannan_jayapraka...@yahoo.co.in: D:\Tomcat5.5\binservice.bat remove The service 'Tomcat5' has been removed I still find the windows service, but its seems to have changed to 'Disabled' (not sure what it was before) Maybe you have to do a reboot. After that, the install command fails: (...) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How can i verify clusterization?
Hallo, i'm using (mostly): Tomcat: 2.0.26 JDK: jdk1.6.0_18 I have clusters of 2-4 tomcats. Is there a way to verify that the cluster is working? I can see no message exchange. is there a way (even some jsp code) to ensure that the cluster is working and the number of nodes joining it? Furthermore...is there some debugging tool to see the cluster status? Thanks a lot. Luca - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Session error while loading an object
On Wed, Jul 14, 2010 at 1:39 AM, Peter Crowther peter.crowt...@melandra.com wrote: On 13 July 2010 16:15, abhishek jain abhishek.netj...@gmail.com wrote: On Tue, Jul 13, 2010 at 2:11 PM, Peter Crowther peter.crowt...@melandra.com wrote: On 13 July 2010 09:34, abhishek jain abhishek.netj...@gmail.com wrote: I am using tomcat 5.5 , struts 1.x and i encounter the following error: I actually store the object in session and retrieve that(for a shopping cart application), pl. advice what i can do to remove this error: java.io.NotSerializableException: com.cart.Customer You need to make sure that com.cart.Customer (and anything else you store in the session) is serializable. - Peter Thanks Peter, i will check but i get this error only at times, and not always. Can this still be the cause of the problem. thanks abhishek Yes. It's happening because your webapp is being reloaded (are you changing some part of it?) and there are active sessions. The sessions are serialised to persist them; then the webapp is restarted; then the sessions are deserialised. If there are no sessions at the time the webapp is restarted, the problem will not occur. - Peter Thanks Peter for the info, I just realized that i am having in the Cart object which i save in session, references of datasource and message resources. This is creating the problem as they i believe are not serializable, Is there any way of overcoming them. Pl. advice, thanks abhishek
Re: 404 with mod_jk
On 14.07.2010 04:57, Michael Powe wrote: Hello, Thank you for the reply. See below for comments. On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote: On 13.07.2010 23:17, Michael Powe wrote: Hello, I asked this question in the httpd list but no joy. I have set up tomcat 6 and IBM httpd server to proxy requests using mod_jk. IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at localhost Port 80 I have followed all instructions as nearly as I can make out. Since you already have trace logging enabled: - is this all that gets logged in the jk log file for the request? I rotated the mod_jk log and restarted the server. I get a huge trace log, 33K. It appears to me to be initializing correctly, in the sense that there are no error messages. - can you see your worker worker1 getting configured during startup (debug log messages)? [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_dump::jk_uri_worker_map.c (195): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_open::jk_uri_worker_map.c (830): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (240): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3112): Using fcntl() for locking. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3128): Setting default connection pool max size to 25 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.list' with value 'worker1' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.type' with value 'ajp13' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.host' with value 'localhost' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.port' with value '8009' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_map_resolve_references::jk_map.c (766): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_resolve_references::jk_map.c (774): Checking for references with prefix worker. with wildcard (recursion 1) [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_map_resolve_references::jk_map.c (830): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_shm_calculate_size::jk_shm.c (97): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_shm_calculate_size::jk_shm.c (132): shared memory will contain 1 ajp workers of size 256 and 0 lb workers of size 320 with 0 members of size 320+256 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_shm_calculate_size::jk_shm.c (139): exit [ ... ] [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] wc_open::jk_worker.c (50): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): Dump of map: 'ServerRoot' - '/opt/IBMIHS' [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): Dump of map: 'worker.list' - 'worker1' [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): Dump of map: 'worker.worker1.type' - 'ajp13' [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): Dump of map: 'worker.worker1.host' - 'localhost' [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): Dump of map: 'worker.worker1.port' - '8009' [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] build_worker_map::jk_worker.c (236): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] build_worker_map::jk_worker.c (242): creating worker worker1 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] wc_create_worker::jk_worker.c (126): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] wc_create_worker::jk_worker.c (146): about to create instance worker1 of ajp13 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp13_worker_factory::jk_ajp13_worker.c (80): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp_worker_factory::jk_ajp_common.c (2892): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp_worker_factory::jk_ajp_common.c (2934): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp13_worker_factory::jk_ajp13_worker.c (92): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] wc_create_worker::jk_worker.c (159): about to validate and init worker1 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] validate::jk_ajp13_worker.c (35): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp_validate::jk_ajp_common.c (2579): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_validate::jk_ajp_common.c (2605): worker worker1 contact is 'localhost:8009' [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c (329): enter [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c
Re: Session error while loading an object
On 14 July 2010 08:02, abhishek jain abhishek.netj...@gmail.com wrote: I just realized that i am having in the Cart object which i save in session, references of datasource and message resources. This is creating the problem as they i believe are not serializable, Is there any way of overcoming them. They're not serializable for a good reason - you shouldn't really be keeping references to system resources between requests. As you've found out, the session can be serialized at any time, and it may be deserialized a long time later - potentially even after the application has been restarted. At this point, the references to datasources and message resources may no longer be valid. Why are you keeping references to the datasource and message resources in the Cart now? Can you re-think your design of the Cart so that it keeps only serializable data between requests? - Peter
Deployment issues
Dear All, I have deployed a web application (war file) in webapps directory of tomcat 6.0.18 its working fine. Please note that its a struts application and has been developed sometimes three years back. I am not sure which version of struts has been used in it. When I deployed the same application in the webapps directory of tomcat 6.0.26 or 7.0 its not getting deployed and fails to get hosted on my localhost. Please suggest me where I am missing. Thanks in advance. Regards, Sandip India
Re: 404 with mod_jk
Hello, Thanks again for looking at this. Here are the log entries corresponding to a jsp page request. [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/TlTaggerTest/target.jsp' from 1 maps [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/TlTaggerTest/*.jsp=worker1' [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (866): exit [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_translate::mod_jk.c (3542): no match for /favicon.ico found [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_map_to_storage::mod_jk.c (3609): no match for /favicon.ico found I hate top-posting but these log entries have made this email ridiculously long; plus, I'm ssh'ed into a terminal window and some emacs key strokes are intercepted locally, so editing is somewhat limited. Thanks again. mp On Wed, Jul 14, 2010 at 11:09:19AM +0200, Rainer Jung wrote: On 14.07.2010 04:57, Michael Powe wrote: Hello, Thank you for the reply. See below for comments. On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote: On 13.07.2010 23:17, Michael Powe wrote: Hello, I asked this question in the httpd list but no joy. I have set up tomcat 6 and IBM httpd server to proxy requests using mod_jk. IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at localhost Port 80 I have followed all instructions as nearly as I can make out. Since you already have trace logging enabled: - is this all that gets logged in the jk log file for the request? I rotated the mod_jk log and restarted the server. I get a huge trace log, 33K. It appears to me to be initializing correctly, in the sense that there are no error messages. - can you see your worker worker1 getting configured during startup (debug log messages)? [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_dump::jk_uri_worker_map.c (195): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_open::jk_uri_worker_map.c (830): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (240): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3112): Using fcntl() for locking. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3128): Setting default connection pool max size to 25 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.list' with value 'worker1' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.type' with value 'ajp13' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.host' with value 'localhost' to map. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug]
Re: Deployment issues
Sandip d...@iit wrote: Dear All, I have deployed a web application (war file) in webapps directory of tomcat 6.0.18 its working fine. Please note that its a struts application and has been developed sometimes three years back. I am not sure which version of struts has been used in it. When I deployed the same application in the webapps directory of tomcat 6.0.26 or 7.0 its not getting deployed and fails to get hosted on my localhost. Please suggest me where I am missing. Sandip, re-read your message above, and imagine that you are the greatest Java and Tomcat specialist. Do you really think that with the information you provide above, you could figure out what your problem is ? And even if you could, you being the greatest Java and Tomcat specialist and all, do you think you would want to spend your time helping someone who does not seem to have made any effort of his own to find the problem ? Start with having a look at the Tomcat logfiles. It is guaranteed that one of them tells you why your application is not being loaded. If you do not know where to find the Tomcat logfiles, then start here : http://tomcat.apache.org/tomcat-6.0-doc/index.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Does Tomcat 7.0 support JSR-196?
If not, which version will support it in the future? Thanks!
Re: 404 with mod_jk
Mmmm. Taking into account all previous communications, this looks really strange. It looks as if mod_jk is being called, is finding a match with its URI map, but then is not even making any attempt at contacting the Tomcat worker... On the other hand, assuming that your IBM webserver is some clone of Apache (which is what the configuration looks like), then I find your VirtualHost section rather strange. One would normally expect something like Listen 80 NameVirtualHosts *:80 ... VirtualHost *:80 ServerName localhost ... /VirtualHost I don't know if this could interfere with mod_jk, but maybe it does. Michael Powe wrote: Hello, Thanks again for looking at this. Here are the log entries corresponding to a jsp page request. [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/TlTaggerTest/target.jsp' from 1 maps [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/TlTaggerTest/*.jsp=worker1' [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (866): exit [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_translate::mod_jk.c (3542): no match for /favicon.ico found [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_map_to_storage::mod_jk.c (3609): no match for /favicon.ico found I hate top-posting but these log entries have made this email ridiculously long; plus, I'm ssh'ed into a terminal window and some emacs key strokes are intercepted locally, so editing is somewhat limited. Thanks again. mp On Wed, Jul 14, 2010 at 11:09:19AM +0200, Rainer Jung wrote: On 14.07.2010 04:57, Michael Powe wrote: Hello, Thank you for the reply. See below for comments. On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote: On 13.07.2010 23:17, Michael Powe wrote: Hello, I asked this question in the httpd list but no joy. I have set up tomcat 6 and IBM httpd server to proxy requests using mod_jk. IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at localhost Port 80 I have followed all instructions as nearly as I can make out. Since you already have trace logging enabled: - is this all that gets logged in the jk log file for the request? I rotated the mod_jk log and restarted the server. I get a huge trace log, 33K. It appears to me to be initializing correctly, in the sense that there are no error messages. - can you see your worker worker1 getting configured during startup (debug log messages)? [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_dump::jk_uri_worker_map.c (195): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_open::jk_uri_worker_map.c (830): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (240): exit [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3112): Using fcntl() for locking. [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug]
Re: 404 with mod_jk
Hello, See below. On Wed, Jul 14, 2010 at 12:13:11PM +0200, André Warnier wrote: Mmmm. Taking into account all previous communications, this looks really strange. It looks as if mod_jk is being called, is finding a match with its URI map, but then is not even making any attempt at contacting the Tomcat worker... On the other hand, assuming that your IBM webserver is some clone of Apache (which is what the configuration looks like), then I find your VirtualHost section rather strange. One would normally expect something like Listen 80 NameVirtualHosts *:80 ... VirtualHost *:80 ServerName localhost ... /VirtualHost I don't know if this could interfere with mod_jk, but maybe it does. The VirtualHost section was created by the ApacheConfig option in Tomcat. It actually creates a separate mod_jk.conf file that is to be included via an Include line, but I copied it into the httpd.conf file because I made some modifications to the original. That is just because unless I disable the auto config in server.xml, the conf file is regenerated every time Tomcat is restarted. The modifications were to comment out the mounts I didn't want to use, and add a DocumentRoot for local (non-jsp) files, as well as change the JkMount directive to point only to .jsp files. Thanks. mp Michael Powe wrote: Hello, Thanks again for looking at this. Here are the log entries corresponding to a jsp page request. [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/TlTaggerTest/target.jsp' from 1 maps [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:42:57 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/TlTaggerTest/*.jsp=worker1' [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (866): exit [Wed Jul 14 05:42:57 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_translate::mod_jk.c (3542): no match for /favicon.ico found [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/favicon.ico' from 1 maps [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (839): enter [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/TlTaggerTest/*.jsp=worker1' source 'JkMount' [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] find_match::jk_uri_worker_map.c (882): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [trace] map_uri_to_worker_ext::jk_uri_worker_map.c (1068): exit [Wed Jul 14 05:43:00 2010] [15992:48036720] [debug] jk_map_to_storage::mod_jk.c (3609): no match for /favicon.ico found I hate top-posting but these log entries have made this email ridiculously long; plus, I'm ssh'ed into a terminal window and some emacs key strokes are intercepted locally, so editing is somewhat limited. Thanks again. mp On Wed, Jul 14, 2010 at 11:09:19AM +0200, Rainer Jung wrote: On 14.07.2010 04:57, Michael Powe wrote: Hello, Thank you for the reply. See below for comments. On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote: On 13.07.2010 23:17, Michael Powe wrote: Hello, I asked this question in the httpd list but no joy. I have set up tomcat 6 and IBM httpd server to proxy requests using mod_jk. IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at localhost Port 80 I have followed all instructions as nearly as I can make out. Since you already have trace logging enabled: - is this all that gets
Re: 404 with mod_jk
2010/7/14 Michael Powe mich...@trollope.org: VirtualHost localhost (...) # JkMount /host-manager ajp13 # JkMount /host-manager/* ajp13 JkMount /TlTaggerTest/*.jsp worker1 /VirtualHost The VirtualHost section was created by the ApacheConfig option in Tomcat. Trivial question: are you sure, that your worker name is correct (worker1 vs. ajp13). I am curious, why Tomcat-generated configuration has different worker name. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Too verbose log
Hallo! I'm using tomcat 6.0.26 and java 1.5, to cluster some tomcats. I'm getting my log filled by lines like: INFO: ThroughputInterceptor Report[ Tx Msg:438951 messages Sent:507.93 MB (total) Sent:281.97 MB (application) Time:94.91 seconds Tx Speed:5.35 MB/sec (total) TxSpeed:2.97 MB/sec (application) Error Msg:0 Rx Msg:79 messages Rx Speed:0.01 MB/sec (since 1st msg) Received:415.47 MB] Is there a way to turn it off? Thanks. Luca - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Too verbose log
From: Luca Gervasi [mailto:tom...@ashetic.net] Subject: Too verbose log I'm using tomcat 6.0.26 and java 1.5, to cluster some tomcats. I'm getting my log filled by lines like: INFO: ThroughputInterceptor Report[ Is there a way to turn it off? Set the interval attribute for the ThroughputInterceptor to a very large value: http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-interceptor.html#org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor%20Attributes - 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.
RE: Too verbose log
tuning off all entries for a log is not a good idea better off to change any LEVEL assignments from DEBUG or whatever to FATAL http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html commons logging change any LEVEL assigments from DEBUG or whatever to LOG_LEVEL_FATAL http://commons.apache.org/logging/commons-logging-1.1.1/apidocs/index.html hth Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Too verbose log From: tom...@ashetic.net To: users@tomcat.apache.org Date: Wed, 14 Jul 2010 14:48:00 +0200 Hallo! I'm using tomcat 6.0.26 and java 1.5, to cluster some tomcats. I'm getting my log filled by lines like: INFO: ThroughputInterceptor Report[ Tx Msg:438951 messages Sent:507.93 MB (total) Sent:281.97 MB (application) Time:94.91 seconds Tx Speed:5.35 MB/sec (total) TxSpeed:2.97 MB/sec (application) Error Msg:0 Rx Msg:79 messages Rx Speed:0.01 MB/sec (since 1st msg) Received:415.47 MB] Is there a way to turn it off? Thanks. Luca - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
It is jdk 1.6 from SUN java -version java version 1.6.0_20 Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode) On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider kschnei...@gmail.comwrote: You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
Well, it looks like this is the line of code being executed: return newInstance(contextPath,classLoader,Collections.String,ObjectemptyMap()); Tomcat normally dumps out at least the value of its JRE_HOME env var upon startup, can you verify that it's really using 1.6? On Wed, Jul 14, 2010 at 10:11 AM, testwreq wreq testw...@gmail.com wrote: It is jdk 1.6 from SUN java -version java version 1.6.0_20 Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode) On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider kschnei...@gmail.comwrote: You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
1. Error is complaining on the following lines of the code. Vector advVec=new Vector(); if (rs.getObject(ADVISOR) != null) { XMLType poxml = (XMLType) rs.getObject(advisor); String advisorstring = poxml.getStringVal(); // System.out.println(the advisor string in reportbeanstudent is + advisorstring); // if (!((advisorstring.equalsIgnoreCase(?xml version=\1.0\?Advisors/Advisors)) || (advisorstring.equalsIgnoreCase(?xml version=\1.0\ encoding=\UTF-8\ standalone=\yes\?Advisors/ //{ 2. JRE_HOME is not set to anything Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME: Created MBeanServer with ID: w8eg0f:gbjiotn1.0:www2.cs.sunysb.edu:1 12-Jul-10 12:18:03 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2 On Wed, Jul 14, 2010 at 10:27 AM, Kris Schneider kschnei...@gmail.comwrote: Well, it looks like this is the line of code being executed: return newInstance(contextPath,classLoader,Collections.String,ObjectemptyMap()); Tomcat normally dumps out at least the value of its JRE_HOME env var upon startup, can you verify that it's really using 1.6? On Wed, Jul 14, 2010 at 10:11 AM, testwreq wreq testw...@gmail.com wrote: It is jdk 1.6 from SUN java -version java version 1.6.0_20 Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode) On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider kschnei...@gmail.com wrote: You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 404 with mod_jk
On 14.07.2010 14:37, Konstantin Kolinko wrote: 2010/7/14 Michael Powemich...@trollope.org: VirtualHost localhost (...) #JkMount /host-manager ajp13 #JkMount /host-manager/* ajp13 JkMount /TlTaggerTest/*.jsp worker1 /VirtualHost The VirtualHost section was created by the ApacheConfig option in Tomcat. Trivial question: are you sure, that your worker name is correct (worker1 vs. ajp13). I am curious, why Tomcat-generated configuration has different worker name. The auto configuration feature of Tomcat should be deprecated. It is of no real use except for a trivial starter configuration. It *always* uses a single worker named ajp13. Because of this feature (I guess because) mod_jk has a builtin worker named ajp13, which even if no worker named ajp13 is explicitely defined tries to contact localhost at 8009 if the a URL is mounted to a worker named ajp13. Legacy stuff. Nevertheless, although the config the OP uses is not sufficient for prime time, it should work. I didn't yet have the time to compare, where exactly the log lines stop compared with a working request. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
try Collection.isEmpty()==true OR Collection.size()==0 take your pick Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 14 Jul 2010 09:56:34 -0400 Subject: Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. From: kschnei...@gmail.com To: users@tomcat.apache.org You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
How can I set the JRE_HOME? Why is it null? I am very new to this. Please point me to fix this. On Wed, Jul 14, 2010 at 10:38 AM, Martin Gainty mgai...@hotmail.com wrote: try Collection.isEmpty()==true OR Collection.size()==0 take your pick Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 14 Jul 2010 09:56:34 -0400 Subject: Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. From: kschnei...@gmail.com To: users@tomcat.apache.org You wouldn't happen to be using JDK 1.4 on CentOS, would you? The emptyMap method showed up in JDK 1.5... On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote: I have a piece of code that retrieves data from oracle database XML type. It works on tomcat installation on ubuntu. But fails on CentOS. Any ideas? java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) gdb.ProcessInput.doPost(ProcessInput.java:116) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) javax.servlet.http.HttpServlet.service( tomcat5-servlet-2.4-api-5.5.23.jar.so) Thanks,vm -- Kris Schneider - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
RE: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
From: testwreq wreq [mailto:testw...@gmail.com] Subject: Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. 2. JRE_HOME is not set to anything Which is a problem. production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2 Oops. You're using gcj, which is wholly inappropriate for serious Java work. Remove it from your system if you can. Regardless, make sure JRE_HOME or JAVA_HOME is set to a real JVM before your start Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
i have a quick jk trace question
Hi, I am looking at a trace a friend made which raised my curiosity: [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_into_msg_buff::jk_ajp_common.c (1188): enter [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_fully_from_server::jk_ajp_common.c (1140): enter - this is a 5 min gap (i think KeepAliveTimeout is set to 5 min for this test) - is this waiting for data from Apache? why would it be hanging in this routine? [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_read_fully_from_server::jk_ajp_common.c (1172): exit [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_read_into_msg_buff::jk_ajp_common.c (1226): exit [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_connection_tcp_send_message::jk_ajp_common.c (928): enter The source code for this jk version is: http://svn.apache.org/viewvc/tomcat/jk/tags/JK_1_2_26/jk/native/common/jk_ajp_common.c?view=markup any hint is appreciated Many Thanks - Fred -- View this message in context: http://old.nabble.com/i-have-a-quick-jk-trace-question-tp29162905p29162905.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
It seems there is something wrong with the setup. How do I set the JRE_HOME? Also, /gcj-4.1.2 On Wed, Jul 14, 2010 at 10:46 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: testwreq wreq [mailto:testw...@gmail.com] Subject: Re: java.lang.NoSuchMethodError: method java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found. 2. JRE_HOME is not set to anything Which is a problem. production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2 Oops. You're using gcj, which is wholly inappropriate for serious Java work. Remove it from your system if you can. Regardless, make sure JRE_HOME or JAVA_HOME is set to a real JVM before your start Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem redirecting http to https in Tomcat 4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robedan, On 7/13/2010 11:05 AM, Robedan wrote: I have an application that has a Web interface using an embeded Tomcat 4 Server. I need to make it available to users over the Internet and want to secure it with SSL. It originally worked on port 8080 but I successfully modified the SERVER.XML to make it work over port 80. I also sucessfully created an SSL connector so that if you specify https://myserver.domain.com you can access the app over SSL on port 443. The final piece of the puzzle I've been struggling with is automatically redirecting http: requests to https: All the Tomcat forums say this is pretty simple, all you need to do is add a bit of code to either the server or app's web.xml: That should be all you need (the CONFIDENTIAL bit). Can you post all active Connector elements from your conf/server.xml file? Your transport-guarantee looks good, although you mentioned that it was your conf/web.xml, which is all wrong. The web.xml file should be in your webapp's deployment directory under WEB-INF/web.xml. Tomcat loads conf/web.xml as defaults for all webapps. It's best to put webapp-specific configuration in the WEB-INF/web.xml for the specific web application. That way, if you deploy it on another container, the configuration goes with the webapp instead of staying behind in some container-specific location. Too bad about not being able to upgrade from TC 4. We were terrified of upgrading for years, and then just decided to get the process rolling. We were able to upgrade from 4.1 - 5.5 and then to 6.0 with little to no headaches at all. The webapp required no changes: only a slightly different configuration for the container itself (for instance, logging, JNDI DataSources, etc.). Your vendor needs to get with the program and start supporting a version of Tomcat that was written in the last 5 years. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw97z4ACgkQ9CaO5/Lv0PDhHgCdFBU9qqtax+WBQNd4GHZGb82m IAEAn1RhfbZfn1G3xHpHEMOfEDnCGErL =1tbU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
jsre_home is null
catalina logs are showing jre_home as null. Any ideas how to set it?
Re: i have a quick jk trace question
On 14.07.2010 16:50, fredk2 wrote: Hi, I am looking at a trace a friend made which raised my curiosity: [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_into_msg_buff::jk_ajp_common.c (1188): enter [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_fully_from_server::jk_ajp_common.c (1140): enter - this is a 5 min gap (i think KeepAliveTimeout is set to 5 min for this test) - is this waiting for data from Apache? why would it be hanging in this routine? It reads from the socket that connects the clint (=browser) with the web server (=apache). The read is going through Apache code. It hangs, because the browser doesn't send it or at least the data doesn't reach the web server. And yes, the timeout here is 300 seconds by default. It is not KeepAliveTimeout but Timeout. What's the problem? You will likely have to sniff and analyze traffic to check, whether something is coming or the web server is right in waiting for more data. If it is right (very likely), you will have to find out, whether the browser actually sends somthing and if so, where it gets lost. Try to find out, what type of request you are analyzing. Add pid and tid the the Apache accesslog and look for a maching time stamp and pid/tid combination (pid=3370, tid=4160136960) in the above log. Note that the acess log will log the time stamp the request started, so something closer to 17:49:13 in the above example, not 17:54:13. Check, whether it's a POST (e.g. a huge file upload or so), or maybe an AJAX request. [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_read_fully_from_server::jk_ajp_common.c (1172): exit [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_read_into_msg_buff::jk_ajp_common.c (1226): exit [Mon Jul 12 17:54:13.539 2010] [3370:4160136960] [trace] ajp_connection_tcp_send_message::jk_ajp_common.c (928): enter The source code for this jk version is: http://svn.apache.org/viewvc/tomcat/jk/tags/JK_1_2_26/jk/native/common/jk_ajp_common.c?view=markup any hint is appreciated Many Thanks - Fred Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem redirecting http to https in Tomcat 4
Can you post all active Connector elements from your conf/server.xml file? Attached. The web.xml file should be in your webapp's deployment directory under WEB-INF/web.xml. I've tried it there, but with the same results. This is the only application that will ever be on this server, so either should work, yes? Your vendor needs to get with the program and start supporting a version of Tomcat that was written in the last 5 years. Amen! I may end up trying what you did, but I'm not familar with Tomcat yet. I'm a quick study though... http://old.nabble.com/file/p29164626/server.xml server.xml -- View this message in context: http://old.nabble.com/Problem-redirecting-http-to-https-in-Tomcat-4-tp29151597p29164626.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Does Tomcat 7.0 support JSR-196?
On 14/07/2010 11:11, Guofeng Zhang wrote: If not, which version will support it in the future? Not yet. It is on the possible enhancement list but there hasn't been a great deal of interest to date. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem redirecting http to https in Tomcat 4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robedan, On 7/14/2010 1:29 PM, Robedan wrote: Can you post all active Connector elements from your conf/server.xml file? Attached. [inlined here:] Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Okay, that's a standard HTTP connector. If the webapp demands a transport-guarantee of CONFIDENTIAL or INTEGRAL, the connection should be automatically upgraded by Tomcat by sending the client a redirect to the same URL but with https:// and the redirectPort set above. So, if you request http://host/myapp/foo.jsp, then Tomcat should redirect to https://host/myapp/foo.jsp given the above configuration (use of the default redirectPort of 443 does not result in :443 being added to the end of the host portion, since it's the default). The above plus the transport-guarantee should be all you need. What is your experience when you use these two settings together? Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true [...] /Connector Technically, the configuration of the HTTPS connector is not relevant: Tomcat won't ever downgrade your connection for you. The web.xml file should be in your webapp's deployment directory under WEB-INF/web.xml. I've tried it there, but with the same results. What were those results? Give us an example of a URL that should redirect to a secure URL. Can you use wget or something similar to show what the server interaction is? This is the only application that will ever be on this server, so either should work, yes? Yes, either should work, but there's no reason to be sloppy, is there? Your vendor needs to get with the program and start supporting a version of Tomcat that was written in the last 5 years. Amen! I may end up trying what you did, but I'm not familiar with Tomcat yet. I'm a quick study though... Is this a custom webapp that your company owns, or is this something you've bought from someone else, and they refuse to support a newer version of Tomcat? I would imagine that security and performance would be goals worthy of their attention. Maybe they already have your money, though ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw9+7QACgkQ9CaO5/Lv0PCN5wCggQeCkCZRUwbNg8zsKcXvRzPt HAkAoIJz9mXkxJn3q9oXGQ5iTa25+weH =6NBV -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsre_home is null
--- On Wed, 7/14/10 at 10:08 AM, testwreq wreq testw...@gmail.com wrote: catalina logs are showing jre_home as null. Any ideas how to set it? Earlier, in a separate thread, you indicated that java 1.6 was installed. At the command prompt type: $ which java which should display something like: /usr/local/jdk1.6/bin/java Depending on the 'shell' you are using you should be able to use of the following commands: $ export JAVA_HOME=/usr/local/jdk1.6 $ setenv JAVA_HOME /usr/local/jdk1.6 This will only set JAVA_HOME for the current 'shell', it is not permanent. - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 404 with mod_jk
On Wed, Jul 14, 2010 at 04:37:17PM +0200, Rainer Jung wrote: On 14.07.2010 14:37, Konstantin Kolinko wrote: 2010/7/14 Michael Powemich...@trollope.org: VirtualHost localhost (...) #JkMount /host-manager ajp13 #JkMount /host-manager/* ajp13 JkMount /TlTaggerTest/*.jsp worker1 /VirtualHost The VirtualHost section was created by the ApacheConfig option in Tomcat. Trivial question: are you sure, that your worker name is correct (worker1 vs. ajp13). I am curious, why Tomcat-generated configuration has different worker name. The auto configuration feature of Tomcat should be deprecated. It is of no real use except for a trivial starter configuration. It *always* uses a single worker named ajp13. Because of this feature (I guess because) mod_jk has a builtin worker named ajp13, which even if no worker named ajp13 is explicitely defined tries to contact localhost at 8009 if the a URL is mounted to a worker named ajp13. Legacy stuff. Nevertheless, although the config the OP uses is not sufficient for prime time, it should work. I didn't yet have the time to compare, where exactly the log lines stop compared with a working request. Hello, The evolution of this process is as follows. I am updating an Apache module with some additional functionality. This module is installed in two places, one an Apache 2.0 server and the other an IBM httpd server. In both instances, Apache is serving pages in front of a Tomcat server. Additionally, the module needs to run in multiple virtual hosts. Therefore, I have to recreate the production design locally, in order to be able to install my module and test my new additions. To install mod_jk, I resorted to my good friend Google, and used a tutorial to set up the connector. In that tutorial, the method used was to create a properties file (workers.properties) which set up the worker `worker1'. Failing to get that process working, I fell back to the ApacheConfig directive, given the possibility that I might be leaving out something simple yet critical in my `hand-rolled' method. I just changed the worker name back to `worker1' because I didn't want to keep fiddling with the conf files, and `worker1' was already in place. Really, I just used ApacheConfig to get something to compare to my existing setup. I really appreciate your taking time to look at this. It is such a huge time-waster for me. I'm spending more time setting up the test environment than on my code. I'm installing a clean version of Apache, built from httpd.apache.org sources, in /usr/local in order to get around all the weird (IMO) configuration for the version installed in Ubuntu by default. At this point, I've fiddled so many things I've lost track of where I'm at. Sometimes, when you can't get something to work, it's best to return to first principles. Thanks. mp -- Michael Powemich...@trollope.orgNaugatuck CT USA And your crybaby whiny opinion would be.? pgpZDJceFOHaq.pgp Description: PGP signature
Re: Problem redirecting http to https in Tomcat 4
Robedan, I recall that we started doing the following in Tomcat 4.1: In the webapps WEB-INF/web.xml we inserted the following right before /web-app: security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint This forced http:// requests to be https:// for that webapps. I hope it works for you Regards, Dave On Jul 14, 2010, at 11:02 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robedan, On 7/14/2010 1:29 PM, Robedan wrote: Can you post all active Connector elements from your conf/server.xml file? Attached. [inlined here:] Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true/ Okay, that's a standard HTTP connector. If the webapp demands a transport-guarantee of CONFIDENTIAL or INTEGRAL, the connection should be automatically upgraded by Tomcat by sending the client a redirect to the same URL but with https:// and the redirectPort set above. So, if you request http://host/myapp/foo.jsp, then Tomcat should redirect to https://host/myapp/foo.jsp given the above configuration (use of the default redirectPort of 443 does not result in :443 being added to the end of the host portion, since it's the default). The above plus the transport-guarantee should be all you need. What is your experience when you use these two settings together? Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true [...] /Connector Technically, the configuration of the HTTPS connector is not relevant: Tomcat won't ever downgrade your connection for you. The web.xml file should be in your webapp's deployment directory under WEB-INF/web.xml. I've tried it there, but with the same results. What were those results? Give us an example of a URL that should redirect to a secure URL. Can you use wget or something similar to show what the server interaction is? This is the only application that will ever be on this server, so either should work, yes? Yes, either should work, but there's no reason to be sloppy, is there? Your vendor needs to get with the program and start supporting a version of Tomcat that was written in the last 5 years. Amen! I may end up trying what you did, but I'm not familiar with Tomcat yet. I'm a quick study though... Is this a custom webapp that your company owns, or is this something you've bought from someone else, and they refuse to support a newer version of Tomcat? I would imagine that security and performance would be goals worthy of their attention. Maybe they already have your money, though ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw9+7QACgkQ9CaO5/Lv0PCN5wCggQeCkCZRUwbNg8zsKcXvRzPt HAkAoIJz9mXkxJn3q9oXGQ5iTa25+weH =6NBV -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
test test
http://moshah-linux.corp.walmart.com/ip/3555301 -- View this message in context: http://old.nabble.com/test-test-tp29165474p29165474.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problem redirecting http to https in Tomcat 4
On 13/07/2010 21:36, Caldarale, Charles R wrote: ... since Tomcat 4 is before my time ... - Chuck :o p signature.asc Description: OpenPGP digital signature
Re: question for sso session replication in tomcat 6.0.26
On 13/07/2010 21:58, Okubo, Yasushi (TSD) wrote: -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, June 25, 2010 4:29 AM To: Tomcat Users List Subject: Re: question for sso session replication in tomcat 6.0.26 On 24/06/2010 21:49, Okubo, Yasushi (TSD) wrote: My bad. I added *.jsp to the filter since it contains the path to index page as follows. Now, I am wondering when sso session id is created and replicated, is it when index.jsp was accessed or login.jsp was accessed? You had added it and have now removed it? The normal session id is created when you access a JSP for the first time, unless you have specifically configured JSPs to not create a session. A session can also be created manually by a Filter or a Servlet. The SSO session is created when the container login process completes authentication successfully. I'm not entirely clear on when SSO replication occurs - presumably only when there's a change like session invalidation or creation. p Hi Pid I tested with the latest v6.0.28, and sso session identifier propagation has been fixed. https://issues.apache.org/bugzilla/show_bug.cgi?id=49445 Great, pleased it's working for you now. p signature.asc Description: OpenPGP digital signature
problems start cyclos in Tomcat with secutrity manager
Hello, I hope you can help. I've installed cyclos (http://project.cyclos.org) on my tomcat5.5 running on debian lenny on amd64Bit Machine. A Mail to the Cyclos Team itself gets no answer since a week and the Cyclos Forum is nearly dead :( With an disabled security manager all works fine. The Manager was disabled in /etc/init.d/tomcat5.5 With an enabled Security Manager and this code in 50user.policy all works fine too: grant { permission java.security.AllPermission; }; But otherwise I get thousand lines of Errors. Here some first lines they are specific (I think) Jul 15 05:57:33 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:33 AM org.apache.coyote.http11.Http11BaseProtocol init#012INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 15 05:57:35 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:35 AM org.apache.coyote.http11.Http11BaseProtocol init#012INFO: Initializing Coyote HTTP/1.1 on http-8443 Jul 15 05:57:35 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:35 AM org.apache.catalina.startup.Catalina load#012INFO: Initialization processed in 2966 ms Jul 15 05:57:35 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:35 AM org.apache.catalina.core.StandardService start#012INFO: Starting service Catalina Jul 15 05:57:35 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:35 AM org.apache.catalina.core.StandardEngine start#012INFO: Starting Servlet Engine: Apache Tomcat/5.5 Jul 15 05:57:35 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:35 AM org.apache.catalina.core.StandardHost start#012INFO: XML validation disabled Jul 15 05:57:38 srv097 jsvc.exec[14351]: Jul 15, 2010 5:57:38 AM org.apache.commons.modeler.Registry registerComponent#012SEVERE: Error registering Catalina:type=Valve,name=StandardContextValve,path=/banks-of-community,host=localhost#012javax.management.MBeanException: Cannot instantiate ModelMBean of class org.apache.commons.modeler.BaseModelMBean#012#011at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:385)#012#011at org.apache.commons.modeler.Registry.registerComponent(Registry.java:835)#012#011at org.apache.catalina.core.StandardPipeline.registerValve(StandardPipeline.java:302)#012#011at org.apache.catalina.core.StandardPipeline.start(StandardPipeline.java:234)#012#011at org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)#012#011at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)#012#011at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:744)#012#011at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:144)#012#011at java.security.AccessController.doPrivileged(Native Method)#012#011at org. ... Jul 15 05:57:39 srv097 jsvc.exec[14351]: [INFO] banks-of-community] - Initializing Spring root WebApplicationContext Jul 15 05:57:39 srv097 jsvc.exec[14351]: [INFO] ContextLoader - Root WebApplicationContext: initialization started Jul 15 05:57:39 srv097 jsvc.exec[14351]: [INFO] CustomWebApplicationContext - Refreshing nl.strohalm.cyclos.spring.customwebapplicationcont...@ec0a9f9: display name [Root WebApplicationContext]; startup date [Thu Jul 15 05:57:39 UTC 2010]; root of context hierarchy Jul 15 05:57:40 srv097 jsvc.exec[14351]: [INFO] XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [nl/strohalm/cyclos/spring/persistence.xml] Jul 15 05:57:40 srv097 jsvc.exec[14351]: [WARN] DefaultNamespaceHandlerResolver - Ignoring namespace handler [org.apache.cxf.transport.http_jetty.spring.NamespaceHandler]: problem with handler class file or dependent class java.lang.ExceptionInInitializerErrorjava.lang.ExceptionInInitializerError#012#011at org.apache.cxf.transport.http_jetty.spring.NamespaceHandler.init(NamespaceHandler.java:25)#012#011at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123)#012#011at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)#012#011at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:83)#012#011at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:498)#012#011at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:487)#012#011at org.springframework.beans.f ... Jul 15 05:57:42 srv097 jsvc.exec[14351]: Jul
Re: 404 with mod_jk
Michael Powe wrote: ... To install mod_jk, I resorted to my good friend Google, and used a tutorial to set up the connector. In that tutorial, the method used was to create a properties file (workers.properties) which set up the worker `worker1'. ... I'm installing a clean version of Apache, built from httpd.apache.org sources, in /usr/local in order to get around all the weird (IMO) configuration for the version installed in Ubuntu by default. At this point, I've fiddled so many things I've lost track of where I'm at. Sometimes, when you can't get something to work, it's best to return to first principles. I will not often say this, but I believe your problems may stem from the above, and that you would do better by using the pre-packaged versions of things (except Tomcat) . 1) it is hard to judge the correctness of a tutorial found on Google. The mod_jk instructions on the mod_jk pages of the Tomcat website are pretty good, and they are at least accurate and up-to-date. 2) the standard Apache packages for Debian and Ubuntu are quite good, and a lot easier to install and maintain than working everything out from scratch. I suggest the following order : apt-get install sun-java6-jdk (then Tomcat, but for Tomcat, I suggest installing it from the Tomcat site distribution) apt-get install apache2 apt-get install libapache2-mod-jk (the last 2 work out of the box and take max. 3 minutes altogether) Then you just need to add a workers.properties file and your JkMount mappings, and you'll be up and running in no time. The weird configuration things you are mentioning for Apache, are quite easy to follow once you get over the initial surprise, and are actually a clever way to facilitate enabling/disabling modules and virtual hosts. I offer to explain summarily, maybe off-list, if you have trouble there. This all does not mean that it would not be interesting to find out where your current problem is. But as Konstantin and/or Rainer mentioned, I believe the first thing would be to get out of the auto-configure thing. I do not believe that this part has been well maintained since quite a while now. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: problems start cyclos in Tomcat with secutrity manager
stefan-b wrote: Hello, I hope you can help. I've installed cyclos (http://project.cyclos.org) on my tomcat5.5 running on debian lenny on amd64Bit Machine. A Mail to the Cyclos Team itself gets no answer since a week and the Cyclos Forum is nearly dead :( With an disabled security manager all works fine. The Manager was disabled in /etc/init.d/tomcat5.5 To make a long story short, I do not think that there is any problem in disabling the security manager, if you trust the webapps that you install on your server. It is another matter entirely if you are going to allow other people to load and install webapps on it. Finding out which specific permissions you need to grant to an application which you do not entirely know, can be a long and frustrating experience, and may well come to the same thing anyway in the end, given a complex application. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 404 with mod_jk
On Thu, Jul 15, 2010 at 02:28:52AM +0200, André Warnier wrote: Michael Powe wrote: To install mod_jk, I resorted to my good friend Google, and used a tutorial to set up the connector. In that tutorial, the method used was to create a properties file (workers.properties) which set up the worker `worker1'. ... I'm installing a clean version of Apache, built from httpd.apache.org sources, in /usr/local in order to get around all the weird (IMO) configuration for the version installed in Ubuntu by default. At this point, I've fiddled so many things I've lost track of where I'm at. Sometimes, when you can't get something to work, it's best to return to first principles. I will not often say this, but I believe your problems may stem from the above, and that you would do better by using the pre-packaged versions of things (except Tomcat) 1) it is hard to judge the correctness of a tutorial found on Google. The mod_jk instructions on the mod_jk pages of the Tomcat website are pretty good, and they are at least accurate and up-to-date. True. One of them was the `quick start for the impatient' on the mod_jk doc page. 2) the standard Apache packages for Debian and Ubuntu are quite good, and a lot easier to install and maintain than working everything out from scratch. I suggest the following order : apt-get install sun-java6-jdk (then Tomcat, but for Tomcat, I suggest installing it from the Tomcat site distribution) apt-get install apache2 apt-get install libapache2-mod-jk (the last 2 work out of the box and take max. 3 minutes altogether) Then you just need to add a workers.properties file and your JkMount mappings, and you'll be up and running in no time. The weird configuration things you are mentioning for Apache, are quite easy to follow once you get over the initial surprise, and are actually a clever way to facilitate enabling/disabling modules and virtual hosts. I offer to explain summarily, maybe off-list, if you have trouble there. Well, it can't hurt for me to uninstall/reinstall to get things back to a clean configuration. Also, there's more to the weirdness of the Apache installation than just the module/vh setup. First, they've arbitrarily renamed some elements (e.g., replaced `httpd' with `apache2' in various places), which serves no useful purpose. Second, `apxs' (renamed to `apxs2') does not work correctly for compiling and installing my existing module. Maybe it works if you create one from scratch, I don't know. Nor does `apachectl' (renamed to `apache2ctl'). `apache2ctl' fails sometimes with the weird message `bad user name ${APACHE_RUN_USER}', meaning I take it that this variable is not properly exported unless you run `/etc/init.d/apache2'. Which only takes `start|stop|restart|reload' for arguments. (And setting the var in the shell does not work.) Third, you have files needed for development/admin work in /etc/apache2, /var/lib/apache2 and /usr/share/apache2 -- I mean, WTF? For me, the summary of all that is that I installed the IBM server into /opt and all the module-related stuff (apxs) and control stuff (apachectl) just works. And I'm not giving props to IBM so much as I'm saying that the design of the installation for Ubuntu was not intended for usage as a development package. /rant I'll do as you suggest regarding the OOB installation and see where I get. I spent most of today working on my module, so at least I have a feeling of progress. Thanks. mp -- Michael Powemich...@trollope.orgNaugatuck CT USA I'll carry your books, I'll carry a tune, I'll carry on, carry over, carry forward, Cary Grant, cash carry, Carry Me Back To Old Virginia, I'll even Hara Kari if you show me how, but I will *not* carry a gun. -- Hawkeye, M*A*S*H pgpA74AJDIOI1.pgp Description: PGP signature