Problem Parsing Request Parameters
Certain users of my website are having issues with respect to submitting a form on a page. Not all users are experiencing this problem, and I've yet to replicate it myself so it makes the situation even more complex. I have an icking suspicion that its related to the user's browser, but I've tested on the same browser version/subversion without a glitch. Here's the scenario: 1) User goes to page. 2) User fills out form. 3) User clicks submit. 4) JSP page then performs sanity checks against submitted data. In the event of a failure on the sanity checks, page is redirected back to previous page. Simple enough. Well, users are filling out the form and clicking submit with valid infromation, yet when I parse the parameters out of the request, I'm finding none of the form values from the previous page. I then decided to investigate further and log out all request information in the event that these sanity checks fail. The following is what I logged out: - Attributes: javax.servlet.request.cipher_suite = [SSL_RSA_WITH_RC4_128_MD5] javax.servlet.request.key_size = [128] javax.servlet.request.ssl_session = [433162398579970fee9289baa9ac832b8558dcc409382f62cb67a3499b80] Parameters: Cookies: JSESSIONID = [FCB31837FFBD2C0D9F986C42B698BADE] contact_value = [ABC] duplicate_type = [None] duplicate_time = [] mortgage = [] lender_id_label = [] title_alternative = [] can_place_orders = [Y] flood_default = [126] can_cancel_lol = [N] contact_label = [] lender_id_value = [ABC] census = [] loan_no_label = [] delivery_method = [Online] apprasail = [] delivery_address = [] title = [] Headers: accept = [image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*] referer = [https://WEBSITE_URL/CreateOrder.jsp?applicant2HomePhone=streetName=Ma in+Stapplicant2WorkPhone=applicantOtherPhone=ownerEstimate=applicant 2WorkPhone2=revisionOf=applicantWorkPhoneExtension=unitType=preFixDi r=Eapplicant2OtherPhoneAreaCode=applicantOtherPhone2=applicantMname=L skipstep=nonezip4=applicant2HomePhoneAreaCode=applicant2OtherPhone= applicantLname=DoestreetNum=applicantHomePhoneAreaCode=zip=40845pass code=HomeorderHeaderGeneralNotes=applicantHomePhone2=propertyLoanNumb er=productTitle=applicantFname=Johnapplicant2WorkPhoneExtension=appl icant2WorkPhoneAreaCode=applicant2Mname=JunitNumber=applicantWorkPhon eAreaCode=postFixDir=productAppraisal=propertyParcelNumber=applicant WorkPhone2=applicantOtherPhoneAreaCode=city=HulenapplicantHomePhone= applicantWorkPhone=applicant2Lname=Janeapplicant2OtherPhone2=applican t2HomePhone2=streetType=state=KYcontactId=10productMortgagePrep=pro ductFlood=Yesapplicant2Fname=Doe] accept-language = [en-us] content-type = [application/x-www-form-urlencoded] accept-encoding = [gzip, deflate] user-agent = [Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)] host = [WEBSITE_DOMAIN] connection = [Keep-Alive] cache-control = [no-cache] cookie = [JSESSIONID=FCB31837FFBD2C0D9F986C42B698BADE; contact_value=ABC; duplicate_type=None; duplicate_time=; mortgage=; lender_id_label=; title_alternative=; can_place_orders=Y; flood_default=126; can_cancel_lol=N; contact_label=; lender_id_value=ABC; census=; can_view_insurance_tracking=N; loan_no_label=; delivery_method=Online; apprasail=; delivery_address=; title=] content-length = [0] - There are many interesting things about this request. First, the content-length is 0. Not sure how this could happen...error in browser?? Second, and the most intriguing...Notice the referer entry. The referer entry actually contains all relevant information that I needed in order to process this request, yet if you look at what parameters I was actually able to parse off this request you will see...NONE. I'm stumped. Anybody else seen this before? Environment: JDK 1.4.2_08 Tomcat 5.5.9 ___ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
Handling a stopped web app in a Load Balanced Environment
I'm trying to determine what options are available if any to handle the scenario when web application foo on server 1 gets stopped, but web application foo on server 2 is still running and both are apart of a load-balanced environment. Currently, I'm using a hardware load balanced environment, and it is unaware that the individiual web application is down on server 1. Is my local balancer out-dated? How does the mod_jk and Balancer web-app solutions compare? ___ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
Configuring Tomcat to delay accepting of connections until apps are ready/loaded
I'm running into a particular problem running web services off of tomcat in our production environment. It seems that our client is requesting services from us at the exact time that Tomcat is being rejacked. Tomcat seems to be accepting the connection quickly, but doesn't respond to it for another 25 seconds or so. Are my observations correct? Does Tomcat open its sockets before it can physically handle the request? If so, is there some way to configure tomcat to open the sockets just prior to having all web applications loaded? I'm working on a 15 second processing time window, and if Tomcat accepts the request and waits 25 seconds before passing it along to my code to process it, then I've already burnt my 15 seconds. Any help would be appreciated. Here is my current environment: - Tomcat: 4.1.30 - JDK: 1.4.2_06 ___ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
RE: Problems setting up JDBCStore
Scratch that. Figured out that there wasn't actually a problem When the JDBCStore loads up, it attempts to get a connection which causes the error message The database connection is null or was found to be closed. Trying to re-open it.. Maybe a better way of dealing with this would be to initialize the database connection. This way, no error message means a successful startup. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com -Original Message- From: Jeremy Nix Sent: Monday, November 08, 2004 3:40 PM To: [EMAIL PROTECTED] Subject: Problems setting up JDBCStore I'm having a little difficulty setting up the JDBCStore session persistence layer. Has anybody had a similar problem? Or do you see anyting wrong in my configuration. Here's the error that I'm getting: 2004-11-08 15:32:11 JDBCStore[/test]: The database connection is null or was found to be closed. Trying to re-open it. My server.xml looks like this: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector address=10.0.2.130 port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=443 acceptCount=100 debug=0 scheme=http connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector address=10.0.2.130 port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=443 acceptCount=100 debug=0 scheme=https secure=true connectionTimeout=2 disableUploadTimeout=true Factory className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory clientAuth=false protocol=TLS keystoreFile=certs/phoenix.keystore keystorePass=alpine / /Connector !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=10.0.2.130 debug=9 jvmRoute=tomcat1 !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ !-- Define the default virtual host -- Host name=10.0.2.130 debug=0 appBase=webapps unpackWARs=true autoDeploy=false
Problems setting up JDBCStore
. suffix=.txt pattern=%t %a -- %A:%p%U%q resolveHosts=false/ !-- Root Context -- Context path= docBase=ROOT debug=0/ /Host /Engine /Service /Server I have a context specified to test the JDBCStore. It looks like this: Context path=/test docBase=${catalina.home}/webapps/test debug=0 Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true Store className=org.apache.catalina.session.JDBCStore driverName=com.inet.tds.TdsDriver connectionURL=jdbc:inetdae7a:hazeltine:1433?database=testamp;appname=A pacheTomcatamp;user=ApacheTomcatamp;password=tomcat123 sessionTable=tomcat_sessions sessionAppCol=app_name sessionIdCol=session_id sessionDataCol=session_data sessionValidCol=valid_session sessionMaxInactiveCol=max_inactive sessionLastAccessedCol=last_access checkInterval=60 debug=99 / /Manager /Context _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 and returning PDF in response outputstream
Has anyone else had trouble rendering PDF's (in Internet Explorer) when sending the pdf directly into the response outputstream and rendering in Internet Explorer? I realize there are a lot of factors at work here, but I find that my configuration works fine when I switch to Tomcat 4.1.30. I'm setting the content type and content length on the response. The code I use is below: pdf = generatePDF(); response.resetBuffer(); response.setHeader(Cache-Control, max-age=30); response.setHeader(Content-Disposition, inline; filename=generated.pdf; size= + pdf.getBytes().length); response.setContentType(application/pdf); response.setContentLength(pdf.getBytes().length); response.getOutputStream().write(pdf.getBytes()); response.flushBuffer(); If I access my url with Netscape, the pdf displays correctly. If I save it out to the filesystem (on server side), pdf displays correctly. It's just something with the configuration of Tomcat 5 and Internet Explorer that is not working correctly. The same code posted above works for both Netscape and IE when run under Tomcat 4.1.30. Has anyone had similar problems? _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Replication w/o Multicast
Is there currently a way of replicating session information across multiple tomcat nodes without multicasting? If not, has any extended the Tomcat API to support this? The reason I ask is because we are using a hardware load balancer, and it does not support multi-casting. One thought is that we could upgrade our hardware to a load balancer that supports this (not sure one even exists), but I'm sure that there are other means of performing replication besides multicasting. Using a database as the session persistence layer is one thought. Direct tomcat node to tomcat node in memory session replication is another thought. Just thought I'd see what ideas/solutions are out there. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
System.setProperty scope within the various Tomcat Classloaders
I wanted to verify what scope gets applied to a property added with System.setProperty() command from within a web application. All relevant classes are loaded within the web application's class loader. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
Session sharing/load balancing multiple tomcat instances W/O Apache Web Server
Is this possible to do? I've configured load balancing with apache and that worked as desired, but since then I've determined that the apache server was unnecessary in my configuration. If it is possible, can you please provide a sample jk2.properties file, or at least step me in the right direction. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com
RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server
I've misphrased. What documentation I've come across indicates that Apache (or IIS) is necessary to configure tomcat as a cluster. It very well may be possible, which is why I'm asking the list. The main feature that I'm looking for in this configuration is the session failover ability. I have a hardware load-balancer, so load-balancing is not exactly what I was looking for...just the session sharing. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 11:36 AM To: Tomcat Users List Subject: RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server Hola, Is this possible to do? I've configured load balancing with apache and that worked as desired, but since then I've determined that the apache server was unnecessary in my configuration. If it is possible, can you please provide a sample jk2.properties file, or at least step me in the right direction. How did you determine Apache is not necessary when you're load-balancing with mod_jk2 which requires Apache? ;) 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: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server
That doesn't exactly accomplish what I'm looking to do. Like I said, I need session replication amongst the tomcat instances...I guess theres always the idea of managing session data in some other medium (DB). _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 11:42 AM To: Tomcat Users List Subject: RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server Hi, One alternative to balancing traffic without Apache, using only a tomcat cluster, is to use the balancer webapp that ships with tomcat 5. It's not a load balancer in the strict sense of the definition, as it doesn't replicate anything or allow for sticky sessions, but defacto it works. Yoav Shapira Millennium Research Informatics -Original Message- From: Adam Fowler [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 11:40 AM To: 'Tomcat Users List' Subject: RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server I think (hope) he means one apache httpd instance load balancing to several tomcat instances. Your guess as to what he means is as good as mine tho! 8o) Adam. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 26 March 2004 16:36 To: Tomcat Users List Subject: RE: Session sharing/load balancing multiple tomcat instances W/O Apache Web Server Hola, Is this possible to do? I've configured load balancing with apache and that worked as desired, but since then I've determined that the apache server was unnecessary in my configuration. If it is possible, can you please provide a sample jk2.properties file, or at least step me in the right direction. How did you determine Apache is not necessary when you're load-balancing with mod_jk2 which requires Apache? ;) 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 email and any files attached is intended for the addressee only and may contain information that is confidential and/or legally privileged. Unauthorised use is strictly prohibited and may be unlawful. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, including any attachment, except for the purpose of delivery to the addressee. We make every effort to keep our network free from viruses. However, you do need to verify this e-mail and any attachments to it to be virus free as we can take no responsibility for any computer virus which might be transferred by way of this e-mail. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. - 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]
Need example configuration for Apache/Tomcat/JK2 and multiple virtual hosts
I have a need to have Apache and Tomcat both handle requests for multiple IPs (hosts). I've initially set up a httpd.conf that defines 2 virtual hosts A and B. Both use JSPs/Servlets, so they both have references to JK2. I've kept the JK2 configuration simple and used localhost:8009 for both hosts. On the tomcat side, I have 1 engine with 2 separate hosts listening on their respective IP's. I've defined 3 connectors all running on the default address (localhost): NON-SSL, SSL and AJP/JK2. I also have this same configuration on 2 separate boxes and they are both being load-balanced through a local-redirector. This configuration seems to work as expected when I reference the defaultHost in tomcat (virtual host A), but when I reference a page hosted by virtual host B, I seem get unexpected errors (sometimes recursive in nature). So, has anybody experienced this? Does anybody have a sample configuration (load balancing with multiple virtual hosts) that I can mimic? _ Jeremy Nix Southwest Financial Services, LTD. [EMAIL PROTECTED] (513) 621-6699 ext.1158 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rolling over stdout.log and stderr.log in Tomcat 4.1.x
Is it possible to set an option to have these logs rolled over? If not, does anyone have any windows script files that will do the job just the same? _ Jeremy Nix Southwest Financial Services, LTD. [EMAIL PROTECTED] (513) 621-6699 ext.1158 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Measuring latency between tomcat instances
We have an instance where tomcat instance (A) is communicating with tomcat instance (B), where instance (B) is located at another site. Instance (A) formulates a request to instance (B) and instance (B) responds with some valid response. Now, my question is, from a standpoint of instance (B), is it possible to measure latency? If so, how? _ Jeremy Nix Southwest Financial Services, LTD. [EMAIL PROTECTED] (513) 621-6699 ext.1158 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Measuring latency between tomcat instances
Okay, let me pose another (slightly differenc) question. Say that instance (A) and (B) are separate institutions, independent from each other. Same scenario as before. How could instance (B) (the responding instance) be able to measure latency in instance (A)? The reason I ask is related to an issue that has been reported to me, but I am unable to understand how the latency was measured. _ Jeremy Nix Southwest Financial Services, LTD. [EMAIL PROTECTED] (513) 621-6699 ext.1158 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 8:26 AM To: Tomcat Users List Subject: Re: Measuring latency between tomcat instances LOG4j might be nice kludge for this. On tomcat A, time the appropriate events on how long it takes to do stuff on tomcat B. Then log it in a specially formatted message. (mylogger.log(time: + timeTaken) Then do the same on tomcat B. Its easier to do on tomcatB since you can use a Valve or servlet filter and stay out of the business logic. I say LOG4J since it provides asynchronous loggers (Unless the performance on the non-asynchronous loggers are neglible in this case). But with LOG4j (or insert logging framework here) - you can use it to write to any log file or format you want. So your normal error messages can go to one file while these special messages can go to a differnet file/database/... -- Or you can compare acces log entries since it does offer a %T option for time taken. -Tim Jeremy Nix wrote: We have an instance where tomcat instance (A) is communicating with tomcat instance (B), where instance (B) is located at another site. Instance (A) formulates a request to instance (B) and instance (B) responds with some valid response. Now, my question is, from a standpoint of instance (B), is it possible to measure latency? If so, how? - 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: How do i handle session-timeout in an acceptable manner?
The problem with your solution is, that the application does not know where to continue after the login page. This will result in an error. If you want your login page to redirect you back to the page that the user timed out on, then why don't you just add a hint to the login url so that after the user has logged in, then your application will know where to redirect them. I have implemented this workaround: protected void doGet( HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { String reqURI = httpServletRequest.getRequestURI(); if ((reqURI.indexOf(/actions/) != -1)) { // Calling of 'actions' via get is not allowed String referer = httpServletRequest.getHeader(referer); if ((referer != null) (referer.endsWith(/loginpage.jsp))) { // if this happens, we probably had a Time-Out RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/timeout_info.jsp); dispatcher.forward(httpServletRequest, httpServletResponse); } else { throw new ServletException(Action forbidden.); } } else { // Call shared, standard request processing code. processRequest(httpServletRequest, httpServletResponse); } } What it does: if there is a get call to an URL that should be called as post, and the referer is the login page, then forward the request to some kind of informational message. Of course there can't be any guarantee this works with coming versions of Tomcat. So i would like to have an general solution. Hayo Schmidt - Shapira, Yoav wrote: Howdy, Here's an idea: add an HTML META refresh tag to each page whose redirect URL is the login page and whose timeout is the session timeout less a few seconds. That way the user will get redirected to the login page before the session timeout -- they won't be able to press the submit button. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hayo Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:16 AM To: Tomcat Users List Subject: How do i handle session-timeout in an acceptable manner? I have a built a web application on Tomcat 4.1.18. The application is running with a HTTPS connection. session-timeout is configured and works so far. But i am absolutely not satisfied with what happens when a timeout occurs. The web application is configured for form based authentication. When the connection has timed out, the user is presented the login page when he does his next action. And, all data saved with the session are lost. Fine - i could live with that. But what happens in a real case: - The user waits too long - timeout. - The user pushes an INPUT type=submit and creates a POST operation. - Tomcat redirects to the login page. - The user logs in. - Tomcat redirects to the original aim of the post operation, but he does it as a GET operation. Alternative 1: - My application does not allow get operations at this place == Application Error. Alternative 2: - The application allows the vulnerable get operation, but the button that was pushed is not passed anymore == Application Error. Now what can i do? I must interfere the session timeout to do an operation. Or i should be able to detemine that the current request is the first after a timeout. The way my application currently crashes is not acceptable. Hayo Schmidt - 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: 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]
Choosing an appropriate JK2 Handler
I'm running a configuration with Apache and Tomcat on the same machine. Which handler(s) would I see the biggest performance improvement by using them? I figured it would be the JNI option, but I wanted to get some input. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
RE: [OFF TOPIC] Version Control
Cvs does have many GUI interfaces. WinCVS being just one of these. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 11:02 AM To: [EMAIL PROTECTED] Subject: [OFF TOPIC] Version Control Sorry for the Off topic question I'm looking for suggestions for a free version control system. I've tried cvs before.but, the learning curve is really steep for me...i'd rather go with something that has a gui interface. Thanx in advance - 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]
CPU Cache Performance Gain with Tomcat Apache
I realize this question is more related to the JVM implementation and O/S than anything else, but generically speaking how significant of a performance gain would a web/application server combination see (in terms of response time) from a .5MB CPU cache to a 1MB CPU cache. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
RE: Trying to get off this list
1) Send an email to [EMAIL PROTECTED] 2) An email will be sent back to you, simply reply to the email and send 3) Your off the list _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Jenice Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 9:27 AM To: 'Tomcat Users List' Subject: RE: Trying to get off this list If you find out let me know - I don't know how I got on his stupid list but I get 100 emails a day! -Original Message- From: Ronaldo Quispe [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 6:30 AM To: [EMAIL PROTECTED] Subject: Trying to get off this list Hello, How does one get off this list? I tried the by sending email as described in the web site but that does not work. Is there a moderator that can help? Ronaldo Q. - 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]
Help with JK2 and Apache 2.0.47
I'm finding the documentation out on the apache site to be a little slim on JK2. Especially in terms of building the .so/.dll file. Is this code production ready? I'm running an apache (2.0.47) installation and a tomcat (4.1.27) installation on a windows 2000 server machine, communicating over JK. Recently I noticed (after looking in my modjk.log file) that I was receiving the following error with JK: --- [Tue Sep 09 15:25:11 2003] [jk_ajp_common.c (738)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-53 [Tue Sep 09 15:25:11 2003] [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down or network problems. [Tue Sep 09 15:25:11 2003] [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Tue Sep 09 15:25:11 2003] [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop. err=0 --- Given the fact that tomcat is up and running on the same machine, I'm a little sceptiple with the error. I wanted to try out JK2, since it is suppose to be new and improved, but the documentation really didn't help me figure out where to find the module, or how to build the module...(preferrable the first choice). Anybody out there know what I'm going through that can help me out? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
Tomcat Virtual Directory
In IIS it is possible to specify a virtual directory within a given virtual server that maps a directory under the website to a specific directory. Well, I have a need to create this type of functionality for a specific webapp only. So that when you go to Http://localhost/WEB_APP/DIR, then the docBase for that directory will be, in my instance, outside of the webapp directory structure. Anybody ever come across this need? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
Adding security to a single webapp
Can somebody point me to a guide that has a good example on adding SSL to a webapp (or possible a few), but not allowing other webapps to be accessed via port 80 (unsecure port)? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
Advantages to putting Apache as front end to Tomcat
What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
[OFF-TOPIC] How to build the mod_ssl.so for Windows
Does anyone have a comprehensive set of directions for how to build mod_ssl.so for the windows platform, including any directions necessary for building openssl (if required). I'm just getting lost in this mess. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
RE: AJP13 Connector reliability
What about clustering as mentioned in this article: http://www.theserverside.com/resources/article.jsp?l=Tomcat Does anybody have any comments on its reliability in server-crash scenarios? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 12:53 AM To: [EMAIL PROTECTED] Subject: Re: AJP13 Connector reliability Using the latest mod_jk, then fail-over should work fine. However, the session data will be lost. TC 5.x has support for session fail-over, but not lower versions. Jeremy Nix [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody out there have a good amount of experience with load-balanced (session-shared) environment to tell me if server A goes down (via server crash), then server B will continue to handle requests AND will be up-to-date as far as user's sessions? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 - 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: can i send emails using servlets to yahoo or hotmail addresses
You can send email anywhere. It's all about using the Java Mail API to set up the associated POP3 accounts. There really is no difference whether you do this through a Java App and a Java Web App. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -Original Message- From: bilal sulehri [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:47 PM To: [EMAIL PROTECTED] Subject: can i send emails using servlets to yahoo or hotmail addresses I m beginner in servlets, and i don't know how can i send emails using servlets, can any one help me? _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - 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]
Single Tomcat instance mapping to multiple websites
Problem: I have a need to map multiple (3) websites to a single tomcat instance, but different web applications. Reason: For load-balancing/fail-over. I realize that you can install apache as the load-balancer and apache http server can handle the virtual host mapping. But, we are using a piece of hardware as our load-balancer, so the http server is out of the mix. What is left is 2 tomcat instances communicating over the ajp13 protocol. So, is this possible with tomcat? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
AJP13 Connector reliability
Does anybody out there have a good amount of experience with load-balanced (session-shared) environment to tell me if server A goes down (via server crash), then server B will continue to handle requests AND will be up-to-date as far as user's sessions? _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
Duplicate chunks
We have been told that our coding does not comply with RFC 2068 standards. That we are not sending a zero-sized chunk number 0 to let our requestee know that the chunked encoding is ended, and that is the reason why they are seeing duplicate chunks. Has anyone experienced this. I was unable to find any information on the web regarding a bug similar in nature to this. _ Jeremy Nix Senior Application Developer Southwest Financial
RE: [beginner question] reloading classes
If you're stopping and starting tomcat and seeing that the change has not been picked up, then you're experiencing a classloader issue where that class is being picked up in a higher classloader before your version of that class is. For instance: TOMCAT_HOME/webapps/your_app/WEB-INF/classes/com/example/MyClass.class TOMCAT_HOME/common/classes/com/example/MyClass.class The 2nd one would be loaded prior to first because it will be loaded in a higher classloader. As for the touching of the web.xml file to reload the class. This only works for classes loaded in the web application's classloader, and not for classes loaded within tomcat's internal classloader. I don't have the specific Tomcat classloader hierarchy on hand, but I can tell you that a change made outside the context of your app to a class loaded within common/lib or server/lib requires a restart of Tomcat. _ Jeremy Nix Senior Application Developer Southwest Financial -Original Message- From: Jacques Capesius [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 12:31 PM To: 'Tomcat' Subject: [beginner question] reloading classes Hi folks, I'm new to Tomcat, but not as new to J2EE. I have a jsp, and I made a change to a class that's being loaded into it as a bean, but I can't get the page to use the new class and not the old one. My question, thus, is: when I make changes to a class, how do I get Tomcat to reload the class? Restarting Tomcat doesn't seem to do the trick. Searching the web, I found a doc that made mention that touching the web.xml file would force the reloading of the class. I tried that and it didn't work. I also read somewhere that going to the application (where the JSPs are) and typing ANT would force the recompile of everything. Still, the old class is being used. I'm storing the class in %catalina_home%/classes/PSQ/. I'm loading it into the jsp by means of the following line of code: jsp:useBean id=psq class=PSQ.PSQ scope=session/ I've made sure there are no other versions of PSQ.class in any other places it might be used, for example, the WEB-INF/classes directory. Thanks for whatever advice you can give, and I apologize if this question has been asked many times before. -jacques :) Jacques Capesius CNT Web Marketing Developer [EMAIL PROTECTED] (763) 268-6749 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]