RE: Tomcat 5.5.12 and user-agent header
Mark, Thanks - should have thought of that first. Now that I turned on LiveHTTPHeaders, I cannot get it to fail. I was able to do this consistently before. Just to be sure, I'll try again tomorrow morning. Maybe its just late. Thanks much - Richard -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 6:14 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Tomcat 5.5.12 and user-agent header Have you looked at the headers between Tomcat and your UA? Is your UA actually sending the UA header? If it is then it looks like a sitemesh problem from what you have described. There are a range of tools for looking at headers. livehttpheaders is good, as is TcpMon which is distributed as part of Axis. Mark -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 2005 12:00 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 and user-agent header Leon, Thank you for the test - but I still get a null user-agent right after the login. Here is a snippet of my code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; %@ include file=/common/taglibs.jspf% %@ page import=com.ltoj.common.Constants % html:html locale=true head %@ include file=/common/meta.jspf % titledecorator:title//title script type=text/javascript src=c:url value='/scripts/environment.js'//script script type=text/javascript src=c:url value='/scripts/util.js'//script script type=text/javascript src=c:url value='/scripts/helptip.js'//script script type=text/javascript src=c:url value='/scripts/tabs.js'//script script type=text/javascript src=c:url value='/scripts/CalendarPopup.js'//script script type=text/javascript src=c:url value='/scripts/chartWizard.js'//script link rel=stylesheet type=text/css media=all href=c:url value='/styles/default.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/messages.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/tabs.css'/ / decorator:head/ % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT='+_userAgent+'); ... Here's the sequence: 1) I issue a request to this page. 2) CMA says oh, that's protected and shows my custom login page. I get user-agent displayed fine: USER-AGENT='Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' 3) But on the next page (the original target page of the request), user-agent shows as null. USER-AGENT='null' I can refresh the page or go to any other page in my application and the user agent is fine again. The only thing a bit non-standard about this JSP page is that it is a SiteMesh decorator page. If I run the same test, same pages in Tomcat 5.5.9 I never get user-agent of null. Our application does check the user-agent header a good bit. We use Select lists with option groups - but some browsers do not support this so we simulate it by indenting the select options ourselves. Luckily all of this activity happens well after the initial login - so we are safe, now that I changed the decorator to make sure user-agent is not null before doing anything with it. But it seems other applications might be affected by this - no? Thanks again - Richard -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 1:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 5.5.12 and user-agent header Hmm, I downloaded 5.5.12 and tried the agent-header specific code with it: public void processLogin(User user, HttpServletRequest req, HttpServletResponse res) { StringBuffer info = new StringBuffer(); info.append(login ); info.append(user.getUserName()); info.append( [); info.append(user.getUserId().getPlainPresentation()); info.append(] ); info.append(user.getEmail()); info.append( ); info.append(UserHelper.getGenderDescription(user.getGender())); info.append( ); info.append(UserHelper.getStatusDescription(user.getMembership Status())); info.append( ); info.append(req.getRemoteAddr()); info.append( / ); info.append(req.getRemoteHost()); info.append( Agent: ); info.append(req.getHeader(user-agent)); log.info(info); } outcome was: 2005-10-08 15:36:50,453 INFO - login leon [6] [EMAIL PROTECTED] male premium 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.8 which I think was same behaviour as before. I took tomcat out of the box (5.5.12 tar.gz
RE: Tomcat on Windows: advantages of running as a service?
From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 11:18 To: Tomcat Users List Subject: Tomcat on Windows: advantages of running as a service? I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt. Why not use net stop servicename and net start servicename with the name of the Tomcat service? My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? If you run it as a service: you can ensure it restarts if the machine reboots unexpectedly for any reason; you can take actions if the service crashes; and you can run the service as a specified user fairly simply. If you run from the command line, you have none of these options. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on Windows: advantages of running as a service?
The net start service name and net stop service name commands will allow you to stop and start Windows services from the command line (and thus from a batch script). You can get the service name from the Services property window. On Wed, 2005-10-12 at 06:18, Tom Burke wrote: I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt. My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? The server is dedicated to tomcat, by the way. Tom Burke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat on Windows: advantages of running as a service?
Running from a service makes it a no brainer to start up tomcat when you reboot the machine as it does it automatically. Disadvantages I would see is that it hides the console and makes it difficult to changes options like JAVA_OPTS. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 12:12 To: Tomcat Users List Subject: Re: Tomcat on Windows: advantages of running as a service? The net start service name and net stop service name commands will allow you to stop and start Windows services from the command line (and thus from a batch script). You can get the service name from the Services property window. On Wed, 2005-10-12 at 06:18, Tom Burke wrote: I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to automatically shut it down restart it. One way is to control it via shutdown.bat startup.bat, and run these as scheduled tasks at (say) 3:30am and 3:31am. However, I've noticed that while shutdown.bat will shut it down if it was previously started as a service, startup.bat won't run it as a service, it starts it at a command prompt. My question is: does this matter? If I'm running on Windows are there any advantages to running Tomcat as a service? Or disadvantages to running from the command prompt? The server is dedicated to tomcat, by the way. Tom Burke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * This E-mail may be confidential and may also be legally priviledged. If you are not the intended recipient, please notify us immediately; You should not copy it or use it for any purpose, nor disclose its content to any person. E-mail may be subject to data corruption accidentally or deliberately. For this reaszon it is inappropriate to rely on advice contained in an e-mail without obtaining written confirmation of it first. Authorised and regulated by the Financial Services Authority * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.12 and user-agent header
OK - yes, it was lack of sleep that was causing the problem to not appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :( The problem is still there. I even took SiteMesh out of the picture, to make sure it was not the problem (should of done that sooner). Here are the steps: 1) Request a protected page form my app. 2) My CMA login page pops up, I enter userid and password. 3) This POST is issued when I submit it: POST /stars/auth/ j_username=user1j_password=password1login=Login 4) HTTPLiveHeaders show all of the GET requests have a user-agent set (I've included all 90 lines of them below). 5) My page that appears has the following code: % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT=+_userAgent); ... 6) And displays the following on my page: USER-AGENT=null Unless someone has other ideas I'm thinking it's a but in 5.5.12 at this point and will post it to Bugzilla. Thanks to Mark and others for their help. - Richard START OF HTTPLiveHeaders capture from the above POST: http://smartfish:8080/stars/auth/ POST /stars/auth/ HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 Content-Type: application/x-www-form-urlencoded Content-Length: 45 j_username=user1j_password=password1login=Login HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/j_security_check?j_username=user1j_password=fbc e66f99c809283638f344ecb3d50674ea64189 Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/j_security_check?j_username=user1j_password=fbc e66f99c809283638f344ecb3d50674ea64189 GET /stars/j_security_check?j_username=user1j_password=fbce66f99c809283638f344e cb3d50674ea64189 HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/HomePage.do Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/HomePage.do GET /stars/HomePage.do HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache,no-store,max-age=0 Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Language: en Content-Length: 2989 Date: Wed, 12 Oct 2005 16:33:52 GMT -- http://smartfish:8080/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/ images/cm_fill.gif GET /stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/images/cm_fill.gif HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 400 Invalid URI Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Wed, 12 Oct 2005 16:33:52 GMT Connection: close -- -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 12:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 and user-agent header Mark, Thanks - should have thought of that first. Now that I turned on LiveHTTPHeaders, I cannot get it to fail. I was able to do this consistently before
Re: Tomcat 5.5.12 and user-agent header
Does this only occur when connecting directly to Tomcat or is it also an issue when going through Apache and mod_jk? Richard Mixon wrote: OK - yes, it was lack of sleep that was causing the problem to not appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :( The problem is still there. I even took SiteMesh out of the picture, to make sure it was not the problem (should of done that sooner). Here are the steps: 1) Request a protected page form my app. 2) My CMA login page pops up, I enter userid and password. 3) This POST is issued when I submit it: POST /stars/auth/ j_username=user1j_password=password1login=Login 4) HTTPLiveHeaders show all of the GET requests have a user-agent set (I've included all 90 lines of them below). 5) My page that appears has the following code: % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT=+_userAgent); ... 6) And displays the following on my page: USER-AGENT=null Unless someone has other ideas I'm thinking it's a but in 5.5.12 at this point and will post it to Bugzilla. Thanks to Mark and others for their help. - Richard START OF HTTPLiveHeaders capture from the above POST: http://smartfish:8080/stars/auth/ POST /stars/auth/ HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 Content-Type: application/x-www-form-urlencoded Content-Length: 45 j_username=user1j_password=password1login=Login HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/j_security_check?j_username=user1j_password=fbc e66f99c809283638f344ecb3d50674ea64189 Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/j_security_check?j_username=user1j_password=fbc e66f99c809283638f344ecb3d50674ea64189 GET /stars/j_security_check?j_username=user1j_password=fbce66f99c809283638f344e cb3d50674ea64189 HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/HomePage.do Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/HomePage.do GET /stars/HomePage.do HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache,no-store,max-age=0 Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Language: en Content-Length: 2989 Date: Wed, 12 Oct 2005 16:33:52 GMT -- http://smartfish:8080/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/ images/cm_fill.gif GET /stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/images/cm_fill.gif HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 400 Invalid URI Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Wed, 12 Oct 2005 16:33:52 GMT Connection: close -- -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 12:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 and user-agent header Mark, Thanks - should
RE: Tomcat 5.5.12 and user-agent header
Have not tried it with Apache/mod_jk in front - just with Tomcat and accessing it as http://computername:8080/stars/HomePage.do . Not sure of your drift. Are you just looking for another date point (that's good) - or is there some implication as to how user-agent headers work with Tomcat standalone? Thank you - Richard -Original Message- From: Jess Holle [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 10:00 AM To: Tomcat Users List Subject: Re: Tomcat 5.5.12 and user-agent header Does this only occur when connecting directly to Tomcat or is it also an issue when going through Apache and mod_jk? Richard Mixon wrote: OK - yes, it was lack of sleep that was causing the problem to not appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :( The problem is still there. I even took SiteMesh out of the picture, to make sure it was not the problem (should of done that sooner). Here are the steps: 1) Request a protected page form my app. 2) My CMA login page pops up, I enter userid and password. 3) This POST is issued when I submit it: POST /stars/auth/ j_username=user1j_password=password1login=Login 4) HTTPLiveHeaders show all of the GET requests have a user-agent set (I've included all 90 lines of them below). 5) My page that appears has the following code: % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT=+_userAgent); ... 6) And displays the following on my page: USER-AGENT=null Unless someone has other ideas I'm thinking it's a but in 5.5.12 at this point and will post it to Bugzilla. Thanks to Mark and others for their help. - Richard START OF HTTPLiveHeaders capture from the above POST: http://smartfish:8080/stars/auth/ POST /stars/auth/ HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla in;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 Content-Type: application/x-www-form-urlencoded Content-Length: 45 j_username=user1j_password=password1login=Login HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/j_security_check?j_username=user1j_passwor d=fbc e66f99c809283638f344ecb3d50674ea64189 Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/j_security_check?j_username=user1j_passwor d=fbc e66f99c809283638f344ecb3d50674ea64189 GET /stars/j_security_check?j_username=user1j_password=fbce66f99c809283638 f344e cb3d50674ea64189 HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla in;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://smartfish:8080/stars/HomePage.do Content-Length: 0 Date: Wed, 12 Oct 2005 16:33:46 GMT -- http://smartfish:8080/stars/HomePage.do GET /stars/HomePage.do HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla in;q= 0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://smartfish:8080/stars/HomePage.do Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1 HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache,no-store,max-age=0 Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-Type: text/html;charset=UTF-8 Content-Language: en Content-Length: 2989 Date: Wed, 12 Oct 2005 16:33:52 GMT -- http://smartfish:8080/stars/WEB-INF/pages/%3C%=request.getContextPath() %%3E/ images/cm_fill.gif GET /stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/images/cm_fill.g if HTTP/1.1 Host: smartfish:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive
Re: Tomcat 5.5.12 and user-agent header
Richard Mixon wrote: Have not tried it with Apache/mod_jk in front - just with Tomcat and accessing it as http://computername:8080/stars/HomePage.do . Not sure of your drift. Are you just looking for another date point (that's good) - or is there some implication as to how user-agent headers work with Tomcat standalone? I'm wondering whether any issue that exists is Tomcat-wide or specific to the HTTP connector (or to the new AJP-based connectors for that matter). -- Jess Holle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 3.2.4
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html should be 3.2.4. Glen Steve Souza wrote: Hi folks, I'm new to the list, so I apologize in advance for any faux pas I may commit here! The question is simple - we'd like to get the 3.2.4 release of Tomcat, but do not see a download link on the Apache site. Is it archived somewhere? I know it's old, but we haven't moved to the new architecture yet. Many many thanks! Regards, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 3.2.4
http://archive.apache.org/dist/jakarta/tomcat-3/archive/v3.2.4/ -Original Message- From: Steve Souza [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 3:18 PM To: Tomcat Users List Subject: tomcat 3.2.4 Hi folks, The question is simple - we'd like to get the 3.2.4 release of Tomcat, but do not see a download link on the Apache site. Is it archived somewhere? I know - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.9 bugs?
Hi, Related to the Dreamweaver-issue: I have this problem too, after some debugging I found that Dreamweaver does not correctly update the lastmodified-timestamp on JSP-files when putting them on the server, which obviously fools the JSP-compiler into thinking that nothing has changed. This is a known issue with MM and is described at the following URL, fortunately they provide a workaround too: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=a3f38dcf#ti mestamp Good luck, Niels
RE: Tomcat 5.5.12 and user-agent header
Have you looked at the headers between Tomcat and your UA? Is your UA actually sending the UA header? If it is then it looks like a sitemesh problem from what you have described. There are a range of tools for looking at headers. livehttpheaders is good, as is TcpMon which is distributed as part of Axis. Mark -Original Message- From: Richard Mixon [mailto:[EMAIL PROTECTED] Sent: Monday, October 10, 2005 12:00 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5.5.12 and user-agent header Leon, Thank you for the test - but I still get a null user-agent right after the login. Here is a snippet of my code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; %@ include file=/common/taglibs.jspf% %@ page import=com.ltoj.common.Constants % html:html locale=true head %@ include file=/common/meta.jspf % titledecorator:title//title script type=text/javascript src=c:url value='/scripts/environment.js'//script script type=text/javascript src=c:url value='/scripts/util.js'//script script type=text/javascript src=c:url value='/scripts/helptip.js'//script script type=text/javascript src=c:url value='/scripts/tabs.js'//script script type=text/javascript src=c:url value='/scripts/CalendarPopup.js'//script script type=text/javascript src=c:url value='/scripts/chartWizard.js'//script link rel=stylesheet type=text/css media=all href=c:url value='/styles/default.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/messages.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/tabs.css'/ / decorator:head/ % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT='+_userAgent+'); ... Here's the sequence: 1) I issue a request to this page. 2) CMA says oh, that's protected and shows my custom login page. I get user-agent displayed fine: USER-AGENT='Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' 3) But on the next page (the original target page of the request), user-agent shows as null. USER-AGENT='null' I can refresh the page or go to any other page in my application and the user agent is fine again. The only thing a bit non-standard about this JSP page is that it is a SiteMesh decorator page. If I run the same test, same pages in Tomcat 5.5.9 I never get user-agent of null. Our application does check the user-agent header a good bit. We use Select lists with option groups - but some browsers do not support this so we simulate it by indenting the select options ourselves. Luckily all of this activity happens well after the initial login - so we are safe, now that I changed the decorator to make sure user-agent is not null before doing anything with it. But it seems other applications might be affected by this - no? Thanks again - Richard -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 1:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 5.5.12 and user-agent header Hmm, I downloaded 5.5.12 and tried the agent-header specific code with it: public void processLogin(User user, HttpServletRequest req, HttpServletResponse res) { StringBuffer info = new StringBuffer(); info.append(login ); info.append(user.getUserName()); info.append( [); info.append(user.getUserId().getPlainPresentation()); info.append(] ); info.append(user.getEmail()); info.append( ); info.append(UserHelper.getGenderDescription(user.getGender())); info.append( ); info.append(UserHelper.getStatusDescription(user.getMembership Status())); info.append( ); info.append(req.getRemoteAddr()); info.append( / ); info.append(req.getRemoteHost()); info.append( Agent: ); info.append(req.getHeader(user-agent)); log.info(info); } outcome was: 2005-10-08 15:36:50,453 INFO - login leon [6] [EMAIL PROTECTED] male premium 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.8 which I think was same behaviour as before. I took tomcat out of the box (5.5.12 tar.gz) and only changed the http port. regards leon On 10/8/05, Richard Mixon [EMAIL PROTECTED] wrote: I am just using the standard HTTP connector. This is on my development workstation so I don't normally run JK and Apache, except for final testing. On the developer list I did see one mention of user-agent header, but on closer inspection it appeared to be for a completely different issue. Thanks - Richard -Original
Re: Tomcat 5.5.12 and user-agent header
Hmm, I downloaded 5.5.12 and tried the agent-header specific code with it: public void processLogin(User user, HttpServletRequest req, HttpServletResponse res) { StringBuffer info = new StringBuffer(); info.append(login ); info.append(user.getUserName()); info.append( [); info.append(user.getUserId().getPlainPresentation()); info.append(] ); info.append(user.getEmail()); info.append( ); info.append(UserHelper.getGenderDescription(user.getGender())); info.append( ); info.append(UserHelper.getStatusDescription(user.getMembershipStatus())); info.append( ); info.append(req.getRemoteAddr()); info.append( / ); info.append(req.getRemoteHost()); info.append( Agent: ); info.append(req.getHeader(user-agent)); log.info(info); } outcome was: 2005-10-08 15:36:50,453 INFO - login leon [6] [EMAIL PROTECTED] male premium 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.8 which I think was same behaviour as before. I took tomcat out of the box (5.5.12 tar.gz) and only changed the http port. regards leon On 10/8/05, Richard Mixon [EMAIL PROTECTED] wrote: I am just using the standard HTTP connector. This is on my development workstation so I don't normally run JK and Apache, except for final testing. On the developer list I did see one mention of user-agent header, but on closer inspection it appeared to be for a completely different issue. Thanks - Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Friday, October 07, 2005 10:13 PM To: tomcat-user@jakarta.apache.org Subject: Re: Tomcat 5.5.12 and user-agent header Richard Mixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tested out my application on 5.5.12 yesterday and noticed one small anomally. I had a JSP in my sitemesh decorator default.jsp that ends up wrapping the login page for container managed authentication. This page had a statement String _userAgent = request.getHeader(user-agent).toLowerCase(); It gets a null-pointer exception in 5.5.12, but under 5.5.9 it runs fine. In 5.5.12, after the login succeeds then the user-agent headers appear to be there just fine, but not on the initial login page. Is this a known issue? It's certainly not a known issue. It would help a lot if you could tell us which Connector you are using at the time (e.g. HTTP/1.1, HTTP/1.1-APR, AJP/1.3, AJP/1.3-APR). Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.12 and user-agent header
Leon, Thank you for the test - but I still get a null user-agent right after the login. Here is a snippet of my code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; %@ include file=/common/taglibs.jspf% %@ page import=com.ltoj.common.Constants % html:html locale=true head %@ include file=/common/meta.jspf % titledecorator:title//title script type=text/javascript src=c:url value='/scripts/environment.js'//script script type=text/javascript src=c:url value='/scripts/util.js'//script script type=text/javascript src=c:url value='/scripts/helptip.js'//script script type=text/javascript src=c:url value='/scripts/tabs.js'//script script type=text/javascript src=c:url value='/scripts/CalendarPopup.js'//script script type=text/javascript src=c:url value='/scripts/chartWizard.js'//script link rel=stylesheet type=text/css media=all href=c:url value='/styles/default.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/messages.css'/ / link rel=stylesheet type=text/css media=all href=c:url value='/styles/tabs.css'/ / decorator:head/ % String _userAgent = request.getHeader(user-agent); out.write(USER-AGENT='+_userAgent+'); ... Here's the sequence: 1) I issue a request to this page. 2) CMA says oh, that's protected and shows my custom login page. I get user-agent displayed fine: USER-AGENT='Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' 3) But on the next page (the original target page of the request), user-agent shows as null. USER-AGENT='null' I can refresh the page or go to any other page in my application and the user agent is fine again. The only thing a bit non-standard about this JSP page is that it is a SiteMesh decorator page. If I run the same test, same pages in Tomcat 5.5.9 I never get user-agent of null. Our application does check the user-agent header a good bit. We use Select lists with option groups - but some browsers do not support this so we simulate it by indenting the select options ourselves. Luckily all of this activity happens well after the initial login - so we are safe, now that I changed the decorator to make sure user-agent is not null before doing anything with it. But it seems other applications might be affected by this - no? Thanks again - Richard -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Sunday, October 09, 2005 1:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Tomcat 5.5.12 and user-agent header Hmm, I downloaded 5.5.12 and tried the agent-header specific code with it: public void processLogin(User user, HttpServletRequest req, HttpServletResponse res) { StringBuffer info = new StringBuffer(); info.append(login ); info.append(user.getUserName()); info.append( [); info.append(user.getUserId().getPlainPresentation()); info.append(] ); info.append(user.getEmail()); info.append( ); info.append(UserHelper.getGenderDescription(user.getGender())); info.append( ); info.append(UserHelper.getStatusDescription(user.getMembershipStatus())); info.append( ); info.append(req.getRemoteAddr()); info.append( / ); info.append(req.getRemoteHost()); info.append( Agent: ); info.append(req.getHeader(user-agent)); log.info(info); } outcome was: 2005-10-08 15:36:50,453 INFO - login leon [6] [EMAIL PROTECTED] male premium 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.8 which I think was same behaviour as before. I took tomcat out of the box (5.5.12 tar.gz) and only changed the http port. regards leon On 10/8/05, Richard Mixon [EMAIL PROTECTED] wrote: I am just using the standard HTTP connector. This is on my development workstation so I don't normally run JK and Apache, except for final testing. On the developer list I did see one mention of user-agent header, but on closer inspection it appeared to be for a completely different issue. Thanks - Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Friday, October 07, 2005 10:13 PM To: tomcat-user@jakarta.apache.org Subject: Re: Tomcat 5.5.12 and user-agent header Richard Mixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tested out my application on 5.5.12 yesterday and noticed one small anomally. I had a JSP in my sitemesh decorator default.jsp that ends up wrapping the login page for container managed authentication. This page had a statement String _userAgent = request.getHeader(user-agent).toLowerCase(); It gets a null-pointer exception
RE: Tomcat 5.5.12 and user-agent header
I am just using the standard HTTP connector. This is on my development workstation so I don't normally run JK and Apache, except for final testing. On the developer list I did see one mention of user-agent header, but on closer inspection it appeared to be for a completely different issue. Thanks - Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Friday, October 07, 2005 10:13 PM To: tomcat-user@jakarta.apache.org Subject: Re: Tomcat 5.5.12 and user-agent header Richard Mixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tested out my application on 5.5.12 yesterday and noticed one small anomally. I had a JSP in my sitemesh decorator default.jsp that ends up wrapping the login page for container managed authentication. This page had a statement String _userAgent = request.getHeader(user-agent).toLowerCase(); It gets a null-pointer exception in 5.5.12, but under 5.5.9 it runs fine. In 5.5.12, after the login succeeds then the user-agent headers appear to be there just fine, but not on the initial login page. Is this a known issue? It's certainly not a known issue. It would help a lot if you could tell us which Connector you are using at the time (e.g. HTTP/1.1, HTTP/1.1-APR, AJP/1.3, AJP/1.3-APR). Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat webdav [255807:132333]
Many thanks for your email. This is an automated response acknowledging receipt. Please be advised that Badge mailing commences beginning of October 2005. Should your message require a response we will respond shortly. Regards Meridian Club -Original Message- From: Vineet Chadha [EMAIL PROTECTED] Received: 10/7/2005 5:15 PM To: tomcat-user@jakarta.apache.org Subject: tomcat webdav Hi, I am trying to configure webdav to provide web resource to multiple user. For example, inside webdav directory I create multiple user directory ( user1, user2 ,user3 ). I am authenticating users using mysql database ( authentication works fine for single user ( let us say user1) with role name user1). But it doesn't work for multiple users. Here is snippet of web.xmlfile in webapps/webdav/WEB-INF/ web.xml ( specifically security constraint I am trying to set). Please note that as specified in following XML parameters, admin and user1 are able to authenticate with database. All users/roles are correctly specificed. what i want is to provide admin access to admin for /webapps/webdav/ directory and user1 access of /webapps/webdav/user1 directory. I have created user1 directory inside webapps. security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/user1/*/url-pattern /web-resource-collection auth-constraint role-nameuser1/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config security-role description The role that is required to log in to the Manager Application /description role-nameadmin/role-name role-nameuser1/role-name /security-roleif i try webdav access through http://xxx.xxx.xxx.xxx:8080/webdav/user1 and enter username and password, it gives following error on web page: java.lang.NullPointerException org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServlet.java :1345) org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.java:1102) org.apache.catalina.servlets.DefaultServlet.serveResource( DefaultServlet.java:807) org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:335) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.java:287) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) tomcat log file indicates following: java.lang.NullPointerException at org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServle t.java:1345) at org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.ja va:1102) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultSer vlet.java:807) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.jav a:335) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.apache.catalina.servlets.WebdavServlet.service(WebdavServlet.jav a:287) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App licationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application FilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper Valve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContext Valve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentic atorBase.java:482) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve. java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve. java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa lve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja va:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav a:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc essConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndp oint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFo llowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread Pool.java:684) at java.lang.Thread.run(Thread.java:595) Please help. Can we configure webdav application to provide exclusive access of a subdirectory to multiple user ? Regards, Vineet -- Meridian Club Unit 5, Caxton Centre Porters Wood St Albans Herts UNITED KINGDOM AL3 6XT Tel: +44 1727 738855 Fax: +44
Re: Tomcat 5.5.12 and user-agent header
Richard Mixon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I tested out my application on 5.5.12 yesterday and noticed one small anomally. I had a JSP in my sitemesh decorator default.jsp that ends up wrapping the login page for container managed authentication. This page had a statement String _userAgent = request.getHeader(user-agent).toLowerCase(); It gets a null-pointer exception in 5.5.12, but under 5.5.9 it runs fine. In 5.5.12, after the login succeeds then the user-agent headers appear to be there just fine, but not on the initial login page. Is this a known issue? It's certainly not a known issue. It would help a lot if you could tell us which Connector you are using at the time (e.g. HTTP/1.1, HTTP/1.1-APR, AJP/1.3, AJP/1.3-APR). Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
We required IIS for a CGI ecommerce solution that was required. Plug and Pay I think is the company we bought it from. I came in late on the project and haven't had a lot of time to mess with it. Does Tomcat support CGI bins utalizing non-java technology? Gregg On 9/30/05, Peddireddy Srikanth [EMAIL PROTECTED] wrote: thanks for all the replies On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache Does Tomcat support CGI bins utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Manager, Session Statistics
Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Manager, Session Statistics
I suggest that the display of 30 - 40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 3:22 PM Subject: Re: Tomcat Manager, Session Statistics Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Manager, Session Statistics
Hi, documentation says: Display ... the number of currently active sessions that fall within ten-minute ranges of their actual timeout times. Actual timeout times does not mean from now, but instead in general. It does not relate to when the session has been used last time. Since all sessions of your webapp will usually use the same timeout value, they will all appear with the same interval, and the interval will be the 10 minute interval located around your timeout value (in your example the timeout is 30 minutes, so the interval is [30,40[). Of course it would be interesting to see, how many sessions are close to being expired, if they will not be used in the next n minutes. Feel free to provide a patch to org.apache.catalina.manager.ManagerServlet.java (you would need to replace getMaxInactiveInterval by getLastAccessedTime and change the computation a bit). I suggest that the display of 30 - 40 minutes:1 sessions be rethink. To me it looks misleading at best. The documentation is probably wrong as well. In the example, the newly created session shouldn't be counted. Jean-Pierre Pelletier - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, October 05, 2005 3:22 PM Subject: Re: Tomcat Manager, Session Statistics Jean-Pierre Pelletier wrote: Hi, 1) When I look at sessions statistics for an application, using https://localhost/manager/html/sessions?path=/myApplication Why does Tomcat always list the number of sessions to expired within 10 minutes as equal to the number of active sessions? Looks like a bug to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not honor acceptCount configuration variable
Any tips on this issue? -Original Message- From: Wei Zhao [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 04, 2005 11:22 AM To: tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable Hi: I am resending this question since I did not get any answer last time. We've just migrated Tomcat from version 4.06 to 5.5.9 and found that the configuration variable 'acceptCount' under 'Connector' element takes no effect. For example, if I set acceptCount to 1000 but leave maxThreads to 75, Tomcat cannot handle 500 concurrent requests. I have to increase the maxThreads to around 1000, otherwise, most of the request will be rejected by Tomcat. But you know, increase the maxThread is not an efficient way and web server should be able to keep a queue much bigger than the maximum work thread. I remember we have similar problem in Tomcat 4.0.6 and we did some code change and recompile catalina.jar ourselves to solve the probelm. I am wondering whether this issue has been resolved in Tomcat 5.5 Connector port=8900 protocol=HTTP/1.1 maxThreads=75 acceptCount=500 redirectPort=8901 enableLookups=true maxSpareThreads=75 minSpareThreads=5 connectionTimeout=5000 maxHttpHeaderSize=8192 disableUploadTimeout=true/ Thanks Wei __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? ÑÅ»¢Ãâ·ÑGÓÊÏä£ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä http://cn.mail.yahoo.com/?id=77071 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JSP problem
Liubomir I have experienced the same problem. Are you including any servlets in this JSP? Or are you using any filters? Any java type that has been pre-compiled locally, is what I am basically asking? If so, you will have a major/minor mismatch.Best to develop and compile to the same version you have running on the server. Liubomir Dokov wrote: Hi, I am using Tomcat and I have the following problem: when I develop and test my applications on my local computer everything is OK. But a few days ago, when I uploaded my .war file to the server where I host my domain something is wrong. A request to the first(index.jsp) page returns nothing in response. No exceptions, nothing. Just a blank page. I am using Tomcat 5.0.28 and JDK 1.5.0_02. On the server they have Tomcat 4.1 and JDK 1.4. I tried them locally and they work fine as well. Does anyone have idea what's wrong? Months ago I had a similar issue with another web application when upgrading from Tomcat 5.0.28 to 5.5.8. It was working with 5.0.28 and a blank page with the new one. Another thing to consider is that I am using Windows XP and on the server they are using Linux (Fedora Core). Could this have something to do with my problem? Please, help! -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers emotionalize.conceptualize.visualize.realize Landlines Tel: +27125468436 Fax: +27125468436 Web email:[EMAIL PROTECTED] Global: www.volume4.com Messenger Yahoo!: v_olume4 AOL: v0lume4 MSN: [EMAIL PROTECTED] We support OpenSource Get Firefox!- The browser reloaded - http://www.mozilla.org/products/firefox/ The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error, please contact the sender and please delete all traces of this material from all devices. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
Dear Chuck, your mail is very informative. We r facing a similar issue in our organization :: Tomcat or Apache+tomcat. And the supporters of Apache+tomcat are arguing that as Apache/IIS can make use of native OS (windows inour case) libraries for thread management , memory mangement etc, they will fare well under high loads. And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? thanx for any kind of info in this regard. Regards Srikanth On 9/20/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does that matter if every single request has to go to Tomcat because the data is dynamic? Think about it: How could adding path length and latency for every request improve performance? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Job security perhaps? Also increased stress levels, if you enjoy that sort of thing. Unless there's something specific for httpd or IIS to do (e.g., poor man's load balancing), simplify your life and leave them out. Check out Peter Lin's performance measurements for just static content, and you may decide you don't need httpd or IIS for that, either. http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
Peddireddy Srikanth wrote: And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? The statement for threads is probably valid if you read some Java 1.1 book. From version 1.2 Java uses platform native threads. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
We had the same discussion a year ago, as we switched to tomcat 5 and was testing whether we do need apache in front of it. Actually the only advantage for this solution left were apache mods like url-rewriting - http://mydomain - http://mydomain/myapp/mypath - better for some search engines and so on. mod_gzip - now supported by tomcat directly. But this isn't worth installing an apache. The real problem with serving static content that tomcat has is the thread-model - one thread per connection is a bit messy if you have http 1.1 (keep-alives) on. But apache has the same issue. So if you have a log of static content to serve I'd strongly suggest you put a squid in front of your tomcats instead of apache (iis is a joke anyway). regards leon On 9/30/05, Mladen Turk [EMAIL PROTECTED] wrote: Peddireddy Srikanth wrote: And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? The statement for threads is probably valid if you read some Java 1.1 book. From version 1.2 Java uses platform native threads. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat caching issue
Based on everything written so far - there is no evidence tomcat would be chaching anything. I'd suggest placing as much debug code in your code as possible via a logging pacakge such as log4j/commons-logging so the log information can be turned on via configuration directives. -Tim Santosh Asbe wrote: Hi All, I need your help for this problem very urgently. I have tomcat 4.1.30 on Linux. It servers as a web server and contains only JSP Servlets. We make a remote call to Websphere Application Server ( on AIX) using corbaloc like 'corbaloc::ip1:2809:ip2:2809'. Now when i one of my App server fails, the other App Server server should take over. This work when i use a simple java client on the Linux machine, the failover occurs. But when i use my application in tomcat, this does not work. I am using a Service locator ( singleton) which makes the initial call to App Server and stores in the ip cache. initially we that the issue was with the Service locator, but then even if i don't use this Service Locator, the problem persists. We have talked to IBM and they say that the tomcat does some caching and the problem is not with the App Server. Has anyone faced this issue? Can anyone help regarding this and how can i know how and where the caching is done? Can this issue be resolved. If any other information is required, i will be glad to provide with the same. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
thanks for all the replies On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + sysdeo plugin + eclipse 3.1
Jilles van Gurp wrote: I'm not sure this is the right place for this question but I assume more tomcat users use the sysdeo plugin to launch tomcat. The issue is that my WEB-INF/classes directory of my web application is not on the classpath if I launch tomcat using the sysdeo plugin. This used to work fine but for some reason it is broken now. I use this directory to load some configuration files. I have multiple web applications in one tomcat installation so I can't just add the directories to the global classpath. Of course the application works fine outside eclipse. I've tried to use other plugins (e.g. the webtools tomcat launcher) but these all insist on copying and moving files instead of just accepting my working highly tweaked tomcat configuration (without manager). Sysdeo is nice because you can just point it to the server.xml and it will launch tomcat in the debugger, which is all I want. Any suggestions for replacing sysdeo or fixing the problem would be much appreciated. Regards, Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ah figured it out! For the interested: do not add any projects to the tomcat classpath. Apparently this confuses things. After all if you properly configured tomcat already, this shouldn't be necessary anyway. Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat exception handling
thanks. that is what I am looking for. James - Original Message - From: Alon Belman [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; James Cowan [EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:41 PM Subject: Re: tomcat exception handling you want to define an error page in your web.xml. try adding something like the following: error-page error-code500/error-code location/yourErrorPage.html/location /error-page On 9/23/05, James Cowan [EMAIL PROTECTED] wrote: thanks for the reply. I tried that but it does not seem to make any difference. what version of tomcat are you using? James - Original Message - From: Jilles van Gurp [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, September 22, 2005 5:33 PM Subject: Re: tomcat exception handling swallowoutput=true in your context should help Jilles James Cowan wrote: Hi How do I suppress the stack trace from exception handling globally ( i.e. not using an errorPage directive)? I have tried setting the Verbosity of the Logger elements in the server.xml (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace. A simple jsp like this: % if (true) throw new Exception(Some exception); % produces this output: exception javax.servlet.ServletException: Some exception org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextI mpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImp l.java:758) org.apache.jsp.e_jsp._jspService(e_jsp.java:53) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I just want the HTTP 500 error displayed and no more information. James Cowan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat start exception
Thanks very much for your big help. After adding the attribute, catalina.out has no exception when server startup. But the same exception now is appearing when server shutdown. In addition, if I try to access server's manager page, catalina.out records exception as: An exception or error occurred in the container during the request processing java.lang.NoSuchFieldError: debug I still unable to access the manager page, just a broken link. Do you have some ideal of that? Julia 9/25/2005 3:29:12 PM If you add the attribute channelSocket.soLinger=-1 to your AJP/1.3 Connector element in server.xml, it should make the error go away. It's beyond me why Sun has decided to throw an exception here. Jun Zhu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am trying to configure a customRealm for the sever. The customRealm.jar file was placed in the directory of $Tomcat_Home/server/lib. The realm in the server.xml has been defined as: Realm className=edu.aces.realm.JDBCUnixRealm connectionName= connectionPassword=XXX connectionURL=jdbc:mysql://oscar.acesag.auburn.edu:3306/authenticate driverName=org.gjt.mm.mysql.Driver roleNameCol=role_name userCredCol=user_pass userNameCol=user_name userRoleTable=tomcat_user_roles userTable=tomcat_users validate=true / After starting tomcat, I can see tomcat page via IE browser, but when click on Tomcat Manager, just got a blank page. I got exception in catalina.out as: WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$ at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$ at java.lang.Thread.run(Thread.java:595) In most case this exception means The server is not running (nobody is listening on the specified port) or The host is not reachable. Is there any additional configuration I missed? How to fix this problem? Please help. Julia Zhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat working directory
Bill, Thanks for the insight. But it still didn't work. Also the gui interface comes with Startup/Working Path disabled. I could change the path through command line //US//Tomcat5 --StartPath working_dir. Once I do this the GUI interface shows me the Working Path set to the new one, but the edit box is still disabled. I am actually upgrading from tomcat 3 to 5.0.28. I could do this in tomcat 3 using TOMCAT_HOME under wrapper.properties. So I do not know what is the equivalent for tomcat5. ( I tried setting CATALINE_HOME under environment variables, but no luck ). Let me be clear here, All I want to do is when a jsp page is accessed the following code should show me my working(.) directory as CATALINA_HOME instead of C:\Windows\System32. Somefile.jsp - % System.out.println(Current Dir: + new File(.).getAbsolutePath()); % Thanks again, ~Samit Paul -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Saturday, September 24, 2005 9:43 PM To: tomcat-user@jakarta.apache.org Subject: Re: Tomcat working directory The easiest way to to open up the nice GUI (If it isn't in the System-Tray or the Start menu, then it's usually at $CATALINA_HOME\bin\tomcat5w.exe), open the Startup tab, fill-in the Working Path box, and click 'OK'. Then restart the service. It's also possible to do this from the command line, but I'll leave that as an exercise for people that have actually read the commons-daemon FM. Samit Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How do I set tomcat-5's working directory to something other than C:\Windows\System32 when it is run as windows (XP) service . Even if I set CATALINA_HOME to point to the tomcat installation directory it doesn't take it. Everything works great if I run tomcat from the command line using tomcat's startup.bat file. Any help would be appreciated. ~Samit Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat start exception
If you add the attribute channelSocket.soLinger=-1 to your AJP/1.3 Connector element in server.xml, it should make the error go away. It's beyond me why Sun has decided to throw an exception here. Jun Zhu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a Tomcat5.5.9 server that works fine with JDBCRealm. I am trying to configure a customRealm for the sever. The customRealm.jar file was placed in the directory of $Tomcat_Home/server/lib. The realm in the server.xml has been defined as: Realm className=edu.aces.realm.JDBCUnixRealm connectionName= connectionPassword=XXX connectionURL=jdbc:mysql://oscar.acesag.auburn.edu:3306/authenticate driverName=org.gjt.mm.mysql.Driver roleNameCol=role_name userCredCol=user_pass userNameCol=user_name userRoleTable=tomcat_user_roles userTable=tomcat_users validate=true / After starting tomcat, I can see tomcat page via IE browser, but when click on Tomcat Manager, just got a blank page. I got exception in catalina.out as: WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.j$ at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:852) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread$ at java.lang.Thread.run(Thread.java:595) In most case this exception means The server is not running (nobody is listening on the specified port) or The host is not reachable. Is there any additional configuration I missed? How to fix this problem? Please help. Julia Zhu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat working directory
The easiest way to to open up the nice GUI (If it isn't in the System-Tray or the Start menu, then it's usually at $CATALINA_HOME\bin\tomcat5w.exe), open the Startup tab, fill-in the Working Path box, and click 'OK'. Then restart the service. It's also possible to do this from the command line, but I'll leave that as an exercise for people that have actually read the commons-daemon FM. Samit Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How do I set tomcat-5's working directory to something other than C:\Windows\System32 when it is run as windows (XP) service . Even if I set CATALINA_HOME to point to the tomcat installation directory it doesn't take it. Everything works great if I run tomcat from the command line using tomcat's startup.bat file. Any help would be appreciated. ~Samit Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JVM using 99.9% cpu
It looks more like an infinite loop. There are issues with tomcat, which causes infinite loops (see http://issues.apache.org/bugzilla/show_bug.cgi?id=36541) , but there are also chances that you simply programmed one yourself in your code. To check this, next time you tomcat has 99% cpu time, don't shut it down but kill -quit tomcats_pid. It will then print a complete stack-trace in the catalina.out (this isn't tomcat's feature, but jvm's). Use the stacktrace to detect infinite loops. regards Leon On 9/23/05, Azariah Jeyakumar [EMAIL PROTECTED] wrote: Hi, Has anyone seen Tomcat JVM using 99.9% cpu when there is no HTTP load at all? The JSP pages are accessible fine without any loss in functionality, but the machine is sluggish (expectedly, as the JVM is using all the CPU). If tomcat is restarted, the problem goes away and the CPU usage returns to normal. I have not been able to reproduce the problem at will. It has been noticed only twice or so in the past week, out of hundreds of attempts. I have seen other posts asking to tweak the settings like socket_* in workers.properties files. But since I have not been able to reproduce the problem at will, I am hesitant to change the parameters, not knowing which change will fix the problem. Thanks for any input or pointers on: - the nature of the problem that causes this 99.9% CPU usage - how to reproduce the problem - what parameters should be set in workers.properties file or elsewhere to avoid this problem in the future. I am using Tomcat 5.0.28, Apache 2.x, jk2, Sun JRE 1.4.2_08 on Suse Linux Enterprise Server (SLES 9 SP2). Thanks Azariah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JVM using 99.9% cpu
Most likely the garbage collector causes your CPU load. At some point there is not enough memory and the collector tries to free some of it and tries and tries and tries. Usually your server runs fine even with this CPU load, it even sends quick responses (the collector has a low priority), but it results sooner or later in an out of memory exception. We had the same problem and the solution was not so obvious (for me at least). The memory leak we experienced was a String.substring() and String.trim() problem. These methodes do not create new Strings instead they point into the underlying char-array of the original String. The consequence is that the original string can not be freed until all substrings and trims are freed. If you are using caches, static strings - check this. And, by the way: all is fine if you are using new String(str.substring()). It is well documented in the bug parade. Azariah Jeyakumar wrote: Hi, Has anyone seen Tomcat JVM using 99.9% cpu when there is no HTTP load at all? The JSP pages are accessible fine without any loss in functionality, but the machine is sluggish (expectedly, as the JVM is using all the CPU). If tomcat is restarted, the problem goes away and the CPU usage returns to normal. I have not been able to reproduce the problem at will. It has been noticed only twice or so in the past week, out of hundreds of attempts. I have seen other posts asking to tweak the settings like socket_* in workers.properties files. But since I have not been able to reproduce the problem at will, I am hesitant to change the parameters, not knowing which change will fix the problem. Thanks for any input or pointers on: - the nature of the problem that causes this 99.9% CPU usage - how to reproduce the problem - what parameters should be set in workers.properties file or elsewhere to avoid this problem in the future. I am using Tomcat 5.0.28, Apache 2.x, jk2, Sun JRE 1.4.2_08 on Suse Linux Enterprise Server (SLES 9 SP2). Thanks Azariah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JVM using 99.9% cpu
Hi Jost, do you have any bug numbers concerning the OOM-issue with String.trim() and substring at hand? cheers, Ingo Jost Richstein schrieb: Most likely the garbage collector causes your CPU load. At some point there is not enough memory and the collector tries to free some of it and tries and tries and tries. Usually your server runs fine even with this CPU load, it even sends quick responses (the collector has a low priority), but it results sooner or later in an out of memory exception. We had the same problem and the solution was not so obvious (for me at least). The memory leak we experienced was a String.substring() and String.trim() problem. These methodes do not create new Strings instead they point into the underlying char-array of the original String. The consequence is that the original string can not be freed until all substrings and trims are freed. If you are using caches, static strings - check this. And, by the way: all is fine if you are using new String(str.substring()). It is well documented in the bug parade. Azariah Jeyakumar wrote: Hi, Has anyone seen Tomcat JVM using 99.9% cpu when there is no HTTP load at all? The JSP pages are accessible fine without any loss in functionality, but the machine is sluggish (expectedly, as the JVM is using all the CPU). If tomcat is restarted, the problem goes away and the CPU usage returns to normal. I have not been able to reproduce the problem at will. It has been noticed only twice or so in the past week, out of hundreds of attempts. I have seen other posts asking to tweak the settings like socket_* in workers.properties files. But since I have not been able to reproduce the problem at will, I am hesitant to change the parameters, not knowing which change will fix the problem. Thanks for any input or pointers on: - the nature of the problem that causes this 99.9% CPU usage - how to reproduce the problem - what parameters should be set in workers.properties file or elsewhere to avoid this problem in the future. I am using Tomcat 5.0.28, Apache 2.x, jk2, Sun JRE 1.4.2_08 on Suse Linux Enterprise Server (SLES 9 SP2). Thanks Azariah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- PIRONET NDH AG Dipl. Inf. Ingo Rockel - Produktentwicklung Maarweg 149-161, 50825 Koeln Tel.: +49 (0)221-770-1788 / Fax: +49 (0)221-770-1005 mailto:[EMAIL PROTECTED] - http://www.pironet-ndh.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JVM using 99.9% cpu
For more information see: http://fishbowl.pastiche.org/2005/04/27/the_string_memory_gotcha http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294060 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513622 Ingo Rockel wrote: Hi Jost, do you have any bug numbers concerning the OOM-issue with String.trim() and substring at hand? cheers, Ingo Jost Richstein schrieb: Most likely the garbage collector causes your CPU load. At some point there is not enough memory and the collector tries to free some of it and tries and tries and tries. Usually your server runs fine even with this CPU load, it even sends quick responses (the collector has a low priority), but it results sooner or later in an out of memory exception. We had the same problem and the solution was not so obvious (for me at least). The memory leak we experienced was a String.substring() and String.trim() problem. These methodes do not create new Strings instead they point into the underlying char-array of the original String. The consequence is that the original string can not be freed until all substrings and trims are freed. If you are using caches, static strings - check this. And, by the way: all is fine if you are using new String(str.substring()). It is well documented in the bug parade. Azariah Jeyakumar wrote: Hi, Has anyone seen Tomcat JVM using 99.9% cpu when there is no HTTP load at all? The JSP pages are accessible fine without any loss in functionality, but the machine is sluggish (expectedly, as the JVM is using all the CPU). If tomcat is restarted, the problem goes away and the CPU usage returns to normal. I have not been able to reproduce the problem at will. It has been noticed only twice or so in the past week, out of hundreds of attempts. I have seen other posts asking to tweak the settings like socket_* in workers.properties files. But since I have not been able to reproduce the problem at will, I am hesitant to change the parameters, not knowing which change will fix the problem. Thanks for any input or pointers on: - the nature of the problem that causes this 99.9% CPU usage - how to reproduce the problem - what parameters should be set in workers.properties file or elsewhere to avoid this problem in the future. I am using Tomcat 5.0.28, Apache 2.x, jk2, Sun JRE 1.4.2_08 on Suse Linux Enterprise Server (SLES 9 SP2). Thanks Azariah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat JVM using 99.9% cpu
Very interesting links, thanx a lot :) Jost Richstein schrieb: For more information see: http://fishbowl.pastiche.org/2005/04/27/the_string_memory_gotcha http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294060 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513622 Ingo Rockel wrote: Hi Jost, do you have any bug numbers concerning the OOM-issue with String.trim() and substring at hand? cheers, Ingo Jost Richstein schrieb: Most likely the garbage collector causes your CPU load. At some point there is not enough memory and the collector tries to free some of it and tries and tries and tries. Usually your server runs fine even with this CPU load, it even sends quick responses (the collector has a low priority), but it results sooner or later in an out of memory exception. We had the same problem and the solution was not so obvious (for me at least). The memory leak we experienced was a String.substring() and String.trim() problem. These methodes do not create new Strings instead they point into the underlying char-array of the original String. The consequence is that the original string can not be freed until all substrings and trims are freed. If you are using caches, static strings - check this. And, by the way: all is fine if you are using new String(str.substring()). It is well documented in the bug parade. Azariah Jeyakumar wrote: Hi, Has anyone seen Tomcat JVM using 99.9% cpu when there is no HTTP load at all? The JSP pages are accessible fine without any loss in functionality, but the machine is sluggish (expectedly, as the JVM is using all the CPU). If tomcat is restarted, the problem goes away and the CPU usage returns to normal. I have not been able to reproduce the problem at will. It has been noticed only twice or so in the past week, out of hundreds of attempts. I have seen other posts asking to tweak the settings like socket_* in workers.properties files. But since I have not been able to reproduce the problem at will, I am hesitant to change the parameters, not knowing which change will fix the problem. Thanks for any input or pointers on: - the nature of the problem that causes this 99.9% CPU usage - how to reproduce the problem - what parameters should be set in workers.properties file or elsewhere to avoid this problem in the future. I am using Tomcat 5.0.28, Apache 2.x, jk2, Sun JRE 1.4.2_08 on Suse Linux Enterprise Server (SLES 9 SP2). Thanks Azariah - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- PIRONET NDH AG Dipl. Inf. Ingo Rockel - Produktentwicklung Maarweg 149-161, 50825 Koeln Tel.: +49 (0)221-770-1788 / Fax: +49 (0)221-770-1005 mailto:[EMAIL PROTECTED] - http://www.pironet-ndh.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat exception handling
thanks for the reply. I tried that but it does not seem to make any difference. what version of tomcat are you using? James - Original Message - From: Jilles van Gurp [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, September 22, 2005 5:33 PM Subject: Re: tomcat exception handling swallowoutput=true in your context should help Jilles James Cowan wrote: Hi How do I suppress the stack trace from exception handling globally (i.e. not using an errorPage directive)? I have tried setting the Verbosity of the Logger elements in the server.xml (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace. A simple jsp like this: % if (true) throw new Exception(Some exception); % produces this output: exception javax.servlet.ServletException: Some exception org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:758) org.apache.jsp.e_jsp._jspService(e_jsp.java:53) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I just want the HTTP 500 error displayed and no more information. James Cowan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Out of Memory - Host appBase related
Hi Kamala, Try http://jakarta.apache.org/tomcat/faq/memory.html Usually it is the -X settings you need to play with. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: When starting tomcat it is running Out of Memory. There were three Hosts in server.xml file pointing to same appBase. If I remove one of the Hosts or if I change appBase the problem is disappearing. Do you know why? Your explanation will be greatly appreciated. Thanks Kamala __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Out of Memory - Host appBase related
Hi Assaf Thanks for the mail. I used the site you sent me to Check the following - The ram on my system is 128MB. - The out of memory problem is showing up way before system is running out of threshold. Is it possible the out of memory is coming because the system ran out of file descriptors. I vaguely remember some one at work noticing this problem on linix boxes running tomcat. Appreciate your thoughts on this matter. Thanks Kamala -Original Message- From: Assaf [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:38 AM To: Tomcat Users List Subject: Re: Tomcat Out of Memory - Host appBase related Hi Kamala, Try http://jakarta.apache.org/tomcat/faq/memory.html Usually it is the -X settings you need to play with. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: When starting tomcat it is running Out of Memory. There were three Hosts in server.xml file pointing to same appBase. If I remove one of the Hosts or if I change appBase the problem is disappearing. Do you know why? Your explanation will be greatly appreciated. Thanks Kamala __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Out of Memory - Host appBase related
if ((your code does not leak memory) and (you use struts) and (you use tomcat manager/ant task to deploy/undeploy your web app) and !(you use tomcat 5.5.9/+)) { Upgrade_to_5.5.9/+; } -Original Message- From: Vadlamudi, Kamala [mailto:[EMAIL PROTECTED] Sent: September 23, 2005 10:57 AM To: Tomcat Users List Subject: RE: Tomcat Out of Memory - Host appBase related Hi Assaf Thanks for the mail. I used the site you sent me to Check the following - The ram on my system is 128MB. - The out of memory problem is showing up way before system is running out of threshold. Is it possible the out of memory is coming because the system ran out of file descriptors. I vaguely remember some one at work noticing this problem on linix boxes running tomcat. Appreciate your thoughts on this matter. Thanks Kamala -Original Message- From: Assaf [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:38 AM To: Tomcat Users List Subject: Re: Tomcat Out of Memory - Host appBase related Hi Kamala, Try http://jakarta.apache.org/tomcat/faq/memory.html Usually it is the -X settings you need to play with. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: When starting tomcat it is running Out of Memory. There were three Hosts in server.xml file pointing to same appBase. If I remove one of the Hosts or if I change appBase the problem is disappearing. Do you know why? Your explanation will be greatly appreciated. Thanks Kamala __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:433417fb270111440213224!
RE: Tomcat Out of Memory - Host appBase related
It's possible. I think I saw something about it on the running.txt file. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: Hi Assaf Thanks for the mail. I used the site you sent me to Check the following - The ram on my system is 128MB. - The out of memory problem is showing up way before system is running out of threshold. Is it possible the out of memory is coming because the system ran out of file descriptors. I vaguely remember some one at work noticing this problem on linix boxes running tomcat. Appreciate your thoughts on this matter. Thanks Kamala -Original Message- From: Assaf [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:38 AM To: Tomcat Users List Subject: Re: Tomcat Out of Memory - Host appBase related Hi Kamala, Try http://jakarta.apache.org/tomcat/faq/memory.html Usually it is the -X settings you need to play with. Assaf --- Vadlamudi, Kamala [EMAIL PROTECTED] wrote: When starting tomcat it is running Out of Memory. There were three Hosts in server.xml file pointing to same appBase. If I remove one of the Hosts or if I change appBase the problem is disappearing. Do you know why? Your explanation will be greatly appreciated. Thanks Kamala __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat exception handling
you want to define an error page in your web.xml. try adding something like the following: error-page error-code500/error-code location/yourErrorPage.html/location /error-page On 9/23/05, James Cowan [EMAIL PROTECTED] wrote: thanks for the reply. I tried that but it does not seem to make any difference. what version of tomcat are you using? James - Original Message - From: Jilles van Gurp [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, September 22, 2005 5:33 PM Subject: Re: tomcat exception handling swallowoutput=true in your context should help Jilles James Cowan wrote: Hi How do I suppress the stack trace from exception handling globally ( i.e. not using an errorPage directive)? I have tried setting the Verbosity of the Logger elements in the server.xml (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace. A simple jsp like this: % if (true) throw new Exception(Some exception); % produces this output: exception javax.servlet.ServletException: Some exception org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextI mpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImp l.java:758) org.apache.jsp.e_jsp._jspService(e_jsp.java:53) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java :292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I just want the HTTP 500 error displayed and no more information. James Cowan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat and JMS
Stas, The original link gave a 404 error, but there is this article on the OnJava site that may shed a little more light for you. http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html I hope this helps. Regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and JMS
Hi ! Thanks for your resnonce. I saw that article at ONJava.com. They use standalone openJMS server. I'm interested in embedded. Broken link ? Maybe... However, it's not much info there. Overview The Embedded connector enables OpenJMS clients to connect to an embedded OpenJMS server, i.e. a server running in the same JVM as the clients. This avoids the overhead of network serialization. Using the Embedded Connector To connect to an embedded OpenJMS server, construct an InitialContext as follows: Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY, org.exolab.jms.jndi.InitialContextFactory); properties.put(Context.PROVIDER_URL, embedded://); Context context = new InitialContext(properties); Strange, but I can't find any info about integrating into tomcat. On 9/22/05, Jason Bell [EMAIL PROTECTED] wrote: Stas, The original link gave a 404 error, but there is this article on the OnJava site that may shed a little more light for you. http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html I hope this helps. Regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat and JMS
Hi ! Thanks for your resnonce. I saw that article at ONJava.com. They use standalone openJMS server. I'm interested in embedded. I was Googling around, I have to admit, as I found your posting very interesting. I've downloaded OpenJMS and will try and have a play when I have half an hour to do so. Not too sure when that will happen, possibly over the weekend. Kind regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and firefox ssl problem - no common encryption algorithms
Lyndon Tiu wrote: Hello, I am using on server: - Tomcat 5.5.9 downloaded from Apache Tomcat website. - Tried both Java 1.4.2_09(using tomcat compat packages) and Java 1.5.0_03 - RH ES3 on client: - Firefox 1.0.6 - RH WS3 I have done ssl on Tomcat 4.x and 5.0.x a few times before with no problems and I am surprised to find this issue today. No error messages in Tomcat logs but Firefox complains about: Firefox and server host name cannot cummunicate securely because they have no common encryption algorithms. Have you set up a keystore with at least a self-signed certificate? Have you explicitly set the sslProtocol attribute in your SSL connector (despite the docs this is necessary in 5.5.9, fixed thereafter) Connector ... sslProtocol=TLS ... Have you tried another browser in case you get a more helpful message (what Firefox said is not true)? cheers Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/Sep/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and firefox ssl problem - no common encryption algorithms
On Thu, 22 Sep 2005 14:40:25 0100 [EMAIL PROTECTED] wrote: Lyndon Tiu wrote: Hello, I am using on server: - Tomcat 5.5.9 downloaded from Apache Tomcat website. - Tried both Java 1.4.2_09(using tomcat compat packages) and Java 1.5.0_03 - RH ES3 on client: - Firefox 1.0.6 - RH WS3 I have done ssl on Tomcat 4.x and 5.0.x a few times before with no problems and I am surprised to find this issue today. No error messages in Tomcat logs but Firefox complains about: Firefox and server host name cannot cummunicate securely because they have no common encryption algorithms. Have you set up a keystore with at least a self-signed certificate? Yes. Have you explicitly set the sslProtocol attribute in your SSL connector (despite the docs this is necessary in 5.5.9, fixed thereafter) Connector ... sslProtocol=TLS ... Yes. Have you tried another browser in case you get a more helpful message (what Firefox said is not true)? IE 6. Gave me that generic page cannot be displayed error. cheers As I said, I have done this successfully before and I am baffled that it is not working fo me now. Thanks. Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.4/109 - Release Date: 21/Sep/2005 -- Lyndon Tiu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and JMS
Try something like: try { EmbeddedJmsServer server = new EmbeddedJmsServer(config); Thread serverThread = new Thread( server ); server.init(); serverThread.start(); } catch (Throwable e) { // do nothing e.printStackTrace(); } On 9/22/05 9:28 AM, Jason Bell [EMAIL PROTECTED] wrote: Hi ! Thanks for your resnonce. I saw that article at ONJava.com. They use standalone openJMS server. I'm interested in embedded. I was Googling around, I have to admit, as I found your posting very interesting. I've downloaded OpenJMS and will try and have a play when I have half an hour to do so. Not too sure when that will happen, possibly over the weekend. Kind regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dov Rosenberg Conviveon/Inquira Knowledge Management Experts http://www.conviveon.com http://www.inquira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and firefox ssl problem - no common encryption algorithms
As I said, I have done this successfully before and I am baffled that it is not working fo me now. Perhaps you need send your server.xml along so others can see what you've done. It definitely works with Firefox and IE on 5.5.9 David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat exception handling
swallowoutput=true in your context should help Jilles James Cowan wrote: Hi How do I suppress the stack trace from exception handling globally (i.e. not using an errorPage directive)? I have tried setting the Verbosity of the Logger elements in the server.xml (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace. A simple jsp like this: % if (true) throw new Exception(Some exception); % produces this output: exception javax.servlet.ServletException: Some exception org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:758) org.apache.jsp.e_jsp._jspService(e_jsp.java:53) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 24) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) I just want the HTTP 500 error displayed and no more information. James Cowan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat and firefox ssl problem - no common encryption algorithms
Problem solved. I was generating ssl certs with openssl and apparently, I needed to use keytool. Thanks. On Thu, 22 Sep 2005 09:03:52 -0700 tomcat-user@jakarta.apache.org wrote: As I said, I have done this successfully before and I am baffled that it is not working fo me now. Perhaps you need send your server.xml along so others can see what you've done. It definitely works with Firefox and IE on 5.5.9 David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lyndon Tiu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat restart ptoblem
What's the system? Windows, Linux/Unix? Tom - Original Message - From: mukesh [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, September 21, 2005 11:12 AM Subject: tomcat restart ptoblem Hi friends, I have installed Tomcat 5.5. It was working fine but my system has got restarted and then onwards I am not able to restart the server. What could be the reasons? (Sorry if this question have been already asked) Please advice. Regards, Mukesh Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 and Apache 2.0
Please remove me from this list..it is a mistake. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat cant see my application folder HELP!!!
Tomcat is not exactly httpd. So, try to READ some FREE docs on the website. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Viorel Dragomir . .. --- - Original Message - From: Mbah Tenjoh-Okwen To: Tomcat Users List ; [EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 14:19 Subject: Tomcat cant see my application folder HELP!!! hello Im using tomcat 5.5.9 and when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing http://localhost:8080/mine; in my browser.The container says The requested resource (/kopie/) is not available (ie i get a 404 http error report). on the other hand accessing the index.html file and servlet examples in the servlets-examples folder does not pose a problem. i could even duplicate this folder, reanme it and access its index.html file without anyproblem but as soon as i modify the DD (deployment descriptor) i cant view the index.html file, let alone access the servlets. thanks ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat cant see my application folder HELP!!!
you need a WEB-INF directory in your webapp if you want the webapp to be loaded. On 9/21/05, Mbah Tenjoh-Okwen [EMAIL PROTECTED] wrote: hello Im using tomcat 5.5.9 and when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing http://localhost:8080/mine; in my browser.The container says The requested resource (/kopie/) is not available (ie i get a 404 http error report). on the other hand accessing the index.html file and servlet examples in the servlets-examples folder does not pose a problem. i could even duplicate this folder, reanme it and access its index.html file without anyproblem but as soon as i modify the DD (deployment descriptor) i cant view the index.html file, let alone access the servlets. thanks ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat cant see my application folder HELP!!!
I have read those steps and done what they ask of me but somehow i still get the same behaviour. Got any other ideas? thanks --- Viorel Dragomir [EMAIL PROTECTED] wrote: Tomcat is not exactly httpd. So, try to READ some FREE docs on the website. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Viorel Dragomir . .. --- - Original Message - From: Mbah Tenjoh-Okwen To: Tomcat Users List ; [EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 14:19 Subject: Tomcat cant see my application folder HELP!!! hello Im using tomcat 5.5.9 and when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing http://localhost:8080/mine; in my browser.The container says The requested resource (/kopie/) is not available (ie i get a 404 http error report). on the other hand accessing the index.html file and servlet examples in the servlets-examples folder does not pose a problem. i could even duplicate this folder, reanme it and access its index.html file without anyproblem but as soon as i modify the DD (deployment descriptor) i cant view the index.html file, let alone access the servlets. thanks ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat restart ptoblem
Hi Tom, Its WindowsServer 2003 Standard Edition. Regards, Mukesh -Original Message- From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 4:21 PM To: Tomcat Users List Subject: Re: tomcat restart ptoblem What's the system? Windows, Linux/Unix? Tom - Original Message - From: mukesh [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, September 21, 2005 11:12 AM Subject: tomcat restart ptoblem Hi friends, I have installed Tomcat 5.5. It was working fine but my system has got restarted and then onwards I am not able to restart the server. What could be the reasons? (Sorry if this question have been already asked) Please advice. Regards, Mukesh Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat restart ptoblem
Is it installed as a Windows Service? Is the Service set to start automatically? If it isn't, you know what to do! If it is but it isn't starting successfully, try the following:- a) try to Start the service manually; b) if it fails, examine the Windows Event log, as well as the various Tomcat logs. Tom - Original Message - From: mukesh [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Wednesday, September 21, 2005 1:57 PM Subject: RE: tomcat restart ptoblem Hi Tom, Its WindowsServer 2003 Standard Edition. Regards, Mukesh -Original Message- From: Tom Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 4:21 PM To: Tomcat Users List Subject: Re: tomcat restart ptoblem What's the system? Windows, Linux/Unix? Tom - Original Message - From: mukesh [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, September 21, 2005 11:12 AM Subject: tomcat restart ptoblem Hi friends, I have installed Tomcat 5.5. It was working fine but my system has got restarted and then onwards I am not able to restart the server. What could be the reasons? (Sorry if this question have been already asked) Please advice. Regards, Mukesh Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat would not start...
Did you check to see under Administration Tools--Services if the status for Tomcat is showing as Started??? Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/21/05 12:19 pm Hi All, I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04. It just would not start when i do http://127.0.0.1:8080/ Help1 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat would not start...
Actually that's how it works. You have to send encrypted messages to it over an encrypted network using 2.6987Ghz frequency. Only then does it run. Surprised its not in the manual. -Original Message- From: Lenandlar Singh [mailto:[EMAIL PROTECTED] Sent: 21 September 2005 16:19 To: Tomcat Users List Subject: Tomcat would not start... Hi All, I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04. It just would not start when i do http://127.0.0.1:8080/ Help1 ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat detecting http header
Hi, When developing web app code I tend to enumerate on the headers coming in. Have a look at: public java.util.Enumeration getHeaderNames(); So: // get the header names Enumeration ee = request.getHeaderNames(); // then iterate through them for(;ee.hasMoreElements();){ String header = (String)ee.nextElement(); System.out.println(header + = + request.getHeader(header)); } It's just good to get an overall picture of what is being send in the headers. As for why the value is null, I don't know 100% but this link may or may not help. http://forum.java.sun.com/thread.jspa?threadID=507098messageID=2404807 getHeader(REMOTE_ADDR); and getting null. I hope this helps in your quest. Kind regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat does not find my web application
Le Mardi 20 Septembre 2005 12:55, Mbah Tenjoh-Okwen a écrit : World, When i create a folder my container does not recognize my index.html file in the top level directory nor is it able to find my servlet classes. But when i duplicate the servlet-examples folder and rename it(say servlet-examplesCopied), tomcat recognizes servlet-examplesCopied 's index.html and its servlets. Hi, What exactly did you try? Your mail is quite evasive. I have tried this on my pc and on my mac and still get the same strange results.Uninstalling and reinstalling tomcat has done me no good as well. please help. thanks in advance Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Pingouins dans les champs, hiver méchant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.9 and IIS 5/6
Thanks Dave. It does have that line. I missed it on the copy and paste. :) Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: For worker.properties.minimal you need (you're missing the first line): worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 3:20 PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 Ohm another thing...I actually got an error in my tomcat log fle. HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13w Does that help? gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties /servlets-examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w registry - Value 0 Name: extension_uri Type: REG_SZ Data: /jakarta/isapi_redirect.dll Value 1 Name: log_file Type: REG_SZ Data: c:\tomcat\logs\isapi.log Value 2 Name: log_level Type: REG_SZ Data: info Value 3 Name: worker_file Type: REG_SZ Data: c:\tomcat\conf\workers.properties.minimal Value 4 Name: worker_mount_file Type: REG_SZ Data: c:\tomcat\conf\uriworkermap.properties everything looks good to me, but who knows. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: All I can suggest is make sure the uriworkers. and workers. files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks - dave -- *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] *Sent:* Monday, September 19, 2005 2:45 PM *To:* David Thielen *Cc:* Tomcat Users List *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, *David Thielen* [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from here http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located here http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html . http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: tomcat detecting http header
Of course, you could just call request.getRemoteAddr(); Tomcat is a Servlet Specification container. You don't get headers with CGI naming conventions. Check out the api documentation: http://java.sun.com/j2ee/1.4/docs/api/index.html It's the packages starting with javax.servlet that will be of most interest. Specifically, the docs for javax.servlet.ServletRequest give some info on methods that map to CGI variables. HTH, Jon Jason Bell wrote: Hi, When developing web app code I tend to enumerate on the headers coming in. Have a look at: public java.util.Enumeration getHeaderNames(); So: // get the header names Enumeration ee = request.getHeaderNames(); // then iterate through them for(;ee.hasMoreElements();){ String header = (String)ee.nextElement(); System.out.println(header + = + request.getHeader(header)); } It's just good to get an overall picture of what is being send in the headers. As for why the value is null, I don't know 100% but this link may or may not help. http://forum.java.sun.com/thread.jspa?threadID=507098messageID=2404807 getHeader(REMOTE_ADDR); and getting null. I hope this helps in your quest. Kind regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat does not find my web application
From: Mbah Tenjoh-Okwen [mailto:[EMAIL PROTECTED] Subject: tomcat does not find my web application when i create a folder(mine)under webbaps (tomcat/webapps/mine)i cant even get to its index.html file by typing http://localhost:8080/mine; in my browser.The container says The requested resource (/kopie/) is not available (ie i get a 404 http error report). Does the Tomcat userid have read and write access permissions to the directory (mine) you created? - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat detecting http header
You can also add this routine within a code block at higher trace levels. This way you can turn on this routine for debugging or logging purposes and don't have to incur additional overheads during runtime. Murugan Hi, When developing web app code I tend to enumerate on the headers coming in. Have a look at: public java.util.Enumeration getHeaderNames(); So: // get the header names Enumeration ee = request.getHeaderNames(); // then iterate through them for(;ee.hasMoreElements();){ String header = (String)ee.nextElement(); System.out.println(header + = + request.getHeader(header)); } It's just good to get an overall picture of what is being send in the headers. As for why the value is null, I don't know 100% but this link may or may not help. http://forum.java.sun.com/thread.jspa?threadID=507098messageID=2404807 I hope this helps in your quest. Kind regards Jason -- Jason Bell Lead Architect, SpikeSource Europe e: [EMAIL PROTECTED] w: http://www.spikesource.com b: http://jasonbell.blog-city.com m: +44 (0)787 529 2693 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Murugan Pal Founder CTO Spikesource, Inc. 1400 Seaport Blvd., South Bldg. #350, Redwood City, CA 94063 Phone: 650 241 4006 www.spikesource.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.9 and IIS 5/6
Ok, it all works. I have no clue what I did, but I just started over from scratch and now it all works very well. Thanks for all the help Dave. Gregg On 9/20/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Thanks Dave. It does have that line. I missed it on the copy and paste. :) Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: For worker.properties.minimal you need (you're missing the first line): worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 3:20 PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 Ohm another thing...I actually got an error in my tomcat log fle. HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13w Does that help? gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties /servlets-examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w registry - Value 0 Name: extension_uri Type: REG_SZ Data: /jakarta/isapi_redirect.dll Value 1 Name: log_file Type: REG_SZ Data: c:\tomcat\logs\isapi.log Value 2 Name: log_level Type: REG_SZ Data: info Value 3 Name: worker_file Type: REG_SZ Data: c:\tomcat\conf\workers.properties.minimal Value 4 Name: worker_mount_file Type: REG_SZ Data: c:\tomcat\conf\uriworkermap.properties everything looks good to me, but who knows. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: All I can suggest is make sure the uriworkers. and workers. files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks - dave -- *From:* Gregg D Bolinger [mailto: [EMAIL PROTECTED] *Sent:* Monday, September 19, 2005 2:45 PM *To:* David Thielen *Cc:* Tomcat Users List *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, *David Thielen* [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: Tomcat 5.5 and Apache 2.0
Oops I forgot the basics: System: Redhat ES3 Release 4 Kernel: 2.4.21-27.ELsmp Glibc: 2.3.2 Java: 1.5.0_04-b05 Tomcat: 5.5.9 Platform: Dell 2850 CPU: Intel Xeon 3.40GHz Memory: 4G Stephen Carville wrote: I am at my wits end... I've inherited the Apache and Tomcat setup and so far I cannot even get then to talk to each other. I rebuilt mod_jk.so from source. I copied over what was supposed to be a working server.xml, read documentation, and edited things until my eyes are watering and I still cannot figure out what I am doing wrong. When I start tomcat, it creates the directories in /var/jakarta/tomcat/work/Apache for only first two Hosts but no compiled java appears in them. If I set the LogLevel on mod_jk.so to debug and request a jsp (http://kanga.nationwide-totalflood.com/HomePage.jsp) I get: [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HomePage.jsp' from 2 maps [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlet/*' [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp' [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match worker1 - /*.jsp [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_handler::mod_jk.c (1825): Into handler jakarta-servlet worker=worker1 r-proxyreq=0 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] wc_get_worker_for_name::jk_worker.c (111): found a worker worker1 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] wc_maintain::jk_worker.c (301): Maintaining worker worker1 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_maintain::jk_ajp_common.c (2203): recycled 0 sockets in 0 seconds [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] init_ws_service::mod_jk.c (517): Service protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.124.232 name=kanga.nationwide-totalflood.com port=80 auth=(null) user=(null) laddr=192.168.150.129 raddr=192.168.124.232 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_service::jk_ajp_common.c (1670): processing with 3 retries [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_open_socket::jk_connect.c (328): socket TCP_NODELAY set to On [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_open_socket::jk_connect.c (341): socket SO_KEEPALIVE set to On [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_open_socket::jk_connect.c (391): timeout 300 set for socket=57 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_open_socket::jk_connect.c (426): trying to connect socket 57 to 127.0.0.1:8009 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_open_socket::jk_connect.c (452): socket 57 connected to 127.0.0.1:8009 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connect_to_endpoint::jk_ajp_common.c (864): Connected socket 57 to (127.0.0.1:8009) [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13 pos=4 len=468 max=8192 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 12 34 01 D0 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 001000 00 0D 2F 48 6F 6D 65 50 61 67 65 2E 6A 73 70 - .../HomePage.jsp [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 002000 00 0F 31 39 32 2E 31 36 38 2E 31 32 34 2E 32 - ...192.168.124.2 [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 003033 32 00 FF FF 00 1F 6B 61 6E 67 61 2E 6E 61 74 - 32.kanga.nat [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 004069 6F 6E 77 69 64 65 2D 74 6F 74 61 6C 66 6C 6F - ionwide-totalflo [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00506F 64 2E 63 6F 6D 00 00 50 00 00 0B A0 0B 00 1F - od.com..P... [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00606B 61 6E 67 61 2E 6E 61 74 69 6F 6E 77 69 64 65 - kanga.nationwide [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00702D 74 6F 74 61 6C 66 6C 6F 6F 64 2E 63 6F 6D 00 - -totalflood.com. [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0080A0 0E 00 4F
RE: Tomcat 5.5.9 and IIS 5/6
Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.9 and IIS 5/6
Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from here http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located here http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html . http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: Tomcat 5.5.9 and IIS 5/6
Ok, not it is asking for a username and password, so, a step in the right directions maybe. :) Gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from here http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located here http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
RE: Tomcat 5.5.9 and IIS 5/6
All I can suggest is make sure the uriworkers. and workers. files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks - dave _ From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:45 PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html . http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: Tomcat 5.5.9 and IIS 5/6
Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties /servlets-examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w registry - Value 0 Name: extension_uri Type: REG_SZ Data: /jakarta/isapi_redirect.dll Value 1 Name: log_file Type: REG_SZ Data: c:\tomcat\logs\isapi.log Value 2 Name: log_level Type: REG_SZ Data: info Value 3 Name: worker_file Type: REG_SZ Data: c:\tomcat\conf\workers.properties.minimal Value 4 Name: worker_mount_file Type: REG_SZ Data: c:\tomcat\conf\uriworkermap.properties everything looks good to me, but who knows. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: All I can suggest is make sure the uriworkers… and workers… files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks – dave -- *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] *Sent:* Monday, September 19, 2005 2:45 PM *To:* David Thielen *Cc:* Tomcat Users List *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, *David Thielen* [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from here http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located here http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: Tomcat 5.5.9 and IIS 5/6
Ohm another thing...I actually got an error in my tomcat log fle. HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13w Does that help? gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties /servlets-examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w registry - Value 0 Name: extension_uri Type: REG_SZ Data: /jakarta/isapi_redirect.dll Value 1 Name: log_file Type: REG_SZ Data: c:\tomcat\logs\isapi.log Value 2 Name: log_level Type: REG_SZ Data: info Value 3 Name: worker_file Type: REG_SZ Data: c:\tomcat\conf\workers.properties.minimal Value 4 Name: worker_mount_file Type: REG_SZ Data: c:\tomcat\conf\uriworkermap.properties everything looks good to me, but who knows. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: All I can suggest is make sure the uriworkers… and workers… files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks – dave -- *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] *Sent:* Monday, September 19, 2005 2:45 PM *To:* David Thielen *Cc:* Tomcat Users List *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, *David Thielen* [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg
Re: Tomcat Alone or tomcat+IIS/Apache
Well I'm sure you can imagine that if all of your content is dynamic then layering tomcat behind Apache/IIS will only add latency/resources to your requests... nothing significant.. but maybe if your serving up a ton of requests it might be worthwhile to run tomcat standalone. -David Quoting Gregg D Bolinger [EMAIL PROTECTED]: I am just curious. I know that delivering static content with Apache/IIS is preferred. But does that matter if every single request has to go to Tomcat because the data is dynamic? Is there some caching that gets involved here? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Gregg This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does that matter if every single request has to go to Tomcat because the data is dynamic? Think about it: How could adding path length and latency for every request improve performance? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Job security perhaps? Also increased stress levels, if you enjoy that sort of thing. Unless there's something specific for httpd or IIS to do (e.g., poor man's load balancing), simplify your life and leave them out. Check out Peter Lin's performance measurements for just static content, and you may decide you don't need httpd or IIS for that, either. http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.9 and IIS 5/6
For worker.properties.minimal you need (you're missing the first line): worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 3:20 PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 Ohm another thing...I actually got an error in my tomcat log fle. HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13w Does that help? gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties /servlets-examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w registry - Value 0 Name: extension_uri Type: REG_SZ Data: /jakarta/isapi_redirect.dll Value 1 Name: log_file Type: REG_SZ Data: c:\tomcat\logs\isapi.log Value 2 Name: log_level Type: REG_SZ Data: info Value 3 Name: worker_file Type: REG_SZ Data: c:\tomcat\conf\workers.properties.minimal Value 4 Name: worker_mount_file Type: REG_SZ Data: c:\tomcat\conf\uriworkermap.properties everything looks good to me, but who knows. Gregg On 9/19/05, David Thielen [EMAIL PROTECTED] wrote: All I can suggest is make sure the uriworkers. and workers. files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks - dave -- *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] *Sent:* Monday, September 19, 2005 2:45 PM *To:* David Thielen *Cc:* Tomcat Users List *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions? Thanks a bunch. Gregg On 9/19/05, *David Thielen* [EMAIL PROTECTED] wrote: Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:23 PM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and IIS 5/6 I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from herehttp://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/win32/ jk-1.2.14/. Next, I followed step by step the instructions located herehttp://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto .html .http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.ht ml I have also changed the paths in my workers.properties file to reflect my java and tomcat home locations. Needless to say, it is not working. I can't get the filter to show a green arrow in IIS. It still shows that the isapi_redirect.dll is not loaded. No log files are being generated or anything. I was wondering if A. I am following current instructions B. Do I have the right DLL downloaded C. What else can I do Thanks. Gregg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat url connections
Navalpotro Herrero, Luis wrote: Hello, I have face recently found a tomcat issue that is driving me nuts. I have a Java application that opens a URL connection against tomcat. The parameteres are URLEncoded to be UTF-8 compatible. One of the values of the params is xml (which is the one that makes the thing fail). If I use tomcat 4.1.30 or lower version (up to .24 works fine, which are the one I tested) the code runs fine, but when I change to Tomcat 4.1.31 I find the code throws a socketException when trying to parse the http headers. I have reading the changes introduced in tomcat 4.1.31 and some are relative to encoding which makes me think this could be the cause of the problem. Does any one have faced this problem also? Thanks for your help, Luis Navalpotro Create a test case, attach it to a bug report and I'll take a look. Can't make any promises on timing though. The simpler you keep the test case, the greater the chances of me looking at it. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat directory protection
Peter Flynn wrote: I don't know if Kerem Erkan was talking about exploits, but I have looked for some facility in Tomcat equivalent to Apache .htaccess files and failed to find any mention of them. Is it possible to do this kind of IP-level or simple username/password restriction in Tomcat? I'm not aware of anything directly analogous to .htaccess, but you can certainly accomplish the same goals in other ways. Take a look at SRV.6 (Filtering) and SRV.12 (Security) of the Servlet spec. HTH, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat on UNIX
java 1.4 -Tim Wei Zhao wrote: Hi: What's the JDK/JVM requirement for running Tomcat 5.5 on AIX 5.1 and HP-UX11? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.24 crashes silently when clustering turned on
We could try upgrading our JVM from 1.4.2 but I'm concerned with going to 5.0 in case that causes other things to break. Will TC 5.0.24 run on a 5.0 JVM? --- It does, im running it on 5.0 on win platform Regards, Chandan On 9/12/05, Mike Noel [EMAIL PROTECTED] wrote: Which platform/OS? I've no experience on Win, but I never experienced a tomcat crash on unix/linux. Nevertheless five comments: This is running on RHEL 3.2.3-39 and Java 1.4.2. 0) jk2 is no longer under development. The only active connector development for apache is mod_jk and mod_proxy (for the upcoming apache 2.1/2.2). Yes, I know that jk2 is dead. We set these servers up with it almost a year ago, before it was pronounced dead, and I was hoping to not have to change. 1) If you really want to use clustering, either choose the tomcat 5.5line (preferably with fastasyncmode), or at least 5.0.28 (better 5.0.30). Are there any config file changes in going from 5.0.24 to 5.0.28? 2) Some *nixes and shells will send signals, when the user starting tomcat logs out of the system resulting in killed tomcat processes. Inj that case use nohup or any similar workaround. This isn't an issue in my case. Tomcat dies before I log out of the shell. 3) With replication you will need more memory. Any indications for OutOfMemory? Nope. 4) The only real process crashes I experienced where fixed by updates to bug fix releases of the JVM. We could try upgrading our JVM from 1.4.2 but I'm concerned with going to 5.0 in case that causes other things to break. Will TC 5.0.24 run on a 5.0 JVM? -Mike Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat/jvm shutdown very slow after enabling JMX remote management...
You should only set the JMX JAVA_OPTS for startup. If you use the same JAVA_OPTS for shutdown, the shutdown-VM will unsuccessfully try to start a JMX server on port . That's what taking so long. Joe R. Lindsay wrote: If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false Shutdown of tomcat takes a very long time when jmx is enabled, even if I use manager to shutdown the individual webapps. With jmx disabled, shutdown times are normalhas anyone else seen or resolved this? -Original Message- From: Paul ANDERSON [EMAIL PROTECTED] Subject: RE: Shutdown not working under SLES8 and FC2 Date: Mon, 21 Feb 2005 11:08:01 GMT Raw Message Prev Next Prev by Thread Next by Thread I have had the same problem of Tomcat not terminating and having to be killed by hand. It occurred with Tomcat 5.0.27, JDK1.4.2, RH Enterprise Linux 3 when I enabled JMX via jk2 configuration. I tried 5.0.28 but the same happened using jk2, so I put JMX on a back burner. Now I'm using 5.5.7, JDK1.4.2_06 and the same thing happens - but again, only when mx.enabled is true. Uname -a gives: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux The problem seems to happen even with a clean distro - all it takes is for jk2.properties to be modified to start JMX support, with the MX jars in common/lib. Fortunately it happens every time on ./shutdown.sh so I hope someone can shed some light on it. I'd like to use JMX even without JDK1.5 - maybe using jsvc is a workaround. I don't want to force a process kill as normal procedure, in case some cleanup is skipped such as session persistence. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/jvm shutdown very slow after enabling JMX remote management...
Thanks, actually setting the JMX OPTS during shutdown ends up creating a port in use error. I managed to figure that one out.I tried setting jmxremote to false and that was a noop as expected... I still get the long shutdown with the jmx OPTS excluded. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:38 AM To: Tomcat Users List Subject: Re: tomcat/jvm shutdown very slow after enabling JMX remote management... You should only set the JMX JAVA_OPTS for startup. If you use the same JAVA_OPTS for shutdown, the shutdown-VM will unsuccessfully try to start a JMX server on port . That's what taking so long. Joe R. Lindsay wrote: If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false Shutdown of tomcat takes a very long time when jmx is enabled, even if I use manager to shutdown the individual webapps. With jmx disabled, shutdown times are normalhas anyone else seen or resolved this? -Original Message- From: Paul ANDERSON [EMAIL PROTECTED] Subject: RE: Shutdown not working under SLES8 and FC2 Date: Mon, 21 Feb 2005 11:08:01 GMT Raw Message Prev Next Prev by Thread Next by Thread I have had the same problem of Tomcat not terminating and having to be killed by hand. It occurred with Tomcat 5.0.27, JDK1.4.2, RH Enterprise Linux 3 when I enabled JMX via jk2 configuration. I tried 5.0.28 but the same happened using jk2, so I put JMX on a back burner. Now I'm using 5.5.7, JDK1.4.2_06 and the same thing happens - but again, only when mx.enabled is true. Uname -a gives: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux The problem seems to happen even with a clean distro - all it takes is for jk2.properties to be modified to start JMX support, with the MX jars in common/lib. Fortunately it happens every time on ./shutdown.sh so I hope someone can shed some light on it. I'd like to use JMX even without JDK1.5 - maybe using jsvc is a workaround. I don't want to force a process kill as normal procedure, in case some cleanup is skipped such as session persistence. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Hi ! I'm using tomcat-specific ant tasks and very happy :) It's allows you to restart web app without restarting tomcat. Take a look at manager web app came with distribution. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant On 9/13/05, Olena Mitovska [EMAIL PROTECTED] wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
On Tue, Sep 13, 2005 at 03:31:37PM +0200, Christoph Kutzinski wrote: Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? I could think the timezones on the development server and the deployment server are different, so the modified files could be in future, and thus tomcat will never reload files if they have modification time current time. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
1)I have created the WAR file on Windows and deployed to Solaris but I also tried using the Tomcat Manager GUI without any luck. It is interesting to note that when I FTP the WAR file over from the Windows box, both the app directory and the new WAR file disappear. If I FTP the WAR a second time it seems to deploy fine. 2) The system clocks ARE in sync. 3) The file attributes are OK 4) If I touch the war file it seems to blow up the application that is running. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/13/05 10:31 am Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Hi. Try something like this in your context.xml Context path=/webapp docBase=webapp debug=99 reloadable=true antiJARLocking=true antiResourceLocking=false I've had similar problems with Tomcat 5.5.x on Linux but the above line works. HTH, Sergey. Ritchie Gillam пишет: 1)I have created the WAR file on Windows and deployed to Solaris but I also tried using the Tomcat Manager GUI without any luck. It is interesting to note that when I FTP the WAR file over from the Windows box, both the app directory and the new WAR file disappear. If I FTP the WAR a second time it seems to deploy fine. 2) The system clocks ARE in sync. 3) The file attributes are OK 4) If I touch the war file it seems to blow up the application that is running. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/13/05 10:31 am Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? snip/ Funny you should ask [ http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ] -Rahul -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not honor acceptCount configuration variable
From: Wei Zhao [mailto:[EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable I’ve just migrated to Tomcat 5.5 and found that the configuration variable “acceptCount†under “Connector†takes no effect. Can you show us your complete Connector/ tag from server.xml? (Hopefully it won't suffer from the same character mapping problems your e-mails seem to have.) - 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: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
It is funny. Once I talked with you a while ago I found in the spec that I indeed should use %= exp % in a JSP documents (i.e. with xml syntax) instead of %= exp % in a JSP page. I tried it then and it did not work for me. So I've decided that it's implemented differently in Tomcat. I've just have tried it once more and it is working fine! I guess last time my jsp was cached and that's why I did not see the result :) Thanks again for your responce. It was helpful. --Seva From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Tue 9/13/2005 6:28 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? snip/ Funny you should ask [ http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ] -Rahul -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.24 crashes silently when clustering turned on
Which platform/OS? I've no experience on Win, but I never experienced a tomcat crash on unix/linux. Nevertheless five comments: This is running on RHEL 3.2.3-39 and Java 1.4.2. 0) jk2 is no longer under development. The only active connector development for apache is mod_jk and mod_proxy (for the upcoming apache 2.1/2.2). Yes, I know that jk2 is dead. We set these servers up with it almost a year ago, before it was pronounced dead, and I was hoping to not have to change. 1) If you really want to use clustering, either choose the tomcat 5.5 line (preferably with fastasyncmode), or at least 5.0.28 (better 5.0.30). Are there any config file changes in going from 5.0.24 to 5.0.28? 2) Some *nixes and shells will send signals, when the user starting tomcat logs out of the system resulting in killed tomcat processes. Inj that case use nohup or any similar workaround. This isn't an issue in my case. Tomcat dies before I log out of the shell. 3) With replication you will need more memory. Any indications for OutOfMemory? Nope. 4) The only real process crashes I experienced where fixed by updates to bug fix releases of the JVM. We could try upgrading our JVM from 1.4.2 but I'm concerned with going to 5.0 in case that causes other things to break. Will TC 5.0.24 run on a 5.0 JVM? -Mike Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 - apache 2 - ldap
But, you will run into problems if you use JNDIRealm with SSL (ldap with ssl - Container Managed Security)use mozilla-java sdk if you prefer to do this way. http://www.mozilla.org/directory On 7/27/05, Nili Adoram [EMAIL PROTECTED] wrote: What about single sign-on for web applications and PHP? Does tomcat delegate credentials back to Apache so Apache would not authenticate again? Thanks Nili On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: If you use Form-based authentication (login page) then tomcat needs to do it... Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:02 To: 'Tomcat Users List' Subject: RE: tomcat 5 - apache 2 - ldap Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram ([EMAIL PROTECTED]) SEMPRE Team, RD Qlusters Inc. 972-3-6081976 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat-user Digest 11 Sep 2005 15:29:19 -0000 Issue 5872
Hi- You might investigate using the include directive: %@ include file=... % instead of the include action. -Terence M. Bandoian [EMAIL PROTECTED] wrote: Hi, i am using Jasper coming with tomcat 4.1.31 for precompilation of some jsps. It generates empty-element tags where generation of start-tag followed by immediate end-tag would be needed/preferred. For example there are includes like: jsp:include page=includes/scripts.jsp/ where scripts.jsp contains the lines like script type=text/javascript src=lib/whatever.js /script. Precompiled jsps output these in their shortened form: script type=text/javascript src=lib/whatever.js/. How do i tune that behaviour - jasper options, jsps themselves, xml parser? thanks, Taimo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]