Tomcat 6.0.18+ with Comet behind an F5 Big-IP
Has anyone tried to do this? My concern is that performance would suffer over using Apache and the APR Connector. If anyone has any suggestions for deployment/configuration, I would love to hear them! Shaun
Re: Multiple applications
André Warnier wrote: Peter Flynn wrote: Hassan Schroeder wrote: On Tue, Jun 23, 2009 at 7:37 AM, Peter Flynn pfl...@ucc.ie wrote: I've been using Tomcat5 with Apache2 under RH5 to run Cocoon, but I now need to add Lucene and eXist. Is it possible to run multiple applications like this on the same machine using the same Tomcat server? Hi. I believe that I may be about at the same level as yourself for such things - which is far below the level of the gurus you have been talking to so far - and therefore that my explanations that follow, whilst being maybe less accurate, may be more accessible. This is excellent and very helpful, thank you very much. I will digest this when I next get a slot. Yes, I also dislike running the RHEL repackaging, but in this case the system is maintained by the engineers on the basis that I do *not* add non-RHEL versions of things that are available in RHEL packages. Silly, but unavoidable. RHEL is hopelessly out of date in so many areas, and they have this compulsion to meddle which is very annoying. But in the case of Tomcat I have located all the bits and pieces, so it's not a major problem. ///Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat is stopped any errors
*Hi all** * *I got a problem. Tomcat is stopped without any errors, I think it might be the crash of JVM , when Tomcat is running I got the infos of heap * * * * * *Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 536870912 (512.0MB) NewSize = 655360 (0.625MB) MaxNewSize = 4294901760 (4095.9375MB) OldSize = 1441792 (1.375MB) NewRatio = 8 SurvivorRatio= 8 PermSize = 16777216 (16.0MB) MaxPermSize = 67108864 (64.0MB) Heap Usage: New Generation (Eden + 1 Survivor Space): capacity = 13565952 (12.9375MB) used = 8915576 (8.502555847167969MB) free = 4650376 (4.434944152832031MB) 65.72023843221618% used Eden Space: capacity = 12124160 (11.5625MB) used = 8380088 (7.991874694824219MB) free = 3744072 (3.5706253051757812MB) 69.1189162795608% used From Space: capacity = 1441792 (1.375MB) used = 535488 (0.51068115234375MB) free = 906304 (0.86431884765625MB) 37.14044744318182% used To Space: capacity = 1441792 (1.375MB) used = 0 (0.0MB) free = 1441792 (1.375MB) 0.0% used tenured generation: capacity = 119341056 (113.8125MB) used = 40252056 (38.387351989746094MB) free = 79089000 (75.4251480102539MB) 33.728590435801074% used Perm Generation: capacity = 48496640 (46.25MB) used = 48485864 (46.239723205566406MB) free = 10776 (0.01027679443359375MB) 99.9990392737% used * *don't know much about the parameters of JVM, but the 99.9% used of perm seems not normal.* * * *Further more, is there any way to produce a JVM thread dump after Tomcat stoped(crashed)* * * *Thanks * * * *Re,* -- - Lin Chun
How to configure failover for Apache/Tomcat?
I need help--- I have two Apache web servers, two app servers with four Tomcat instances running on them (two Tomcat instances on each server). All four servers run on Red Hat Linux. Current configuration is: web1 connected to app1 only, web2 connected to app2 only. If app1 is down, all users connected to web1 are out. Is it possible to configure web1 connecting to both app1 and app2 so failover will be available? What extra hardware and/or software do I need? Thanks, Henry
Re: IP-based virtual hosting with Tomcat(6)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 7/29/2009 10:21 PM, Bill Barker wrote: uma...@comcast.net wrote in message news:2139500381.6699651248905929000.javamail.r...@sz0016a.emeryville.ca.mail.comcast.net... All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the server. Hence I have the mapping 127.0.0.9 - vhost1 127.0.0.10 - vhost 2 Let's say that a request arrives at address 10.1.1.1 (configured as an external address of this server). Which vHost would serve this request? With the default Connector configuration, whichever vHost matches the Host: header sent by the client. If useIPVHosts=true in the Connector, whichever vHost matches the DNS name of the address of the IP address that the request was recieved on. I think you missed Jeffrey's sample configuration, which bound Connectors to specific IP addresses. In this case, there is no default so a connection to 10.1.1.1 will be refused (unless some other server is listening there). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxwMAACgkQ9CaO5/Lv0PAS3wCfc6ofA19JPr/pfjxO5sYoNJgY jrgAoMGPDUzOhoJBpGNjm5u7h7gn795S =a5qO -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Weird Intermittent NoClassDefFound
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 7/29/2009 5:18 PM, Chris Masters wrote: Thanks for the quick reply Pierre - I've been reading up since, checked and my installation is OK. However, I think I may have found the problem. Sometimes a class loader will throw a NoClassDefFound when a static block throws an Exception. I think the hibernate and jgroup classes in question where trying to grab a file handle and the system limit had been reached (in the tomcat users case 1024). That will certainly do it. This is quite a loaded box doing all the batch processing so not unreasonable. Does this make sense? It does, except that I wonder where all your file handles are going. How many Connectors do you have? How many simultaneous connections do each of them allow? Do you keep a lot of files open? Do you have a lot of JAR files in your WEB-INF/lib directory? I'll check the classes in question and see if that's what they're doing. Always a good idea. You can also raise the process fd limit, if this really is a not enough resources issue rather than a resource leak. Just like heap space, sometimes you really do just need more file handles. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxwXUACgkQ9CaO5/Lv0PAr2gCeLXmbhztaslfHlD5SFQZiUX6T Ts8AnR0lYaj0SrVKD/I7aDiudyya/995 =93h+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Undeploying apps
Hello all, I noticed something strange undeploying a small web app. Within the tomcat manager, after clicking undeploy on my app, the link to my app it still there. No only that, but it is listed as started. Is this normal? Regards, Juan Pablo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to configure failover for Apache/Tomcat?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henry, On 7/30/2009 11:35 AM, Li,Henry wrote: I have two Apache web servers, two app servers with four Tomcat instances running on them (two Tomcat instances on each server). All four servers run on Red Hat Linux. Current configuration is: web1 connected to app1 only, web2 connected to app2 only. So: web1 --- app1 [ Tomcat 1a, Tomcat 1b] web2 --- app2 [ Tomcat 1a, Tomcat 2b] Right? If app1 is down, all users connected to web1 are out. Is it possible to configure web1 connecting to both app1 and app2 so failover will be available? Yes. Given your existing configuration, it seems that using mod_jk to connect your Apache httpd instances to Tomcat is the right way to go: mod_jk supports clustering and load balancing in (roughly) the following way: 1. Create a worker for each back-end Tomcat instance you have 2. Collect all the workers above into a balancer worker that will really multiplex between the workers defined in step 1 3. Session-less users are routed to whichever back-end server makes sense based upon your chosen load balancing algorithm 4. Users /with/ sessions are always router to the server that owns their session 5. When a server fails, mod_jk detect this and forwards requests to one of the other members of the cluster 6. When the failed node comes back up, it re-joins the cluster and everything goes back to normal Note that you can either implement sticky sessions (as I have described above), or you can use session replication across your cluster. I'm not a big fan of session replication because of all the messages that need to be sent around. For my production purposes, requiring a user to login again when failover occurs is acceptable. For me, the complexity of session replication is not necessary. Your requirements may differ. For more information on mod_jk balancing and clustering, see this page: http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html This page presupposes an understanding of how mod_jk is configured. If you haven't used mod_jk before, start here: http://tomcat.apache.org/connectors-doc/ and read the links for All about workers, For the impatient, and the reference guide for Apache. If you have more questions, post back to the list. What extra hardware and/or software do I need? You'll want a hardware load-balancer to balance between web1 and web2. As for software, just adding mod_jk to the mix should do it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxxEAACgkQ9CaO5/Lv0PCPFACfbRe3JJwEJhcgGW89bYP8wRrE 7EsAn0N3dM9qCB5thWTq0aFIiJEhbr/I =pM8p -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat is stopped any errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chun, On 7/30/2009 11:13 AM, Lin Chun wrote: I got a problem. Tomcat [has] stopped without any errors, I think it might be the crash of JVM , when Tomcat is running I got the infos of heap. Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 536870912 (512.0MB) NewSize = 655360 (0.625MB) MaxNewSize = 4294901760 (4095.9375MB) OldSize = 1441792 (1.375MB) NewRatio = 8 SurvivorRatio= 8 PermSize = 16777216 (16.0MB) MaxPermSize = 67108864 (64.0MB) Was this heap configuration observed before the crash? Or, after you restarted Tomcat? If the JVM crashed, you should get a message like this: # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0xe410, pid=30854, tid=3084593920 # # Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode, sharing linux-x86) # Problematic frame: # C [+0x410] __kernel_vsyscall+0x10 # # An error report file with more information is saved as: # /home/chris/projects/diagnosis/hs_err_pid30854.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # on stdout or stderr (probably stderr, I didn't check). Note that a log file was created with crash details. Check logs/catalina.out or any log file for something like that in it. If you see such a message, post the log file created by the crash and we'll take a look at it. In any case, post the last 10 or so lines of catalina.out so we can take a look. Otherwise, we aren't really going to be able to help because you haven't really provided any information about your problem. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxxXkACgkQ9CaO5/Lv0PAKwgCdFYqOn1RL7lso+tO6vBaQMfhL XlAAn0CIDDEx7E+XJWYkQ5ELLY6PuVhy =Qd7y -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat install/testing help.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, Looks like your post may have slipped through the cracks. You didn't provide a ton of information, though. For instance: what version of NetBeans? What version of Tomcat? On 7/17/2009 8:51 PM, Burton, Tom (DOR sponsored) wrote: I have been able to get tomcat and netbeans to install successfully. However I've been unable to get them to work together correctly. When they don't work correctly, how /do/ they work? Does your computer crash? Do you get a 404? Do you get a connection refused? Does your app not deploy? Please be specific, and let us know what you've tried. It currently gives me ServletException when I try to load the / directory in my browser. Please post the full stack trace of the exception. A ServletException is pretty general. I have another strange issue as well. The servlet code examples that come with tomcat work just fine but bundled jsp code examples do not they all seem to throw an AbstractMethodError exception. I think I saw another message on the list about this; perhaps it was yours. This is almost certainly due to mismatched versions of Tomcat: if you compile JSPs with, say, Tomcat 5, and then try to run them under Tomcat 6, this kind of thing will happen. Make sure your versions match. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxxvUACgkQ9CaO5/Lv0PDYXgCeMrM8bFmimyPWDsjO7z9DAogB lqgAoKwY6XjyQ6iJHGhnzaTjOjJ2bFyJ =fYaM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to configure failover for Apache/Tomcat?
Thank you Chris! I did not use mod_jk before. I will start from the beginning. Henry -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, July 30, 2009 11:03 AM To: Tomcat Users List Subject: Re: How to configure failover for Apache/Tomcat? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henry, On 7/30/2009 11:35 AM, Li,Henry wrote: I have two Apache web servers, two app servers with four Tomcat instances running on them (two Tomcat instances on each server). All four servers run on Red Hat Linux. Current configuration is: web1 connected to app1 only, web2 connected to app2 only. So: web1 --- app1 [ Tomcat 1a, Tomcat 1b] web2 --- app2 [ Tomcat 1a, Tomcat 2b] Right? If app1 is down, all users connected to web1 are out. Is it possible to configure web1 connecting to both app1 and app2 so failover will be available? Yes. Given your existing configuration, it seems that using mod_jk to connect your Apache httpd instances to Tomcat is the right way to go: mod_jk supports clustering and load balancing in (roughly) the following way: 1. Create a worker for each back-end Tomcat instance you have 2. Collect all the workers above into a balancer worker that will really multiplex between the workers defined in step 1 3. Session-less users are routed to whichever back-end server makes sense based upon your chosen load balancing algorithm 4. Users /with/ sessions are always router to the server that owns their session 5. When a server fails, mod_jk detect this and forwards requests to one of the other members of the cluster 6. When the failed node comes back up, it re-joins the cluster and everything goes back to normal Note that you can either implement sticky sessions (as I have described above), or you can use session replication across your cluster. I'm not a big fan of session replication because of all the messages that need to be sent around. For my production purposes, requiring a user to login again when failover occurs is acceptable. For me, the complexity of session replication is not necessary. Your requirements may differ. For more information on mod_jk balancing and clustering, see this page: http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html This page presupposes an understanding of how mod_jk is configured. If you haven't used mod_jk before, start here: http://tomcat.apache.org/connectors-doc/ and read the links for All about workers, For the impatient, and the reference guide for Apache. If you have more questions, post back to the list. What extra hardware and/or software do I need? You'll want a hardware load-balancer to balance between web1 and web2. As for software, just adding mod_jk to the mix should do it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxxEAACgkQ9CaO5/Lv0PCPFACfbRe3JJwEJhcgGW89bYP8wRrE 7EsAn0N3dM9qCB5thWTq0aFIiJEhbr/I =pM8p -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Force recompile of JSP in Tomcat 6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/22/2009 5:41 PM, David Wall wrote: In a production environment in which JSPs do not change frequently, I'd like to reduce the overhead of checking for JSP recompiles, assuming that such checks are in fact costly You might want to look at the Tomcat code to see just how costly these check are. I suspect they are less costly than you think. and instruct Tomcat to recompile a given JSP should it change. In our environment, the JSP is written out by our web app. I noted the page.jsp?jsp_precompile=true type of option, but this seems to have no effect if Tomcat's web.xml sets the JspServlet param development=false. This is probably a security feature. If anyone could force your app server to recompile your JSPs at will, they could launch a DOS attack by constantly recompiling all your JSPs. Not only would it eat up CPU time by performing the actual compilation, but during the recompile, the JSP is probably locked by the compiling thread so that other requests for that same JSP are delayed until the recompile is complete. That means that other users will be affected by the recompile request, and everything sucks for everyone. You may need to hack the Tomcat code in order to allow this behavior. If you choose to do this, consider making it a nice patch and submitting it as an enhancement. I can see separate configuration parameters for Tomcat: development=true|false sets the two below flags to true|false jspUpToDateCheck=true|false enables checking JSPs for up-to-date status allowJspPrecompileParam=true|false enables the precompilation This would allow you to configure Tomcat to allow recompiles, but not to do up-to-date checks. This makes sense when, for example, your JSPs are in the WEB-INF directory and cannot be accessed directly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxyrYACgkQ9CaO5/Lv0PBzrwCePb5h023njIzTYkNzW+hNcsow 9lAAnjV+wbb6lQypJLATlTE8DVTkaWJX =sOU/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble setting up virtual host
Thanks to all those that have helped with this issue. I contacted our Networking department to make sure that both ports 80 and 443 were open inbound to the server and that they were open from both VCU and external networks (outside VCU). The issue was on their end and it has been resolved! I am also able to connect to my application using the virtual host www.fmdreports.vcu.edu/InfoViewApp (which automatically loads the logon.jsp page). However, what I would really like to have happen is to only have to type in www.fmdreports.vcu.edu or fmdreports.vcu.edu and not have to type the /InfoViewApp after it and have set it to load the login page which is www.fmdreports.vcu.edu/InfoViewApp/logon.jsp Here is a copy of what I have in the host element..how can I accomplish the above? Host name=fmdreports.vcu.edu appBase=webappps/InfoViewApp unpackWARs=false autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.fmdreports.vcu.edu/Alias /Host _ Change is the essence of life. Be willing to surrender what you are, for what you could become. Lisa D. Beggs Information Technology Specialist Business Application Services Phone: 804 828-2098 Fax: 804 828-0322 Don't be a phishing victim - VCU and other reputable organizations will never use email to request that you reply with your password, social security number or confidential personal information. For more details visit http://infosecurity.vcu.edu/phishing.html From: Mark Eggers its_toas...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Date: 07/27/2009 10:55 PM Subject: Re: Trouble setting up virtual host As usual, late to the thread. I'll use C) then: C) on another workstation : - close the browser and re-open it. - in the browser, find the place where you can clear the cache. - do it (clear the cache) - request the URL : http://adm138/InfoViewApp - indicate the result here : A: Internet Explorer cannot display the webpage This usually means that the other workstation cannot translate between the name you gave the host on the other workstation (adm138) and the IP address of your server. I also noticed that while you use the fully qualified name in the other example (www.fmdreports.vcu.edu) you use the short name in your tests (adm138). There are several things to try here, to see where the breakdown is. I'll use numbers since everyone else is using letters. 1. From another workstation, open a DOS window (if it's Windows) or a UNIX shell command (if it's UNIX), and type the following: ping adm138 1a) If you get: Ping could not find the host adm138, then the other workstation does not know how to translate between the name and the IP address. 1b) If you get: Four lines with a bunch of numbers, then the other workstation knows how to translate between the name and the IP address 2. From another workstation, open a DOS window (if it's Windows) or a UNIX shell command (if it's UNIX) and type the following: ping adm138.fmdreports.vcu.edu 2a) If you get: Ping could not find the host adm138.fmdreports.vcu.edu, then the other workstation does not know how to translate between the name and the IP address. 2b) If you get: Four lines with a bunch of numbers, then the other workstation knows how to translate between the name and the IP address adm138.fmdreports.vcu.edu may be the fully qualified name, but this depends on how your network administrator has set up something called DNS. Firewall check == Windows comes with a built-in firewall. On XP/Professional it's located in Start-Control Panel-Network Connections. You'll have to single-click on the active network (the one your server connects to) to see Change Firewall Settings on the left hand side. Once you click on that (Change Firewall Settings), you should be able to edit the settings by selecting Exceptions tab. Hopefully you'll see two entries for Java(TM) Platform SE Binary. Make sure that the JRE you're using to run Tomcat is there (by clicking on edit and reading the properties). Short term fix (once you've checked your firewall) == If you have administrative privileges on the other workstation (Windows) or root access (UNIX), you can add some information in a file called hosts. On Windows, it's located in the %windir%\System 32\drivers\etc directory. In UNIX it's located in /etc The line you need to add is the following: aaa.bbb.ccc.ddd adm138 where aaa.bbb.ccc.ddd is the IP address of the machine with your Tomcat server. If the fully qualified name is supposed to be adm138.fmdreports.vcu.edu, then add this line instead to the hosts file aaa.bbb.ccc.ddd adm138 adm138.fmdreports.vcu.edu where aaa.bbb.ccc.ddd is the IP address of the machine with your Tomcat server. Long term (proper) fixes
DigestAuthenticator failure: java.sql.SQLException: Operation not allowed after ResultSet closed
How can I resolve this issue? It takes Tomcat own on a regular basis, locking out legitimate users. Looks like JDBCRealm has some kind of bug. Thanks! Jul 29, 2009 1:46:41 PM org.apache.catalina.realm.JDBCRealm getRoles SEVERE: Exception performing authentication java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:768) at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7008) at org.apache.catalina.realm.JDBCRealm.getRoles(JDBCRealm.java:632) at org.apache.catalina.realm.JDBCRealm.getPrincipal(JDBCRealm.java:596) at org.apache.catalina.realm.RealmBase.authenticate(RealmBase.java:400) at org .apache .catalina .authenticator .DigestAuthenticator.findPrincipal(DigestAuthenticator.java:283) at org .apache .catalina .authenticator .DigestAuthenticator.authenticate(DigestAuthenticator.java:176) at org .apache .catalina .authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) at com.diglloyd.tomcat.BadInputValve.invoke(BadInputValve.java:284) at org .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 568) at org .apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java: 394) at org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:613) diglloyd:bin lloyd$ ./version -bash: ./version: No such file or directory diglloyd:bin lloyd$ ./version.sh Using CATALINA_BASE: /web/tomcat Using CATALINA_HOME: /web/tomcat Using CATALINA_TMPDIR: /web/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/ Versions/CurrentJDK/Home Server version: Apache Tomcat/6.0.16 Server built: Jan 28 2008 11:35:29 Server number: 6.0.16.0 OS Name:Mac OS X OS Version: 10.5.7 Architecture: i386 JVM Version:1.5.0_19-b02-304 JVM Vendor: Apple Inc. Lloyd Chambers http://diglloyd.com http://macperformanceguide.com/ [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Deploying grails application
Hello all, I'm stuck here: After deploying a war created by grails, everything seems fine (tomcat says OK), but the application is not available in the path it should be. The log files give no warning at all. Where could I search for the problem? Regards, Juan Pablo - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DigestAuthenticator failure: java.sql.SQLException: Operation not allowed after ResultSet closed
2009/7/30 DIGLLOYD INC digllo...@diglloyd.com: How can I resolve this issue? It takes Tomcat own on a regular basis, locking out legitimate users. Looks like JDBCRealm has some kind of bug. Thanks! Jul 29, 2009 1:46:41 PM org.apache.catalina.realm.JDBCRealm getRoles SEVERE: Exception performing authentication java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:768) at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7008) at org.apache.catalina.realm.JDBCRealm.getRoles(JDBCRealm.java:632) at org.apache.catalina.realm.JDBCRealm.getPrincipal(JDBCRealm.java:596) at org.apache.catalina.realm.RealmBase.authenticate(RealmBase.java:400) at org.apache.catalina.authenticator.DigestAuthenticator.findPrincipal(DigestAuthenticator.java:283) at org.apache.catalina.authenticator.DigestAuthenticator.authenticate(DigestAuthenticator.java:176) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) at com.diglloyd.tomcat.BadInputValve.invoke(BadInputValve.java:284) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) diglloyd:bin lloyd$ ./version -bash: ./version: No such file or directory diglloyd:bin lloyd$ ./version.sh Using CATALINA_BASE: /web/tomcat Using CATALINA_HOME: /web/tomcat Using CATALINA_TMPDIR: /web/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Server version: Apache Tomcat/6.0.16 Server built: Jan 28 2008 11:35:29 Server number: 6.0.16.0 OS Name: Mac OS X OS Version: 10.5.7 Architecture: i386 JVM Version: 1.5.0_19-b02-304 JVM Vendor: Apple Inc. Lloyd Chambers http://diglloyd.com http://macperformanceguide.com/ [Mac OS X 10.5.2 Intel, Tomcat 6.0.16] It should be the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=45453 It was fixed in rev.685696 (http://svn.apache.org/viewvc?view=revrevision=685696) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DigestAuthenticator failure: java.sql.SQLException: Operation not allowed after ResultSet closed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diglloyd, On 7/30/2009 1:28 PM, Konstantin Kolinko wrote: It should be the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=45453 For whatever reason, JDBCRealm has always been a steaming POS. I would highly recommend using DataSourceRealm along with a Resource element in your context.xml file: it's a much more stable Realm to use. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpx8NAACgkQ9CaO5/Lv0PCzPQCfTkBFyQhTJnE/N/BnwmkQw2bC 148AoL+2dqYEfAVZPVOwS1ZyGxjWFRay =RZ5b -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying grails application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Juan, On 7/30/2009 1:10 PM, Juan Pablo Romero Méndez wrote: I'm stuck here: After deploying a war created by grails, everything seems fine (tomcat says OK), but the application is not available in the path it should be. The log files give no warning at all. Where could I search for the problem? You could start by telling us: 1. Your Tomcat version 2. What your server.xml has configured in it 3. How you did your deployment 4. What error(s) you actually get when you try to access the app 5. Any error or warning messages in catalina.out - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpx8W8ACgkQ9CaO5/Lv0PBvJgCdGdUPZzjgoCzeHS9WOij1Xgar RqQAnRBQUuqQPcHWmVN1xcyj0WB4xHAb =baQM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Setting maxThreads from outside tomcat
Hi, I am making tomcat 6 work on different platforms that need different values for maxThreads in the Connector in server.xml. Ideally, I would set an environment variable and/or property that could be used when server.xml is read - is something like this supported? Or, worse case, it looks like I could put a value onto the command line and look for it in Bootstrap.main() and then consult that value as the connectors are made, but that's pretty ugly. Any ideas? RP - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying grails application
It turned out there is some delay between clicking the link to deploy and the application being available. I somehow expected this process to be almost instantaneous. But the application is running fine now. Thanks! By the way, what is the preferred way to deploy war files to a tomcat installation? from the admin console? copying the file directly? My setup: Tomcat 6.0.20 os: Windows Server Enterprise 2008 JVM: 1.6.0_14-b08 Grails 1.1.1 Regards, Juan Pabllo 2009/7/30 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Juan, On 7/30/2009 1:10 PM, Juan Pablo Romero Méndez wrote: I'm stuck here: After deploying a war created by grails, everything seems fine (tomcat says OK), but the application is not available in the path it should be. The log files give no warning at all. Where could I search for the problem? You could start by telling us: 1. Your Tomcat version 2. What your server.xml has configured in it 3. How you did your deployment 4. What error(s) you actually get when you try to access the app 5. Any error or warning messages in catalina.out - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpx8W8ACgkQ9CaO5/Lv0PBvJgCdGdUPZzjgoCzeHS9WOij1Xgar RqQAnRBQUuqQPcHWmVN1xcyj0WB4xHAb =baQM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Setting maxThreads from outside tomcat
Sorry, I just discovered that catalina.properties can be used to set variables that can be used in server.xml - problem solved! --- On Thu, 7/30/09, Roger Powers prog...@yahoo.com wrote: From: Roger Powers prog...@yahoo.com Subject: Setting maxThreads from outside tomcat To: users@tomcat.apache.org Date: Thursday, July 30, 2009, 4:35 PM Hi, I am making tomcat 6 work on different platforms that need different values for maxThreads in the Connector in server.xml. Ideally, I would set an environment variable and/or property that could be used when server.xml is read - is something like this supported? Or, worse case, it looks like I could put a value onto the command line and look for it in Bootstrap.main() and then consult that value as the connectors are made, but that's pretty ugly. Any ideas? RP - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Access to home page
And you do feel forced to comment. This is a forum and no one is forcing you to answer. On Wed, Jul 29, 2009 at 7:01 AM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 7/29/2009 12:49 AM, Mohit Anchlia wrote: How do I setup authentication? You sure do ask a lot of questions on the list without reading anything in advance. If you've read all the responses to all of the stupid questions you've asked over time, you should have come across this site at one time or another: http://tomcat.apache.org/ It's great: you follow the link that takes you to the documentation for the version of Tomcat you're running and, amazingly, there's documentation for how to do all kinds of things. Unfortunately, the word authentication doesn't appear on those pages. You have to know that AAA stands for authentication, authorization, and accounting. Here's the link. For the love of god, please read it: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html You should actually start by reading the servlet specification's section on authentication (it's chapter 12). In fact, read the whole document before posting again. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpwVlEACgkQ9CaO5/Lv0PBsSQCfQlWHUUGIGpiVlTSNgLYbPuyY gvMAoIBLG992YNjms1WJ0Gc67b9O9XT8 =8mAU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org