Class loading question (with aspectj)
I read the document at http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html and have a question. What is the class loading order if the classes are located under /WEB-INF/classes/ and /WEB-INF/lib/ respectively? I have a aspectj class (.aj) located under /WEB-INF/classes/ and a Filter (TapestryFilter) class located under /WEB-INF/lib/. Will the TapestryFilter get loaded first and ignore aspectj class? My scenario is : My web application configure org.apache.tapestry5.services.TapestryFilter in the web.xml to filter incoming request. Then an aspectj class will intercept the execution of TapestryFilter.doFilter() method. The aspectj class looks as below pointcut intercept(): execution(* org.apache.tapestry5.services.TapestryFilter.doFilter(..)); void around() : intercept(){ System.out.println(" test ..."); logger.debug("..."); // slf4j log configured correctly } So what I expect is, for instance, when a user access from the browser the log/console will print the log message. This scenario works fine when I copy and rename (also change web.xml to use that new filter) TapestryFilter to WEB-INF/class folder. However, if I use the default TapestryFilter (packaged as jar file under WEB-INF/lib), the aspectj message won't be shown in the log. Looks like the aspectj class is completely ignored. Is there any document/resource that tells more detail on how class loader would work if classes are located under WEB-INF/class and WEB-INF/lib? Or any place of the source code would be a good start point to look at? I appreciate any suggestion. Thank you very much. -- View this message in context: http://www.nabble.com/Class-loading-question-%28with-aspectj%29-tp25288633p25288633.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod jk - multiple applications, different server clusers, sticky sessions
On 03.09.2009 23:31, Christopher Schultz wrote: > Rainer, > > On 9/3/2009 4:36 AM, Rainer Jung wrote: >> No. > >> The stickyness doesn't magically track your clients. If the client sends >> a session information, and the session information contains a route tag >> (a suffix .nodeX, where nodeX is set by the jvmRoute attribute in >> server.xml), then mod_jk looks for a balancer member named nodeX. > >> When/How does the client send session information? Either as a cookie >> named JSESSIONID, or via URL encoding ...;jsessionid=nodeX > >> By default, application A with context name /myappA uses cookies and >> only sends cookies if the request goes to something in /myappA. So a >> request for application B with context /myappB doesn't include the >> cookie for A and the load balancer is free to distribute the request to >> any node. > > One caveat: if you have a ROOT context along with other non-ROOT > contexts, things can get tricky because you'll get cookies like: > > name=JSESSIONID, path=/, expires=..., value=... > name=JSESSIONID, path=/foo, expires=..., value=... > name=JSESSIONID, path=/bar, expires=..., value=... > > Whenever a client browses to webapps found on / and /foo, the requests > to /foo will get TWO cookies, and confusion may occur (I'm not sure what > mod_jk will do in this situation... Rainer?). Not sure either :( Even if I looked at the code now, I wouldn't take it for granted, that the behaviour can't change. Actually I'm not even sure what the browser is supposed to send (the same cookie multiple times, or only the one with the longest path match). > My advice is to avoid "nesting" webapp URL spaces. I accidentally did > this for years until I discovered the problem when adding > sessionid-passthrough to another webapp (where the session id couldn't > be validated before being passed-through) and everything went crazy. > When I separated the URL spaces, everything was fine. > > Hope that helps, > -chris Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
On 03.09.2009 20:24, Dennis Christopher wrote: > Rainer, > > Trying your /sample/ I get the same result. > > The log appears to respond to that try but the lines are similar to > those I originally posted from mod_jk.log. > > It's as though every context request is translated into '/server-status'. Not very likely. Are those entries also appearing in times you are not testing? If so those are someone else, and your own request isn't handled by the Apache you are looking at. Can you find your request in the access log? Go through all config files and find out, what is configured about /server-status. That URL doesn't have anything to do with mod_jk. Regards, Rainer > the bracketed numbers are: > > [221:268597152] [debug] attempting to map URI '/server-status' from 5 maps. > . > . > [221:268597152] [debug] attempting to map context URI > '/sample/*.=JBOSS1*' source JKMount > . > . > > all the entries are marked [debug]. > > 221 is process httpd with user _www. > > Dennis > > On Sep 3, 2009, at 1:26 PM, Rainer Jung wrote: > >> On 03.09.2009 19:15, Dennis Christopher wrote: >>> The problem is that I am trying to support simple references to my >>> context without the tomcat port explicitly included. >>> >>> example: myexample.com/sample should invoke the web-app sample. >> >> You don't have a JkMount for /sample, only one for /sample/*. >> What happens, if you point your browser to >> >> http://my.apache.name/sample/ >> >> If it doesn't work, extract the lines from your mod_jk log, that refer >> to this request. Look for something like >> >> ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' >> from ... >> >> Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id >> used for the request, and get all lines form the log, which have a >> timestamp close to your request and use the same IDs. >> >> Check whether there are any non-debug lines in there. If you can't see >> what goes wrong, post those lines. >> >> Regards, >> >> Rainer >> >>> what happens instead: the browser tells me: "file not found". >>> >>> looking at catalina.out it seems the request doesnt reach Tomcat at all. >>> >>> How I did it: he quick start guide at >>> >>> http://tomcat.apache.org/connectors-doc/generic_howto/quick.html >>> >>> gives a simple proof of concept for a context setup (/examples"). >>> >>> which I have followed implicitly. I believe you have already seen what I >>> have done with the config files I posted. >>> >>> Dennis >>> >>> P.S as it may be important - if I try example.com:8080/sample the main >>> page of my web app loads but all of its subreferences, to gif images >>> etc, are broken. >>> >>> >>> On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: >>> On 03.09.2009 15:34, Dennis Christopher wrote: > Rainer, > > I am not sending /server-status explicitly. > > The mod_jk log which I excerpted earlier shows the processing of > server-status before any context is asked for, apparently when Tomcat > starts up. > > The log continues to repeat these entries - apparently mod_jk is > looping > trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer > I added JkMountCopy All but this had no effect. > > Dennis > On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: > >> On 02.09.2009 21:45, Dennis Christopher wrote: >>> Rainer, >>> >>> Thanks for the reply. I was confused in my orginal post: I am not >>> using >>> JBoss at all, only mod_jk. >>> >>> The file contents are as follows below. >>> >>> Apache has a hosts directory, but I'm not sure if the files matter. >>> They >>> are either the apache .default files or slight modifications of >>> them, >>> e.g. virtual_host_global.conf contains just: >>> >>> Listen *:80 >> >> I don't understand, why you test this with a request /server-status. >> That doesn't make sense, because you don't want /server-status to be >> forwarded by mod_jk and in fact you didn't configure it. >> >> So choose a better URL to test (one of the URLs you have a JkMount >> for) >> and add "JkMountCopy All". >> >> Regards, >> >> Rainer >> >>> 1. uriworkermap.properties -- not used >>> >>> 2. from apache2/httpd.conf: >>> >>> LoadModule jk_module libexec/apache2/mod_jk.so >>> . >>> . >>> >>> JKWorkersFile /etc/apache2/workers.properties >>> JKLogFile /var/log/a
Monitor Tomcat Performance
Hello, I am using tomcat on my web application. I want to monitor my tomcat performance. What tools I can use? From the cacti graph, shows that the memory usage is very big (>90%). Thanks -- Zaki Akhmad - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 4.1.31 problem
Hi Chris, > >>>If you want to deploy "procurement" from your webapps directory, simply > >>>remove the element entirely from your server.xml file and > >>>allow Tomcat to auto-deploy your webapp naturally. > This is the exception when removing the element from the server.xml: [ERROR] [Cannot create JDBC driver of class '' for connect URL 'null']org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518) > > >>>If you need or elements inside your , then > >>>you have two options: > > >>>1. Set autoDeploy="false" on your > This is the error which is same as the JDBC driver error: Catalina.start: LifecycleException: Context startup failed due to previous erro rs LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 578) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316 ) > > >>>2. Keep your 's docBase outside of your 's appBase > > I changed >>>I agree with Chuck's and Mark's comments WRT JRE and Tomcat version. > I am desperate now. Will try Tomcat 5 with JDK1.4 . Thanks, Jamez.
Re: how to unwrap a Request from RequestFacade
"Christopher Schultz" wrote in message news:4aa03ca3.4010...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Muthu, > > On 9/3/2009 11:17 AM, muthu.chan...@sectra.se wrote: >> I am using tomcat 5.5 and just wanted to write a simple servlet to get >> some information using StandardManager such as activeSessions, >> expriedSessions, sessionCounter etc.. I am not that familiar with these >> classes. I noticed when the request comes into my servlet it comes as >> RequestFacade where the org.apache.catalina.connector.Request is wrapped >> inside it. I haven't figured out how to unwrap the Request object so that >> I can get the Context from which I can get the Manager (StandardManager) >> to access the information I need. Any help with a snippet of code to get >> the Request Object from RequestFacade will be appreciated. > > Maybe try something like this: > > public class SneekyRequestFacade > extends RequestFacade > { > public SneekyRequestFacade() { super(null); } > > public Request getRequest(RequestFacade rf) > { >return rf.request; > } > } > > Now: > > RequestFacade rf = ...; // get your requestfacade > Request req = new SneekyRequestFacade().getRequest(rf); > > I think that ought to do it. Isn't OO abuse great? > It is great ;). But you save a couple of lines by just doing straight introspection. > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkqgPKMACgkQ9CaO5/Lv0PBmaACgvmnqSUh8xEhziGwDNE4SbVwQ > ytQAnA2u2nUwb4XXtqLZqFa92oFDiBn2 > =PCPu > -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsvc will not start on Snow Leopard & Tomcat 6
There is a patch in https://issues.apache.org/jira/browse/DAEMON-98, but I don't know if is the same issue. There are a couple of other OS/X related issues there as well. "bemaniac" wrote in message news:25285131.p...@talk.nabble.com... > > > I tried running ldd, but I guess that command doesn't exist in OS X Snow > Leopard. Is there another command I can try? > > I've looked in the directory it is looking in to find > "libjvm_compat.dylib", > and the only thing similar that's in there is "libjvm.dylib". > It doesn't really matter, since jsvc dynamically loads the libjvm, so it wouldn't show up anyway. Probably the best thing to do is to try and run jsvc with the -debug flag and post the resulting output. If you are feeling like hacking around yourself, the reference to libjvm_campat.dylib is at line 142 of java.c. > > > Christopher Schultz-2 wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> bemaniac, >> >> On 9/3/2009 12:48 PM, bemaniac wrote: >>> When I install jsvc, even >>> though it appears to compile properly, it always fails to start. When I >>> check the catalina.out log, it gives the following message: >>> >>> 02/09/2009 16:46:42 30987 jsvc error: Cannot load required shell library >>> /Library/Java/Home/../Libraries/libjvm_compat.dylib >>> 02/09/2009 16:46:42 30986 jsvc error: Service exit with a return value >>> of >>> 1 >>> >>> Looking in my frameworks, it looks like "libjvm_compat.dylib" doesn't >>> exist, >>> but "libjvm.dylib" does exist, though I'm not sure if that's what it >>> should >>> be looking for. >> >> Hmm. I wonder how you were able to link against libjvm_compat.dylib >> during compilation. I wonder if your Java install is no longer sane. >> What version are you running? >> >> What do you get when you run: >> >> $ ldd jsvc >> >> ? >> >> If libjvm_compat.dylib isn't listed there, try: >> $ ldd -v jsvc >> >> ...and see which library jsvc uses that uses libjvm_compat.dylib >> >> Hope that helps, >> - -chris >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.9 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ >> >> iEYEARECAAYFAkqgP+0ACgkQ9CaO5/Lv0PBAswCguIwWgZh/zzfXS+yKcsgEHP23 >> fQcAn1AE1ap8EO1UHAzvLtiOG2bx/7eE >> =D/Hj >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/jsvc-will-not-start-on-Snow-Leopard---Tomcat-6-tp25279897p25285131.html > Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
[ANN] Apache Tomcat 5.5.28 released
The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable. Apache Tomcat 5.5.28 incorporates numerous security updates and bug fixes. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html Downloads: http://tomcat.apache.org/download-55.cgi Thank you, The Tomcat Team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Server failover and session replication
I cant answer for sure. As I said, my experience with clustering is limited, although the only problem we had was specifically with the SSO data. Once I extended ClusterSSO to automatically request all known SSO data from the cluster, the problem went away. On Thu, Sep 3, 2009 at 9:57 PM, Sumedh Sakdeo wrote: > Can anyone help in these regards? > Thanks in advance, > Sumedh > > On Thu, Sep 3, 2009 at 8:52 AM, Sumedh Sakdeo >wrote: > > > http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html > > *How it Works > > * > > > >1. TomcatA starts up > >2. TomcatB starts up (Wait that TomcatA start is complete) > >3. TomcatA receives a request, a session S1 is created. > >4. TomcatA crashes > >5. TomcatB receives a request for session S1 > >6. TomcatA starts up > >7. TomcatA receives a request, invalidate is called on the session > (S1) > >8. TomcatB receives a request, for a new session (S2) > >9. TomcatA The session S2 expires due to inactivity. > > > > section describes the steps.7-9 steps confusing. > > Does tomcat 6 even support such scenario? > > > > --Sumedh > > > > > > > > On Thu, Sep 3, 2009 at 6:29 AM, Shaun Senecal >wrote: > > > >> After re-reading your initial post, the problems might not be as related > >> as > >> I thought since at no point did replication "stop" for me. > >> > >> > >> On Thu, Sep 3, 2009 at 9:56 AM, Shaun Senecal >> >wrote: > >> > >> > We had a similar problem with Tomcat 6 using clustering. It turns out > >> that > >> > the SSO information is only propagated while all instances are > running. > >> If > >> > Instance-A fails, several users then log in to Instance-B, then > >> Instance-A > >> > comes back up, all of the SSO information for the users that logged in > >> > during the downtime is not included in Instance-A so those users are > >> forced > >> > to re-login once the load balancer sends them to that instance. > >> > > >> > I wrote a fix for it, which might be useful for you. However, it > hasnt > >> > been fully tested and is designed to only share the SSO information at > >> > startup, not all Session information. If Tomcat doenst handle this > >> case, > >> > then the fix I wrote should be easily extended to handle that. > >> Basically, > >> > when an instance comes up it broadcasts a request for all known SSO > >> > information to the cluster. It then takes the first response it gets > >> and > >> > continues processing as normal. > >> > > >> > Let me know if you dont find a proper solution to the problem and I > will > >> > try to dig up that fix. My intention was to post it back to the > group, > >> but > >> > I got sidetracked once we (temporarily) stopped using clustering. > >> > > >> > > >> > Shaun > >> > > >> > > >> > On Thu, Sep 3, 2009 at 3:52 AM, Sumedh Sakdeo >> >wrote: > >> > > >> >> Hi Rainer, > >> >> > >> >> I am using Tomcat session clustering and Apache Http Server for > >> LB(using > >> >> mod_jk module). Also, using Tomcat 6. I have made appropriate > changes > >> to > >> >> worker.properties and httpd.conf. Also I have made appropriate > changes > >> to > >> >> server.xml on each tomcat. > >> >> > >> >> Thanks, > >> >> Sumedh > >> >> > >> >> On Thu, Sep 3, 2009 at 12:15 AM, Rainer Jung < > rainer.j...@kippdata.de > >> >> >wrote: > >> >> > >> >> > On 02.09.2009 19:57, Sumedh Sakdeo wrote: > >> >> > > Hello All, > >> >> > > I have a setup with two tomcat instances(A&B). I have > >> >> > configured > >> >> > > an apache web server 2.2 for load balancing and fail over. Setup > >> looks > >> >> > fine > >> >> > > as per the configurations suggested. Let tomcat A be handling > some > >> >> > request > >> >> > > at sometime. When tomcat instance(A) goes down, the session is > >> >> replicated > >> >> > to > >> >> > > another tomcat instance(B) successfully. Now tomcat instance B is > >> >> > handling > >> >> > > those requests. Till this point everything goes fine, but when I > >> bring > >> >> up > >> >> > > tomcat instance(A) and after that tomcat instance(B) goes down, > the > >> >> > session > >> >> > > is no longer replicated. What might be the issue? In status page > of > >> >> > apache > >> >> > > server I see even if node status is OK session is not replicated > to > >> >> fail > >> >> > > over node for second time. > >> >> > > >> >> > How do you replicate? Are you using Tomcat session clustering? > Tomcat > >> >> > 5.5 or Tomcat 6? > >> >> > > >> >> > Regards, > >> >> > > >> >> > Rainer > >> >> > > >> >> > > - > >> >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> >> > For additional commands, e-mail: users-h...@tomcat.apache.org > >> >> > > >> >> > > >> >> > >> > > >> > > >> > > > > >
Re: Configuring different environment variables for different vhost context?
Hi, Caldarale, Charles R wrote: > I think the code snippet you posted should be working with the > element you posted previously. Might be time to add some print statements to > find out what the Hudson code gets back from the Context.lookup() calls. Thanks, your message made me confident that it must be an error on my side, which it was. I was just not able to realize that the application was picking up the environment variable properly :/ sincerely, - Markus - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsvc will not start on Snow Leopard & Tomcat 6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bemaniac, On 9/3/2009 6:22 PM, bemaniac wrote: > I tried running ldd, but I guess that command doesn't exist in OS X Snow > Leopard. Is there another command I can try? Hmm... I'm not a Mac OS X wonk... sorry. I figured ldd was standard *NIX (though everything in OS X seems to work in a different way, so why not this?). > I've looked in the directory it is looking in to find "libjvm_compat.dylib", > and the only thing similar that's in there is "libjvm.dylib". Yeah, libjvm.dylib is likely to be /the/ JVM, while libjvm_compat.dylib is likely to be a smaller compatibility library for certain features. A quick Google search seems to indicate that libjvm_compat.dylib is related to JDK 1.4 which should have been replaced long ago. That's why I suggested a non-sane (insane?) Java installation. Does OS X offer any way to "reinstall" a system package like this? Unless someone on the list has specific experience with this, I'd suggest asking on the commons user list (where jsvc questions might better be answered) or on an OS-X-specific Java list. Sorry :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgQyIACgkQ9CaO5/Lv0PALOACdGaWG1CXrSys2rJZ9gyyRuU4Z /wUAoLuMeNzpXPdaVNUdz68/pLE4AHyX =vZqO -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat ICD-10 compliance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 9/3/2009 1:04 PM, Gregor Schneider wrote: > Correct me if I'm wrong, but afaik ICD-10 is nothing but a code > describing the hierarchy-structure of disorders like asthma, hayfever, > cancer etc issued by the WHO. Yup. > I do not see how Tomcat or any other web- / application-server should > support such a standard: It's the application (here: servlet or jsp) > which has to be able to support your favourite ICD-code. Right. > Therefore, ask the provider of your software dealing with ICD-codes > wether it's ICD-10 compliant or not. Uh huh. The short answer is: yes, Tomcat has been ready for the ICD-10 migration since it was first written. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgQlUACgkQ9CaO5/Lv0PA8TQCfUcbjtUzt4wrj38bT+6d8vc0s N2MAoKSyyl/NBcE2H9RY/uDhJv6YBYXG =p8Jd -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsvc will not start on Snow Leopard & Tomcat 6
I tried running ldd, but I guess that command doesn't exist in OS X Snow Leopard. Is there another command I can try? I've looked in the directory it is looking in to find "libjvm_compat.dylib", and the only thing similar that's in there is "libjvm.dylib". Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > bemaniac, > > On 9/3/2009 12:48 PM, bemaniac wrote: >> When I install jsvc, even >> though it appears to compile properly, it always fails to start. When I >> check the catalina.out log, it gives the following message: >> >> 02/09/2009 16:46:42 30987 jsvc error: Cannot load required shell library >> /Library/Java/Home/../Libraries/libjvm_compat.dylib >> 02/09/2009 16:46:42 30986 jsvc error: Service exit with a return value of >> 1 >> >> Looking in my frameworks, it looks like "libjvm_compat.dylib" doesn't >> exist, >> but "libjvm.dylib" does exist, though I'm not sure if that's what it >> should >> be looking for. > > Hmm. I wonder how you were able to link against libjvm_compat.dylib > during compilation. I wonder if your Java install is no longer sane. > What version are you running? > > What do you get when you run: > > $ ldd jsvc > > ? > > If libjvm_compat.dylib isn't listed there, try: > $ ldd -v jsvc > > ...and see which library jsvc uses that uses libjvm_compat.dylib > > Hope that helps, > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkqgP+0ACgkQ9CaO5/Lv0PBAswCguIwWgZh/zzfXS+yKcsgEHP23 > fQcAn1AE1ap8EO1UHAzvLtiOG2bx/7eE > =D/Hj > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/jsvc-will-not-start-on-Snow-Leopard---Tomcat-6-tp25279897p25285131.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jsvc will not start on Snow Leopard & Tomcat 6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bemaniac, On 9/3/2009 12:48 PM, bemaniac wrote: > When I install jsvc, even > though it appears to compile properly, it always fails to start. When I > check the catalina.out log, it gives the following message: > > 02/09/2009 16:46:42 30987 jsvc error: Cannot load required shell library > /Library/Java/Home/../Libraries/libjvm_compat.dylib > 02/09/2009 16:46:42 30986 jsvc error: Service exit with a return value of 1 > > Looking in my frameworks, it looks like "libjvm_compat.dylib" doesn't exist, > but "libjvm.dylib" does exist, though I'm not sure if that's what it should > be looking for. Hmm. I wonder how you were able to link against libjvm_compat.dylib during compilation. I wonder if your Java install is no longer sane. What version are you running? What do you get when you run: $ ldd jsvc ? If libjvm_compat.dylib isn't listed there, try: $ ldd -v jsvc ...and see which library jsvc uses that uses libjvm_compat.dylib Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgP+0ACgkQ9CaO5/Lv0PBAswCguIwWgZh/zzfXS+yKcsgEHP23 fQcAn1AE1ap8EO1UHAzvLtiOG2bx/7eE =D/Hj -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 unwrap a Request from RequestFacade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Muthu, On 9/3/2009 11:17 AM, muthu.chan...@sectra.se wrote: > I am using tomcat 5.5 and just wanted to write a simple servlet to get > some information using StandardManager such as activeSessions, > expriedSessions, sessionCounter etc.. I am not that familiar with these > classes. I noticed when the request comes into my servlet it comes as > RequestFacade where the org.apache.catalina.connector.Request is wrapped > inside it. I haven't figured out how to unwrap the Request object so that > I can get the Context from which I can get the Manager (StandardManager) > to access the information I need. Any help with a snippet of code to get > the Request Object from RequestFacade will be appreciated. Maybe try something like this: public class SneekyRequestFacade extends RequestFacade { public SneekyRequestFacade() { super(null); } public Request getRequest(RequestFacade rf) { return rf.request; } } Now: RequestFacade rf = ...; // get your requestfacade Request req = new SneekyRequestFacade().getRequest(rf); I think that ought to do it. Isn't OO abuse great? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgPKMACgkQ9CaO5/Lv0PBmaACgvmnqSUh8xEhziGwDNE4SbVwQ ytQAnA2u2nUwb4XXtqLZqFa92oFDiBn2 =PCPu -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: An unexpected error has been detected by Java Runtime Environment:
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 9/3/2009 6:06 AM, Peter Crowther wrote: > Have you got a creeping failure on your hardware? Bad RAM could cause the > problem you observe, for example. +1000 SIGBUS? Cool! - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgNgUACgkQ9CaO5/Lv0PAqsACcCm5+2laf48qTcSRRpIqKGE+K 9AEAn3Vp6VvuSMYT4ZqI08wxSPV3kkoR =0Ffv -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod jk - multiple applications, different server clusers, sticky sessions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 9/3/2009 4:36 AM, Rainer Jung wrote: > No. > > The stickyness doesn't magically track your clients. If the client sends > a session information, and the session information contains a route tag > (a suffix .nodeX, where nodeX is set by the jvmRoute attribute in > server.xml), then mod_jk looks for a balancer member named nodeX. > > When/How does the client send session information? Either as a cookie > named JSESSIONID, or via URL encoding ...;jsessionid=nodeX > > By default, application A with context name /myappA uses cookies and > only sends cookies if the request goes to something in /myappA. So a > request for application B with context /myappB doesn't include the > cookie for A and the load balancer is free to distribute the request to > any node. One caveat: if you have a ROOT context along with other non-ROOT contexts, things can get tricky because you'll get cookies like: name=JSESSIONID, path=/, expires=..., value=... name=JSESSIONID, path=/foo, expires=..., value=... name=JSESSIONID, path=/bar, expires=..., value=... Whenever a client browses to webapps found on / and /foo, the requests to /foo will get TWO cookies, and confusion may occur (I'm not sure what mod_jk will do in this situation... Rainer?). My advice is to avoid "nesting" webapp URL spaces. I accidentally did this for years until I discovered the problem when adding sessionid-passthrough to another webapp (where the session id couldn't be validated before being passed-through) and everything went crazy. When I separated the URL spaces, everything was fine. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgNaEACgkQ9CaO5/Lv0PC7nQCgtvFONQbvlmx7zrz+rmKaFVdI PcgAnjDcnYoWXNmsMW8bIE58tSnUBFuG =9T+N -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Change redirect to SSL behavior?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roger (danger is /not/ my middle name ha ha), On 9/3/2009 5:04 PM, Roger David Powers wrote: > Thanks, but what I want is for the user to get https when they > type https://webapp and get http when they type http://webapp. > Is there a different transport-guarantee classification to get > that behavior? That's what you'll get if you have no statement at all. If you do CONFIDENTIAL|INTEGRAL, then any HTTP connections (that is, non-secure ones) will be redirected to HTTPS. In the absence of such configuration, no redirect will ever take place. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgNB4ACgkQ9CaO5/Lv0PAYugCghxRyfgKg5x/9156WDNpL5geM POcAnRPKob0nnuIP4OMCz780bkRJ3O7I =ac5j -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: thread dumps catalina.out
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 keeplearning, On 9/2/2009 3:09 PM, keeplearning wrote: > Sorry. But I didn't understand how using 2 terminals would help me with the > questions I posted. Then you need to do a 'man tee' and consider what Jim's trick is actually doing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgMrsACgkQ9CaO5/Lv0PCH+gCfdHyCxd+59q7CZmDhazHGZb98 BBMAnj1hiNPM7AhGcrSD4IxbXqMDAHGw =Qc5p -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Change redirect to SSL behavior?
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: Change redirect to SSL behavior? > > > From: Roger David Powers [mailto:prog...@yahoo.com] > > Subject: RE: Change redirect to SSL behavior? > > > > Thanks, but what I want is for the user to get https when they > > type https://webapp and get http when they type http://webapp. > > What I suggested should do exactly that. Assuming you configured an HTTPS on port 443, of course. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Change redirect to SSL behavior?
> From: Roger David Powers [mailto:prog...@yahoo.com] > Subject: RE: Change redirect to SSL behavior? > > Thanks, but what I want is for the user to get https when they > type https://webapp and get http when they type http://webapp. What I suggested should do exactly that. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to access files outside Webapp directory in tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Akash, On 9/2/2009 1:32 AM, asingla4 wrote: > I have my Web application installed in C:\Tomcat\webapp\ROOT. > Now, through the Web page of this application, the user uploads an image > which the application saves in C:\files folder using ImageIO class of JAVA. Aah, the magic of using an image API to save byte streams. You didn't need that extra CPU time for anything, did you? > Now as soon as the file is uploaded, there should be a download button > enabled for this uploaded image. > If the user hits download, he should be able to download the file he > uploaded. Okay, so you want to allow remote clients to access uploaded files through a URL pattern. No problem. > I'm done with saving the file to C:\files but I don't know how to make it > downloadable when the download button is clicked because the files folder is > outside the webapp directory. You have a few options: 1. Create a new context called, say, "files" and point it at c:\files. You can do this by creating CATALINA_BASE/conf/[servicename]/[hostname]/files.xml with this content: OR 2. Write a servlet mapped to /files/* (or whatever) that looks-up files in /files and just streams them to the client. #2 would be better if you need to be logged-in to your webapp in order to download files. #1 is more convenient because you don't have to write any code. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgMAEACgkQ9CaO5/Lv0PBHrQCfdqj0/q0jQPpmhevbuqEblM/b rf8An2cq0u6UPUzRs20h/5xLestYqDSw =8D0G -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Change redirect to SSL behavior?
Thanks, but what I want is for the user to get https when they type https://webapp and get http when they type http://webapp. Is there a different transport-guarantee classification to get that behavior? --- On Thu, 9/3/09, Caldarale, Charles R wrote: > From: Caldarale, Charles R > Subject: RE: Change redirect to SSL behavior? > To: "Tomcat Users List" > Date: Thursday, September 3, 2009, 3:24 PM > > From: Roger David Powers > [mailto:prog...@yahoo.com] > > Subject: Change redirect to SSL behavior? > > > > Having the ability to not get redirected to SSL/TLS > avoids the users > > see issues with incorrect certificates, which > unfortunately happens > > more often than I'd like. > > > > Is there a config or a workaround for this? > > If you don't actually care about confidentiality, just > remove the element from the > webapp's WEB-INF/web.xml file. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR > OTHERWISE PROPRIETARY MATERIAL and is thus for use only by > the intended recipient. If you received this in error, > please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Is resource-ref really needed?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 9/2/2009 6:15 AM, Robert Whane wrote: > The way I now understand this > element to work is that it's some sort of hint to the container > processing the deployment descriptor that it should go looking for a > magical (vendor specific) mapping of the resource name declared by the > resource-ref element to some global resource somewhere. What it should do is only allow the webapp to access resources referred-to in the resource-ref elements. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgLu8ACgkQ9CaO5/Lv0PAKwQCfZ7gfoso9kF1nKvRcC9KGawWd xJUAoId9r3rG3Mr2oh4i8BzCQxZm5zYX =he8Y -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Query on Tomcat Server.xml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bhuvan, On 9/2/2009 1:44 AM, Bhuvanesh Pattanashetti wrote: > Thanks for your suggestion, > I wanted only some part of tomcat to be customized.So it would be risky and > time consuming if i override the whole part. > > I have reached some extent. > > i m using spring-DM running on tomcat. Spring-DM is able to inject > the object my business class. Wait... are you trying to have Spring inject Tomcat's Service object into one of your own classes? I suspect you're getting a worthless Service object (that is, one created from scratch that has nothing to do with the currently-running Tomcat). > I wanted to add https port(Http11NioProtocol connector element) to > this through coding. If you're using Spring, and you already have a Service object, why not just have Spring create a Http11NioConnector object and attach it to that service? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgLh0ACgkQ9CaO5/Lv0PCGJwCghScN9K9OyQ4hI5yYZmeHJV6N YyUAn0AOSBst6R05W+sevQCDTcyUI3Lh =01Mq -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Bradley Wagner wrote: > Ok, I'll try that next. Two things: > - Did some searching, but couldn't find how to determine the default GC > method for my Java version http://blogs.sun.com/watt/resource/jvm-options-list.html is a useful reference > - Would you recommend I move this problem elsewhere, given that this is > likely not related to Tomcat at all. I don't want to spam this list. No need. GC freezes are close to the most common issue I see with unstable production Tomcat systems so I think it is very relevant. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Configuring different environment variables for different vhost context?
> From: Markus Fischer [mailto:mar...@fischer.name] > Subject: Re: Configuring different environment variables for different > vhost context? > > Matching that with your comment about JNDI, I see a partial match here > :) However I lack the knowledge to understand what the context lookup > to "java:comp/env" really means in relation to HUDSON_HOME . I think the code snippet you posted should be working with the element you posted previously. Might be time to add some print statements to find out what the Hudson code gets back from the Context.lookup() calls. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring different environment variables for different vhost context?
Hi, Caldarale, Charles R wrote: > I think you're confusing environment variables with environment entries - > they are completely different things. Environment variables have a scope of > process, and are accessed in Java via System.getenv(). Environment entries > (what you have configured) have a scope of webapp, and are retrieved via JNDI > lookup. Read the servlet spec. I think you're absolutely right; I'm sill new into all that Java/Tomcat stuff. I searched a bit in the Hudson sources and found the following: // check JNDI for the home directory first try { InitialContext iniCtxt = new InitialContext(); Context env = (Context) iniCtxt.lookup("java:comp/env"); String value = (String) env.lookup("HUDSON_HOME"); if(value!=null && value.trim().length()>0) return new File(value.trim()); // look at one more place. See issue #1314 value = (String) iniCtxt.lookup("HUDSON_HOME"); if(value!=null && value.trim().length()>0) return new File(value.trim()); } catch (NamingException e) { // ignore } Matching that with your comment about JNDI, I see a partial match here :) However I lack the knowledge to understand what the context lookup to "java:comp/env" really means in relation to HUDSON_HOME . Am I still on the right track now with my environment entry configuration from my ROOT.xml? I can imagine that I'm missing only a small link now ... thank you in advance, - Markus - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > - Did some searching, but couldn't find how to determine the default GC > method for my Java version You appear to be running the parallel GC; that's one of the things JConsole would tell you. There are probably other ways to determine the setting, but unfortunately I've forgotten them. Lambda Probe does display the heap types, but you have to have Tomcat running to use it... > - Would you recommend I move this problem elsewhere, given that this is > likely not related to Tomcat at all. I don't want to spam this list. That's why people have delete keys. Just add [OT] to the subject line, if you think it's appropriate. Whatever is eventually discovered may well help other Tomcat users. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Ok, I'll try that next. Two things: - Did some searching, but couldn't find how to determine the default GC method for my Java version - Would you recommend I move this problem elsewhere, given that this is likely not related to Tomcat at all. I don't want to spam this list. Thanks, Bradley On Thu, Sep 3, 2009 at 4:24 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > And again in a new place on subsequent attempt. > > There's nothing unusual that I can see in the traces, so it looks like you > will have to try random GC settings until something works (as Mark suggested > some time ago). Try turning these tags on, one at a time: > > -XX:+UseParallelGC > -XX:+UseParallelOldGC > -XX:+UseSerialGC > -XX:+DoEscapeAnalysis > -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC > > The last one is somewhat experimental, as the parameter implies. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > And again in a new place on subsequent attempt. There's nothing unusual that I can see in the traces, so it looks like you will have to try random GC settings until something works (as Mark suggested some time ago). Try turning these tags on, one at a time: -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseSerialGC -XX:+DoEscapeAnalysis -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC The last one is somewhat experimental, as the parameter implies. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Configuring different environment variables for different vhost context?
> From: Markus Fischer [mailto:mar...@fischer.name] > Subject: Configuring different environment variables for different > vhost context? > > in tomcat55/Catalina/hudson-test.dev/ROOT.xml I have > > value="/data/java/hudson-test"/> > I think you're confusing environment variables with environment entries - they are completely different things. Environment variables have a scope of process, and are accessed in Java via System.getenv(). Environment entries (what you have configured) have a scope of webapp, and are retrieved via JNDI lookup. Read the servlet spec. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > What's odd is that the PermGen space appears to be totally used > up at 26MB and not expanding, unless I'm reading it wrong. You're reading it wrong. That's just the amount used of the current PermGen size; it's nowhere near your max, so that's not the problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Configuring different environment variables for different vhost context?
Hi, I want to deploy multiple version of an application (Hudson [1] in my case). Each running instance needs the environment variable HUDSON_HOME point to a different location. However I only manage to either specify either a HUDSON_HOME for all instances or none at all :-( In tomcat55/server.xml I added in tomcat55/Catalina/hudson-test.dev/ROOT.xml I have However it does not pick up HUDSON_HOME and I end up Hudson creating and using /usr/share/tomcat5.5/.hudson/ instead. I was only able to add global HUDSON_HOME variable which would be the same for all Hudson deployments (either passed them in the shell when starting tomcat or in the tomcat55/context.xml file). I found http://forums.java.net/jive/thread.jspa?messageID=85039&tstart=0 which suggest to do exactly would I did, but it doesn't pick it up from there. I directed my question to Hudson but was suggested it may be a TC configuration issue. Can someone point me into the right direction? thanks, - Markus [1] https://hudson.dev.java.net/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
This is odd. After setting permgen to 128m with "-XX:MaxPermSize=128m" I'm seeing it hang again. What's odd is that the PermGen space appears to be totally used up at 26MB and not expanding, unless I'm reading it wrong. Heap after GC invocations=10 (full 0): PSYoungGen total 47296K, used 2831K [0xb087, 0xb415, 0xb415) eden space 36992K, 0% used [0xb087,0xb087,0xb2c9) from space 10304K, 27% used [0xb374,0xb3a03e30,0xb415) to space 10624K, 0% used [0xb2c9,0xb2c9,0xb36f) PSOldGentotal 466048K, used 16623K [0x9415, 0xb087, 0xb087) object space 466048K, 3% used [0x9415,0x9518bea8,0xb087) PSPermGen total 26240K, used 26114K [0x8c15, 0x8daf, 0x9415) object space 26240K, 99% used [0x8c15,0x8dad0a50,0x8daf) } VM-Thread 9737526 9770673 9771284 GC-Thread 0 entries: 8 [ old-to-young-roots-task 9750971 9766007 ] [ thread-roots-task 9766013 9766016 ] [ scavenge-roots-task 9766017 9766024 ] [ scavenge-roots-task 9766024 9766028 ] [ scavenge-roots-task 9766029 9766032 ] [ scavenge-roots-task 9766033 9766504 ] [ scavenge-roots-task 9766505 9766506 ] [ steal-task 9766507 9770612 ] GC-Thread 1 entries: 19 [ old-to-young-roots-task 9737771 9756587 ] [ serial-old-to-young-roots-task 9756590 9762460 ] [ scavenge-roots-task 9762462 9762465 ] [ scavenge-roots-task 9762466 9762481 ] [ thread-roots-task 9762482 9762500 ] [ thread-roots-task 9762506 9762516 ] [ thread-roots-task 9762516 9762534 ] [ thread-roots-task 9762535 9762552 ] [ thread-roots-task 9762553 9762558 ] [ thread-roots-task 9762558 9762565 ] [ thread-roots-task 9762565 9762567 ] [ thread-roots-task 9762567 9762569 ] [ thread-roots-task 9762570 9762572 ] [ thread-roots-task 9762572 9762574 ] [ thread-roots-task 9762574 9762580 ] [ thread-roots-task 9762580 9762584 ] [ thread-roots-task 9762585 9770048 ] [ steal-task 9770050 9770591 ] [ waitfor-barrier-task 9770592 9770632 ] {Heap before GC invocations=11 (full 0): PSYoungGen total 47296K, used 39823K [0xb087, 0xb415, 0xb415) eden space 36992K, 100% used [0xb087,0xb2c9,0xb2c9) from space 10304K, 27% used [0xb374,0xb3a03e30,0xb415) to space 10624K, 0% used [0xb2c9,0xb2c9,0xb36f) PSOldGentotal 466048K, used 16623K [0x9415, 0xb087, 0xb087) object space 466048K, 3% used [0x9415,0x9518bea8,0xb087) PSPermGen total 26624K, used 26570K [0x8c15, 0x8db5, 0x9415) object space 26624K, 99% used [0x8c15,0x8db42ab0,0x8db5) 10.307: [GC On Thu, Sep 3, 2009 at 3:58 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Hmm, I'm going to try again with more explicit PermGen space as it > > seems to be out of it. > > Try it, but I'd be surprised if it had any effect. The values shown are > for the current size of PermGen, not the maximum to which it may expand. > That's usually 64m, unless you've changed it. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Hmm, I'm going to try again with more explicit PermGen space as it > seems to be out of it. Try it, but I'd be surprised if it had any effect. The values shown are for the current size of PermGen, not the maximum to which it may expand. That's usually 64m, unless you've changed it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Hmm, I'm going to try again with more explicit PermGen space as it seems to be out of it. - Bradley On Thu, Sep 3, 2009 at 3:51 PM, Bradley Wagner < bradley.wag...@hannonhill.com> wrote: > And again in a new place on subsequent attempt. I've attached the logging > this time because the amount of logging between the last Tomcat line and the > GC line was significant! > - Bradley > > > On Thu, Sep 3, 2009 at 1:49 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >> > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] >> > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app >> > in Tomcat 5.5 on Ubuntu 7 >> > >> > Maybe it can't connect when it's hung. >> >> Quite possible; GC stops all threads, so the JMX agent may well be >> suspended. >> >> You might want to try turning on pretty much all of the GC-related trace >> flags: >> >> -XX:+PrintGC >> -XX:+PrintGCDetails >> -XX:+PrintGCTimeStamps >> -XX:+PrintGCTaskTimeStamps >> -XX:+PrintReferenceGC >> -XX:+TraceGen0Time >> -XX:+TraceGen1Time >> -XX:+PrintTenuringDistribution >> -XX:+PrintHeapAtGC >> -XX:+TraceParallelOldGCTasks >> -XX:+PrintParallelOldGCPhaseTimes >> >> (All on one line, of course.) This will produce a *lot* of output. >> >> - Chuck >> >> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY >> MATERIAL and is thus for use only by the intended recipient. If you received >> this in error, please contact the sender and delete the e-mail and its >> attachments from all computers. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >>
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
And again in a new place on subsequent attempt. I've attached the logging this time because the amount of logging between the last Tomcat line and the GC line was significant! - Bradley On Thu, Sep 3, 2009 at 1:49 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Maybe it can't connect when it's hung. > > Quite possible; GC stops all threads, so the JMX agent may well be > suspended. > > You might want to try turning on pretty much all of the GC-related trace > flags: > > -XX:+PrintGC > -XX:+PrintGCDetails > -XX:+PrintGCTimeStamps > -XX:+PrintGCTaskTimeStamps > -XX:+PrintReferenceGC > -XX:+TraceGen0Time > -XX:+TraceGen1Time > -XX:+PrintTenuringDistribution > -XX:+PrintHeapAtGC > -XX:+TraceParallelOldGCTasks > -XX:+PrintParallelOldGCPhaseTimes > > (All on one line, of course.) This will produce a *lot* of output. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > 2009-09-03 15:47:31,314 INFO [TableMetadata] : columns: [xmldata, id, version] {Heap before GC invocations=16 (full 0): PSYoungGen total 47168K, used 39534K [0xb087, 0xb415, 0xb415) eden space 36352K, 100% used [0xb087,0xb2bf,0xb2bf) from space 10816K, 29% used [0xb2bf,0xb2f0b9a8,0xb368) to space 10496K, 0% used [0xb371,0xb371,0xb415) PSOldGentotal 466048K, used 27270K [0x9415, 0xb087, 0xb087) object space 466048K, 5% used [0x9415,0x95bf1b80,0xb087) PSPermGen total 28032K, used 27963K [0x9015, 0x91cb, 0x9415) object space 28032K, 99% used [0x9015,0x91c9eed0,0x91cb) 30.488: [GC30.496: [SoftReference, 0 refs, 0.100 secs]30.496: [WeakReference, 60 refs, 0.240 secs]30.496: [FinalReference, 0 refs, 0.060 secs]30.496: [PhantomReference, 0 refs, 0.060 secs]30.496: [JNI Weak Reference, 0.020 secs] Desired survivor size 10747904 bytes, new threshold 1 (max 15) [PSYoungGen: 39534K->1648K(47744K)] 66805K->32097K(513792K), 0.0086770 secs] [Times: user=0.00 sys=0.01, real=0.01 secs] Heap after GC invocations=16 (full 0): PSYoungGen total 47744K, used 1648K [0xb087, 0xb415, 0xb415) eden space 37248K, 0% used [0xb087,0xb087,0xb2cd) from space 10496K, 15% used [0xb371,0xb38ac140,0xb415) to space 10496K, 0% used [0xb2cd,0xb2cd,0xb371) PSOldGentotal 466048K, used 30449K [0x9415, 0xb087, 0xb087) object space 466048K, 6% used [0x9415,0x95f0c480,0xb087) PSPermGen total 28032K, used 27963K [0x9015, 0x91cb, 0x9415) object space 28032K, 99% used [0x9015,0x91c9eed0,0x91cb) } VM-Thread 30487334 30495913 30496387 GC-Thread 0 entries: 24 [ old-to-young-roots-task 30487618 30491453 ] [ serial-old-to-young-roots-task 30491456 30491653 ] [ scavenge-roots-task 30491654 30491657 ] [ scavenge-roots-task 30491657 30491677 ] [ thread-roots-task 30491678 30491698 ] [ thread-roots-task 30491699 30491704 ] [ thread-roots-task 30491705 30491712 ] [ thread-roots-task 30491713 30491732 ] [ thread-roots-task 30491732 30491741 ] [ thread-roots-task 30491742 30491748 ] [ thread-roots-task 30491748 30491750 ] [ thread-roots-task 30491751 30491752 ] [ thread-roots-task 30491754 30491755 ] [ thread-roots-task 30491756 30491757 ] [ thread-roots-task 30491758 30491764 ] [ thread-roots-task 30491764 30491770 ] [ thread-roots-task 30491770 30492076 ] [ thread-roots-task 30492077 30492079 ] [ scavenge-roots-task 30492080 30492089 ] [ scavenge-roots-task 30492089 30492091 ] [ scavenge-roots-task 30492091 30492094 ] [ scavenge-roots-task 30492095 30492512 ] [ scavenge-roots-task 30492512 30492514 ] [ steal-task 30492515 30495882 ] GC-Thread 1 entries: 3 [ old-to-young-roots-task 30487602 30494947 ] [ steal-task 30494952 30495881 ] [ waitfor-barrier-task 30495882 30495897 ] {Heap before GC invocations=17 (full 0): PSYoungGen total 47744K, used 38896K [0xb087, 0xb415, 0xb415) eden space 37248K, 100% used [0xb087,0xb2cd,0xb2cd) from space 10496K, 15% used [0xb371,0xb38ac140,0xb415) to space 10496K, 0% used [0xb2cd,0xb2cd,0xb371) PSOldGentotal 466048K, used
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Ok, hung in a different place, but hung nonetheless with all of that logging enabled: Here is the result: 2009-09-03 15:47:11,328 INFO [SettingsFactory] : Default entity-mode: pojo 2009-09-03 15:47:11,328 INFO [SettingsFactory] : Named query checking : enabled 2009-09-03 15:47:11,355 INFO [SessionFactoryImpl] : building session factory {Heap before GC invocations=10 (full 0): PSYoungGen total 47808K, used 43957K [0xb087, 0xb415, 0xb415) eden space 37504K, 100% used [0xb087,0xb2d1,0xb2d1) from space 10304K, 62% used [0xb2d1,0xb335d6f0,0xb372) to space 9984K, 0% used [0xb379,0xb379,0xb415) PSOldGentotal 466048K, used 11257K [0x9415, 0xb087, 0xb087) object space 466048K, 2% used [0x9415,0x94c4e4f0,0xb087) PSPermGen total 26240K, used 26158K [0x9015, 0x91af, 0x9415) object space 26240K, 99% used [0x9015,0x91adb890,0x91af) 10.247: [GC10.277: [SoftReference, 0 refs, 0.100 secs]10.277: [WeakReference, 210 refs, 0.530 secs]10.277: [FinalReference, 124 refs, 0.580 secs]10.277: [PhantomReference, 0 refs, 0.070 secs]10.277: [JNI Weak Reference, 0.010 secs] Desired survivor size 10616832 bytes, new threshold 1 (max 15) [PSYoungGen: 43957K->2894K(47488K)] 55214K->19098K(513536K), 0.0304750 secs] [Times: user=0.01 sys=0.05, real=0.03 secs] Heap after GC invocations=10 (full 0): PSYoungGen total 47488K, used 2894K [0xb087, 0xb415, 0xb415) eden space 37504K, 0% used [0xb087,0xb087,0xb2d1) from space 9984K, 28% used [0xb379,0xb3a639d0,0xb415) to space 10368K, 0% used [0xb2d1,0xb2d1,0xb373) PSOldGentotal 466048K, used 16203K [0x9415, 0xb087, 0xb087) object space 466048K, 3% used [0x9415,0x95122ed8,0xb087) PSPermGen total 26240K, used 26158K [0x9015, 0x91af, 0x9415) object space 26240K, 99% used [0x9015,0x91adb890,0x91af) } VM-Thread 10246673 10276996 10277531 GC-Thread 0 entries: 17 [ old-to-young-roots-task 10246926 10272563 ] [ scavenge-roots-task 10272571 10272574 ] [ scavenge-roots-task 10272574 10272590 ] [ thread-roots-task 10272591 10272612 ] [ thread-roots-task 10272613 10272618 ] [ thread-roots-task 10272623 10272631 ] [ thread-roots-task 10272631 10272654 ] [ thread-roots-task 10272655 10272660 ] [ thread-roots-task 10272660 10272667 ] [ thread-roots-task 10272667 10272669 ] [ thread-roots-task 10272669 10272672 ] [ thread-roots-task 10272672 10272677 ] [ thread-roots-task 10272678 10272679 ] [ thread-roots-task 10272680 10272686 ] [ thread-roots-task 10272687 10272690 ] [ thread-roots-task 10272691 10276295 ] [ steal-task 10276297 10276969 ] GC-Thread 1 entries: 10 [ old-to-young-roots-task 10246939 10269250 ] [ serial-old-to-young-roots-task 10269253 10274454 ] [ thread-roots-task 10274457 10274461 ] [ scavenge-roots-task 10274462 10274473 ] [ scavenge-roots-task 10274474 10274478 ] [ scavenge-roots-task 10274478 10274483 ] [ scavenge-roots-task 10274483 10274919 ] [ scavenge-roots-task 10274920 10274921 ] [ steal-task 10274922 10276966 ] [ waitfor-barrier-task 10276967 10276991 ] {Heap before GC invocations=11 (full 0): PSYoungGen total 47488K, used 40398K [0xb087, 0xb415, 0xb415) eden space 37504K, 100% used [0xb087,0xb2d1,0xb2d1) from space 9984K, 28% used [0xb379,0xb3a639d0,0xb415) to space 10368K, 0% used [0xb2d1,0xb2d1,0xb373) PSOldGentotal 466048K, used 16203K [0x9415, 0xb087, 0xb087) object space 466048K, 3% used [0x9415,0x95122ed8,0xb087) PSPermGen total 26752K, used 26626K [0x9015, 0x91b7, 0x9415) object space 26752K, 99% used [0x9015,0x91b50878,0x91b7) 10.754: [GC Once again, it terminates in the middle of GC logging. - Bradley On Thu, Sep 3, 2009 at 1:49 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Maybe it can't connect when it's hung. > > Quite possible; GC stops all threads, so the JMX agent may well be > suspended. > > You might want to try turning on pretty much all of the GC-related trace > flags: > > -XX:+PrintGC > -XX:+PrintGCDetails > -XX:+PrintGCTimeStamps > -XX:+PrintGCTaskTimeStamps > -XX:+PrintReferenceGC > -XX:+TraceGen0Time > -XX:+TraceGen1Time > -XX:+PrintTenuringDistribution > -XX:+PrintHeapAtGC > -XX:+TraceParallelOldGCTasks > -XX:+PrintParallelOldGCPhaseTimes > > (All on one line, of course.) This will produce a *lot* of output. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > ---
RE: Change redirect to SSL behavior?
> From: Roger David Powers [mailto:prog...@yahoo.com] > Subject: Change redirect to SSL behavior? > > Having the ability to not get redirected to SSL/TLS avoids the users > see issues with incorrect certificates, which unfortunately happens > more often than I'd like. > > Is there a config or a workaround for this? If you don't actually care about confidentiality, just remove the element from the webapp's WEB-INF/web.xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Change redirect to SSL behavior?
The description of redirectPort for HTTP connector says: If this Connector is supporting non-SSL requests, and a request is received for which a matching requires SSL transport, Catalina will automatically redirect the request to the port number specified here. The default is specified as port 443 which is of course the default SSL port. In Tomcat 3, there was a way to disable this behavior, i.e. if the end user connects to http://webapps and not use https for the given webapp, that was supported. If the user explicitly went to https://webapp they'd still get TlS/SSL as desired. I'm not seeing how to do this with Tomcat 6. If I take redirectPort out of the http connector, I still get the redirect, to the default 443 port. Having the ability to not get redirected to SSL/TLS avoids the users see issues with incorrect certificates, which unfortunately happens more often than I'd like. Is there a config or a workaround for this? Thanks, RP - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, Trying your /sample/ I get the same result. The log appears to respond to that try but the lines are similar to those I originally posted from mod_jk.log. It's as though every context request is translated into '/server- status'. the bracketed numbers are: [221:268597152] [debug] attempting to map URI '/server-status' from 5 maps. . . [221:268597152] [debug] attempting to map context URI '/sample/ *.=JBOSS1*' source JKMount . . all the entries are marked [debug]. 221 is process httpd with user _www. Dennis On Sep 3, 2009, at 1:26 PM, Rainer Jung wrote: On 03.09.2009 19:15, Dennis Christopher wrote: The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. You don't have a JkMount for /sample, only one for /sample/*. What happens, if you point your browser to http://my.apache.name/sample/ If it doesn't work, extract the lines from your mod_jk log, that refer to this request. Look for something like ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' from ... Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id used for the request, and get all lines form the log, which have a timestamp close to your request and use the same IDs. Check whether there are any non-debug lines in there. If you can't see what goes wrong, post those lines. Regards, Rainer what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server- status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The load
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Maybe it can't connect when it's hung. Quite possible; GC stops all threads, so the JMX agent may well be suspended. You might want to try turning on pretty much all of the GC-related trace flags: -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCTaskTimeStamps -XX:+PrintReferenceGC -XX:+TraceGen0Time -XX:+TraceGen1Time -XX:+PrintTenuringDistribution -XX:+PrintHeapAtGC -XX:+TraceParallelOldGCTasks -XX:+PrintParallelOldGCPhaseTimes (All on one line, of course.) This will produce a *lot* of output. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 4.1.31 problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jamez, On 9/1/2009 10:20 PM, jamez smith wrote: > 1. "appBase" > name="localhost" unpackWARs="true"> > > 2. working ---> debug="1"> > *C:\\ProcurementProject\\WebContent *is where my application (source code > etc.) located. > > 3. not-working ---> path="/procurement" reloadable="true" debug="1"> > *procurement* is the War file I deployed to webapps under Tomcat. If you have autoDeploy="true" in your (which you do), and you also have a pointing to a directory inside that 's appBase (which you also do), Tomcat will attempt to deploy the same application twice, most likely to the same context path, and probably fail. If you want to deploy "procurement" from your webapps directory, simply remove the element entirely from your server.xml file and allow Tomcat to auto-deploy your webapp naturally. If you need or elements inside your , then you have two options: 1. Set autoDeploy="false" on your or 2. Keep your 's docBase outside of your 's appBase I agree with Chuck's and Mark's comments WRT JRE and Tomcat version. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqgAGsACgkQ9CaO5/Lv0PAS6wCdF1KKJQ73pK31LScKh4OS+hSb iNAAnRfsoAiFVImvPgl8g2p2phrartVa =Hyfw -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
On 03.09.2009 19:15, Dennis Christopher wrote: > The problem is that I am trying to support simple references to my > context without the tomcat port explicitly included. > > example: myexample.com/sample should invoke the web-app sample. You don't have a JkMount for /sample, only one for /sample/*. What happens, if you point your browser to http://my.apache.name/sample/ If it doesn't work, extract the lines from your mod_jk log, that refer to this request. Look for something like ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' from ... Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id used for the request, and get all lines form the log, which have a timestamp close to your request and use the same IDs. Check whether there are any non-debug lines in there. If you can't see what goes wrong, post those lines. Regards, Rainer > what happens instead: the browser tells me: "file not found". > > looking at catalina.out it seems the request doesnt reach Tomcat at all. > > How I did it: he quick start guide at > > http://tomcat.apache.org/connectors-doc/generic_howto/quick.html > > gives a simple proof of concept for a context setup (/examples"). > > which I have followed implicitly. I believe you have already seen what I > have done with the config files I posted. > > Dennis > > P.S as it may be important - if I try example.com:8080/sample the main > page of my web app loads but all of its subreferences, to gif images > etc, are broken. > > > On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: > >> On 03.09.2009 15:34, Dennis Christopher wrote: >>> Rainer, >>> >>> I am not sending /server-status explicitly. >>> >>> The mod_jk log which I excerpted earlier shows the processing of >>> server-status before any context is asked for, apparently when Tomcat >>> starts up. >>> >>> The log continues to repeat these entries - apparently mod_jk is looping >>> trying to satisfy this context and never does. >> >> No I'm pretty sure this is not the case. I expect someone has a >> monitoring tool running or a browser windows with auto-refresh for >> /server-status and that's what produces those debug log lines in mod_jk. >> No problem per se. >> >> So back to the basic question: what is your problem? What are you trying >> to achieve, what did you do to make it work, how do you test it, what >> result do you expect and what happens instead? >> >> Regards, >> >> Rainer >> >>> I added JkMountCopy All but this had no effect. >>> >>> Dennis >>> On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: >>> On 02.09.2009 21:45, Dennis Christopher wrote: > Rainer, > > Thanks for the reply. I was confused in my orginal post: I am not using > JBoss at all, only mod_jk. > > The file contents are as follows below. > > Apache has a hosts directory, but I'm not sure if the files matter. > They > are either the apache .default files or slight modifications of them, > e.g. virtual_host_global.conf contains just: > > Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer > 1. uriworkermap.properties -- not used > > 2. from apache2/httpd.conf: > > LoadModule jk_module libexec/apache2/mod_jk.so > . > . > > JKWorkersFile /etc/apache2/workers.properties > JKLogFile /var/log/apache2/mod_jk.log > JKLogLevel debug > JKShmFile /var/log/apache2/mod_jk.shm > JKMount /*.jsp JBoss1 > JKMount /servlet/* JBoss1 > JKMount /examples/* JBoss1 > JKMount /picturetalk/* JBoss1 > JKMount /sample/* JBoss1 > > . > . > > 3. from apache2/workers.properties: > > worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker > > # > # First JBoss server > # > worker.JBoss1.port=8009 > worker.JBoss1.host=127.0.0.1 > worker.JBoss1.type=ajp13 > > # Specify the size of the open connection cache. > #worker.JBoss1.cachesize > > # > # Specifies the load balance factor when used with > # a load balancing worker. > # Note: > # > lbfactor must be > 0 > # > Low lbfactor means less work done by the worker. > worker.JBoss1.lbfactor=100 > > > # > # Second JBoss server > # > #worker.JBoss2.port=9008 > #worker.JBoss2.host=localhost > worker.JBoss2.lbfactor=100 > > > # > # Load Balancer worker > # > > # > # The loadbalancer (type lb
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=JBoss1, JBoss2 # # Blojsom worker # # # Worker created specifically for Blojsom. worker.blojsomworker.port=1279 worker.blojsomworker.host=127.0.0.1 worker.blojsomworker.type=ajp13 worker.blojsomworker.lbfactor=100 # END workers.properties # On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: On 27.08.2009 15:45, Dennis Christopher wrote: environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/myapplication honoured (or even localhost/myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/ examples"). However, this does not work, though I h
Re: Apache Tomcat ICD-10 compliance
Correct me if I'm wrong, but afaik ICD-10 is nothing but a code describing the hierarchy-structure of disorders like asthma, hayfever, cancer etc issued by the WHO. I do not see how Tomcat or any other web- / application-server should support such a standard: It's the application (here: servlet or jsp) which has to be able to support your favourite ICD-code. Therefore, ask the provider of your software dealing with ICD-codes wether it's ICD-10 compliant or not. Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
On 03.09.2009 15:34, Dennis Christopher wrote: > Rainer, > > I am not sending /server-status explicitly. > > The mod_jk log which I excerpted earlier shows the processing of > server-status before any context is asked for, apparently when Tomcat > starts up. > > The log continues to repeat these entries - apparently mod_jk is looping > trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer > I added JkMountCopy All but this had no effect. > > Dennis > On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: > >> On 02.09.2009 21:45, Dennis Christopher wrote: >>> Rainer, >>> >>> Thanks for the reply. I was confused in my orginal post: I am not using >>> JBoss at all, only mod_jk. >>> >>> The file contents are as follows below. >>> >>> Apache has a hosts directory, but I'm not sure if the files matter. They >>> are either the apache .default files or slight modifications of them, >>> e.g. virtual_host_global.conf contains just: >>> >>> Listen *:80 >> >> I don't understand, why you test this with a request /server-status. >> That doesn't make sense, because you don't want /server-status to be >> forwarded by mod_jk and in fact you didn't configure it. >> >> So choose a better URL to test (one of the URLs you have a JkMount for) >> and add "JkMountCopy All". >> >> Regards, >> >> Rainer >> >>> 1. uriworkermap.properties -- not used >>> >>> 2. from apache2/httpd.conf: >>> >>> LoadModule jk_module libexec/apache2/mod_jk.so >>> . >>> . >>> >>>JKWorkersFile /etc/apache2/workers.properties >>>JKLogFile /var/log/apache2/mod_jk.log >>>JKLogLevel debug >>>JKShmFile /var/log/apache2/mod_jk.shm >>>JKMount /*.jsp JBoss1 >>>JKMount /servlet/* JBoss1 >>>JKMount /examples/* JBoss1 >>>JKMount /picturetalk/* JBoss1 >>>JKMount /sample/* JBoss1 >>> >>> . >>> . >>> >>> 3. from apache2/workers.properties: >>> >>> worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker >>> >>> # >>> # First JBoss server >>> # >>> worker.JBoss1.port=8009 >>> worker.JBoss1.host=127.0.0.1 >>> worker.JBoss1.type=ajp13 >>> >>> # Specify the size of the open connection cache. >>> #worker.JBoss1.cachesize >>> >>> # >>> # Specifies the load balance factor when used with >>> # a load balancing worker. >>> # Note: >>> # > lbfactor must be > 0 >>> # > Low lbfactor means less work done by the worker. >>> worker.JBoss1.lbfactor=100 >>> >>> >>> # >>> # Second JBoss server >>> # >>> #worker.JBoss2.port=9008 >>> #worker.JBoss2.host=localhost >>> worker.JBoss2.lbfactor=100 >>> >>> >>> # >>> # Load Balancer worker >>> # >>> >>> # >>> # The loadbalancer (type lb) worker performs weighted round-robin >>> # load balancing with sticky sessions. >>> # Note: >>> # > If a worker dies, the load balancer will check its state >>> #once in a while. Until then all work is redirected to peer >>> #worker. >>> worker.loadbalancer.type=lb >>> worker.loadbalancer.balanced_workers=JBoss1, JBoss2 >>> >>> # >>> # Blojsom worker >>> # >>> # >>> # Worker created specifically for Blojsom. >>> worker.blojsomworker.port=1279 >>> worker.blojsomworker.host=127.0.0.1 >>> worker.blojsomworker.type=ajp13 >>> worker.blojsomworker.lbfactor=100 >>> >>> >>> # END workers.properties >>> # >>> >>> On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: >>> On 27.08.2009 15:45, Dennis Christopher wrote: > environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 > (Leopard). > > I am using a mod_jk connector with JBoss. > > I am having trouble getting context urls of the form > website.my.com/myapplication honoured (or even > localhost/myapplication). > (Safari:File not found).I have googled the error messages below but > can't find anything applicable to my setup. > > The quick start guide at > > http://tomcat.apache.org/connectors-doc/generic_howto/quick.html > > gives a simple proof of concept for a connector setup (/examples"). > However, this does not work, > though I have followed the editing of the configuration files exactly > (using JKMount in the httpd.conf etc) > > I get an error in mod_jk.log (set to debug level): > > [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] > map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) > Attempting to > map URI '/server-status
jsvc will not start on Snow Leopard & Tomcat 6
I have been following these instructions to install Tomcat, and jsvc on my machine, that has recently been upgraded to Snow Leopard: http://www.malisphoto.com/tips/tomcatonosx.html http://www.malisphoto.com/tips/tomcatonosx.html After installing Tomcat, it seems to run just fine, and I am able to see the Tomcat landing page when I go to localhost:8080. When I install jsvc, even though it appears to compile properly, it always fails to start. When I check the catalina.out log, it gives the following message: 02/09/2009 16:46:42 30987 jsvc error: Cannot load required shell library /Library/Java/Home/../Libraries/libjvm_compat.dylib 02/09/2009 16:46:42 30986 jsvc error: Service exit with a return value of 1 Looking in my frameworks, it looks like "libjvm_compat.dylib" doesn't exist, but "libjvm.dylib" does exist, though I'm not sure if that's what it should be looking for. -- View this message in context: http://www.nabble.com/jsvc-will-not-start-on-Snow-Leopard---Tomcat-6-tp25279897p25279897.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Ok, I've tried to get JConsole working but have been unsuccessful. I've set it up to connect remotely using JMX over port 8081. The program is starting and I've configured the JMX passwords. However, when I try to connect to the hung program using username: controlRole and my password: nothing pops up. I see the following catalina.out: 2009-09-03 12:18:04,295 INFO [XmlWebApplicationContext] : Bean factory for application context [org.springframework.web.context.support.xmlwebapplicationcont...@1f1680f]: org.springframework.beans.factory.support.defaultlistablebeanfact...@45378f [GC [PSYoungGen: 50993K->7222K(51008K)] 51106K->8565K(517056K), 0.0402520 secs] [Times: user=0.03 sys=0.01, real=0.04 secs] [GC However, it is is listing my application name in JConsole's list of windows. Maybe it can't connect when it's hung. - Bradley On Thu, Sep 3, 2009 at 11:17 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Hmm, so JConsole appears to need a GUI which I don't have in this case. > > You can run it remotely by setting the appropriate command-line options. > > > Should I just start switching through the different GC types and see if > > it makes a difference? > > If you can't get more detailed information about what's going on inside the > heap, then yes. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
I did the rm since I want to conserve space. Thank you. -Original Message- From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] Sent: Thursday, September 03, 2009 8:00 AM To: Tomcat Users List Subject: Re: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ? On Thu, Sep 3, 2009 at 5:55 AM, Strickland, Lawrence P wrote: > How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? > This is on a UNIX operating system. If it's a normal install, `rm -rf $CATALINA_HOME` would probably do it just fine. :-) But do you really need to remove it? Just install any other version in a different directory and set the appropriate CATALINA_HOME. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - 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: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Hmm, so JConsole appears to need a GUI which I don't have in this case. You can run it remotely by setting the appropriate command-line options. > Should I just start switching through the different GC types and see if > it makes a difference? If you can't get more detailed information about what's going on inside the heap, then yes. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
how to unwrap a Request from RequestFacade
Hi, I am using tomcat 5.5 and just wanted to write a simple servlet to get some information using StandardManager such as activeSessions, expriedSessions, sessionCounter etc.. I am not that familiar with these classes. I noticed when the request comes into my servlet it comes as RequestFacade where the org.apache.catalina.connector.Request is wrapped inside it. I haven't figured out how to unwrap the Request object so that I can get the Context from which I can get the Manager (StandardManager) to access the information I need. Any help with a snippet of code to get the Request Object from RequestFacade will be appreciated. Thanks, -- Muthu
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Hmm, so JConsole: http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html appears to need a GUI which I don't have in this case. Should I just start switching through the different GC types and see if it makes a difference? On Thu, Sep 3, 2009 at 11:02 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu > > what's the difference between: > > - /usr/lib/jvm/java-6-sun, and > > - /usr/lib/jvm/java-6-sun/jre > > Every Sun JDK has a JRE inside it; the first directory above is for the > full JDK, the second for just the JRE subset, as you surmised. JConsole > should be located in /usr/lib/jvm/java-6-sun/bin. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu > what's the difference between: > - /usr/lib/jvm/java-6-sun, and > - /usr/lib/jvm/java-6-sun/jre Every Sun JDK has a JRE inside it; the first directory above is for the full JDK, the second for just the JRE subset, as you surmised. JConsole should be located in /usr/lib/jvm/java-6-sun/bin. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Is JConsole something that comes bundled with the JRE or JDK or a > separate application. It's part of the JDK, but not the JRE. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Bradley Wagner wrote: > Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu > what's the difference between: > - /usr/lib/jvm/java-6-sun, and > - /usr/lib/jvm/java-6-sun/jre > > It doesn't seem to have any effect on my problem, but does it make a > difference? I believe I have the full JDK installed so maybe the second path > only points to the binaries for the JRE? JVM hangs with the garbage collector are a fairly regular occurrence. Have you tried changing the GC settings yet? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: maling list archives and bug tracker dumps for academic research evaluation
>>09/03/2009 04:20 PM, Iqbal, Aftab: >> I just wanted to confirm the mailing list where tomcat developers >> discuss >tomcat-dev is the right place. thanks for confirming that. >Saying that, I would like to point you a way of discussing through >mailing lists: >http://www.google.com/search?q=mailing+list+posting+etiquette >You will find some inspiration for efficiency when discussing. >I can summarize with: >- dont full quote the original message you reply to >- dont top post >- use plain text only thanks for the pointer :-) regards Aftab Iqbal - 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: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu what's the difference between: - /usr/lib/jvm/java-6-sun, and - /usr/lib/jvm/java-6-sun/jre It doesn't seem to have any effect on my problem, but does it make a difference? I believe I have the full JDK installed so maybe the second path only points to the binaries for the JRE? - Bradley On Thu, Sep 3, 2009 at 10:31 AM, Ziggy wrote: > Ok my mistake. Thats the official SUN version. > > The linux distribution i use downloads the openjdk version and i had to > manually download the official one to stop the memory errors. > > > > On Thu, Sep 3, 2009 at 3:29 PM, ramzi khlil > wrote: > > > It provides you the version of installed java. > > > > On Thu, Sep 3, 2009 at 10:19 AM, Ziggy wrote: > > > > > What do you get when you run java -version? > > > > > > I think the linux distributions include the open jdk version see > > > http://openjdk.java.net/ > > > > > > > > > > > > > > > On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R < > > > chuck.caldar...@unisys.com> wrote: > > > > > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate > > app > > > > > in Tomcat 5.5 on Ubuntu 7 > > > > > > > > > > are you saying that the JRE I'm getting when doing "apt-get > > > > > install sun-java6-jdk" is not actually a Sun certified version > > > > > and that I should be downloading it directly from their website > > > > > instead? > > > > > > > > It's certainly something to try. You can find out exactly what you > > have > > > > installed by doing "java -version" (without the quotes). > > > > > > > > - Chuck > > > > > > > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > > PROPRIETARY > > > > MATERIAL and is thus for use only by the intended recipient. If you > > > received > > > > this in error, please contact the sender and delete the e-mail and > its > > > > attachments from all computers. > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > > > > > > >
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Is JConsole something that comes bundled with the JRE or JDK or a separate application. I have limited ability to install other things on this machine because it belongs to a client. Thanks, Bradley On Thu, Sep 3, 2009 at 10:32 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > java version "1.6.0_14" > > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > > Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) > > That's a real one. This is getting strange. Can you run JConsole against > the Tomcat JVM and see what the state of the various heap parts are when it > gets into the hung state? > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > java version "1.6.0_14" > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) That's a real one. This is getting strange. Can you run JConsole against the Tomcat JVM and see what the state of the various heap parts are when it gets into the hung state? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Ok my mistake. Thats the official SUN version. The linux distribution i use downloads the openjdk version and i had to manually download the official one to stop the memory errors. On Thu, Sep 3, 2009 at 3:29 PM, ramzi khlil wrote: > It provides you the version of installed java. > > On Thu, Sep 3, 2009 at 10:19 AM, Ziggy wrote: > > > What do you get when you run java -version? > > > > I think the linux distributions include the open jdk version see > > http://openjdk.java.net/ > > > > > > > > > > On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R < > > chuck.caldar...@unisys.com> wrote: > > > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate > app > > > > in Tomcat 5.5 on Ubuntu 7 > > > > > > > > are you saying that the JRE I'm getting when doing "apt-get > > > > install sun-java6-jdk" is not actually a Sun certified version > > > > and that I should be downloading it directly from their website > > > > instead? > > > > > > It's certainly something to try. You can find out exactly what you > have > > > installed by doing "java -version" (without the quotes). > > > > > > - Chuck > > > > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARY > > > MATERIAL and is thus for use only by the intended recipient. If you > > received > > > this in error, please contact the sender and delete the e-mail and its > > > attachments from all computers. > > > > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > >
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
It provides you the version of installed java. On Thu, Sep 3, 2009 at 10:19 AM, Ziggy wrote: > What do you get when you run java -version? > > I think the linux distributions include the open jdk version see > http://openjdk.java.net/ > > > > > On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > > in Tomcat 5.5 on Ubuntu 7 > > > > > > are you saying that the JRE I'm getting when doing "apt-get > > > install sun-java6-jdk" is not actually a Sun certified version > > > and that I should be downloading it directly from their website > > > instead? > > > > It's certainly something to try. You can find out exactly what you have > > installed by doing "java -version" (without the quotes). > > > > - Chuck > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > > MATERIAL and is thus for use only by the intended recipient. If you > received > > this in error, please contact the sender and delete the e-mail and its > > attachments from all computers. > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Yea, I don't think it's the Open JDK, though that was an option. "java -version" gives: java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) - Bradley On Thu, Sep 3, 2009 at 10:19 AM, Ziggy wrote: > What do you get when you run java -version? > > I think the linux distributions include the open jdk version see > http://openjdk.java.net/ > > > > > On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > > in Tomcat 5.5 on Ubuntu 7 > > > > > > are you saying that the JRE I'm getting when doing "apt-get > > > install sun-java6-jdk" is not actually a Sun certified version > > > and that I should be downloading it directly from their website > > > instead? > > > > It's certainly something to try. You can find out exactly what you have > > installed by doing "java -version" (without the quotes). > > > > - Chuck > > > > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > > MATERIAL and is thus for use only by the intended recipient. If you > received > > this in error, please contact the sender and delete the e-mail and its > > attachments from all computers. > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
Strickland, Lawrence P wrote: > How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? > This is on a UNIX operating system. > > Larry Strickland > Lead Systems Administrator > lawrence-strickl...@uiowa.edu > University of Iowa Hospitals and Clinics > > > > That depends on how you installed tomcat 6 in the first place. If you installed via apt-get, rpm or any of the other package methods, then use the normal uninstall method for those third party package versions. On the other hand, if your tomcat came from tomcat.apache.org, simply backup any webapps you have in the webapps folder and delete the tomcat directory. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
What do you get when you run java -version? I think the linux distributions include the open jdk version see http://openjdk.java.net/ On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > are you saying that the JRE I'm getting when doing "apt-get > > install sun-java6-jdk" is not actually a Sun certified version > > and that I should be downloading it directly from their website > > instead? > > It's certainly something to try. You can find out exactly what you have > installed by doing "java -version" (without the quotes). > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > are you saying that the JRE I'm getting when doing "apt-get > install sun-java6-jdk" is not actually a Sun certified version > and that I should be downloading it directly from their website > instead? It's certainly something to try. You can find out exactly what you have installed by doing "java -version" (without the quotes). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
Sorry, are you saying that the JRE I'm getting when doing "apt-get install sun-java6-jdk" is not actually a Sun certified version and that I should be downloading it directly from their website instead? On Thu, Sep 3, 2009 at 3:50 AM, Ziggy wrote: > I noticed that you mention that you are using the community version of the > Java runtime environment which i think is what you get when you do an > apt-get. > > I have never honestly been able to use this version of the JVM > successfully. > I had a similar problem recently where i was running an application (That > uses Hibernate) using this version of the JDK and was always getting memory > exceptions. > > What i did was to download sun's version of the JDK and that seem to have > solved the problem. Did you try to use the SUN's version of the JDK from > the > SUN website? It might be usefull to try the SUN's version just to rule out > that the JDK version/release is not the problem. > > > > On Wed, Sep 2, 2009 at 11:26 PM, Mark Thomas wrote: > > > Bradley Wagner wrote: > > > Any thoughts on which GC parameters I should change. > > > > See what the default collector is for your platform and switch to s > > different one. > > > > Mark > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: maling list archives and bug tracker dumps for academic research evaluation
09/03/2009 04:20 PM, Iqbal, Aftab: I just wanted to confirm the mailing list where tomcat developers discuss tomcat-dev is the right place. Saying that, I would like to point you a way of discussing through mailing lists: http://www.google.com/search?q=mailing+list+posting+etiquette You will find some inspiration for efficiency when discussing. I can summarize with: - dont full quote the original message you reply to - dont top post - use plain text only Regarding the mailing archives format: Tomcat mailing lists are hosted in different format so why not go for an available format and parser instead of finding a new parser or writing a new one. Yes, why not. I just wanted to indicate you parsing is not so hard. :-) -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +261 34 29 155 34 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=JBoss1, JBoss2 # # Blojsom worker # # # Worker created specifically for Blojsom. worker.blojsomworker.port=1279 worker.blojsomworker.host=127.0.0.1 worker.blojsomworker.type=ajp13 worker.blojsomworker.lbfactor=100 # END workers.properties # On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: On 27.08.2009 15:45, Dennis Christopher wrote: environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/myapplication honoured (or even localhost/ myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/examples"). However, this does not work, though I have followed the editing of the configuration files exactly (using JKMount in the httpd.conf etc) I get an error in mod_jk.log (set to debug level): [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) Attempting to map URI '/server-status' from 5 maps [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1039): Initial match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/examples/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/servlet/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/sample/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.jsp=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1047): Match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.784 2009] [211
RE: maling list archives and bug tracker dumps for academic research evaluation
Dear Rakotomandimby, I just wanted to confirm the mailing list where tomcat developers discuss Tomcat architecture, new features, roadmap of new releases etc. so that i make sure that i have requested the right archives for our research evaluation. Regarding the mailing archives format: Tomcat mailing lists are hosted in different format so why not go for an available format and parser instead of finding a new parser or writing a new one. regards Aftab Iqbal -Original Message- From: Rakotomandimby Mihamina [mailto:miham...@gulfsat.mg] Sent: Thu 9/3/2009 1:44 PM To: users@tomcat.apache.org Subject: Re: maling list archives and bug tracker dumps for academic research evaluation > I have question regarding the Tomcat-dev mailing list. I was > looking at the archives of tomcat-dev mailing list and found that > whenever a new bug is logged on bugzilla bug tracker or a commit > has been done on SVN, an email is sent to the tomcat-dev mailing > list ( please correct me here if i am wrong ). I would like to > know, if the tomcat developers discuss the development issues also > on this mailing list or if tomcat has any other mailing list or > discussion forum for developers for that? According to me - discussion a commit: not very common. usually done with another commit. - discussion a bug is generally done on the bugtracker. > Regarding the archives of mailing list, it would be very easier to > parse the archives, if i get the monthly archives in .mbox format. > The reason is, i have a parser which parses email of type .mbox > extension. The archives hosted at Apache looks like they have > monthly archives stored in .mbox format e.g. > [http://mail-archives.apache.org/mod_mbox/tomcat-dev/200804.mbox/browser] First of all, extension does not indicate reliably the format of a file. Parsing mbox file is easyly done in common programming language. > NOTE: I am not familiar much with the differences of other > archives extension Whatever format you face, you will always find a parser. -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +261 34 29 155 34 - 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: How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
On Thu, Sep 3, 2009 at 5:55 AM, Strickland, Lawrence P wrote: > How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? > This is on a UNIX operating system. If it's a normal install, `rm -rf $CATALINA_HOME` would probably do it just fine. :-) But do you really need to remove it? Just install any other version in a different directory and set the appropriate CATALINA_HOME. FWIW, -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Server failover and session replication
Can anyone help in these regards? Thanks in advance, Sumedh On Thu, Sep 3, 2009 at 8:52 AM, Sumedh Sakdeo wrote: > http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html > *How it Works > * > >1. TomcatA starts up >2. TomcatB starts up (Wait that TomcatA start is complete) >3. TomcatA receives a request, a session S1 is created. >4. TomcatA crashes >5. TomcatB receives a request for session S1 >6. TomcatA starts up >7. TomcatA receives a request, invalidate is called on the session (S1) >8. TomcatB receives a request, for a new session (S2) >9. TomcatA The session S2 expires due to inactivity. > > section describes the steps.7-9 steps confusing. > Does tomcat 6 even support such scenario? > > --Sumedh > > > > On Thu, Sep 3, 2009 at 6:29 AM, Shaun Senecal wrote: > >> After re-reading your initial post, the problems might not be as related >> as >> I thought since at no point did replication "stop" for me. >> >> >> On Thu, Sep 3, 2009 at 9:56 AM, Shaun Senecal > >wrote: >> >> > We had a similar problem with Tomcat 6 using clustering. It turns out >> that >> > the SSO information is only propagated while all instances are running. >> If >> > Instance-A fails, several users then log in to Instance-B, then >> Instance-A >> > comes back up, all of the SSO information for the users that logged in >> > during the downtime is not included in Instance-A so those users are >> forced >> > to re-login once the load balancer sends them to that instance. >> > >> > I wrote a fix for it, which might be useful for you. However, it hasnt >> > been fully tested and is designed to only share the SSO information at >> > startup, not all Session information. If Tomcat doenst handle this >> case, >> > then the fix I wrote should be easily extended to handle that. >> Basically, >> > when an instance comes up it broadcasts a request for all known SSO >> > information to the cluster. It then takes the first response it gets >> and >> > continues processing as normal. >> > >> > Let me know if you dont find a proper solution to the problem and I will >> > try to dig up that fix. My intention was to post it back to the group, >> but >> > I got sidetracked once we (temporarily) stopped using clustering. >> > >> > >> > Shaun >> > >> > >> > On Thu, Sep 3, 2009 at 3:52 AM, Sumedh Sakdeo > >wrote: >> > >> >> Hi Rainer, >> >> >> >> I am using Tomcat session clustering and Apache Http Server for >> LB(using >> >> mod_jk module). Also, using Tomcat 6. I have made appropriate changes >> to >> >> worker.properties and httpd.conf. Also I have made appropriate changes >> to >> >> server.xml on each tomcat. >> >> >> >> Thanks, >> >> Sumedh >> >> >> >> On Thu, Sep 3, 2009 at 12:15 AM, Rainer Jung > >> >wrote: >> >> >> >> > On 02.09.2009 19:57, Sumedh Sakdeo wrote: >> >> > > Hello All, >> >> > > I have a setup with two tomcat instances(A&B). I have >> >> > configured >> >> > > an apache web server 2.2 for load balancing and fail over. Setup >> looks >> >> > fine >> >> > > as per the configurations suggested. Let tomcat A be handling some >> >> > request >> >> > > at sometime. When tomcat instance(A) goes down, the session is >> >> replicated >> >> > to >> >> > > another tomcat instance(B) successfully. Now tomcat instance B is >> >> > handling >> >> > > those requests. Till this point everything goes fine, but when I >> bring >> >> up >> >> > > tomcat instance(A) and after that tomcat instance(B) goes down, the >> >> > session >> >> > > is no longer replicated. What might be the issue? In status page of >> >> > apache >> >> > > server I see even if node status is OK session is not replicated to >> >> fail >> >> > > over node for second time. >> >> > >> >> > How do you replicate? Are you using Tomcat session clustering? Tomcat >> >> > 5.5 or Tomcat 6? >> >> > >> >> > Regards, >> >> > >> >> > Rainer >> >> > >> >> > - >> >> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> >> > For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > >> >> > >> >> >> > >> > >> > >
How do I uninstall Tomcat 6.0 so that I can down level it to 5.5 ?
How do I uninstall Tomcat 6.0 so that I can down level it to 5.5? This is on a UNIX operating system. Larry Strickland Lead Systems Administrator lawrence-strickl...@uiowa.edu University of Iowa Hospitals and Clinics
Re: maling list archives and bug tracker dumps for academic research evaluation
I have question regarding the Tomcat-dev mailing list. I was looking at the archives of tomcat-dev mailing list and found that whenever a new bug is logged on bugzilla bug tracker or a commit has been done on SVN, an email is sent to the tomcat-dev mailing list ( please correct me here if i am wrong ). I would like to know, if the tomcat developers discuss the development issues also on this mailing list or if tomcat has any other mailing list or discussion forum for developers for that? According to me - discussion a commit: not very common. usually done with another commit. - discussion a bug is generally done on the bugtracker. Regarding the archives of mailing list, it would be very easier to parse the archives, if i get the monthly archives in .mbox format. The reason is, i have a parser which parses email of type .mbox extension. The archives hosted at Apache looks like they have monthly archives stored in .mbox format e.g. [http://mail-archives.apache.org/mod_mbox/tomcat-dev/200804.mbox/browser] First of all, extension does not indicate reliably the format of a file. Parsing mbox file is easyly done in common programming language. NOTE: I am not familiar much with the differences of other archives extension Whatever format you face, you will always find a parser. -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +261 34 29 155 34 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: maling list archives and bug tracker dumps for academic research evaluation
Dear Mark, I have question regarding the Tomcat-dev mailing list. I was looking at the archives of tomcat-dev mailing list and found that whenever a new bug is logged on bugzilla bug tracker or a commit has been done on SVN, an email is sent to the tomcat-dev mailing list ( please correct me here if i am wrong ). I would like to know, if the tomcat developers discuss the development issues also on this mailing list or if tomcat has any other mailing list or discussion forum for developers for that ? Regarding the archives of mailing list, it would be very easier to parse the archives, if i get the monthly archives in .mbox format. The reason is, i have a parser which parses email of type .mbox extension. The archives hosted at Apache looks like they have monthly archives stored in .mbox format e.g. [http://mail-archives.apache.org/mod_mbox/tomcat-dev/200804.mbox/browser] NOTE: I am not familiar much with the differences of other archives extension looking forward for your kind response. regards Aftab Iqbal -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tue 9/1/2009 2:08 PM To: Tomcat Users List Subject: Re: maling list archives and bug tracker dumps for academic research evaluation Iqbal, Aftab wrote: > Dear Mark, > > thanks for your response and cooperation. For the evaluation of our research > work, we would like to run experiments on the last 12 months activity on > Tomcat project. > > I would like to have the tomcat-dev archives of last 12 months (Aug2008 - Aug > 2009). It would be even nicer if i can have 1 compressed file for one month > instead of 1 compressed file for all 12 months, if it is possible. > > regarding the bugzilla database, it is OK to get the whole dump. It would be > great if you upload it somewhere and let me download it from their. > > thanks for your cooperation and looking forward for your kind response. OK. Give me a couple of days and I'll get that sorted for you. Mark - 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: An unexpected error has been detected by Java Runtime Environment:
Well.Yes - the server have got loaded by apache server running on it. So ,yes, that can be bad RAM. I have changed the config to run the 32 version. But maybe somebody here knows about any particular problems in Solaris/Java that might help? Evgeny On Thu, Sep 3, 2009 at 1:06 PM, Peter Crowther wrote: > 2009/9/3 Tsirkin Evgeny > > > 2. this same app. works fine for 1/2 year + it works fine on another > > server. > > > > Has your data changed? Does running the same app *with the same data* on > the other server trigger the error? > > Have you got a creeping failure on your hardware? Bad RAM could cause the > problem you observe, for example. > > - Peter >
Re: An unexpected error has been detected by Java Runtime Environment:
2009/9/3 Tsirkin Evgeny > 2. this same app. works fine for 1/2 year + it works fine on another > server. > Has your data changed? Does running the same app *with the same data* on the other server trigger the error? Have you got a creeping failure on your hardware? Bad RAM could cause the problem you observe, for example. - Peter
Re: Apache Tomcat ICD-10 compliance
2009/9/2 Mokri, Rhonda R > Please indicate if there is a document that references Apache Tomcat icd-10 > support as my searches of the Tomcat FAQ and Tomcat related websites have > not produced any hits. My US based employer is a health care based > organization that requires that we research every application to determine > if there is a roadmap to support the migration to icd-10 by 2013. My > initial response to my employer that there is a low likelihood of any issue > with Tomcat and icd-10 was rejected as not being sufficiently 'official'. > Thank you. > I presume your employer has made similar searches of the Microsoft, Sun etc. sites, and has obtained documentary proof that Windows, Java, Microsoft Office etc. will be ICD-10 compliant by 2013? As an unofficial comment (I'm not an ASF committer, merely someone who's used Tomcat and has dealt with a number of medical applications), I'm not aware of anything in any version of Apache Tomcat or its connectors that is specific to any clinical coding system, and therefore I would not expect any Tomcat-related issues running a web application in Tomcat that used ICD-9, ICD-10, ICD-O, SNOMED-CT, SNOMED-RT, Read4, Read5, scans of handwritten documents or any other way of encoding clinical information. As Mark says, the issues will be in the applications, not in the containers that run them. - Peter -- Peter Crowther, Director, Melandra Limited
Re: An unexpected error has been detected by Java Runtime Environment:
I don't think so: 1. Why would it break jvm? 2. this same app. works fine for 1/2 year + it works fine on another server. Thanks Evgeny On Thu, Sep 3, 2009 at 12:51 PM, Rainer Jung wrote: > On 03.09.2009 11:42, Tsirkin Evgeny wrote: > > environment : > > Apache Tomcat/6.0.18 > > Solaris 9 64 bit > > jdk1.6.0_13 > > > > On one of the servers we are today getting constantly errors: > > An unexpected error has been detected by Java Runtime Environment. > > Here are some of those: > > > > > --- > > # > > # An unexpected error has been detected by Java Runtime Environment: > > # > > # SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121 > > # > > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > > solaris-sparc) > > # Problematic frame: > > # C [libc_psr.so.1+0x8b8] > > # > > # An error report file with more information is saved as: > > # /tmp/hs_err_pid2380.log > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > > > > --- > > # > > # An unexpected error has been detected by Java Runtime Environment: > > # > > # SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615 > > # > > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > > solaris-sparc) > > # Problematic frame: > > # j > > java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0 > > # > > # An error report file with more information is saved as: > > # /tmp/hs_err_pid11205.log > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > > --- > > # > > # An unexpected error has been detected by Java Runtime Environment: > > # > > # SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5 > > # > > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > > solaris-sparc) > > # Problematic frame: > > # V [libjvm.so+0x74c17c] > > # > > # An error report file with more information is saved as: > > # /tmp/hs_err_pid23223.log > > # > > # If you would like to submit a bug report, please visit: > > # http://java.sun.com/webapps/bugreport/crash.jsp > > # > > > --- > > The file which should contain the logs/dump (i.e. > /tmp/hs_err_pid23223.log) > > are empty. > > Did anybody get experienced with such a thing? > > Could it be an infinite redirection loop (stack > overflow)? > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: An unexpected error has been detected by Java Runtime Environment:
On 03.09.2009 11:42, Tsirkin Evgeny wrote: > environment : > Apache Tomcat/6.0.18 > Solaris 9 64 bit > jdk1.6.0_13 > > On one of the servers we are today getting constantly errors: > An unexpected error has been detected by Java Runtime Environment. > Here are some of those: > > --- > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > solaris-sparc) > # Problematic frame: > # C [libc_psr.so.1+0x8b8] > # > # An error report file with more information is saved as: > # /tmp/hs_err_pid2380.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > > --- > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > solaris-sparc) > # Problematic frame: > # j > java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0 > # > # An error report file with more information is saved as: > # /tmp/hs_err_pid11205.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > --- > # > # An unexpected error has been detected by Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5 > # > # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode > solaris-sparc) > # Problematic frame: > # V [libjvm.so+0x74c17c] > # > # An error report file with more information is saved as: > # /tmp/hs_err_pid23223.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > --- > The file which should contain the logs/dump (i.e. /tmp/hs_err_pid23223.log) > are empty. > Did anybody get experienced with such a thing? Could it be an infinite redirection loop (stack overflow)? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
An unexpected error has been detected by Java Runtime Environment:
environment : Apache Tomcat/6.0.18 Solaris 9 64 bit jdk1.6.0_13 On one of the servers we are today getting constantly errors: An unexpected error has been detected by Java Runtime Environment. Here are some of those: --- # # An unexpected error has been detected by Java Runtime Environment: # # SIGBUS (0xa) at pc=0x7f4008b8, pid=2380, tid=121 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode solaris-sparc) # Problematic frame: # C [libc_psr.so.1+0x8b8] # # An error report file with more information is saved as: # /tmp/hs_err_pid2380.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- # # An unexpected error has been detected by Java Runtime Environment: # # SIGBUS (0xa) at pc=0x78c0bf44, pid=11205, tid=615 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode solaris-sparc) # Problematic frame: # j java.net.URLStreamHandler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V+0 # # An error report file with more information is saved as: # /tmp/hs_err_pid11205.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- # # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7e34c17c, pid=23223, tid=5 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode solaris-sparc) # Problematic frame: # V [libjvm.so+0x74c17c] # # An error report file with more information is saved as: # /tmp/hs_err_pid23223.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # --- The file which should contain the logs/dump (i.e. /tmp/hs_err_pid23223.log) are empty. Did anybody get experienced with such a thing? Thanks Evgeny
Re: redirect paramter in the jk_workers file
I think you can achieve something simular just using longer timeouts on mod_jk one of those: http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html * use_server_errors* And use ErrorDocument in apache for custom error page Evgeny On Thu, Sep 3, 2009 at 8:54 AM, Dhiraj Rajput < draj...@premiertechnologygroup.com> wrote: > Hi Rainer, > > Yes , it support to the 1.29 mod jk. > > But here issue is different, I am using the JDBC store for the clustering. > > Suppose my application is running fine and that instant if node1 is goes > offline > > It need near about 10 - 20 sec to push the session in to DB and in between > these 10 sec I f I try to do anything in my application , the application > kick back me on login page. > > To overcome from this login page issue I am thinking to use the redirect > parameter for two nodes. > > In this case , can you please tell me wheather this is sutaible and how it > works. > > -Original Message- > From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Sent: Wednesday, September 02, 2009 11:28 PM > To: Tomcat Users List > Subject: Re: redirect paramter in the jk_workers file > > Your mailer uses a very unfriendly way of formatting your messages. So I > do top posting. > > Yes, as you can read on > > http://tomcat.apache.org/connectors-doc/reference/workers.html > > the atribute redirect is supported since version 1.2.9. For a two node > load balancer, you don't need it though. If you have many nodes in a > load balancer, the redirect expresses, which one you prefer for the > failover. If you dont specify it, the load balancer will use some other > working node according to its load values. > > Regards, > > Rainer > > > On 02.09.2009 06:51, Dhiraj Rajput wrote: > > Hi Chris, > > > > > > > > I have below mention tag in my jk workers file. > > > > > > > > > > > > > > > > orker.tomcat.type=lb > > > > worker.tomcat.socket_keepalive=1 > > > > worker.tomcat.socket_timeout=300 > > > > worker.tomcat.connection_pool_size=50 > > > > worker.tomcat.connection_pool_timeout=600 > > > > worker.tomcat.balance_workers=tomcatnode1,tomcatnode2 > > > > worker.tomcat.sticky_session=true > > > > worker.tomcatnode1.port=9732 > > > > worker.tomcatnode1.host=10.18.25.160 > > > > worker.tomcatnode1.type=ajp13 > > > > worker.tomcatnode1.socket_keepalive=True > > > > worker.tomcatnode1.socket_timeout=300 > > > > worker.tomcatnode1.connection_pool_timeout=600 > > > > worker.tomcatnode1.connect_timeout=600 > > > > worker.tomcatnode1.redirect=tomcatnode2 > > > > worker.tomcatnode2.port=9733 > > > > worker.tomcatnode2.host=10.18.25.107 > > > > worker.tomcatnode2.type=ajp13 > > > > worker.tomcatnode2.socket_keepalive=True > > > > worker.tomcatnode2.socket_timeout=300 > > > > worker.tomcatnode2.connection_pool_timeout=600 > > > > worker.tomcatnode2.redirect=tomcatnode1 > > > > > > > > > > > > I am not 100% sure how this works and is it really usefull for the > failover. > > > > Thanks and Regards, > > > > > > > > Dhiraj V Rajput > > > > Associate System Admin > > > > Hosting Services Group > > > > Premier Technology Group Nagpur > > > > > Phone: - USA- 1-626-698-1099 > > > > India Office: 91-712-2446734 ext 30 > > > > cell no : 91-9370315811 > > > > > > > > -Original Message- > > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > > Sent: Tuesday, September 01, 2009 11:22 PM > > To: Tomcat Users List > > Subject: Re: redirect paramter in the jk_workers file > > > > > > > > Hash: SHA1 > > > > > > > > Dhiraj, > > > > > > > > On 8/27/2009 8:26 AM, Dhiraj Rajput wrote: > > > >> I have issue on the redirect tag in jk workers file. > > > > > > > > What is "redirect tag"? > > > > > > > > -chris > > - > 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: mod jk - multiple applications, different server clusers, sticky sessions
On 02.09.2009 23:38, Jason Wright wrote: > I've an interesting situation with our application clusters. I am running > multiple applications for one of our websites. We don't share sessions > between the different servers; we use sticky sessions instead. Session > replication is difficult because of the large size of our users' sessions. > > We use applications A & B. I would like application A to run on servers 1 > and 2 and application B to run on servers 3 and 4. > > The user initially requests application A and receives a sticky session for > server 1. Later, the user requests application B. Since the sticky session > was set, server 1 is accessed, but application B is not found. If No. The stickyness doesn't magically track your clients. If the client sends a session information, and the session information contains a route tag (a suffix .nodeX, where nodeX is set by the jvmRoute attribute in server.xml), then mod_jk looks for a balancer member named nodeX. When/How does the client send session information? Either as a cookie named JSESSIONID, or via URL encoding ...;jsessionid=nodeX By default, application A with context name /myappA uses cookies and only sends cookies if the request goes to something in /myappA. So a request for application B with context /myappB doesn't include the cookie for A and the load balancer is free to distribute the request to any node. > sticky_session_force is set, then another server is tried; however, the No, see above. No session info, then stickyness is never applied. If there were session info, then the force switch would work in the opposite way, namely if set to false, it will allow failover. Default is false. > sticky session will still be set to server 1 and the application B may not > use the same server. > > I've thought of 3 possible ways to solve this problem with a preference to > the one I don't know how to do yet. Not sure what the (real) problem is, likely you want both apps to be reachable under the same server name. > The first (my preference) is to be able to use multiple sticky sessions, one > for each application. This might involve multiple copies of modjk loaded by > tomcat with multiple workers.properties files, or something like that. I > would have no idea of how to do this. Does anyone know how to do this? No, this works out of the box. I assume there is no relation between the two apps A and B. Configute two lb workers, like lbA and lbB. One has member node1 and node 2, the other node3 and node4. Set the jvmRoute in server.xml of the four nodes to these names respectively. Finally add a JkMount /myappA|/* lbA JkMount /myappB|/* lbB That should be all that's needed. When testing, check the session cookies in order to understand what's going on. There are lots of Firefox plugins to look at cookies comfortably, like e.g. FireCookie. FireBug is also nice. > The second way of solving this problem is to use multiple copies of Tomcat > bound to different IP addresses with different configuration files. This > solution would be seen as subdomains to the user. > > The third way of solving this problem is to use multiple copies of Tomcat > bound to different ports (same IP address) with different configuration > files. This solution would have the same domain, but different port numbers. > > > I'm pretty sure that the second and third solutions would work, but I'm not > sure about the first solution. I've searched extensively and haven't found > anyone with the same problem. Has anyone on this list been in this situation > or know the best way to solve this problem? Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 4.1.31 problem
jamez smith wrote: > Hi Mark, > > Tomcat is only used for local development environment. In our production, > we use Websphere application server on AIX. I am also new to this project > and was told I can only use Tomcat 4.1 to setup my local development. So at least use 4.1.40 so you have the latest version. > I like to clarify that the JVM 1.4 is no longer supported by Sun? Try downloading it from Sun and see what you get. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: session problem in Tomcat server when system date changes.
Nagineni wrote: > Hi, > > I'm quite surprise to see this issue in the tomcat server.While running the > application ,I've changed my system date ahead a day.I observed that tomcat > server started creating new session for the same client. > > Any pointers on this to resolve ?Please help me. Sessions have expiration times and Tomcat uses the date/time to track session creation and expiration. If you change the date/time by more than the session expiration time then the sessions are all going to expire. The solution is a set your system's clock and timezone correctly and use ntp to keep it that way. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: redirect paramter in the jk_workers file
On 03.09.2009 07:54, Dhiraj Rajput wrote: > But here issue is different, I am using the JDBC store for the clustering. > > Suppose my application is running fine and that instant if node1 is goes > offline > > It need near about 10 - 20 sec to push the session in to DB and in between > these 10 sec I f I try to do anything in my application , the application > kick back me on login page. > > To overcome from this login page issue I am thinking to use the redirect > parameter for two nodes. To achieve what? I don't think the redirect attribute will help you there. There's no way telling the load balancer "if a node goes down, wait with failover for 20 seconds". > In this case , can you please tell me wheather this is sutaible and how it > works. Regards, Rainer > -Original Message- > From: Rainer Jung [mailto:rainer.j...@kippdata.de] > Sent: Wednesday, September 02, 2009 11:28 PM > To: Tomcat Users List > Subject: Re: redirect paramter in the jk_workers file > > Your mailer uses a very unfriendly way of formatting your messages. So I > do top posting. > > Yes, as you can read on > > http://tomcat.apache.org/connectors-doc/reference/workers.html > > the atribute redirect is supported since version 1.2.9. For a two node > load balancer, you don't need it though. If you have many nodes in a > load balancer, the redirect expresses, which one you prefer for the > failover. If you dont specify it, the load balancer will use some other > working node according to its load values. > > Regards, > > Rainer > > > On 02.09.2009 06:51, Dhiraj Rajput wrote: >> Hi Chris, >> >> >> >> I have below mention tag in my jk workers file. >> >> >> >> >> >> >> >> orker.tomcat.type=lb >> >> worker.tomcat.socket_keepalive=1 >> >> worker.tomcat.socket_timeout=300 >> >> worker.tomcat.connection_pool_size=50 >> >> worker.tomcat.connection_pool_timeout=600 >> >> worker.tomcat.balance_workers=tomcatnode1,tomcatnode2 >> >> worker.tomcat.sticky_session=true >> >> worker.tomcatnode1.port=9732 >> >> worker.tomcatnode1.host=10.18.25.160 >> >> worker.tomcatnode1.type=ajp13 >> >> worker.tomcatnode1.socket_keepalive=True >> >> worker.tomcatnode1.socket_timeout=300 >> >> worker.tomcatnode1.connection_pool_timeout=600 >> >> worker.tomcatnode1.connect_timeout=600 >> >> worker.tomcatnode1.redirect=tomcatnode2 >> >> worker.tomcatnode2.port=9733 >> >> worker.tomcatnode2.host=10.18.25.107 >> >> worker.tomcatnode2.type=ajp13 >> >> worker.tomcatnode2.socket_keepalive=True >> >> worker.tomcatnode2.socket_timeout=300 >> >> worker.tomcatnode2.connection_pool_timeout=600 >> >> worker.tomcatnode2.redirect=tomcatnode1 >> >> >> >> >> >> I am not 100% sure how this works and is it really usefull for the > failover. >> >> Thanks and Regards, >> >> >> >> Dhiraj V Rajput >> >> Associate System Admin >> >> Hosting Services Group >> >> Premier Technology Group Nagpur > >> >> Phone: - USA- 1-626-698-1099 >> >> India Office: 91-712-2446734 ext 30 >> >> cell no : 91-9370315811 >> >> >> >> -Original Message- >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Sent: Tuesday, September 01, 2009 11:22 PM >> To: Tomcat Users List >> Subject: Re: redirect paramter in the jk_workers file >> >> >> >> Hash: SHA1 >> >> >> >> Dhiraj, >> >> >> >> On 8/27/2009 8:26 AM, Dhiraj Rajput wrote: >> >>> I have issue on the redirect tag in jk workers file. >> >> >> >> What is "redirect tag"? >> >> >> >> -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: IIS isapi_redirect.dll chunked encoding option
On 02.09.2009 22:17, Andy Wang wrote: > Rainer Jung wrote: >> Difficult to answer. My feeling is, that the code is fine and the >> original contributor Tim Whittington seemed to have used basically the >> same code for quite some time. >> >> On the other hand only having it in a separate binary will still prevent >> most people to use it, so it might still not be used broadly out in the >> field. >> >> At least we are not aware of any problem with the chunked encoding code. >> >> Regards, >> >> Rainer >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > Ranier, > Thanks for the generally positive answer :). > We're going to try to enable it out of the box on our IIS configurations > and see how things go, so pretty soon, there'll be alot more machines > potentially running with the chunked encoding option. > > I haven't looked that closely at the code, but was there enough worry > that it would cause side effects to make it a compile time AND a > configuration option? I would say no, the configuration option is there for the time when we start having the chunked encoding code in by default. You can also do easier debugging, if you can turn it off without switching the binaries. Of course as long as the two binares are separate, turning chunking on by default would have been the more natural choice. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
On 02.09.2009 21:45, Dennis Christopher wrote: > Rainer, > > Thanks for the reply. I was confused in my orginal post: I am not using > JBoss at all, only mod_jk. > > The file contents are as follows below. > > Apache has a hosts directory, but I'm not sure if the files matter. They > are either the apache .default files or slight modifications of them, > e.g. virtual_host_global.conf contains just: > > Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer > 1. uriworkermap.properties -- not used > > 2. from apache2/httpd.conf: > > LoadModule jk_module libexec/apache2/mod_jk.so > . > . > > JKWorkersFile /etc/apache2/workers.properties > JKLogFile /var/log/apache2/mod_jk.log > JKLogLevel debug > JKShmFile /var/log/apache2/mod_jk.shm > JKMount /*.jsp JBoss1 > JKMount /servlet/* JBoss1 > JKMount /examples/* JBoss1 > JKMount /picturetalk/* JBoss1 > JKMount /sample/* JBoss1 > > . > . > > 3. from apache2/workers.properties: > > worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker > > # > # First JBoss server > # > worker.JBoss1.port=8009 > worker.JBoss1.host=127.0.0.1 > worker.JBoss1.type=ajp13 > > # Specify the size of the open connection cache. > #worker.JBoss1.cachesize > > # > # Specifies the load balance factor when used with > # a load balancing worker. > # Note: > # > lbfactor must be > 0 > # > Low lbfactor means less work done by the worker. > worker.JBoss1.lbfactor=100 > > > # > # Second JBoss server > # > #worker.JBoss2.port=9008 > #worker.JBoss2.host=localhost > worker.JBoss2.lbfactor=100 > > > # > # Load Balancer worker > # > > # > # The loadbalancer (type lb) worker performs weighted round-robin > # load balancing with sticky sessions. > # Note: > # > If a worker dies, the load balancer will check its state > #once in a while. Until then all work is redirected to peer > #worker. > worker.loadbalancer.type=lb > worker.loadbalancer.balanced_workers=JBoss1, JBoss2 > > # > # Blojsom worker > # > # > # Worker created specifically for Blojsom. > worker.blojsomworker.port=1279 > worker.blojsomworker.host=127.0.0.1 > worker.blojsomworker.type=ajp13 > worker.blojsomworker.lbfactor=100 > > > # END workers.properties > # > > On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: > >> On 27.08.2009 15:45, Dennis Christopher wrote: >>> environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 >>> (Leopard). >>> >>> I am using a mod_jk connector with JBoss. >>> >>> I am having trouble getting context urls of the form >>> website.my.com/myapplication honoured (or even localhost/myapplication). >>> (Safari:File not found).I have googled the error messages below but >>> can't find anything applicable to my setup. >>> >>> The quick start guide at >>> >>> http://tomcat.apache.org/connectors-doc/generic_howto/quick.html >>> >>> gives a simple proof of concept for a connector setup (/examples"). >>> However, this does not work, >>> though I have followed the editing of the configuration files exactly >>> (using JKMount in the httpd.conf etc) >>> >>> I get an error in mod_jk.log (set to debug level): >>> >>> [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] >>> map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) Attempting to >>> map URI '/server-status' from 5 maps >>> [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] >>> map_uri_to_worker_ext::jk_uri_worker_map.c (1039): Initial match >>> value:for URI '/server-status' is -1. >>> [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] >>> find_match::jk_uri_worker_map.c (850): Attempting to map context URI >>> '/examples/*=JBoss1' source 'JkMount' >>> [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] >>> find_match::jk_uri_worker_map.c (850): Attempting to map context URI >>> '/servlet/*=JBoss1' source 'JkMount' >>> [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] >>> find_match::jk_uri_worker_map.c (850): Attempting to map context URI >>> '/sample/*=JBoss1' source 'JkMount' >>> [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] >>> find_match::jk_uri_worker_map.c (850): Attempting to map context URI >>> '/*.jsp=JBoss1' source 'JkMount' >>> [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] >>> map_uri_to_worker_ext::jk_uri_worker_map.c (1047): Match value:for URI >>> '/server-status' is -1. >>> [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] >>> jk_translate::mod_jk.c (3536): no match for /server-status found >>> >>> Any help on h
Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7
I noticed that you mention that you are using the community version of the Java runtime environment which i think is what you get when you do an apt-get. I have never honestly been able to use this version of the JVM successfully. I had a similar problem recently where i was running an application (That uses Hibernate) using this version of the JDK and was always getting memory exceptions. What i did was to download sun's version of the JDK and that seem to have solved the problem. Did you try to use the SUN's version of the JDK from the SUN website? It might be usefull to try the SUN's version just to rule out that the JDK version/release is not the problem. On Wed, Sep 2, 2009 at 11:26 PM, Mark Thomas wrote: > Bradley Wagner wrote: > > Any thoughts on which GC parameters I should change. > > See what the default collector is for your platform and switch to s > different one. > > Mark > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >