java.util.logging and tomcat
Just wondering if anybody here has any experience on using java.util.logging with tomcat? I was under the impression that logged lines (and System.out) would go to the tomcat_localhost log, but it seems I am mistaken. Is there something I should adjust in my web.xml or server.xml? Cheers, -Josh -- [ Josh 'G' McDonald ][ 0415 784 825 ][ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JRun - maybe off topic
Steve, True. JRun features a web connector. It means you can plug any web server (Apache, IIS, Netscape, Zeussee Jrun doc for full list!) to jrun servers..see jrun cluster architecture too! For example you can have 10 apache as a front to 1or several jrun servers.Moreover Jrun features a java web server you can disable Xavier Steve Harris a écrit: So can jrun be split off and run on a sperate box from apache like I can with tomcat ? Cheers - Steve On Thu, 25 Sep 2003, Shapira, Yoav wrote: Howdy, JRun is a complete J2EE server. It can replace just your tomcat piece or whole apache-tomcat setup. If you really need Apache, it probably because your traffic is high enough that tomcat standalone can't handle it. In that case, you'll still need Apache in front o JRun. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: JRun - maybe off topic Hi all, I'm trying to get to grips with the architecture for an application we are going to be deploying. I have no problem with the apache/tomcat set-up but this app uses apache and JRun. Am I reading this wrong or does JRun simply take the place of tomcat but runs the apps locally as opposed to being able to be deployed under an apps server like tomcat on some other server somewhere ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Authentication - based on request parameters
I've developed a authentication mechanism on my own because I could not figure out how to make authentication based on some request - parameters. This is what I've implemented: Whenever the user makes a request, the site parameter plus the path is used to figure out whether the user has the rights to access the path on that site. If not I sent him to a login - page, and after that back to the initially requested page. For instance: 1) The user requests: myTomcat:8080/MyApp/saveEditedPage.action?site=MySite 2) I figure out whether saveEditedPage needs login. If it does, then I check whether the user has previously logged in. If not the user is sent to the login page. 3) When the user has logged in. The rights for the user for the site=MySite is checked. If the user may enter he is sent the request is carried out. I have finally got it to work, but then it stroke me that I maybe could use the built in security - mechanism in tomcat. Here is my idea: I make a subclass of - or wraps HttpServletRequest, with my own class that overwrites the isUserInRole(String) method. So that the isUserInRole method could use some of the parameters from the request to make the finegrained access-control. (That is to use the site parameter). Does that sound possible or can't HttpServletRequest be subclassed like that? Or am I just plain stupid and could have saved me from a lot of hours of work by using a built in mechanism? Ragards Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I config EMBEDDED Tomcat to only service requests from localhost?
Try org.apache.catalina.startup.Embedded.addValve(...) or use the JMX Embedded API. -- Jeanfrancois Mike Kellstrand wrote: OK, adding a Valve to server.xml worked great for a standalone Tomcat. Now Part II, how do I do this with an embedded Tomcat? I get the impression that embedded doesn't use a server.xml file. Is there a way to make it read a partial one with the element I need, or another way to set up this valve? Thanks, Mike - Original Message - From: Yann C?bron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 12:58 PM Subject: Re: How do I config Tomcat to only service requests from localhost? Try Remote Address/Host Filter: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html Cheers, Yann *** I'm sure the answer is quite simple, but I haven't been able to find it online yet. I've got Tomcat running on a PC, and I want it to only service requests coming from the same PC (i.e. localhost). If a request come in from the LAN, I want to ignore it. I found references to the inet attribute to the Connector element, but it doesn't work for me. Thanks, Mike - 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: Configuring server.xml for SSL breaks Tomcat
Matt, 2 suggestions: 1. Upgrade your JDK to 1.4.x. JSSE is now integrated with the Java Runtime and, you never know, this step alone might fix your problem. 2. Create and configure the SSL connector using the Admin tool instead of manually editing server.xml. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication - based on request parameters
Morten, HttpServletRequest is simply an interface. If you wanted to subclass it, you would have to implement every member of the interface. However, you could do this easily enough by passing every method that you didn't want to implement to the original request object, for example: public class MySpecialHttpServletRequest implements HttpServletRequest { private HttpServletRequest origRequest; public MySpecialHttpServletRequest(HttpServletRequest origRequest) { this.origRequest = origRequest; } public String getAuthType() { return origRequest.getAuthType(); } etc. public boolean isUserInRole(String role) { // Do your own stuff } } And then in your JSP you would have something like % request = new MySpecialHttpServletRequest(request); % However, if I were thinking of implementing an entire J2EE interface simply to handle a single method, I'd be questioning whether I was going in the right direction. If you have something that is working, you may want to consider keeping it. Alternatively, why not try to use Tomcat's role-based security architecture rather than overriding it? Something else that occurs to me is that your security model appears to depend on a GET parameter in the request (?site=MySite). A client could easily change this value to circumvent your security. A better model is that your logon page sets a value in the Session object to identify the user. Then the security depends on a very long, random session ID and it is vanishingly unlikely that a client will be able to change this ID (either in a URL or a cookie) and, by chance, hit on a valid session ID belonging to another user. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication - based on request parameters
hi morten You can very well take the power of tomcat which helps you to authenticate in basic JDBC Realm or memory Reams or Userdatabase Realm. and you can use the request object's method called getremoteuser() to get the user name used for authentication by the user.Ensure the user name is unique for this purpose. regards sat - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 5:01 PM Subject: Authentication - based on request parameters I've developed a authentication mechanism on my own because I could not figure out how to make authentication based on some request - parameters. This is what I've implemented: Whenever the user makes a request, the site parameter plus the path is used to figure out whether the user has the rights to access the path on that site. If not I sent him to a login - page, and after that back to the initially requested page. For instance: 1) The user requests: myTomcat:8080/MyApp/saveEditedPage.action?site=MySite 2) I figure out whether saveEditedPage needs login. If it does, then I check whether the user has previously logged in. If not the user is sent to the login page. 3) When the user has logged in. The rights for the user for the site=MySite is checked. If the user may enter he is sent the request is carried out. I have finally got it to work, but then it stroke me that I maybe could use the built in security - mechanism in tomcat. Here is my idea: I make a subclass of - or wraps HttpServletRequest, with my own class that overwrites the isUserInRole(String) method. So that the isUserInRole method could use some of the parameters from the request to make the finegrained access-control. (That is to use the site parameter). Does that sound possible or can't HttpServletRequest be subclassed like that? Or am I just plain stupid and could have saved me from a lot of hours of work by using a built in mechanism? Ragards Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [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: Authentication - based on request parameters
Why is that a security-issue? I wan't the user to enter the site by cliking on a link or whatever, so that the user enters the site using that request. It should be OK, that the user tryes to go to a restricted page by writing blabla:8080/MyApp/restrictedRequest.action?site=JustAGuess But if that is done and the user has not got rights to do it, then he is being rejected... Regards Morten Andersen PS: I did consider the role-based model form tomcat, but that is coarse-grained, in the sense that it is based on 1 role for one web-app, and that is not suficient. Something else that occurs to me is that your security model appears to depend on a GET parameter in the request (?site=MySite). A client could easily change this value to circumvent your security. A better model is that your logon page sets a value in the Session object to identify the user. Then the security depends on a very long, random session ID and it is vanishingly unlikely that a client will be able to change this ID (either in a URL or a cookie) and, by chance, hit on a valid session ID belonging to another user. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Authentication - based on request parameters
The problem is that your model does not seem to be based on a secret and site names don't have a lot of entropy. I don't know enough about your model to give you examples of possible attacks, but it seems to be similar to an access control model where you ask to people to enter their user ID but no password. Saying Oh, the client has to know a valid user name to get in would not be enough to make this a secure model. If you store the remote site information in the Session, this information is stored-server side and a client never even gets the chance to have a go at circumventing it. The role model can be made to work. You have a list of clients, or sites, and you assign them roles. You create a table of role-to-permissions or simply declare the required roles in your JSP. Then in your pages make the following access check: // This gives MyApp/saveEditedPage.action in your original example; you may also use // getServletPath() to give you saveEditedPage.action String requestURI = request.getRequestURI(); // Implement this method yourself String[] permittedRoles = getPermittedRoles(requestURI); boolean accessAllowed = false; for (int i = 0; i permittedRoles.length; i++) { if (request.isUserInRole(permittedRoles[i])) { accessAllowed = true; break; } } This is simply an example, of course, and I don't know whether such a scheme would work for you. - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:33 AM Subject: Re: Authentication - based on request parameters Why is that a security-issue? I wan't the user to enter the site by cliking on a link or whatever, so that the user enters the site using that request. It should be OK, that the user tryes to go to a restricted page by writing blabla:8080/MyApp/restrictedRequest.action?site=JustAGuess But if that is done and the user has not got rights to do it, then he is being rejected... Regards Morten Andersen PS: I did consider the role-based model form tomcat, but that is coarse-grained, in the sense that it is based on 1 role for one web-app, and that is not suficient. Something else that occurs to me is that your security model appears to depend on a GET parameter in the request (?site=MySite). A client could easily change this value to circumvent your security. A better model is that your logon page sets a value in the Session object to identify the user. Then the security depends on a very long, random session ID and it is vanishingly unlikely that a client will be able to change this ID (either in a URL or a cookie) and, by chance, hit on a valid session ID belonging to another user. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [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]
One or more tomcats ?
Hi, Before, we had one tomcat for our 10 applications. We have tried to have 5 tomcats in parallel and 2 applications per tomcat. Result : We've got the impression that the applications are faster than before. Anybody tried this ? What do u think about having only one tomcat or severals ?
Re: Authentication - based on request parameters
Here is my requirements for the security mechanism: The whole thing is about making secured rooms for groups of user. 1) It should be possible to make new sites / groups while the application is running. 2) The sites has members, and only these should be allowed to do some of the restricted requests. 3) Some sites may be totally open, so that everyone can do anything without logging in. 4) All of this is decided while the application is running. 5) One user may be administrator of 1 group and not allowed to do anything in another. So for instance the request: TomcatServer:8080/MyApp/restrictedRequest.action?site=closedSite would result in that the user is required to login using a login-screen, because closedSite is defined as closed. while the request: TomcatServer:8080/MyApp/restrictedRequest.action?site=openSite Would not result in that the user has to login, because the openSite is defined as total open. At 11:06 26-09-2003 +0100, you wrote: The problem is that your model does not seem to be based on a secret and site names don't have a lot of entropy. I don't know enough about your model to give you examples of possible attacks, but it seems to be similar to an access control model where you ask to people to enter their user ID but no password. Saying Oh, the client has to know a valid user name to get in would not be enough to make this a secure model. Why? knowing my hotmail address doesn't make it possible for other than me to login to my hotmail account. If you store the remote site information in the Session, this information is stored-server side and a client never even gets the chance to have a go at circumventing it. The role model can be made to work. You have a list of clients, or sites, and you assign them roles. You create a table of role-to-permissions or simply declare the required roles in your JSP. Then in your pages make the following access check: // This gives MyApp/saveEditedPage.action in your original example; you may also use // getServletPath() to give you saveEditedPage.action String requestURI = request.getRequestURI(); // Implement this method yourself String[] permittedRoles = getPermittedRoles(requestURI); boolean accessAllowed = false; for (int i = 0; i permittedRoles.length; i++) { if (request.isUserInRole(permittedRoles[i])) { accessAllowed = true; break; } } This is simply an example, of course, and I don't know whether such a scheme would work for you. - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:33 AM Subject: Re: Authentication - based on request parameters Why is that a security-issue? I wan't the user to enter the site by cliking on a link or whatever, so that the user enters the site using that request. It should be OK, that the user tryes to go to a restricted page by writing blabla:8080/MyApp/restrictedRequest.action?site=JustAGuess But if that is done and the user has not got rights to do it, then he is being rejected... Regards Morten Andersen PS: I did consider the role-based model form tomcat, but that is coarse-grained, in the sense that it is based on 1 role for one web-app, and that is not suficient. Something else that occurs to me is that your security model appears to depend on a GET parameter in the request (?site=MySite). A client could easily change this value to circumvent your security. A better model is that your logon page sets a value in the Session object to identify the user. Then the security depends on a very long, random session ID and it is vanishingly unlikely that a client will be able to change this ID (either in a URL or a cookie) and, by chance, hit on a valid session ID belonging to another user. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [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] Morten Andersen Master of applied mathematics and computer science Amanuensis (in e-learning) The Maersk Institute of Production technology at Southern Danish University www.mip.sdu.dk Campusvej 55 DK-5230 Odense M Denmark +45 6550-3654 +45 6171-1103 Jabber id: [EMAIL PROTECTED]
Re: One or more tomcats ?
I prefer 1 tomcat. Please benchmark to prove otherwise. -Tim Laurent Michenaud wrote: Hi, Before, we had one tomcat for our 10 applications. We have tried to have 5 tomcats in parallel and 2 applications per tomcat. Result : We've got the impression that the applications are faster than before. Anybody tried this ? What do u think about having only one tomcat or severals ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup problem
i, i was wondering if you can help me.I am running tomcat on a Tru64 (v5.1a) box.When i atempt to start tomcat i get this message # ./tomcat start Starting Tomcat FastVM cannot allocate its internal data. Please check process stack size and virtual address space limit. Stack size may be too large, or virtual address space too small., file /runtime/ thread.c, line 298 Starting Tomcat as user 'httpd' Waiting for Tomcat... Can you tell me where i can find these parameters as well as recommended values. Do i have to add entries to thh /etc/sysconfigtab file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connector for Apache 2.0.47 ... Please Help
I'd like to see your pdf, and I'm sure other members of this list wouldn't mind seeing it as well. Who knows, maybe we can add it to the slim documentation on the jakarta site. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 7:44 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat connector for Apache 2.0.47 ... Please Help Joe, You place the mod_jk2 file in the correct folder, however you have set up the parameters in your httpd.conf file incorrectly. The parameters you have are for the mod_jk module. For the mod_jk2 module you would need a workers2.properties file and a jk2.shm file. I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on Windows 2000, but I have used the same instructions on my WinXP Pro with out any problems. If this mail list would not mind me sending this document please let me know. This is information I have compiled from numerous mail lists and debugged for many months. The document is about 20 pages long give or take. I don't have it in front of me at this time. I can post it as a pdf or RTF. Let me know which version is more acceptable. Dean -Original Message- From: Joe Mihalich [mailto:[EMAIL PROTECTED] Sent: Thu 9/25/2003 7:29 PM To: [EMAIL PROTECTED] Cc: Subject: Tomcat connector for Apache 2.0.47 ... Please Help Hi, I've installed Apache version 2.0.47, and tomcat version 4.1.27 on a windows xp box. I've downloaded the mod_jk2-2.0.43.dll connector, and put it in the modules directory Under apache. I configured tomcat to auto generate the mod_jk.conf file. All that is working ok.so it seems. I then modified the httpd.conf file as follows: LoadModule jk_module modules/mod_jk2-2.0.43.dll AddModule mod_jk.c JkWorkersFile \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties JkLogFile logs\mod_jk.log JkLogLevel debug And added this include, at the end of the file Include \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf Now, when I try to start up apache, I'm getting this error: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Program Files/Apache Gr oup/Apache2/modules/mod_jk2.dll: No error Line 173 is the LoadModule line above. Can someone please tell me why I'm getting this error? In the download Directory for mod_jk2-2.0.43.dll, it says that this file is only for Apache 2.0.43. I assume that it will work for 2.0.47.or is that the problem here? I can't Find 2.0.43 to download anymore. Also, I'm confused as to why all the other modules in the modules sub directory Have the .so extension. Aren't those unix shared library objects? Can they work On windows? Anyway, any help would be appreciated. Thanks, Joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5, SSL, IBM JDK 1.4 and Linux
Thanks Bill. I actually stumbled across that nugget on a Resin discussion list around 1AM and got it working. Thank the gods for Google. The interesting thing is that while IE, Netscape and Opera all fail to work with the setting sslProtocol=TLS I had no problems at all connecting with Mozilla Firebird. There were no issues with wget either. Go figure. Since the IBM JDK is becoming more popular perhaps there should be something in the docs about 'IbmX509' and 'SSL' when using it. If I get a spare moment I'll try to work up a doc patch. Thanks again for the quick reply. -chris -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:16 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat5, SSL, IBM JDK 1.4 and Linux It seems that IBM's JSSE implementation has some limitations using the TLS protocol. However, Tomcat seems to work fine if you change the sslProtocol=SSL. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Personalized Tomcat Manager
I have to give access permission to Tomcat Manager for several users, which should manage just its application (not all). Is it possible? -- Regards Grzegorz Malinka RDB-Admin @ DEMO 2B|!2B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication - based on request parameters
Morten, I missed the orginal post but noticed in a later message you rejected the Tomcat role-based model as too coarse grained. If you use a JDBC based security model you can assign more than one role to a user. I have used this to good effect with the following header code in controlled pages: %@ page import=java.sql.* % %@ taglib uri=http://jakarta.apache.org/taglibs/request-1.0; prefix=req % %@ taglib uri=http://jakarta.apache.org/taglibs/response-1.0; prefix=rsp % % Class.forName(org.gjt.mm.mysql.Driver); % req:request id=rq/ % boolean validRole = false; % req:isUserInRole role=leader % validRole = true; % /req:isUserInRole % if (!validRole) { System.out.println(access is not allowed); % rsp:sendError error=SC_FORBIDDEN reset=true/ rsp:skipPage/ % } % HTML insert the rest of your page here. This page is restricted to users who have been assigned both the member and the leader roles. The requirement for assignment to the member role comes from your web app's web.xml file thus security-constraint web-resource-collection web-resource-nameScoutGroup-Secure/web-resource-name url-pattern/members/*/url-pattern /web-resource-collection auth-constraint role-namemember/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint It is necessary for every user to have a member role assigned in order to reach the members' section (that is one role per web app to allow access in the first place) but, having been permitted to access the members' pages, you can further control access to pages within that area by performing your own role checks within each page. Murray -Original Message- From: Morten Andersen [mailto:[EMAIL PROTECTED] Sent: Friday, 26 September 2003 20:33 To: Tomcat Users List Subject: Re: Authentication - based on request parameters Here is my requirements for the security mechanism: The whole thing is about making secured rooms for groups of user. 1) It should be possible to make new sites / groups while the application is running. 2) The sites has members, and only these should be allowed to do some of the restricted requests. 3) Some sites may be totally open, so that everyone can do anything without logging in. 4) All of this is decided while the application is running. 5) One user may be administrator of 1 group and not allowed to do anything in another. So for instance the request: TomcatServer:8080/MyApp/restrictedRequest.action?site=closedSite would result in that the user is required to login using a login-screen, because closedSite is defined as closed. while the request: TomcatServer:8080/MyApp/restrictedRequest.action?site=openSite Would not result in that the user has to login, because the openSite is defined as total open. At 11:06 26-09-2003 +0100, you wrote: The problem is that your model does not seem to be based on a secret and site names don't have a lot of entropy. I don't know enough about your model to give you examples of possible attacks, but it seems to be similar to an access control model where you ask to people to enter their user ID but no password. Saying Oh, the client has to know a valid user name to get in would not be enough to make this a secure model. Why? knowing my hotmail address doesn't make it possible for other than me to login to my hotmail account. If you store the remote site information in the Session, this information is stored-server side and a client never even gets the chance to have a go at circumventing it. The role model can be made to work. You have a list of clients, or sites, and you assign them roles. You create a table of role-to-permissions or simply declare the required roles in your JSP. Then in your pages make the following access check: // This gives MyApp/saveEditedPage.action in your original example; you may also use // getServletPath() to give you saveEditedPage.action String requestURI = request.getRequestURI(); // Implement this method yourself String[] permittedRoles = getPermittedRoles(requestURI); boolean accessAllowed = false; for (int i = 0; i permittedRoles.length; i++) { if (request.isUserInRole(permittedRoles[i])) { accessAllowed = true; break; } } This is simply an example, of course, and I don't know whether such a scheme would work for you. - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:33 AM Subject: Re: Authentication - based on request parameters Why is that a security-issue? I wan't the user to enter the site by cliking on a link or whatever, so that the user enters the site using that request. It should be OK, that the user tryes to go to a restricted page by writing blabla:8080/MyApp/restrictedRequest.action?site=JustAGuess But if that is done and the user has not got
HOW INCREASE URL length size ?
Hi, Url limit size is to 451 characters. How can increase it to 800 in Tomcat 4.1.24 ? Thanks Philipe Philippe COUAS Responsable Développement INFODEV S.A.
Re: performance article completed
I've temporarily uploaded the article until Remy has time to post it on apache servers. http://webpages.charter.net/eleanorlin/article.zip peter lin Peter Lin [EMAIL PROTECTED] wrote: quick announcement. I've completed the article and emailed it to remy. the related source files are currently on my server. Please be gentle, my bandwidth is limited until remy posts all the files on apache. When remy has time, he will post it :) http://tao.altern8.net:8080/jmeterUtil.zip http://tao.altern8.net:8080/benchmarks.zip the first file contains the webapp, jmeter test plans, source and other stuff. the second file is the raw apache AB results. peter lin - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
RE: curiosity kills tomcat
Howdy, Good to know ;) ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 11:57 PM To: [EMAIL PROTECTED] Subject: Re: curiosity kills tomcat Actually, there is no need to contact the expert-group, since the order doesn't matter in Servlet-2.4: spec-quote version=Servlet-2.4 section=13.2 The sub elements under web-app can be in an arbitrary order in this version of the specification. /spec-quote Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, yes, I've always considered that a bug, but guess what, it's a dtd ! so .. that 'bug' won't dissapear in the future ? ( why on earth would anyone want it like that ? :-) You don't like it, contact the Expert Group / JSR for the Servlet Specification and ask them to relax the DTD. Good luck ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How much memory does Tomcat really use?
Howdy, You can run tomcat 4.x and 5.x with less than 8MB of RAM. It all depends on what webapps you have configured, connectors, min/maxProcessors, etc. The more general question of heap size vs. overall OS process size is far more difficult to answer. The answer is highly variable from one OS to another and from one OS version to another. Generally speaking, as the size of the heap is larger the ratio of the heap to the process size nears 1. In theory it can never reach 1, it's at best slightly less. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mikael Aronsson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 4:27 PM To: Tomcat Users List Subject: Re: How much memory does Tomcat really use? A basic out of the box Tomcat 5.0.12 is pretty happy with around 30MB on a windows machine, but it's always tricky to say how much memory it will use as it depends on lots of other things, how you configure it and the kind of applications you run on it, but 40-50MB could be an ok guess on Windows. Mikael - Original Message - From: Frank T. Murphy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:08 PM Subject: How much memory does Tomcat really use? Does anyone have a handle on how much memory is used by java in running tomcat? I set the ms and mx values but it always seems that the process overall takes up much more memory. I asume it's overhead with the JVM talking to the operating system. I'm trying to get a handle on how to size various servers. I went through Sun's developer forums and I've seen this question asked several times with no response. I work in bothe the Solaris and windows environment. Thanks - 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, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat startup problem
Howdy, Get a JVM that works ;) I don't know what available for Tru64, but your FastVM isn't liking the startup arguments. Are you passing it any command-line options, especially a too big -Xmx setting? Yoav Shapira Millennium ChemInformatics -Original Message- From: Tich Mandivenga [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 6:56 AM To: [EMAIL PROTECTED] Subject: tomcat startup problem i, i was wondering if you can help me.I am running tomcat on a Tru64 (v5.1a) box.When i atempt to start tomcat i get this message # ./tomcat start Starting Tomcat FastVM cannot allocate its internal data. Please check process stack size and virtual address space limit. Stack size may be too large, or virtual address space too small., file /runtime/ thread.c, line 298 Starting Tomcat as user 'httpd' Waiting for Tomcat... Can you tell me where i can find these parameters as well as recommended values. Do i have to add entries to thh /etc/sysconfigtab file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not showing any error report
Hi, My problem is described in the following URL. Tomcat is running as 'tomcat' and it doesn't have permission to write to any context path. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20540 What should I check? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOW INCREASE URL length size ?
Why do you think limit is 451? -Tim Philippe Couas wrote: Hi, Url limit size is to 451 characters. How can increase it to 800 in Tomcat 4.1.24 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not showing any error report
Howdy, Bugzilla is not a help desk support system, these issues are just a waste of time and space and a pain to close later. That said, two things come to mind right away: - docBase should not have a / at the beginning in your context definition. Take out the leading /. - User tomcat must have write permission to at least the temp and work directories under $CATALINA_HOME. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 9:00 AM To: [EMAIL PROTECTED] Subject: Tomcat not showing any error report Hi, My problem is described in the following URL. Tomcat is running as 'tomcat' and it doesn't have permission to write to any context path. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20540 What should I check? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form based login - unprotecting folders
Hi all, I've got a small problem and hope someone can point me in the right direction for a solution. I've built a web-application running from the root context (/) that requires the users to log-in through a form. I set-up Tomcat to protect the application like so (web.xml): -- Snippet from web.xml //-- security-constraint web-resource-collection web-resource-nameProtected/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameAdmin/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameProtected/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config !-- End of snippet //-- My problem is that on my login page I have images that needs to be loaded from /images (login.jsp): html head titleLogin page/title /head body img src=/images/loginheader.png / form method=POST action=j_security_check Username: input type=text name=j_username /br / Password: input type=password name=j_password /br / input type=submit value=Log In / /form img src=/images/loginfooter.png / /body /html Of course it can't load anything from /images since I've protected everything from the root up. Is there anyway to unprotect the /images directory? or will I have to do something completely different to overcome this problem? Any comments are appreciated. Kind regards, Allan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not showing any error report
* Shapira, Yoav ([EMAIL PROTECTED]) wrote: Howdy, Bugzilla is not a help desk support system, these issues are just a waste of time and space and a pain to close later. Like I said google and the archives didn't help and my previous post with the same information got no reply. I proceeded to search the bug database and found someone with the same problem. Then I re-searched the tomcat-users archive for it with no luck. Sorry. That said, two things come to mind right away: - docBase should not have a / at the beginning in your context definition. Take out the leading /. It still doesn't generate the error report for anything. The following error message is logged to catalina.out: Compile failed; see the compiler error output for details. - User tomcat must have write permission to at least the temp and work directories under $CATALINA_HOME. It owns everything except bin and conf. -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Form based login - unprotecting folders
That is a common complaint. But the solution is to move the images to an unprotected area. [easier way] You can also protect by file extension or name of servlet. -Tim Allan Lykke Christensen wrote: Hi all, I've got a small problem and hope someone can point me in the right direction for a solution. I've built a web-application running from the root context (/) that requires the users to log-in through a form. I set-up Tomcat to protect the application like so (web.xml): -- Snippet from web.xml //-- security-constraint web-resource-collection web-resource-nameProtected/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameAdmin/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameProtected/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config !-- End of snippet //-- My problem is that on my login page I have images that needs to be loaded from /images (login.jsp): html head titleLogin page/title /head body img src=/images/loginheader.png / form method=POST action=j_security_check Username: input type=text name=j_username /br / Password: input type=password name=j_password /br / input type=submit value=Log In / /form img src=/images/loginfooter.png / /body /html Of course it can't load anything from /images since I've protected everything from the root up. Is there anyway to unprotect the /images directory? or will I have to do something completely different to overcome this problem? Any comments are appreciated. Kind regards, Allan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not showing any error report
Howdy, - User tomcat must have write permission to at least the temp and work directories under $CATALINA_HOME. It owns everything except bin and conf. If you're using a UserDatabase realm for authentication (which is the default), the tomcat user also needs to be able to write $CATALINA_HOME/conf/tomcat-users.xml. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not showing any error report
1) Check permissions and user ids 2) Are you running with the security manager turned on? If so, I never do so I can't be of help. 3) Do you get the same problems with a default install? 4) If you delete logs/* and work/*, then restart are the logs helpful or do you get the same error? 5) Is your JVM and OS patched? -Tim [EMAIL PROTECTED] wrote: Hi, My problem is described in the following URL. Tomcat is running as 'tomcat' and it doesn't have permission to write to any context path. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20540 What should I check? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk Errors
I get the following errors in the Apache error.log: [Thu Sep 25 17:39:27 2003] [notice] Apache/2.0.47 (Unix) mod_jk2/2.0.2 PHP/4.3.2 DAV/2 configured -- resuming normal operations [Thu Sep 25 17:39:27 2003] [info] Server built: Aug 29 2003 13:33:03 [Thu Sep 25 17:39:37 2003] [error] jk2_init() Can't find child 1329 in scoreboard [Thu Sep 25 17:39:37 2003] [error] mod_jk child init 1 -2 [Thu Sep 25 17:39:38 2003] [error] jk2_init() Can't find child 1330 in scoreboard [Thu Sep 25 17:39:38 2003] [error] mod_jk child init 1 -2 [Thu Sep 25 17:39:38 2003] [error] jk2_init() Can't find child 1331 in scoreboard [Thu Sep 25 17:39:38 2003] [error] mod_jk child init 1 -2 [Thu Sep 25 17:46:33 2003] [error] jk2_init() Can't find child 1332 in scoreboard [Thu Sep 25 17:46:33 2003] [error] mod_jk child init 1 -2 [Thu Sep 25 17:46:34 2003] [error] jk2_init() Can't find child 1333 in scoreboard [Thu Sep 25 17:46:34 2003] [error] mod_jk child init 1 -2 [Thu Sep 25 17:46:34 2003] [error] jk2_init() Can't find child 1334 in scoreboard [Thu Sep 25 17:46:34 2003] [error] mod_jk child init 1 -2 Any ideas? Thx, Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not showing any error report
* Shapira, Yoav ([EMAIL PROTECTED]) wrote: If you're using a UserDatabase realm for authentication (which is the default), the tomcat user also needs to be able to write $CATALINA_HOME/conf/tomcat-users.xml. Ok, thanks for the hint. It had only read permissions. -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOW INCREASE URL length size ?
Philippe, I suspect that the underlying question is I want to stick loads of GET parameters in a URL, more than 451 characters' worth. How?. The answer is: don't. Do something else instead: 1. Use HTTP POST 2. Store stuff in the Session. Kind regards, Chris Williams. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_webapp incorrectly determining SERVER_PORT
I am trying to make use of apache and tomcat behind a load-balancer which causes requests to hit the individual servers on a different port from the user-visible port. Unfortunately, whenever issuing a redirection, tomcat would include the 'behind the scenes' port, instead of the public one. Apache manages not to do this (due to correct configuration of Port). In jakarta-tomcat-connectors-4.0.6-src/webapp/apache-1.3/mod_webapp.c in the routine wam_invoke() there is code to populate a request structure with client and server host data, and it includes the code req-serv-port=ntohs(con-local_addr.sin_port); I believe this is wrong; it should instead use the same information as Apache uses to populate SERVER_PORT for CGIs; this is what the Servlet spec says too. Therefore that code should be: req-serv-port=ap_get_server_port(r); Unfortunately, I'm currently having to use ancient versions of tomcat and the mod_webapp connector (yes I'm aware of the security issues), so apologies if this is no longer relevant or was fixed some time ago. Cheers, Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serving other files as JSPs
Is it possible to serve other files extentions as JSPs? ie. if I had a file hello.bob, would I be able to run JSP code in it. I have tried adding and extra servlet entry in the web.xml identical to the JSP one but with a differant name and have also tried ading an extra servlet-mapping for both my servlet entry and also for the JSP servlet entry but the page are being returned to me as text (with the code still in it). Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Personalized Tomcat Manager
Grzegorz Malinka, You might want to edit tomcat-users.xml configuration file. Or use Likha DevCentre. It simplifies your development life cycle in Tomcat. Download it from www.downloads.com or www.javashareware.com. Cheers Bern - Original Message - From: Grzegorz Malinka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 5:21 AM Subject: Personalized Tomcat Manager I have to give access permission to Tomcat Manager for several users, which should manage just its application (not all). Is it possible? -- Regards Grzegorz Malinka RDB-Admin @ DEMO 2B|!2B - 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: Serving other files as JSPs
Howdy, All you should add is another servlet-mapping tag for the JSP servlet with the extension of the files you want (e.g. *.bob). Yoav Shapira Millennium ChemInformatics -Original Message- From: Duncan Smith [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:43 AM To: Tomcat Users List Subject: Serving other files as JSPs Is it possible to serve other files extentions as JSPs? ie. if I had a file hello.bob, would I be able to run JSP code in it. I have tried adding and extra servlet entry in the web.xml identical to the JSP one but with a differant name and have also tried ading an extra servlet-mapping for both my servlet entry and also for the JSP servlet entry but the page are being returned to me as text (with the code still in it). Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Serving other files as JSPs
thanks. I was sure that I had tried that before, but I just tried it again and it worked. Probably made a spelling mistake before. Cheers, Duncan. Shapira, Yoav wrote: Howdy, All you should add is another servlet-mapping tag for the JSP servlet with the extension of the files you want (e.g. *.bob). Yoav Shapira Millennium ChemInformatics -Original Message- From: Duncan Smith [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:43 AM To: Tomcat Users List Subject: Serving other files as JSPs Is it possible to serve other files extentions as JSPs? ie. if I had a file hello.bob, would I be able to run JSP code in it. I have tried adding and extra servlet entry in the web.xml identical to the JSP one but with a differant name and have also tried ading an extra servlet-mapping for both my servlet entry and also for the JSP servlet entry but the page are being returned to me as text (with the code still in it). Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: JRun - maybe off topic
Thanks - that's great - explains everything I need to know. Cheers - Steve On Fri, 26 Sep 2003, Kok Wei, Koh wrote: Hi Steve, Yes you can. Say you have machine A and B, with A running Apache (w/ mod_jrun) and B with JRun. You have to first configure JRun to disable the JRun web server (in this case you dont want to use it because it's always better to have Apache in front shielding JRun), and then configure the external webserver which will then open up the jcp (JRun connector port). This is the port on machine B that's opened up for mod_jrun on machine A to connect to. On machine A, you need to have the local.properties file of the JRun server running on machine B, so that mod_jrun is able to look up the jcp to connect to. I'm bad at illustrating this with words ... forgive me if the above is kinda misleading. I've done this kinda setup before and it works. I however, just got experience with JRun 3.0, and not 4.0. Good luck! ;-) and happy trying. Steve Harris wrote: So can jrun be split off and run on a sperate box from apache like I can with tomcat ? Cheers - Steve On Thu, 25 Sep 2003, Shapira, Yoav wrote: Howdy, JRun is a complete J2EE server. It can replace just your tomcat piece or whole apache-tomcat setup. If you really need Apache, it probably because your traffic is high enough that tomcat standalone can't handle it. In that case, you'll still need Apache in front o JRun. Yoav Shapira Millennium ChemInformatics -Original Message- From: Steve Harris [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:07 PM To: [EMAIL PROTECTED] Subject: JRun - maybe off topic Hi all, I'm trying to get to grips with the architecture for an application we are going to be deploying. I have no problem with the apache/tomcat set-up but this app uses apache and JRun. Am I reading this wrong or does JRun simply take the place of tomcat but runs the apps locally as opposed to being able to be deployed under an apps server like tomcat on some other server somewhere ? Cheers - Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Error Finding config file: workers2.properties
I get this error during tomcat 4.2.27 startup: INFO: Starting Coyote HTTP/1.1 on port 8443 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.pr operties [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers 2.properties [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)] shm.init(): No file [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties Here is the connector definition from server.xml: !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true serverRoot=/usr/local/jakarta-tomcat-4.1.27 acceptCount=100 debug=5 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / parameter nameserverRoot/name value/usr/local/jakarta-tomcat-4.1.27/value /parameter /Connector My workers2.properties file is here: ganja:/usr/local/tomcat/conf #ls -l /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties -rw-r--r-- 1 tomcat httpd258 Aug 30 23:14 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties The contents of this file are as follows: [shm] file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file size=1048576 # Example unixsocket channel. [channel.un:unixsocket] file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket Any ideas? Thx, Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOW INCREASE URL length size ?
You can't. :-D That is a browser limitation. Most are in the range of 2000 chars, but at any rate that is out of your control. You will need to POST if you have a form sending more data than that. If you have urls that are longer than that, then you are in a bad place. ;-) Larry [EMAIL PROTECTED] 09/26/03 6:43 AM Hi, Url limit size is to 451 characters. How can increase it to 800 in Tomcat 4.1.24 ? Thanks Philipe Philippe COUAS Responsable Développement INFODEV S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOW INCREASE URL length size ?
Viagra maybe? ;-) Rhino - Original Message - From: Philippe Couas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 8:43 AM Subject: HOW INCREASE URL length size ? Hi, Url limit size is to 451 characters. How can increase it to 800 in Tomcat 4.1.24 ? Thanks Philipe Philippe COUAS Responsable Développement INFODEV S.A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Directory Listing
Hello, I am running Tomcat 4.0.6 on Win 2000, and I have three web apps running. I would like to turn off directory listing, but cannot figure out how. I have searched google, but have came up empty. Could someone please let me know how to turn 'directory listing' off. [eg http://site/webapp currently shows all files in that directory ] Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Directory Listing
http://jakarta.apache.org/tomcat/faq/misc.html#listing Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: Directory Listing Hello, I am running Tomcat 4.0.6 on Win 2000, and I have three web apps running. I would like to turn off directory listing, but cannot figure out how. I have searched google, but have came up empty. Could someone please let me know how to turn 'directory listing' off. [eg http://site/webapp currently shows all files in that directory ] Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not showing any error report
* Tim Funk ([EMAIL PROTECTED]) wrote: 1) Check permissions and user ids Ok, running as user 'tomcat' and group 'tomcat'. It now owns the whole CATALINA_HOME directory. 2) Are you running with the security manager turned on? If so, I never do so I can't be of help. I'm running with it turned off. 3) Do you get the same problems with a default install? I did a default install and my JSP for testing shows the error message. I played for 2 hours with the configuration and found one thing. When I have the lines below from the server.xml of the default install it stops working (the error report): Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ But when I add these lines to the current server.xml install (they were missing) the error report doesn't work either. Am I close? -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper Pre-Compiling JSPs with the same name
Hi, I have JSPs in seperate folders with the same name and when i try to precompile them (Using ANT) i get a duplicate class name error... as you'd expect when i pass in one class package name e.g. jasper package=com.mycompany.servlets uriroot=jsps webXmlFragment=jsp-fragments.xml outputDir=src/jsp/ Any ideas how i might resolve this issue? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Finding config file: workers2.properties
I had same problem. I found that if the workers2.properties file was supposed to be in {apache-home}/conf/ Good luck :-) Duncan Smith Decker Telecom Ltd Rhugga wrote: I get this error during tomcat 4.2.27 startup: INFO: Starting Coyote HTTP/1.1 on port 8443 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.pr operties [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers 2.properties [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)] shm.init(): No file [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties Here is the connector definition from server.xml: !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true serverRoot=/usr/local/jakarta-tomcat-4.1.27 acceptCount=100 debug=5 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / parameter nameserverRoot/name value/usr/local/jakarta-tomcat-4.1.27/value /parameter /Connector My workers2.properties file is here: ganja:/usr/local/tomcat/conf #ls -l /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties -rw-r--r-- 1 tomcat httpd258 Aug 30 23:14 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties The contents of this file are as follows: [shm] file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file size=1048576 # Example unixsocket channel. [channel.un:unixsocket] file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket Any ideas? Thx, Chuck - 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 not showing any error report
* Giovanni P. Tirloni ([EMAIL PROTECTED]) wrote: I played for 2 hours with the configuration and found one thing. When I have the lines below from the server.xml of the default install it stops working (the error report): That should read: When I take the lines below OUT of server.xml of the default install it stops working. -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Directory Listing
Thank you very much, That has a ton of information I can use down the road. Sincerely Scott -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:25 AM To: Tomcat Users List Subject: RE: Directory Listing http://jakarta.apache.org/tomcat/faq/misc.html#listing Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: Directory Listing Hello, I am running Tomcat 4.0.6 on Win 2000, and I have three web apps running. I would like to turn off directory listing, but cannot figure out how. I have searched google, but have came up empty. Could someone please let me know how to turn 'directory listing' off. [eg http://site/webapp currently shows all files in that directory ] Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation
Hi, I am trying to manage a development team wherein each user uses the same instance of Tomcat for development. I do this by having a different server.xml file for each user and having the context docBase point to the build/webapps directory of each user, like shown below: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ /Context Now I want to specify a different workDir for each user also. How do I do that? I tried adding the following Loader element inside the Context but it doesn't work: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ Loader className=org.apache.catalina.loader.WebappLoader delegate=false reloadable=false workDir=work/biswasg/ /Context I want to do this as all JSP pages are now being compiled into the same work directory for every user. So if two or more users are concurrently working on the same JSP page they sometimes end up with a feature that they never added! (and which someone else working on the same JSP page might have added). So they ask me the question Hey, I didn't add this... How did that thing get in there?. And that triggered me into thinking that if I can specify a different workDir for each user the problem will be solved... Is this really do-able ? Regards, -Goutam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation
Howdy, If you want to use the same tomcat instance (bad idea IMHO), use a different CATALINA_HOME for each user with the same CATALINA_BASE. Take the rest of your configurations, especially the Loader, out of server.xml. A better alternative is to have a completely separate tomcat instance for each developer. Yoav Shapira Millennium ChemInformatics -Original Message- From: Biswas, Goutam_Kumar [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:43 PM To: Tomcat Users List Subject: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation Hi, I am trying to manage a development team wherein each user uses the same instance of Tomcat for development. I do this by having a different server.xml file for each user and having the context docBase point to the build/webapps directory of each user, like shown below: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ /Context Now I want to specify a different workDir for each user also. How do I do that? I tried adding the following Loader element inside the Context but it doesn't work: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ Loader className=org.apache.catalina.loader.WebappLoader delegate=false reloadable=false workDir=work/biswasg/ /Context I want to do this as all JSP pages are now being compiled into the same work directory for every user. So if two or more users are concurrently working on the same JSP page they sometimes end up with a feature that they never added! (and which someone else working on the same JSP page might have added). So they ask me the question Hey, I didn't add this... How did that thing get in there?. And that triggered me into thinking that if I can specify a different workDir for each user the problem will be solved... Is this really do-able ? Regards, -Goutam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation
Shapira, If I'm not too demanding :-) can you please explain why it is a bad idea to use the same Tomcat instance for more than one user. Is it performance related or is it something else ? Regards, Goutam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:14 PM To: Tomcat Users List Subject: RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation Howdy, If you want to use the same tomcat instance (bad idea IMHO), use a different CATALINA_HOME for each user with the same CATALINA_BASE. Take the rest of your configurations, especially the Loader, out of server.xml. A better alternative is to have a completely separate tomcat instance for each developer. Yoav Shapira Millennium ChemInformatics -Original Message- From: Biswas, Goutam_Kumar [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:43 PM To: Tomcat Users List Subject: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation Hi, I am trying to manage a development team wherein each user uses the same instance of Tomcat for development. I do this by having a different server.xml file for each user and having the context docBase point to the build/webapps directory of each user, like shown below: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ /Context Now I want to specify a different workDir for each user also. How do I do that? I tried adding the following Loader element inside the Context but it doesn't work: Context path=/POS docBase=/u/biswasg/Proj/pos/bin/share/../../build/webapps debug=0 reloadable=true crossContext=false swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/biswasg prefix=pos_log. suffix=.txt timestamp=false/ Loader className=org.apache.catalina.loader.WebappLoader delegate=false reloadable=false workDir=work/biswasg/ /Context I want to do this as all JSP pages are now being compiled into the same work directory for every user. So if two or more users are concurrently working on the same JSP page they sometimes end up with a feature that they never added! (and which someone else working on the same JSP page might have added). So they ask me the question Hey, I didn't add this... How did that thing get in there?. And that triggered me into thinking that if I can specify a different workDir for each user the problem will be solved... Is this really do-able ? Regards, -Goutam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Mail Session oddity
Everyone, I encountered something odd when setting up a new Tomcat server. I have a mail session in the server.xml and when I run my app I get the following error: javax.servlet.ServletException: javax/mail/Session at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533) at org.apache.jsp.index_jsp._jspService(index_jsp.java:361) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) rest truncated for space The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? Thanks in advance, Cord Awtry
RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation
Howdy, If I'm not too demanding :-) can you please explain why it is a bad idea to use the same Tomcat instance for more than one user. Is it performance related or is it something else ? Your users above are developers, not normal client users. It's legitimate for developers to experiment with the server configuration, properties, etc. Tomcat is free, you don't have to pay anything for extra installations. Forcing developers to share installations restricts their options during development (or at least slows down the process if they have to make sure their config change is OK with all other developers using the server). If one developer's mistake crashes the server, everyone suffers. If he has his own server, no one else is interrupted when it crashes. Finally, sharing the same tomcat instance doesn't gain you any significant advantage. Of course, there should be a shared/central integration testing server. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mail Session oddity
Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation
Thanks Shapira ... for the feedback and for making me more knowledgeable :-) -Goutam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 10:31 PM To: Tomcat Users List Subject: RE: How do I specify a different workDir for each user accessing the same Tomcat 4.1.27 implementation Howdy, If I'm not too demanding :-) can you please explain why it is a bad idea to use the same Tomcat instance for more than one user. Is it performance related or is it something else ? Your users above are developers, not normal client users. It's legitimate for developers to experiment with the server configuration, properties, etc. Tomcat is free, you don't have to pay anything for extra installations. Forcing developers to share installations restricts their options during development (or at least slows down the process if they have to make sure their config change is OK with all other developers using the server). If one developer's mistake crashes the server, everyone suffers. If he has his own server, no one else is interrupted when it crashes. Finally, sharing the same tomcat instance doesn't gain you any significant advantage. Of course, there should be a shared/central integration testing server. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Mail Session oddity
Yo Yaov, Actually, I didn't truncate the wrong part... that IS the root cause, I left off the beginning and truncated the lowerhalf of the root cause stacktrace. As for the mail.jar and activation.jar those already are in the WEB-INF/lib directory. So now you see where the oddity is :) -C- - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:02 PM Subject: RE: Mail Session oddity Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Mail Session oddity
But mail.jar and activation.jar are also in the common/lib directory. I'll bet it's a ClassLoader issue and the exception is really a wrapped ClassCastException. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Jon Cord Awtry wrote: Yo Yaov, Actually, I didn't truncate the wrong part... that IS the root cause, I left off the beginning and truncated the lowerhalf of the root cause stacktrace. As for the mail.jar and activation.jar those already are in the WEB-INF/lib directory. So now you see where the oddity is :) -C- - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:02 PM Subject: RE: Mail Session oddity Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Mail Session oddity
Should your IDE include mail and activation into its classpath? -Original Message- From: Cord Awtry [mailto:[EMAIL PROTECTED] Sent: September 26, 2003 12:53 PM To: Tomcat Users List Subject: Mail Session oddity Everyone, I encountered something odd when setting up a new Tomcat server. I have a mail session in the server.xml and when I run my app I get the following error: javax.servlet.ServletException: javax/mail/Session at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:533) at org.apache.jsp.index_jsp._jspService(index_jsp.java:361) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) rest truncated for space The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? Thanks in advance, Cord Awtry
RE: Mail Session oddity
Howdy, Actually, I didn't truncate the wrong part... that IS the root cause, I left off the beginning and truncated the lowerhalf of the root cause stacktrace. As for the mail.jar and activation.jar those already are in the WEB-INF/lib directory. So now you see where the oddity is :) Ah, yes, that is odd. FWIW, I have no problem having mail.jar/activation.jar in both common/lib and WEB-INF/lib, I've had that working fine for a long time now. Can you post the stack trace again? Thanks, Yoav Shapira -C- - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:02 PM Subject: RE: Mail Session oddity Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mail Session oddity
Jon, Actually, there isn't a mail.jar or activation.jar in common/lib or anywhere in the tomcat directory structure for that matter. But your comment got me thinking... I moved the mail.jar and activation.jar from the WEB-INF/lib directory of my application to the common/lib folder and lo and behold it all began to work. Curious... wonder why it wasn't there to begin with. Anyway, thanks to all for the responses... -C- - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:19 PM Subject: Re: Mail Session oddity But mail.jar and activation.jar are also in the common/lib directory. I'll bet it's a ClassLoader issue and the exception is really a wrapped ClassCastException. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Jon Cord Awtry wrote: Yo Yaov, Actually, I didn't truncate the wrong part... that IS the root cause, I left off the beginning and truncated the lowerhalf of the root cause stacktrace. As for the mail.jar and activation.jar those already are in the WEB-INF/lib directory. So now you see where the oddity is :) -C- - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:02 PM Subject: RE: Mail Session oddity Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
Irregular error dumped to stderr without a stack trace.
Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve
RE: Irregular error dumped to stderr without a stack trace.
Howdy, Do you use System.out/System.err to log in your app? Could it simply be an uncaught null pointer exception in your report generation code due to some bad data contents in the report? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Irregular error dumped to stderr without a stack trace. Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not showing any error report (FIXED?)
This was my old entry (no error page, nothing): Host name=mydomain.com Alias name=www.mydomain.com Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true/ Context path= docBase=/var/www/mydomain/ Context path=/_webapp privileged=true docBase=/path/jakarta-tomcat-4.1.27/server/webapps/manager/ /Host This is the new entry that shows the error page. Adding unpackWARs gives more info about the error (line number, etc): Host name=mydomain.com unpackWARs=true Alias name=www.mydomain.com Context path= docBase=/var/www/mydomain/ Context path=/_webapp privileged=true docBase=/path/jakarta-tomcat-4.1.27/server/webapps/manager/ /Host I also changed the HTTP Connector from: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 proxyPort=80 acceptCount=10 debug=0 connectionTimeout=6/ to: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 proxyPort=80 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / I hope this helps anyone having the same problem. Thanks everybody for the hints. -- Giovanni P. Tirloni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Irregular error dumped to stderr without a stack trace.
Yoav, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( There is a catch in the base servlet that should throw a stack trace for ANY error. After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:47 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, Do you use System.out/System.err to log in your app? Could it simply be an uncaught null pointer exception in your report generation code due to some bad data contents in the report? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Irregular error dumped to stderr without a stack trace. Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Irregular error dumped to stderr without a stack trace.
Are you sure this isn't being done: System.out.println(e.getMessage()); Which (I think) will print java.lang.NullPointer and nothing else similar to the behavior your getting. -Tim [EMAIL PROTECTED] wrote: Yoav, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( There is a catch in the base servlet that should throw a stack trace for ANY error. After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Irregular error dumped to stderr without a stack trace.
No - its a printStackTrace() that is being used - we dont use getMessage() at that point at all - if we had it would be in the stdout log though - we only use System.out for debugging messages. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 2:03 PM To: Tomcat Users List Subject: Re: Irregular error dumped to stderr without a stack trace. Are you sure this isn't being done: System.out.println(e.getMessage()); Which (I think) will print java.lang.NullPointer and nothing else similar to the behavior your getting. -Tim [EMAIL PROTECTED] wrote: Yoav, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( There is a catch in the base servlet that should throw a stack trace for ANY error. After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Irregular error dumped to stderr without a stack trace.
Howdy, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( The above suggests a thread contention or race condition type issue. There is a catch in the base servlet that should throw a stack trace for ANY error. So it does try { ... } catch (Throwable t) { System.out.println(t); t.printStackTrace(); } Or something similar? Yoav Shapira After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:47 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, Do you use System.out/System.err to log in your app? Could it simply be an uncaught null pointer exception in your report generation code due to some bad data contents in the report? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Irregular error dumped to stderr without a stack trace. Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Affinity
Hi, I am trying to load balance between 2 Tomcat servers. But I cannot get session affinity to work. The first time I get a page from the browser, I would receive a page from one server. Then when I refresh (reload from browser) the page, I would get a page from the other tomcat server. I have checked the session id's from the 2 pages and they are different. If I understand correctly, with session affinity, when I reload a page shouldn't I get the page from the same server with the same session? My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2. For each tomcat instance, I have modified server.xml to have an unique jvmRoute; tn1 for one server and tn2 for the other. These match the tomcatId in the workers2.properties file. The workers2.properties is # only at beginnin. In production uncomment it out [logger] level=DEBUG [config:] file=${serverRoot}/workers2.properties debug=0 debugEnv=0 [shm:] file=${serverRoot}/logs/shm.file size=1048576 debug=0 disabled=0 [lb:lb] info=Default load balancer. debug=0 # Example socket channel, override port and host. [channel.socket:neptune:8009] info=Ajp13 forwarding over socket tomcatId=tn1 lb_factor=1 debug=0 [channel.socket:neptune:8109] info=Ajp13 forwarding over socket tomcatId=tn2 lb_factor=1 debug=0 [status:] info=Status worker, display runtime informations # Uri mapping [uri:/*] debug=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: Is there something that I have missed or misunderstood? Any help would be appreciated. Regards, Ray IMPORTANT NOTICE: The information in this email (and any attachments hereto) is confidential and may be protected by legal privileges and work product immunities. If you are not the intended recipient, you must not use or disseminate the information. Receipt by anyone other than the intended recipient is not a waiver of any attorney-client or work product privilege. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Transatlantic Reinsurance Company or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use.
Re: Session Affinity
did you set up jvmRoute in server.xml ? Filip - Original Message - From: Ho, Raymond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:57 AM Subject: Session Affinity Hi, I am trying to load balance between 2 Tomcat servers. But I cannot get session affinity to work. The first time I get a page from the browser, I would receive a page from one server. Then when I refresh (reload from browser) the page, I would get a page from the other tomcat server. I have checked the session id's from the 2 pages and they are different. If I understand correctly, with session affinity, when I reload a page shouldn't I get the page from the same server with the same session? My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2. For each tomcat instance, I have modified server.xml to have an unique jvmRoute; tn1 for one server and tn2 for the other. These match the tomcatId in the workers2.properties file. The workers2.properties is # only at beginnin. In production uncomment it out [logger] level=DEBUG [config:] file=${serverRoot}/workers2.properties debug=0 debugEnv=0 [shm:] file=${serverRoot}/logs/shm.file size=1048576 debug=0 disabled=0 [lb:lb] info=Default load balancer. debug=0 # Example socket channel, override port and host. [channel.socket:neptune:8009] info=Ajp13 forwarding over socket tomcatId=tn1 lb_factor=1 debug=0 [channel.socket:neptune:8109] info=Ajp13 forwarding over socket tomcatId=tn2 lb_factor=1 debug=0 [status:] info=Status worker, display runtime informations # Uri mapping [uri:/*] debug=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: Is there something that I have missed or misunderstood? Any help would be appreciated. Regards, Ray IMPORTANT NOTICE: The information in this email (and any attachments hereto) is confidential and may be protected by legal privileges and work product immunities. If you are not the intended recipient, you must not use or disseminate the information. Receipt by anyone other than the intended recipient is not a waiver of any attorney-client or work product privilege. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Transatlantic Reinsurance Company or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
When does tomcat call the garbage collector?
Hello I am working on a crm web app in jsp. I am pre-compiling everything with ant and serving them as servlets though tomcat. I am curious when tomcat does garbage collection on the servlets. For instance, if a servlet opens stuff up I would imagen when that page has finished executing it would clean up anything not properly cleaned up. The real issue... I have a dbHandler class that takes care of sql statements and connection pooling. I am using IBM's AS400JDBCConnectionPool class to handle the pool. If it has say 100 connections open, and you shutdown tomcat. They stay open on the AS400. I would think that some process would go though and close everything that is open when tomcat shuts down. I am compiling with JDK1.4.2_09 and running Tomcat 4.1.27 which is using JRE1.4.2 to execute the servlets. Any ideas would be helpful, thanks. Bruce Marriner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When does tomcat call the garbage collector?
it is your own responsibility to close connections from a pool. Tomcat doesn't do garbage collection, the Java VM does. Also, if you kill your VM and the connections are still open on the AS400 box, tough luck, (I would imagine they should timeout shortly) that is out of reach from the VM/Tomcat side, best thing you can do is to not keep a pool of open connections, because if the VM crashes or gets killed, there will be no one closing them from the client Filip - Original Message - From: Bruce W. Marriner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:10 PM Subject: When does tomcat call the garbage collector? Hello I am working on a crm web app in jsp. I am pre-compiling everything with ant and serving them as servlets though tomcat. I am curious when tomcat does garbage collection on the servlets. For instance, if a servlet opens stuff up I would imagen when that page has finished executing it would clean up anything not properly cleaned up. The real issue... I have a dbHandler class that takes care of sql statements and connection pooling. I am using IBM's AS400JDBCConnectionPool class to handle the pool. If it has say 100 connections open, and you shutdown tomcat. They stay open on the AS400. I would think that some process would go though and close everything that is open when tomcat shuts down. I am compiling with JDK1.4.2_09 and running Tomcat 4.1.27 which is using JRE1.4.2 to execute the servlets. Any ideas would be helpful, thanks. Bruce Marriner - 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]
Pleas help (Custom Authenticator Reaml Problem)
Dear all, I wrote my own authenticator (extends FormAuthenticator) realm (extends JDBCRealm). What I need is to check one more field in the database besides password for authentication. Only minor modifications are made on the original codes so I think it should be fine. What I also did include changing the org/apache/catalina/startup/Authenticators.properties file to add the new authenticator; modifying the server.xml and web.xml accordingly. Furthermore, I added the entries for my authenticator and realm in the mbeans-descriptor.xml file. I expected everything to work perfectly but when I tried to access the secured area, I got the following error: HTTP Status 500 - Configuration error: Cannot perform access control without an authenticated principal - type Status report message Configuration error: Cannot perform access control without an authenticated principal description The server encountered an internal error (Configuration error: Cannot perform access control without an authenticated principal) that prevented it from fulfilling this request. This error was triggered instantly. I mean I even did not have a chance to see the login webpage. Now I have several questions: What is the flow of the authentication? Was my authenticator got executed at all? Any suggestions would be greatly appreciated. - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
RE: Irregular error dumped to stderr without a stack trace. (SOLV ED)
Just an FYI. I appear to have solved this problem - a variable was 'magically' nulling itself when I did NOT null it at random intervals (I am suspicious of our Garbage Collection settings right now but we shall see...) Still doesnt explain why there was no stacktrace attached with the printStackTrace() but oh well - cant have everything I guess! Thanks for the help, Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 2:13 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( The above suggests a thread contention or race condition type issue. There is a catch in the base servlet that should throw a stack trace for ANY error. So it does try { ... } catch (Throwable t) { System.out.println(t); t.printStackTrace(); } Or something similar? Yoav Shapira After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:47 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, Do you use System.out/System.err to log in your app? Could it simply be an uncaught null pointer exception in your report generation code due to some bad data contents in the report? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Irregular error dumped to stderr without a stack trace. Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ot] Re: Irregular error dumped to stderr without a stack trace. (SOLVED)
I love how things in a world with only 0/1 (zeros and ones) can be magic and random :)) Filip - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:26 PM Subject: RE: Irregular error dumped to stderr without a stack trace. (SOLVED) Just an FYI. I appear to have solved this problem - a variable was 'magically' nulling itself when I did NOT null it at random intervals (I am suspicious of our Garbage Collection settings right now but we shall see...) Still doesnt explain why there was no stacktrace attached with the printStackTrace() but oh well - cant have everything I guess! Thanks for the help, Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 2:13 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, If that were the case the report should bomb out every time it was ran on the same set of data - which its not :( The above suggests a thread contention or race condition type issue. There is a catch in the base servlet that should throw a stack trace for ANY error. So it does try { ... } catch (Throwable t) { System.out.println(t); t.printStackTrace(); } Or something similar? Yoav Shapira After some more debugging, the exception is being caught by this base Exception catch (identified by a System.out) - but like I said, the stacktrace is being truncated to the first line of it for some reason. Normally this would provide a full stack trace. Steve -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:47 PM To: Tomcat Users List Subject: RE: Irregular error dumped to stderr without a stack trace. Howdy, Do you use System.out/System.err to log in your app? Could it simply be an uncaught null pointer exception in your report generation code due to some bad data contents in the report? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Irregular error dumped to stderr without a stack trace. Hi there, I have spent a bit of time trying to figure out why this problem is happening with no luck - so I decided to email the mailing list. The issue is this: We have a PDF reporting engine running from Tomcat 4.1.24 - in a Production environment. I have a particular report that is erroring out irregularly - sometimes it will run 3-4 times in a row and then it will bomb out (this is after re-starting the tomcat service), other times it will bomb out after restart immediately. The weird thing is is the error that is being dumped to the stderr log does NOT have a stack trace - it is dumping with: java.lang.NullPointerException on stderr. This reminds me of the OutOfMemoryError which dumps without a stack trace, but slightly less descriptive. Is there any way to get more description on this problem? I have tried to up the debug levels in the server.xml without any success. NOTE Other reports that are larger and more resource intensive are running consistently without a hitch. Thanks in advance, Steve This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: When does tomcat call the garbage collector?
For some reason I figured when tomcat shutdown, along with the JVM -- it would finalize any open classes. And with that action it would close the open connections. Yes the open connections will die after a set value, some x odd hours. It is rather easy to control the number of pooled connection and close them while tomcat is running. But it's the shutdown part I'm concerned about. But when 200 some odd users are using an app it's rather slow to run everyone off a single DB connection :). Is there some way to tell JVM to finalize all open classes at exit? Some command-line argument or com call, or something... -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 2:15 PM To: Tomcat Users List Subject: Re: When does tomcat call the garbage collector? it is your own responsibility to close connections from a pool. Tomcat doesn't do garbage collection, the Java VM does. Also, if you kill your VM and the connections are still open on the AS400 box, tough luck, (I would imagine they should timeout shortly) that is out of reach from the VM/Tomcat side, best thing you can do is to not keep a pool of open connections, because if the VM crashes or gets killed, there will be no one closing them from the client Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Affinity
Filip Hanik said: did you set up jvmRoute in server.xml ? - Original Message - From: Ho, Raymond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:57 AM Subject: Session Affinity My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2. For each tomcat instance, I have modified server.xml to have an unique jvmRoute; tn1 for one server and tn2 for the other. These match the tomcatId in the workers2.properties file. He said he did, see above. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new build of isapi_redirector2.dll
The current Jakarta release version is 2.0.2 which is from Fall 2002. If anyone is interested in trying something newer, I've posted a build on my web site: http://web.bvu.edu/staff/david/tcservcfg/isapi_redirector2.zip This based on the Tomcat 4.1.27 source code with the current Apache httpd PCRE and APR source. I have no environment in which to test this, so I make no guarantees about if it work, etc., but it did compile without any warnings.
addendum: new build of isapi_redirector2.dll
I have also gotten the latest cvs snapshot to build fine so long as I use the 1.52 version of jk_channel_socket.c. Both this and the 4.1.27-based isapi_redirector2.dll are available at the link below. If they work, this should give us access to most of the latest bug fixes until the next official release. http://web.bvu.edu/staff/david/tcservcfg/isapi.html
Re: new build of isapi_redirector2.dll
Thanks! John David Boyer wrote: The current Jakarta release version is 2.0.2 which is from Fall 2002. If anyone is interested in trying something newer, I've posted a build on my web site: http://web.bvu.edu/staff/david/tcservcfg/isapi_redirector2.zip This based on the Tomcat 4.1.27 source code with the current Apache httpd PCRE and APR source. I have no environment in which to test this, so I make no guarantees about if it work, etc., but it did compile without any warnings. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mail Session oddity
Maybe you are using Tomcat's mail session resource. That particularly looks for mail.jar and activation.jar in common/lib -Original Message- From: Cord Awtry [mailto:[EMAIL PROTECTED] Sent: September 26, 2003 1:34 PM To: Tomcat Users List Subject: Re: Mail Session oddity Jon, Actually, there isn't a mail.jar or activation.jar in common/lib or anywhere in the tomcat directory structure for that matter. But your comment got me thinking... I moved the mail.jar and activation.jar from the WEB-INF/lib directory of my application to the common/lib folder and lo and behold it all began to work. Curious... wonder why it wasn't there to begin with. Anyway, thanks to all for the responses... -C- - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:19 PM Subject: Re: Mail Session oddity But mail.jar and activation.jar are also in the common/lib directory. I'll bet it's a ClassLoader issue and the exception is really a wrapped ClassCastException. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Jon Cord Awtry wrote: Yo Yaov, Actually, I didn't truncate the wrong part... that IS the root cause, I left off the beginning and truncated the lowerhalf of the root cause stacktrace. As for the mail.jar and activation.jar those already are in the WEB-INF/lib directory. So now you see where the oddity is :) -C- - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:02 PM Subject: RE: Mail Session oddity Howdy, rest truncated for space You truncated the wrong part: don't truncate the Root Cause part of the stack trace, post it ;) The oddness comes into play in that it works just fine if I run tomcat through my IDE (CodeGuide). It has to be some sort of classpath problem but I can't for the life of me figure out what it could be. Has anyone seen anything like this or have any ideas? CodeGuide is placing mail.jar and activation.jar on the webapp's classpath. You need those jars in the WEB-INF/lib directory of your webapp if you want to use the mail API. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Session Affinity
Yes I did. After your email I checked again. But this time, I found the problem. The jvmRoute was misspelled; it had jmvRoute. This is misspelled in the original server.xml file. I corrected the spelling and it works fine now. Thanks for your help. Ray -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 3:02 PM To: Tomcat Users List Subject: Re: Session Affinity did you set up jvmRoute in server.xml ? Filip - Original Message - From: Ho, Raymond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:57 AM Subject: Session Affinity Hi, I am trying to load balance between 2 Tomcat servers. But I cannot get session affinity to work. The first time I get a page from the browser, I would receive a page from one server. Then when I refresh (reload from browser) the page, I would get a page from the other tomcat server. I have checked the session id's from the 2 pages and they are different. If I understand correctly, with session affinity, when I reload a page shouldn't I get the page from the same server with the same session? My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2. For each tomcat instance, I have modified server.xml to have an unique jvmRoute; tn1 for one server and tn2 for the other. These match the tomcatId in the workers2.properties file. The workers2.properties is # only at beginnin. In production uncomment it out [logger] level=DEBUG [config:] file=${serverRoot}/workers2.properties debug=0 debugEnv=0 [shm:] file=${serverRoot}/logs/shm.file size=1048576 debug=0 disabled=0 [lb:lb] info=Default load balancer. debug=0 # Example socket channel, override port and host. [channel.socket:neptune:8009] info=Ajp13 forwarding over socket tomcatId=tn1 lb_factor=1 debug=0 [channel.socket:neptune:8109] info=Ajp13 forwarding over socket tomcatId=tn2 lb_factor=1 debug=0 [status:] info=Status worker, display runtime informations # Uri mapping [uri:/*] debug=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: Is there something that I have missed or misunderstood? Any help would be appreciated. Regards, Ray IMPORTANT NOTICE: The information in this email (and any attachments hereto) is confidential and may be protected by legal privileges and work product immunities. If you are not the intended recipient, you must not use or disseminate the information. Receipt by anyone other than the intended recipient is not a waiver of any attorney-client or work product privilege. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Transatlantic Reinsurance Company or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE: The information in this email (and any attachments hereto) is confidential and may be protected by legal privileges and work product immunities. If you are not the intended recipient, you must not use or disseminate the information. Receipt by anyone other than the intended recipient is not a waiver of any attorney-client or work product privilege. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Transatlantic Reinsurance Company or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Resource Questions
Hi. I have recently begun using Tomcat and I am trying to gain a better understanding of its configuration. Currently, I am most confused with the relationship between Resources, GlobalNamingResources, and resource-refs. I have configured a JDBC datasource Resource within a context in the server.xml and am able to retrieve and use the datasource without any problems. However, when I put the same Resource within the GlobalNamingResources section, I get the apparently common Cannot load JDBC driver class 'null'. Now, I understand that using a ResourceLink within the context solves this, but is this how it is supposed to work or is it merely a workaround (albeit a good one)? I just want to be clear because I found this trick in the list archive and not in the official Tomcat documentation (though I may have missed it). Finally, I have yet to see a case in which the resource-ref within the webapp.xml is necessary. Can anyone explain to me what this is supposed to do? I thought that initially, it was necessary only if you had put your Resource within the GlobalNamingResources but this does not appear to be true. Any help would be appreciated. Thanks. -- Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connector for Apache 2.0.47 ... Please Help
dean, As said by lot of members, it would be great if you can post your document in the mailing list. BTW, did anyone try resin? How does it compare to tomcat? Thanks, Bhaskar The information contained in this communication may be confidential or legally privileged and is intended only for the recipient named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication or its contents is strictly prohibited. If you have received this communication in error, please immediately advise the sender and delete the original and any copies from your computer system. -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 8:01 AM To: Tomcat Users List Subject: RE: Tomcat connector for Apache 2.0.47 ... Please Help I'd like to see your pdf, and I'm sure other members of this list wouldn't mind seeing it as well. Who knows, maybe we can add it to the slim documentation on the jakarta site. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 7:44 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat connector for Apache 2.0.47 ... Please Help Joe, You place the mod_jk2 file in the correct folder, however you have set up the parameters in your httpd.conf file incorrectly. The parameters you have are for the mod_jk module. For the mod_jk2 module you would need a workers2.properties file and a jk2.shm file. I have documented a full install of Apache 2.0.46 and Tomcat 4.1.26. on Windows 2000, but I have used the same instructions on my WinXP Pro with out any problems. If this mail list would not mind me sending this document please let me know. This is information I have compiled from numerous mail lists and debugged for many months. The document is about 20 pages long give or take. I don't have it in front of me at this time. I can post it as a pdf or RTF. Let me know which version is more acceptable. Dean -Original Message- From: Joe Mihalich [mailto:[EMAIL PROTECTED] Sent: Thu 9/25/2003 7:29 PM To: [EMAIL PROTECTED] Cc: Subject: Tomcat connector for Apache 2.0.47 ... Please Help Hi, I've installed Apache version 2.0.47, and tomcat version 4.1.27 on a windows xp box. I've downloaded the mod_jk2-2.0.43.dll connector, and put it in the modules directory Under apache. I configured tomcat to auto generate the mod_jk.conf file. All that is working ok.so it seems. I then modified the httpd.conf file as follows: LoadModule jk_module modules/mod_jk2-2.0.43.dll AddModule mod_jk.c JkWorkersFile \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\jk\workers.properties JkLogFile logs\mod_jk.log JkLogLevel debug And added this include, at the end of the file Include \Program Files\Apache Group\jakarta-tomcat-4.1.27\conf\auto\mod_jk.conf Now, when I try to start up apache, I'm getting this error: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Program Files/Apache Gr oup/Apache2/modules/mod_jk2.dll: No error Line 173 is the LoadModule line above. Can someone please tell me why I'm getting this error? In the download Directory for mod_jk2-2.0.43.dll, it says that this file is only for Apache 2.0.43. I assume that it will work for 2.0.47.or is that the problem here? I can't Find 2.0.43 to download anymore. Also, I'm confused as to why all the other modules in the modules sub directory Have the .so extension. Aren't those unix shared library objects? Can they work On windows? Anyway, any help would be appreciated.
Re: Configuring server.xml for SSL breaks Tomcat
Thanks. I tried both suggestions exhaustively but don't any much better success. I have apache running SSL on this same server. Should I be working on the jk2 connector instead, to use Apache's SSL? That looked more complicated at first. Thanks, Matt Matt, 2 suggestions: 1. Upgrade your JDK to 1.4.x. JSSE is now integrated with the Java Runtime and, you never know, this step alone might fix your problem. 2. Create and configure the SSL connector using the Admin tool instead of manually editing server.xml. - 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 connector for Apache 2.0.47 ... Please Help
20 pages? What else is in there besides connector configuration? Just curious John Bhaskar Marthi wrote: dean, As said by lot of members, it would be great if you can post your document in the mailing list. BTW, did anyone try resin? How does it compare to tomcat? Thanks, Bhaskar The information contained in this communication may be confidential or legally privileged and is intended only for the recipient named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication or its contents is strictly prohibited. If you have received this communication in error, please immediately advise the sender and delete the original and any copies from your computer system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Finding config file: workers2.properties
INFO: Starting Coyote HTTP/1.1 on port 8443 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.pr operties [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers 2.properties [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)] shm.init(): No file [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties This seams to be a still present bug of mod_jk2 java sources. Aparently, the only way to define that property, serverRoot is to define and export it as an environment variable in one of the satrtup scripts, catalina.sh or startup.sh. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Apache Tomcat) || (Tomcat with CGI Support)?
Dear All, I need to accomondate some old cgi scripts on my website but primarily it uses java. I am wondering which comb is better in terms of simplicity and usability. By the way, I tried to enable CGI support with Tomcat, but since the installation path of Tomcat contains white space, it complaind that c:\programs does not exist (actually it is c:\program files). Anybody had the same experience? Charlie - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
Re: (Apache Tomcat) || (Tomcat with CGI Support)?
I've never tried it, but change the path to c:\progra~1. John Lawence wrote: Dear All, I need to accomondate some old cgi scripts on my website but primarily it uses java. I am wondering which comb is better in terms of simplicity and usability. By the way, I tried to enable CGI support with Tomcat, but since the installation path of Tomcat contains white space, it complaind that c:\programs does not exist (actually it is c:\program files). Anybody had the same experience? Charlie - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (Apache Tomcat) || (Tomcat with CGI Support)?
I just finished configuring my Tomcat system to run CGI scripts but that was on a Solaris system. The main thing I can point out is make sure your JDK is up to date and if it is not be sure to read the compatibility issues on updating from an older version to a new one. Allen -Original Message- From: Lawence [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: (Apache Tomcat) || (Tomcat with CGI Support)? Dear All, I need to accomondate some old cgi scripts on my website but primarily it uses java. I am wondering which comb is better in terms of simplicity and usability. By the way, I tried to enable CGI support with Tomcat, but since the installation path of Tomcat contains white space, it complaind that c:\programs does not exist (actually it is c:\program files). Anybody had the same experience? Charlie - Do you Yahoo!? The New Yahoo! Shopping - with improved product search This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlets / Includes - not working
Hello, Current working environment: RedHat 7.3 jakarta-tomcat-4.1.24 apache_1.3.27 j2sdk1.4.1_02 I setup tomcat to use multiply workers so each apache server would have its own worker and catalina base. This setup works for serving jsp pages and the examples page works (except Include and JSP-Servlet-JSP). Also non of the servlets under /examples/servlets/ work. When I attempt to load JSP-Servlet-JSP I get a 404 error: The requested resource (/examples/servlet/servletToJsp) is not available. I get the same error when I attempt to load url/examples/servlet/HelloWorldExample The requested resource (/examples/servlet/HelloWorldExample) is not available. The Include example url/examples/jsp/include/include.jsp! atleast gives me an exception: org.apache.jasper.JasperException: /jsp/include/include.jsp(10,0) Invalid buffer size I'm using the default web.xml file that came with tomcat so I won't include that. But I'll include server.xml and the important parts of my httpd.conf file. I also attached the mod_jk.log entry for each failure. Hopefully someone can tell me what part of my config I messed up or how to gets servlets and includes working. Please let me know if you need any additional information. Thanks so much for your help, Keith. There are some comments in the config as I tried different things to get it working. --- server.xml: --- !-- Please look at the example conf files under $CATLINA_HOME for more info -- Server port=8305 shutdown=SHUTDOWN debug=0 !-- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ -- Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/var/www/nike-tech/libexec/mod_jk.so jkDebug=info workersConfig=/var/www/tomcat/conf/jk/workers.properties jkLog=/var/www/nike-tech/logs/mod_jk.log noRoot=false forwardAll=false/ Service name=Tomcat-Apache-modjk Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8309 minProcessors=5 maxProcessors=75 acceptCount=10 useURIValidationHack=false debug=0/ Engine name=Standalone defaultHost=nike-tech debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.log timestamp=true/ Host name=nike-tech debug=0 appBase=/var/www/nike-tech/webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Valve className=org.apache.catalina.valves.AccessLogValve directory=/var/www/nike-tech/logs prefix=nike-tech_access. suffix=.log pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=/var/www/nike-tech/logs prefix=nike-tech. suffix=.log timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Host /Engine /Service /Server httpd.conf: (just relative bits) ### ### mod_jk setup for tomcat ### IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /var/www/tomcat/conf/jk/workers.properties JkLogFile /var/www/nike-tech/logs/mod_jk.log JkLogLevel debug Directory /var/www/nike-tech/webapps/ROOT Options Indexes FollowSymLinks MultiViews DirectoryIndex index.html index.jsp index.shtml index.htm /Directory #Directory /var/www/nike-tech/webapps/examples # Options Indexes FollowSymLinks MultiViews # DirectoryIndex index.html index.jsp index.shtml index.htm #/Directory JkLogLevel debug Location */WEB-INF/* AllowOverride None deny from all /Location /IfModule ### Section 3: Virtual Hosts VirtualHost 10.10.14.246 ServerName nike-tech.dmz.ny.rga.com IfModule mod_jk.c JkMount /ROOT/* ajp_niketech JkMount /ROOT ajp_niketech JkMount /* ajp_niketech JkMount /examples ajp_niketech JkMount /examples/* ajp_niketech /IfModule /VirtualHost mod_jk.log (for JSP-Servlet-JSP) [Fri Sep 26 16:48:24 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Sep 26 16:48:24 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/examples/jsp/jsptoserv/jsptoservlet.jsp' [Fri Sep 26 16:48:24 2003] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp_niketech - / [Fri Sep 26 16:48:24 2003] [jk_uri_worker_map.c (502)]:
Regression? Tomcat 4.1.27 spiraling out of control!
I just upgraded my production server to tomcat 4.1.27 running on Solaris 7 with java 1.4.2_01. I am using Ajp13 connections to Apache 1.3.23 with mod_jk 1.2.0. I was running 4.0.4 on java 1.3.0 without incident. It ran fine for a day and a half, but then over a period of about 10 minutes I got a flood of log messages for Broken pipe, Starting background thread and finally when it exceeded my configured Ajp13Processor limit, No processor available, rejecting this connection. Also, tomcat pegged my CPU usage during this period. I bounced tomcat and now all is well with less than 10% cpu for tomcat. The httpd logs show no evidence of a DOS attack. Besides, the tomcat application requires form based login. My 4.0.4 setup never used more than 55 AJP processors. It was (as is 4.1.27) configured for a max of 75 which it never reached. I had the very same problem when I first deployed 4.0.3, but it got fixed in 4.0.4. Can anybody confirm this regression? Google hasn't been very helpful on this one. Should I just revert to 4.0.4 and wait for a fix? -- Jeff jlar310 at yahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Affinity
He said he did, see above. -Dave He said he did, but he didn't LOL :) Filip - Original Message - From: David Rees [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 26, 2003 12:44 PM Subject: Re: Session Affinity Filip Hanik said: did you set up jvmRoute in server.xml ? - Original Message - From: Ho, Raymond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 26, 2003 11:57 AM Subject: Session Affinity My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2. For each tomcat instance, I have modified server.xml to have an unique jvmRoute; tn1 for one server and tn2 for the other. These match the tomcatId in the workers2.properties file. He said he did, see above. -Dave - 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]
Difference between path-mapped and servlet-mapped filters
Hello, Can anyone please explain to me what the difference is between path-mapped and servlet-mapped filters. Thanks in advance, Julien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Finding config file: workers2.properties
Duncan Smith wrote: I had same problem. I found that if the workers2.properties file was supposed to be in {apache-home}/conf/ Good luck :-) Duncan Smith Decker Telecom Ltd Rhugga wrote: I get this error during tomcat 4.2.27 startup: INFO: Starting Coyote HTTP/1.1 on port 8443 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.pr operties [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file ${serverRoot}/conf/workers 2.properties [Fri Sep 26 07:54:52 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Fri Sep 26 07:54:52 2003] (error ) [jk_shm.c (333)] shm.init(): No file [Fri Sep 26 07:54:52 2003] ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties Here is the connector definition from server.xml: !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true serverRoot=/usr/local/jakarta-tomcat-4.1.27 acceptCount=100 debug=5 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory clientAuth=false protocol=TLS / parameter nameserverRoot/name value/usr/local/jakarta-tomcat-4.1.27/value /parameter /Connector My workers2.properties file is here: ganja:/usr/local/tomcat/conf #ls -l /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties -rw-r--r-- 1 tomcat httpd258 Aug 30 23:14 /usr/local/jakarta-tomcat-4.1.27/conf/workers2.properties The contents of this file are as follows: [shm] file=/usr/local/jakarta-tomcat-4.1.27/logs/shm.file size=1048576 # Example unixsocket channel. [channel.un:unixsocket] file=/usr/local/jakarta-tomcat-4.1.27/work/jk2_tomcat.socket # define the worker [ajp13:unixsocket] channel=channel.un:unixsocket Any ideas? Thx, Chuck - 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] Yea, I symbolically linked it there as well, but still nada. Will it not follow symbolic links? Thx, CC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question Regarding AJP Connectors
If I am only using Tomcat as a JSP/Servlet engine using mod_jk2, and I am using a Unix socket for communication, I do not need these connectors correct? !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Define an AJP 1.3 Connector on port 8009 -- I am running apache 2 and only use tomcat for JSP and servlets. Thx, Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Data corruption with large messages
Vitals: Tomcat version: 4.1.27 Tomcat configuration: Out-of-the-box (except for my app's WEB-INF) OS: solaris 2.9 My servlet skill level: medium-low Problem: When receiving a HTTP 1.0 POST with a 10kbyte payload, my doPost() method writes the message body to a file. The file is the right size, but my data is nulled out after correctly receiving about 2kB. In frustration, I set the Connector bufferSize parameter to 100, to discover that I could now receive about 4kbytes of my 10kbyte message. I then proceeded to write my own Java server to receive the message and write it to a file, and it works just fine. I am at a loss - can anyone suggest what could be causing this problem? Thanks, Dan Stewart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pleas help (Custom Authenticator Reaml Problem)
To save you lots of headaches, can you just use a filter to perform authorization and let JDBCRealm do the authentication? (IIRC) The authenticators do authentication and authorization by delegating some of those tasks to the Realm. But all the bookkeeping needs to be done by the authenticator valve. A pretty icky topic. -Tim Lawence wrote: Dear all, I wrote my own authenticator (extends FormAuthenticator) realm (extends JDBCRealm). What I need is to check one more field in the database besides password for authentication. Only minor modifications are made on the original codes so I think it should be fine. What I also did include changing the org/apache/catalina/startup/Authenticators.properties file to add the new authenticator; modifying the server.xml and web.xml accordingly. Furthermore, I added the entries for my authenticator and realm in the mbeans-descriptor.xml file. I expected everything to work perfectly but when I tried to access the secured area, I got the following error: HTTP Status 500 - Configuration error: Cannot perform access control without an authenticated principal - type Status report message Configuration error: Cannot perform access control without an authenticated principal description The server encountered an internal error (Configuration error: Cannot perform access control without an authenticated principal) that prevented it from fulfilling this request. This error was triggered instantly. I mean I even did not have a chance to see the login webpage. Now I have several questions: What is the flow of the authentication? Was my authenticator got executed at all? Any suggestions would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regression? Tomcat 4.1.27 spiraling out of control!
IIRC when 4.1.28 comes out, (see the FAQ for a release date), I'm pretty sure it has some connector fixes which may help some people in your condition. (Of course, I might be thinking of something different too) -Tim Jeff Larsen wrote: I just upgraded my production server to tomcat 4.1.27 running on Solaris 7 with java 1.4.2_01. I am using Ajp13 connections to Apache 1.3.23 with mod_jk 1.2.0. I was running 4.0.4 on java 1.3.0 without incident. It ran fine for a day and a half, but then over a period of about 10 minutes I got a flood of log messages for Broken pipe, Starting background thread and finally when it exceeded my configured Ajp13Processor limit, No processor available, rejecting this connection. Also, tomcat pegged my CPU usage during this period. I bounced tomcat and now all is well with less than 10% cpu for tomcat. The httpd logs show no evidence of a DOS attack. Besides, the tomcat application requires form based login. My 4.0.4 setup never used more than 55 AJP processors. It was (as is 4.1.27) configured for a max of 75 which it never reached. I had the very same problem when I first deployed 4.0.3, but it got fixed in 4.0.4. Can anybody confirm this regression? Google hasn't been very helpful on this one. Should I just revert to 4.0.4 and wait for a fix? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Difference between path-mapped and servlet-mapped filters
A filter can be mapped against a URL. (path mapped) or A filter can be mapped against a servlet declaration(servlet mapped) -Tim Julien Martin wrote: Hello, Can anyone please explain to me what the difference is between path-mapped and servlet-mapped filters. Thanks in advance, Julien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]