Re: Tomcat 6 and tomcat native
Alec Bickerton wrote: I've been looking at tomcat 6 and have seen a notification that my tc-native was out of date. 07.09.2007 13:06:05 org.apache.catalina.core.AprLifecycleListener init INFO: An older version 1.1.9 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10 ... Normal startup follows My question is, where do I find this mythical beast? %tomcat_home%/bin/tomcat-native.tar.gz JSVC and TC Native are released with Tomcat each time. p The latest version on http://tomcat.apache.org/tomcat-5.5-doc/apr.html is the version I'm using 1.1.9. Regards, Alec - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: tomcat usertransation
http://tomcat.apache.org/faq/tomcatuser.html#why - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not starting
On Friday 07 September 2007 15:10, Nadon, Luc wrote: The specified module could not be found What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? -- Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not starting
From: Nadon, Luc [mailto:[EMAIL PROTECTED] Subject: Tomcat not starting Windows 2000 sp4 JRE 1.6_02 Tomcat won't start. First, download the .zip version of Tomcat for whatever level you're using. It contains startup and shutdown scripts that make debugging initialization problems much easier. You can install it as a service later with the service.bat script. Verify that Tomcat starts when run from the scripts. When that is taken care of, install the service, then run the tomcatxw.exe program and look at the Java tab to insure that the values for the JVM and classpath are appropriate for your installation. Try starting the service again, and report back if there are still problems. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not starting
copying the file worked. Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another. -Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: September 7, 2007 9:53 AM To: Tomcat Users List Subject: Re: Tomcat not starting The error happens because it can't find a DLL, most commonly msvcr71.dll. Try copying that file from Java's bin directory to Tomcat's bin directory. More info here: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 -- Len On 9/7/07, Nadon, Luc [EMAIL PROTECTED] wrote: I just installed tomcat and nothing is configured. I have no apps yet therefore I don't have a web.xml for any specific apps In the server.xml file the jndi portion is empty. I have no problem reading docs I just don't know where to begin. Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: September 7, 2007 9:19 AM To: Tomcat Users List Subject: Re: Tomcat not starting On Friday 07 September 2007 15:10, Nadon, Luc wrote: The specified module could not be found What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? -- Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not starting
The error happens because it can't find a DLL, most commonly msvcr71.dll. Try copying that file from Java's bin directory to Tomcat's bin directory. More info here: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 -- Len On 9/7/07, Nadon, Luc [EMAIL PROTECTED] wrote: I just installed tomcat and nothing is configured. I have no apps yet therefore I don't have a web.xml for any specific apps In the server.xml file the jndi portion is empty. I have no problem reading docs I just don't know where to begin. Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: September 7, 2007 9:19 AM To: Tomcat Users List Subject: Re: Tomcat not starting On Friday 07 September 2007 15:10, Nadon, Luc wrote: The specified module could not be found What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? -- Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usertransation
sorry if i'm acting offending, but i just wanted it to be on the agenda a second time, it's not that there's a lot of information on this subject and i'm on a extremely tight schedule. anyway, i will not post this message again. best regards On 07/09/2007, Mark Thomas [EMAIL PROTECTED] wrote: http://tomcat.apache.org/faq/tomcatuser.html#why - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat not starting
On Friday 07 September 2007 15:29, you wrote: I just installed tomcat and nothing is configured. I have no apps yet therefore I don't have a web.xml for any specific apps In the server.xml file the jndi portion is empty. I have no problem reading docs I just don't know where to begin. Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: September 7, 2007 9:19 AM To: Tomcat Users List Subject: Re: Tomcat not starting On Friday 07 September 2007 15:10, Nadon, Luc wrote: The specified module could not be found What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? Weird, I don`t know wether you defined you class paths already, if not do so . Perhaps this tutorial will help some in basic setup: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not starting
From: Matt [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat not starting What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? That's completely irrelevant - this error occurs trying to start the service, not Tomcat itself. Also, the classpath for Tomcat should NEVER be set manually. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 and tomcat native
From: Alec Bickerton [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 and tomcat native I've been looking at tomcat 6 and have seen a notification that my tc-native was out of date. The latest version on http://tomcat.apache.org/tomcat-5.5-doc/apr.html is the version I'm using 1.1.9. Just for curiousity's sake, why are you looking at 5.5 documentation when you're running Tomcat 6? Regardless, the link to http://tomcat.heanet.ie/native/ on that page clearly shows version 1.1.10. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Session MGMT
From: ryoung5367 [mailto:[EMAIL PROTECTED] Subject: Re: Question about Session MGMT I was just looking at how to turn off cookies in the context.xml file it added this: parameter namecookie/name valuefalse/value /parameter That's incorrect. The cookies attribute (it's not an XML element) should be specified like this: Context cookies=false ... /Context - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: random Listening port
So, you were right. Jmxremote is activated because of lambda probe. I'll check if I can set a permanent port in it. Thanks for the info. Well, good point, I think jmx is activated. I'll check that and come back to you. I'm using sun JVM 5.0 on Linux. Lionel Caldarale, Charles R a écrit : From: Lionel Crine [mailto:[EMAIL PROTECTED] Subject: random Listening port I've installed tomcat 6.0 and I'm wondering why there is random port open. Do you have JMX remote enabled? (Setting -Dcom.sun.management.jmxremote opens a random port with a Sun JVM.) What JVM are you using? - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lionel CRINE - GROUPE LINAGORA Open Source Software Engineer Tél. : 01 58 18 68 28 Fax : 01 58 18 68 29 www.linagora.com / www.linagora.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat not starting
I just installed tomcat and nothing is configured. I have no apps yet therefore I don't have a web.xml for any specific apps In the server.xml file the jndi portion is empty. I have no problem reading docs I just don't know where to begin. Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: September 7, 2007 9:19 AM To: Tomcat Users List Subject: Re: Tomcat not starting On Friday 07 September 2007 15:10, Nadon, Luc wrote: The specified module could not be found What did you specify in your server.xml and web.xml as jdni driver? And did you include this driver in your classpath? -- Matt - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 Installation Path
All, We are attempting to install Tomcat 6 on a OS X, but are running into a problem. Our installation path has a space in a file name. Using Tomcat 5, this works just fine, but with Tomcat 6, we receive the following error (from the log): java.lang.NoClassDefFoundError: 3/Tomcat_Qilan//conf/logging/properties Exception in thread main java.lang.NoClassDefFoundError: 3/Tomcat// conf/logging/properties Exception in thread main java.lang.NoClassDefFoundError: 3/Tomcat// conf/logging/properties Exception in thread main java.lang.NoClassDefFoundError: 3/Tomcat// conf/logging/properties Exception in thread main If the space is removed, the installation works correctly, but we are are unable to remove the space due to a large customer base. The space is located in the log output just preceding the number '3' (above). Can anybody offer a suggestion as to why this is occurring and what approach we might use to rectify this problem. Thank you in advance. Stephen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat not starting
Windows 2000 sp4 JRE 1.6_02 Tomcat won't start. Any help Tried it on two seperate machines. Even uninstall and re-installed with boot up in between. Received the following error in the log file [2007-09-07 04:09:17] [174 javajni.c] [error] The specified module could not be found. [2007-09-07 04:09:17] [986 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0_02\bin\client\jvm.dll [2007-09-07 04:09:17] [1260 prunsrv.c] [error] ServiceStart returned 1 Sincerely, Luc Nadon Information Technology Analyst ITS-Niagara, Fort Erie Section Phone: (905) 994-6887 email: [EMAIL PROTECTED] The rights and freedoms of one should not jeopardize that of another.
Re: Tomcat 6 and tomcat native
Alec Bickerton escribío: I've been looking at tomcat 6 and have seen a notification that my tc-native was out of date. 07.09.2007 13:06:05 org.apache.catalina.core.AprLifecycleListener init INFO: An older version 1.1.9 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10 ... Normal startup follows My question is, where do I find this mythical beast? The latest version on http://tomcat.apache.org/tomcat-5.5-doc/apr.html is the version I'm using 1.1.9. Go to: http://tomcat.apache.org/download-connectors.cgi Then select browse download area Then go into the native folder. -- Brian Millett - [ Sheridan and G'Kar, Soul Mates] People seem to be implying that I shouldn't get too comfortable. 'Oh nonsense. It's not as if anyone expects you to...oh...vanish overnight under mysterious circumstances to a strange Minbari post. Why that would be unprecedented in this station's history.' - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection closed by foreign host. Tomcat5 doesn't answer (Fedora Core 5, yum install)
Peter Crowther escribió: From: David Iglesias Teixeira [mailto:[EMAIL PROTECTED] After a port-scan in both machines, I can see that test is listening on port 8080, but prod is not On prod: netstat -an | grep 8080 Is port 8080 listed? My guess is yes based on you being able to telnet to it locally, in which case this is a firewall issue, not a Tomcat issue. It is listed, so I'll have to check the hardware firewall that the provider has set up. Thanks for the über-fast response! smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat memory issues
Peter Warren [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] Is it possible you're caching Request or Response objects somewhere and not releasing them? I just did a bunch of memory profiling and many of the classes you mention are the same classes I see when I open and don't close a bunch of connections to the server. My code in the bottom of the servlet is such: ServletOutputStream stream = _response.getOutputStream(); BufferedOutputStream bos = new BufferedOutputStream(stream); bos.write(bytes); stream.flush(); bos.close(); As far as I under stand I should NOT close the stream object as I didn't open it. Best regards, Morten - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: synchronous stop of tomcat
Have been looking at the source, although not documented (for TC5.5), it seems that it is possible to nest a Listener element (org.apache.catalina.LifecycleListener) under the Server element as http://tomcat.apache.org/tomcat-5.5-doc/config/context.html described here for nesting within Context elements. This could be used to provide a more elegant way of receiving notification of when the server has stopped. However, still not synchronous, looking at JMX for that, seems like I just need to invoke StandardServer.stop() Christopher Schultz-2 wrote: Is there a synchronous method for stopping Tomcat, i.e. one that won't return until the ports have been released at least? Not that I know of. Lots of folks have posted to the list somewhat recently asking basically the same question: how do you know when Tomcat has really stopped? The best hack I've heard of is to watch the catalina.out log file for the magic Tomcat Stopped message. Another option would be to actually poll the port to see if it's available. They're both pretty ugly options. - -chris -- View this message in context: http://www.nabble.com/synchronous-stop-of-tomcat-tf4392954.html#a12553588 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection closed by foreign host. Tomcat5 doesn't answer (Fedora Core 5, yum install)
From: David Iglesias Teixeira [mailto:[EMAIL PROTECTED] After a port-scan in both machines, I can see that test is listening on port 8080, but prod is not On prod: netstat -an | grep 8080 Is port 8080 listed? My guess is yes based on you being able to telnet to it locally, in which case this is a firewall issue, not a Tomcat issue. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 and tomcat native
I've been looking at tomcat 6 and have seen a notification that my tc-native was out of date. 07.09.2007 13:06:05 org.apache.catalina.core.AprLifecycleListener init INFO: An older version 1.1.9 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10 ... Normal startup follows My question is, where do I find this mythical beast? The latest version on http://tomcat.apache.org/tomcat-5.5-doc/apr.html is the version I'm using 1.1.9. Regards, Alec - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JBossTS in Tomcat
Hi, Does anyone know anything about using JBoss Transactions in Tomcat 5.5? I assumed that it is possible do so, but I'm not able to get anything related to transactions working. If anyone knows if it's possible or not, please let me know. Best regards and thanks in advance, Gerard
Re: Integration with Apache
Ahh, I realise now that JkMount is only available using mod_jk ... I really would like to keep mod_jk2, is there any way of configuring mod_jk2 as i described in my earlier posting? On 9/7/07, Edd Dawson [EMAIL PROTECTED] wrote: Thanks for the reply Chris. Should add that I'm coming at this not as the person who set it up, also configuring this is not my area of expertise (if you hadn't noticed!). within the httpd.conf and workers2.properties there are no references to JkMount, which i guess may be the issue, am i right in assuming that apache will be passing everything to tomcat? I've done some digging but i'm not all that clear on how or where JkMount should be fitted in to the config, can anyone give any pointers? cheers Ed On 9/6/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, Edd Dawson wrote: I have a server setup as follows: Apache [httpd] - mod_jk2 - tomcat Stop right there. Delete mod_jk2. Forget it ever existed (everyone else has). Install mod_jk. Okay, now go: There are a number of webapps served by tomcat: /ROOT - available on http://www.mydomainname.com/ /webapp2 -available on http://www.mydomainname.com/webapp2 /webapp3 - available on http://www.mydomainame.com/webapp3 Now this all works fine, but now I need to add a php forum site onto the server on the same domain name and have it served on http://www.mydomainname.com/forum Trouble is that I cannot for the life of me figure out how to configure this without moving my /ROOT webapp off the URL http://www.mydomainname.com/ and into a subdirectory. Why? Just don't map /forum/*.php to mod_jk. What do your JkMount directives look like? Can anyone confirm whether what I want to do is at all possible, and if so give any pointers as to where i need to be looking to configure it? I have all kinds of things happening with Apache httpd - mod_jk - Tomcat. You can map anything you want. Static content served by Apache httpd while dynamic stuff comes from TC? Of course. Multiple TC instances within the same URL space? Done. Some TC, some PHP, some CGI? Why not? It's all easy. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4HWW9CaO5/Lv0PARAnvAAKCH7DLvm4JOWCMSqXyPvIf/PKUMjACgxC3A kHIVn0Uj2z+MEc0m8xDlnc8= =dTQG -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.23: Could not find jaas Java extension for this JVM
Hello, Does anyone know how I get rid of the next errormessages: /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm This message appears when I try to startup tomcat and is probably the reason for Tomcat not to startup. I have had more errorlines like: /usr/bin/rebuild-jar-repository: error: Could not find jdni Java extension for this JVM à those could be resolved by placing jdni.jar in the appropriate folder (/usr/java/jdk1.6.0_02/jre/lib/). I got jaar.jar from SUN, but placing it in either /usr/java/jdk1.6.0_02/jre/lib/ or /var/lib/tomcat5/common/lib/ didnt solve the problem. Perhaps it should be placed in another folder, or perhaps it is possible to get rid of the reference? Additional systeminformation: Fedoracore 7 JVM GNU is replaced by SUN JVM 1.6.0_02 Tomcat 5.5.23 Switching to GNU JVM eliminates the errors and Tomcat succeeds to start (thus Tomcat seems to be installed well). Thanks, Marco.
Re: Question about Session MGMT
I was just looking at how to turn off cookies in the context.xml file it added this: parameter namecookie/name valuefalse/value /parameter Yet I am not seeing the URL rewritting... I was reading the tomcat doco, am I missing something. (Please pardon these newbie questions) Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joshua and Rob, Joshua Fielek wrote: That is because you have one session per browser session. Or, more precisely, your application is using a cookie to maintain state, and since the cookies used for both logins have the same hostname, path, and name, the second cookie overwrites the first and you are left with a single login in two different windows/tabs. This is why you can log in to an email webapp, navigate away, and if you return within the timeout for the email session, you are treated as though you never left. YMMV, because this may not be true of _all_ webapps :-) Right. One way to allow multiple logins in separate tabs is to disable the use of cookies on the server (or even your web browser). If you've been writing your web pages properly, all of your links should have the session id encoded in them when cookies are not being used, and sessions will be maintained by using that information instead of cookies. In this case, you can login as many times as you want in separate windows/tabs/processes/etc. and you'll get a separate session in each of them. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4HfL9CaO5/Lv0PARAm+AAJ9w1Gn3P/uXfFFgXFz3ggQxNjWOewCbBYT+ YiJINdhnJXJ66QdH95iyRlw= =FKj2 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Question-about-Session-MGMT-tf4394390.html#a12555245 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM
From: Marco [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.23: Could not find jaas Java extension for this JVM Does anyone know how I get rid of the next errormessages: /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm What script are you running that produces those messages? Are you using a 3rd-party repackaged version of Tomcat? If so, please throw it away and download a real one. This message appears when I try to startup tomcat and is probably the reason for Tomcat not to startup. Your message is confusing, since later you say that Tomcat does startup (Tomcat succeeds to start). Which is it really? I have had more errorlines like: '/usr/bin/rebuild-jar-repository: error: Could not find jdni Java extension for this JVM' à those could be resolved by placing jdni.jar in the appropriate folder (/usr/java/jdk1.6.0_02/jre/lib/). I got jaar.jar from SUN, More confusion, probably due to not using a real Tomcat. Even so, if the message referred to jdni.jar, why did you get jaar.jar? (Or did you mean jaas.jar?) There is no jaas.jar needed for JVM 6 - it's built into rt.jar these days. For real Tomcats running on real JVMs, you don't need to download or install any additional jars. You should try starting over with a clean Tomcat installation. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] context-param vs env-entry. Ready? Fight!
On 9/6/07, Christopher Schultz [EMAIL PROTECTED] wrote: Finally Martin Fowler said dependency injection, and nobody ever had to worry about programs making any kind of sense ever again. And it was Good (for hourly contractors!) That's it, I'm going back to Perl CGI application development! I don't see any IoC frameworks for that. :) Is it late enough to call it Friday? Its Friday for someone, somewhere on this list! -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can war file be deleted?
Hi, I put a war file into webapps and it got unpacked and accessible from the browser. can I delete the war file after that? I notice if I delete it, the unpacked directory will disappear in while? A.C. -- View this message in context: http://www.nabble.com/can-war-file-be-deleted--tf4401751.html#a12556949 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usertransation
Disclaimer: I don't know any more about this than what's in the tomcat docs. Have you tried to specify the Transaction ... / element in your webapp's context.xml (not the one in conf/context.xml or conf/server.xml)? Also, it appears the only valid attribute of the Transaction ... / element is the factory attribute. I'm assuming all other attributes are passed in to setters on the factory class. Lastly, when you do reintroduce the ResourceLink, it should probably be declared of type UserTransaction since that's what I understand the factory method is supposed to spit out. I would try the simplest possible case first and then work from there. Hope this gives you some fuel for thought. --David Gerard Biemolt wrote: Hi All, I'm currently trying to create a transaction between a standalone application and a web service. By starting a usertransaction in the standalone app and bridging it to/with the web service. However I'm unable to get use a transaction in the web service. I took these steps: - published a transactional webservice with apache axis on tomcat 5.5 - added to /conf/server.xml Transaction name=UserTransaction factory= com.arjuna.mw.wst.UserTransacti onFactory / - added to /conf/context.xml ResourceLink name=UserTransaction global=UserTransaction type= com.arjuna.mw.wst.UserTransactionFactory/ - added the following lines to the code: InitialContext ctx = new InitialContext(); ut = (UserTransaction) ctx.lookup(java:comp/UserTransaction); which gives the javax.naming.NameNotFoundException: Name UserTransaction is not bound in this Context Am I missing some xml-statements somewhere? thanks in advance, Gerard - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about Session MGMT
Thanks very, much to all who replied. That works now. Rob Caldarale, Charles R wrote: From: ryoung5367 [mailto:[EMAIL PROTECTED] Subject: Re: Question about Session MGMT I was just looking at how to turn off cookies in the context.xml file it added this: parameter namecookie/name valuefalse/value /parameter That's incorrect. The cookies attribute (it's not an XML element) should be specified like this: Context cookies=false ... /Context - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Question-about-Session-MGMT-tf4394390.html#a12556973 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: synchronous stop of tomcat
I was meaning that it appears you can add a listener directly to the Server element (AFAIU from the code anyway). Server ... Listener ... / ... Not synchronous? Aren't notifications almost always synchronous? Yes, the notification would be synchronous but the call to stop is still asynchronous. Would get the job done though. you you could touch a file or something like that. That would be a nice simple way of doing it. Will give that a shot on Monday. Cheers, Derek -- View this message in context: http://www.nabble.com/synchronous-stop-of-tomcat-tf4392954.html#a12558158 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can war file be deleted?
Angelo Chen wrote: once you delete the war file, the program will not work any more, it seems to me the war file has to be kept there, but I notice those examples, it does not war files but still working, what's the definite rule here? If you deploy a webapp from the war file it has to be there (webapps dir) all the time. If you remove the file Tomcat will just undeploy the application. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat 5.5.23: cannot return to login page??
Christopher Schultz wrote: Cun, shunhecun wrote: If a user is failed to login, he should be directed to the page specified in web.xml, i.e. form-error-page/loginError.jsp/form-error-page. And the page /loginError.jsp is an unprotected resource. Right. You didn't say that the user failed to login. You said that the user's rights didn't allow them to see that particular page. Authentication /was/ successful; authorization was not. If Tomcat does not kill the session for me in my case described in my first message, how can I do that? Tomcat will not kill the session for you; you will have to do it yourself. You don't want to worry about failed logins -- those will go back to the login page. What you want to worry about is unauthorized page requests /after/ login, which is what the 403 error is all about. Just direct your webapp to forward 403 errors to something like /logout.jsp that does session.invalidate(). (eek!) I wouldn't do it this way, though. I'd present the user with an (unprotected) page that says you're not allowed to view this page. Click here if you want to logout and re-login (or something along those lines). Customise the 403 error with a directive in the appropriate place in your web.xml, like so: error-page error-code403/error-code location/WEB-INF/error-pages/403.jsp/location /error-page This page can have any content you like, and include the actions as suggested by Chris. p -chris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: How to manage Apache error msgs when Tomcat is down?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: I've currently got an apache/tomcat installation using mod_jk to communicate between the two. Everything works perfectly. The only issue I have is when I am redeploying my application in tomcat, or decide to stop tomcat altogether, is that I have no idea how to configure a proper error page to be displayed to the user. Did you notice that the error message you get has an HTTP status code associated with it? Apache httpd knows how to send pages other than the stock ones, like this: ErrorDocument 500 down.html - This covers TC not running, I think ErrorDocument 503 down.html - This covers app isn't ready yet - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4Xec9CaO5/Lv0PARArf2AJ0WuHbMuoEM9yzERcOdYkCSX5CCwwCfVSp1 n4hxwLj8KcrLMfnjQ6Y+QxI= =5TO3 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Garbage Collection and Class unloading
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, As always, thanks for correcting my misunderstandings of the JVM and GC. Caldarale, Charles R wrote: All instances of java.lang.Class are allocated within the PermGen from the get-go; there is no migration into or out of PermGen. (The tenured generation does operate as you describe.) I didn't realize that. I guess the JVM figures that Class objects need not actually earn their tenure, since they are likely to be loaded for a long time. Nice optimization. I'm a little hazy on PermGen, actually, but I think it /never/ gets cleaned up. Not true, except if one esoteric, non-standard GC algorithm is selected for the HotSpot JVM. PermGen is cleaned up whenever a full collection occurs. I thought a lot of the talk on this list about PermGen was that it was filling up and never being cleaned-up. Maybe that was just folks legitimately keeping lots of data around for a long time. Second, class loading and GC are mostly unrelated Not true - they're intimately connected. I disagree. Loading a class into memory from bytes doesn't interact with the GC any differently than loading an array of bytes from any other file. The only connection between them would be through the JIT, which needs to know that it's okay to free compiled-code-memory when the Class object becomes collectible. ClassLoaders themselves don't have any magic in them. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4XU+9CaO5/Lv0PARAjbgAKCHwbLHH5NqkCWKoc8zZg4NbhYpfgCeJ7GN 2uMnvqYazd/OkDYQMqskqg8= =3qek -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to get Request from RequestFacade
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tremal, Tremal Naik wrote: yes, I noticed it's quite hard. That's why I suspected that was not the best way to proceed. The Valve solution works quite fine. I was trying to switch to a Filter-based one since the license validation code is quite complex and I have to duplicate much of my webapp code into the server/lib folder. I guess the real question is why you need access to TC's internals... I can't seem to understand it. The only example you provided was that you want to have instant access to sessions (does not require TC internals), you wanted to be able to 'touch' the session to update it's 'last access time' (not sure why you need that), and that you wanted access to the Realm. What are you actually doing with all those things? If you tell us what you're actually trying to do, we might be able to give you some ideas for how to do it /another way/. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4WzH9CaO5/Lv0PARAtXxAJ9RYVOWfOkdgQnpJaPcRRwaZyM7wQCfYf9q 3YN5lq8K0H+azV3qmu3r95I= =5SrZ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can war file be deleted?
Angelo Chen wrote: I put a war file into webapps and it got unpacked and accessible from the browser. can I delete the war file after that? I notice if I delete it, the unpacked directory will disappear in while? So? You still can delete this file ;-) -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Legal Risk of Using Tomcat
Sounds like your legal department is worried that if the technology team screws up they will not have anyone to blame. If you really want to have someone else do your set up and implementations then you need to find a consulting firm that was that type of clause in their contract. (See http://www.covalent.com/ etc...) Other than laying responsibility at the feet of those that complete your project, there is no legal precedence for suing an open source product. It is 100% downloader beware -JL Quoting Irvine, Chuck R [EQ] [EMAIL PROTECTED]: I hope no one thinks this thread is off topic There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? Thanks Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: synchronous stop of tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek, Derek Alexander wrote: Have been looking at the source, although not documented (for TC5.5), it seems that it is possible to nest a Listener element (org.apache.catalina.LifecycleListener) under the Server element as http://tomcat.apache.org/tomcat-5.5-doc/config/context.html described here for nesting within Context elements. I don't think you want this on a Context... you'd be getting events when the webapp was taken out of service (even during a re-reploy) rather than when the server was going down. This could be used to provide a more elegant way of receiving notification of when the server has stopped. If it can really notify you as TC is going down, that would be good: you could touch a file or something like that. However, still not synchronous, looking at JMX for that, seems like I just need to invoke StandardServer.stop() Not synchronous? Aren't notifications almost always synchronous? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4XK49CaO5/Lv0PARAtESAJwP+Gf+RoGjLVGI7JiwTaEPCK5GmwCglbHF G45V5/IVG+K4ofeHdc5F2yw= =8eI6 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
This indemnification all depends on the contracts you have with your client and the supported hardware you need. Tomcat and apache fundation in particular do not give any warranty on this product. It's free but if you sell products based on it, you assumed needed responsability. Note that i wouldn't think it very different if you used a commercial product in it, the vendor could tell you when you have a prob with your client that you didn't use as it was meaned to. One way i have seen here tomcat used as a commercial product (tomcat+application bundle), the company sold us the Application + The small server it would run onto. This way they had full control of tomcat environnment and could give us support for application, including any problem that may arise in tomcat. On the other hand we are not allowed to deploy anything else on that server :) . En l'instant précis du 07/09/07 17:36, Irvine, Chuck R [EQ] s'exprimait en ces termes: I hope no one thinks this thread is off topic There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? Thanks Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.noooxml.org/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integration with Apache
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Edd, Edd Dawson wrote: Should add that I'm coming at this not as the person who set it up, also configuring this is not my area of expertise (if you hadn't noticed!). You'll do fine ;) within the httpd.conf and workers2.properties there are no references to JkMount, which i guess may be the issue, am i right in assuming that apache will be passing everything to tomcat? It looks like mod_jk2 uses directives in workers2.properties like this: [uri:/examples/*] In mod_jk, this would be: JkMount /examples/* worker1 If you were using 'worker1' as the configured worker. Look for [uri:] lines in your workers2.properties file and post them. I'm guessing it's something like [uri:/*]. You probably want something like this: [uri:/yourapp/*.jsp] [uri:/yourapp/*/j_security_check] (if you're using container auth) [uri:/yourapp/servlet/*] (if you're using the 'default' servlet) [uri:/yourapp/*.do] (if you're using struts) You may need to map other things individually if you are having Tomcat serve things like static content. If you are using Apache httpd, I'd recommend having Apache httpd serve that static content for you. I've done some digging but i'm not all that clear on how or where JkMount should be fitted in to the config, can anyone give any pointers? As you've discovered, JkMount is appropriate only for mod_jk. I would highly recommend upgrading to mod_jk... it's not hard, and if your configuration is as simple as it sounds (send all requests to Tomcat), migration should be fairly easy. I'd be glad to help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4XFC9CaO5/Lv0PARAqzNAJ9830GRFgOi8oHDNeX/JzJBxg/OFgCdEMqK v1ZgKBqj10bvrDkc4CedW5I= =7LgX -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to manage Apache error msgs when Tomcat is down?
Hi, I don't know if this is the right forum to ask this, and if it isn't I appologize; would you be able to direct me to the right place to ask this? I've currently got an apache/tomcat installation using mod_jk to communicate between the two. Everything works perfectly. The only issue I have is when I am redeploying my application in tomcat, or decide to stop tomcat altogether, is that I have no idea how to configure a proper error page to be displayed to the user. Right now, all I see is a OK The server encountered an internal error or misconfiguration and was unable to complete your request.. error page. I realize that this is probably more of an apache configuration question, but seeing that it relates to mod_jk and tomcat, I was hoping I could find people on this list who have experienced the same issue and figure out how to fix it. Ideally, I'd like to make my own custom page that says The Server is currently under maintenance or something along those lines. Does anyone have any ideas where I could find information to do that? I've searched google, but can't seem to find anything appropriate. Thanks, Eric - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Legal Risk of Using Tomcat
I hope no one thinks this thread is off topic There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? Thanks Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overriding the Webapp Display Name
Can the web-app displayName (from the web deployment descriptor) be overridden via any Tomcat configuration (ex: context.xml)?
Re: Connection closed by foreign host. Tomcat5 doesn't answer (Fedora Core 5, yum install)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Crowther wrote: From: David Iglesias Teixeira [mailto:[EMAIL PROTECTED] After a port-scan in both machines, I can see that test is listening on port 8080, but prod is not Is port 8080 listed? My guess is yes based on you being able to telnet to it locally, in which case this is a firewall issue, not a Tomcat issue. I'm not so sure. The telnet tests shown suggest that Tomcat will return an error for an invalid request (method='get') but that a legit request gets hung up on. The firewall still might be an issue from another machine, but local communication seems to work. GET / returns nothing? That's odd... not even a 500 Server Error. David, can you check your log files like catalina.out or others in the 'logs' directory? I wonder if whatever is supposed to be responding to requests for GET / is bombing and that's why the connection is closing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4Xa89CaO5/Lv0PARArvYAKCvrlN1bkEkjulDHlRUPjSQ1lziqgCcDJ6i UQB9lEW0aIB/ZiGsamVrgFQ= =Necq -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upload and download of images with Tomcat
I think it may be your choice of location that is causing you problems. Also would you not loose that content if you undeployed your app (depending on how it is deployed)? I do uploads and display the images without issue in my app. But my directory is outside the web app structure. WARNING this makes the app non portable as it uses a hard coded path to the files. If my memory serves me well, Tomcat deploys the app and then runs from a work directory. If the image files are in the app directory then the running app would not see them because it is running from the work directory and any path is referenced from it. I think. Someone tell me if I am wrong and I will crawl back under my rock. Doug - Original Message - From: Wojtek Stańczuk [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, September 07, 2007 3:34 AM Subject: upload and download of images with Tomcat Hello, I try to upload images for futher download (as in a image gallery) to a folder under web application dir. Everything goes fine except one thing: the uploaded images are not seen in the application till next deployment of the application (Tomcat does not see the images). Is it possible to make Tomcat see dynamically added static content? I know that one of the solution is using web server for serving static resources, but I would like to find a solution in Tomcat. Best regards, Wojtek Stanczuk - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23: cannot return to login page??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cun, shunhecun wrote: If a user is failed to login, he should be directed to the page specified in web.xml, i.e. form-error-page/loginError.jsp/form-error-page. And the page /loginError.jsp is an unprotected resource. Right. You didn't say that the user failed to login. You said that the user's rights didn't allow them to see that particular page. Authentication /was/ successful; authorization was not. If Tomcat does not kill the session for me in my case described in my first message, how can I do that? Tomcat will not kill the session for you; you will have to do it yourself. You don't want to worry about failed logins -- those will go back to the login page. What you want to worry about is unauthorized page requests /after/ login, which is what the 403 error is all about. Just direct your webapp to forward 403 errors to something like /logout.jsp that does session.invalidate(). I wouldn't do it this way, though. I'd present the user with an (unprotected) page that says you're not allowed to view this page. Click here if you want to logout and re-login (or something along those lines). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4XOw9CaO5/Lv0PARAuXLAKDEA5su6hVC8qOqGsP2+KRLY0lJsACglPle 7sU3UkhRRSJ2P8IAHM8NQQ0= =C6N6 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering in Tomcat
Hi , I've installed the Tomcat version 5.5 on two windows server and this is for CA's Clarity v8 application project and CA's Clarity supports Tomcat 5.5. I would like to be know that , how do i configure the Tomcat clustring using this application on these two servers. I've alreday installed Clarity application on these two servers and also installed tomcat admin pack on one server Kindly sugegst Regards Murali V This message and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this in error, you should not disseminate or Copy this email. Please notify the sender immediately and delete this email from your system. Please also note that any opinions presented in this email are solely those of the author and do not necessarily represent those of AXA Technology Services. Email transmission cannot be guaranteed to be secure, or error free as information could be intercepted, corrupted, lost, destroyed, late in arriving or incomplete as a result of the transmission process. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. Finally, the recipient should check this email and any attachments for viruses. AXA Technology Services accepts no liability for any damage caused by any virus transmitted by this email.
RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM
Dear Chuck, Sorry for the misunderstandings. I hope this clears things up: At First, tomcat was preinstalled as well as GNU JVM (fedora7 installation). Now I'm using the 'real one': (tomcat is reinstalled from tomcat.org) AND I installed a second VM: SUN JVM. 1st JVM: Tomcat gives the errormessage with JAVA_HOME='usr/java/jdk1.6.0_02' 2nd JVM: Tomcat works well with JAVA_HOME='usr/lib/jvm/java' Anyway, I need SUN JAVA, the GNU isn't appropriate. Otherwise there was no problem. I will try new clear installation and looking for rt.jar. Thanks for your help so far! With kind Regards, Marco -Oorspronkelijk bericht- Van: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 7 september 2007 16:48 Aan: Tomcat Users List Onderwerp: RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM From: Marco [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.23: Could not find jaas Java extension for this JVM Does anyone know how I get rid of the next errormessages: /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm What script are you running that produces those messages? Are you using a 3rd-party repackaged version of Tomcat? If so, please throw it away and download a real one. This message appears when I try to startup tomcat and is probably the reason for Tomcat not to startup. Your message is confusing, since later you say that Tomcat does startup (Tomcat succeeds to start). Which is it really? I have had more errorlines like: '/usr/bin/rebuild-jar-repository: error: Could not find jdni Java extension for this JVM' à those could be resolved by placing jdni.jar in the appropriate folder (/usr/java/jdk1.6.0_02/jre/lib/). I got jaar.jar from SUN, More confusion, probably due to not using a real Tomcat. Even so, if the message referred to jdni.jar, why did you get jaar.jar? (Or did you mean jaas.jar?) There is no jaas.jar needed for JVM 6 - it's built into rt.jar these days. For real Tomcats running on real JVMs, you don't need to download or install any additional jars. You should try starting over with a clean Tomcat installation. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM
From: Marco [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM (tomcat is reinstalled from tomcat.org) I hope you mean tomcat.apache.org, since tomcat.org appears to be a French sailing organization, specializing in catamarans. AND I installed a second VM: SUN JVM. You should make sure that you deinstall the GNU JVM to guarantee it won't muddle things up. Likewise, deinstall any repackaged versions of Tomcat that came with your platform. Otherwise there was no problem. It's statements like the above that keep me confused; are you having a problem or not? I will try new clear installation and looking for rt.jar. The rt.jar file is part of the standard JRE/JDK download, located in jre/lib, so you shouldn't need to look for 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Garbage Collection and Class unloading
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Garbage Collection and Class unloading I thought a lot of the talk on this list about PermGen was that it was filling up and never being cleaned-up. Maybe that was just folks legitimately keeping lots of data around for a long time. More likely to be accidentally than legitimately. As long as there are references to a Class object or instances of the class around, the Class object can't be removed. Loading a class into memory from bytes doesn't interact with the GC any differently than loading an array of bytes from any other file. Actually it does. It is true that every class eventually becomes a byte array, but that byte array is passed to ClassLoader.defineClass(), which registers it with GC. At the end of a full collection, the class registration list is examined for unreachable classes, which are then removed from the list and sent off for cleanup. Such cleanup includes getting rid of any JIT-processed methods in the code cache, among other internal JVM structures. On the next full GC, such java.lang.Class instances are no longer in the registration list and are simply discarded like any other unreachable object. ClassLoaders themselves don't have any magic in them. That's true, except for the native code behind the ClassLoader.defineClass() method (which is final, so can't be overridden by subclasses); all of this java.lang.Class manipulation occurs under the covers in the non-Java core of the JVM. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Irvine, Chuck R [EQ] wrote: I hope no one thinks this thread is off topic Actually, this is totally on-topic, and I'd love to see what some others have to say. See my response below. There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. Specifically, what are they fearing? I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? It sounds like what your legal folks are looking for is CYA coverage -- if something breaks spectacularly and loses confidential information or whatever, then they don't want to be liable. This should be simple case of risk awareness and mitigation. Insurance companies know all about this sort of thing. So do security companies, and companies that make commercial servers like BEA, etc. I would look into something like BEA, for instance, and ask what type of indemnification they offer. My guess is that the indemnification works /against/ you, rather than /for/ you: they're covering /their/ own asses, not yours. The bottom line is that everything can be solved with money. You can pay someone else to assume the risk. If you pay BEA, you get the app server for free (!). If you take Tomcat (for free), you'll have to pay someone else to take the risk away from you. They can do their own audit of Tomcat and decide how much they trust it not to be a problem, and how much it's gonna cost you for them to assume the risk. My guess is that /your/ software is more risky than Tomcat. ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4YWK9CaO5/Lv0PARAmJrAJ9N0AoY559zef6nOuVVc5Lk/eeQTgCfbx4d hS37len1PNQHqJhHrtxKgJc= =IT8t -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat usertransation
Hi All, I'm currently trying to create a transaction between a standalone application and a web service. By starting a usertransaction in the standalone app and bridging it to/with the web service. However I'm unable to get use a transaction in the web service. I took these steps: - published a transactional webservice with apache axis on tomcat 5.5 - added to /conf/server.xml Transaction name=UserTransaction factory= com.arjuna.mw.wst.UserTransacti onFactory / - added to /conf/context.xml ResourceLink name=UserTransaction global=UserTransaction type= com.arjuna.mw.wst.UserTransactionFactory/ - added the following lines to the code: InitialContext ctx = new InitialContext(); ut = (UserTransaction) ctx.lookup(java:comp/UserTransaction); which gives the javax.naming.NameNotFoundException: Name UserTransaction is not bound in this Context Am I missing some xml-statements somewhere? thanks in advance, Gerard
Re: Legal Risk of Using Tomcat
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Irvine, Chuck R [EQ] wrote: I hope no one thinks this thread is off topic Actually, this is totally on-topic, and I'd love to see what some others have to say. See my response below. There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. Specifically, what are they fearing? I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? It sounds like what your legal folks are looking for is CYA coverage -- if something breaks spectacularly and loses confidential information or whatever, then they don't want to be liable. My guess was different: that they were concerned about using software that might later be claimed to be covered by somebody else's patent, like M$ has been threatening with Linux. If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. This should be simple case of risk awareness and mitigation. Insurance companies know all about this sort of thing. So do security companies, and companies that make commercial servers like BEA, etc. I would look into something like BEA, for instance, and ask what type of indemnification they offer. My guess is that the indemnification works /against/ you, rather than /for/ you: they're covering /their/ own asses, not yours. The bottom line is that everything can be solved with money. You can pay someone else to assume the risk. If you pay BEA, you get the app server for free (!). If you take Tomcat (for free), you'll have to pay someone else to take the risk away from you. They can do their own audit of Tomcat and decide how much they trust it not to be a problem, and how much it's gonna cost you for them to assume the risk. My guess is that /your/ software is more risky than Tomcat. ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4YWK9CaO5/Lv0PARAmJrAJ9N0AoY559zef6nOuVVc5Lk/eeQTgCfbx4d hS37len1PNQHqJhHrtxKgJc= =IT8t -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection closed by foreign host. Tomcat5 doesn't answer (Fedora Core 5, yum install)
Hi all, I've been trying to setup a FC5 box with tomcat5. I followed a couple of tutorials around, and made it quite effortlessly with YUM in my test environment. When I tried to do the same in my production server, I can't seem to be able to make tomcat listen in the 8080 port. When connecting from the outside of the machine, I keep getting Firefox no puede establecer una conexión con el servidor en X.Y.Z.T:8080. (Something like: Firefox couldn't stablish a connection with the server XYZT:8080). IE also fails, so I'm afraid it's a server-side issue (that's why I'm posting here). After a port-scan in both machines, I can see that test is listening on port 8080, but prod is not, but I don't know if it's a matter of firewalls (SELinux disabled) or misconfiguration on my tomcat5 install. If I connect locally with telnet, have a look at what I get (the lines with are the ones that I wrote, the rest is server output) # telnet localhost 8080 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. get / htmlheadtitleApache Tomcat/5.5.15 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 501 - Method get is not defined in RFC 2068 and is not supported by the Servlet API /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b uMethod get is not defined in RFC 2068 and is not supported by the Servlet API /u/ppbdescription/b uThe server does not support the functionality needed to fulfill this request (Method get is not defined in RFC 2068 and is not supported by the Servlet API )./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.15/h3/body/htmlConnection closed by foreign host. And back to prompt. I googled a bit and noticed that get is not a cool command, so I went for GET... And well, tomcat5 then doesn't give an error, but closes connections inmediately :) # telnet localhost 8080 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. GET / Connection closed by foreign host. So, _apparently_ tomcat is listening and doing something, but it dies in some ways I don't understand. Nothing is logged to catalina.out, only when it starts/stops so I don't even know where to start to troubleshoot it :( Any previous_experiences / suggestions / docs / helps ?? Thanks!! smime.p7s Description: S/MIME Cryptographic Signature
Re: How to get Request from RequestFacade
2007/9/7, Bill Barker [EMAIL PROTECTED]: From his examples below, it looks like he wants access to the TC internals. yes, you're right For the OP's original problem, for obvious security reasons TC makes it very hard to access the internal TC objects behind the various Facades from a webapps code (e.g. a Filter). It should be pretty much impossible if you yes, I noticed it's quite hard. That's why I suspected that was not the best way to proceed. The Valve solution works quite fine. I was trying to switch to a Filter-based one since the license validation code is quite complex and I have to duplicate much of my webapp code into the server/lib folder. I'll try to redesign it better. Thanks -- TREMALNAIK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23: cannot return to login page??
Hi, If a user is failed to login, he should be directed to the page specified in web.xml, i.e. form-error-page/loginError.jsp/form-error-page. And the page /loginError.jsp is an unprotected resource. If Tomcat does not kill the session for me in my case described in my first message, how can I do that? Thanks, Cun -- View this message in context: http://www.nabble.com/Tomcat-5.5.23%3A-cannot-return-to-login-page---tf4393110.html#a12547181 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM
Dear Chuck, Of coarse tomcat.apache.org... Otherwise there was no problem -- I should have written: 'otherwise there wouldn't be a problem'. I hope I can get it work with your advise by now. Again, thanks for helping. Kind regards, Marco. -Oorspronkelijk bericht- Van: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 7 september 2007 18:48 Aan: Tomcat Users List Onderwerp: RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM From: Marco [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5.23: Could not find jaas Java extension for this JVM (tomcat is reinstalled from tomcat.org) I hope you mean tomcat.apache.org, since tomcat.org appears to be a French sailing organization, specializing in catamarans. AND I installed a second VM: SUN JVM. You should make sure that you deinstall the GNU JVM to guarantee it won't muddle things up. Likewise, deinstall any repackaged versions of Tomcat that came with your platform. Otherwise there was no problem. It's statements like the above that keep me confused; are you having a problem or not? I will try new clear installation and looking for rt.jar. The rt.jar file is part of the standard JRE/JDK download, located in jre/lib, so you shouldn't need to look for 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Legal Risk of Using Tomcat
My guess was different: that they were concerned about using software that might later be claimed to be covered by somebody else's patent, like M$ has been threatening with Linux. If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. You are right - I think this is the primary concern. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upcoming Conferences in Europe
Do you know some confereces about Apache Tomcat, J2EE and associated technologies in Europe? Thanks a lot
Re: Load Balancing Tomcat 5.0.X, hardware or software?
bajistaman wrote: Many Thanks for your comments, I have everything working now using a HW load balancer but the ssl is being managed by every node just because the guys from networks think that we need to upgrade the current HW Load Balancer to be able to support it and that is not going to happen soon. The caveat with that solution is that now you are doing TCP session load balancing, not HTTP load balancing. When the traffic flows in SSL through the LB, it prevents the LB to make load balancing decisions based on the HTTP protocol. And to do stickyness with TCP load balancing, you don't have much information except the SRC and DEST IP addresses to go by.(and the session itself, which is not relevant when it comes to HTTP since it is stateless) Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can war file be deleted?
once you delete the war file, the program will not work any more, it seems to me the war file has to be kept there, but I notice those examples, it does not war files but still working, what's the definite rule here? Mikolaj Rydzewski-2 wrote: Angelo Chen wrote: I put a war file into webapps and it got unpacked and accessible from the browser. can I delete the war file after that? I notice if I delete it, the unpacked directory will disappear in while? So? You still can delete this file ;-) -- Mikolaj Rydzewski [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/can-war-file-be-deleted--tf4401751.html#a12558156 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat memory issues
As far as I under stand I should NOT close the stream object as I didn't open it. That's my understanding too. When I said I was keeping connections open, I meant I was opening connections from the client and not closing them. Since I'm using comet servlets, the server keeps the connections open until the client disconnects. When I open many connections, I see classes in my heap similar to those you show. If you keep a reference to the Request object tucked away somewhere on the server inadvertently, the associated buffers won't go away and memory will continue to grow. Is it possible that you're keeping a reference to the Request or any of the streams somewhere? Is it possible that some of your servlets aren't returning and thus never closing their connections? What classes are holding references to these classes? - org.apache.catalina.connector.ResponseFacade (ACCA) - class[] (ACCB) - org.apache.catalina.connector.Request (ACCC) Peter On 9/7/07, Morten [EMAIL PROTECTED] wrote: Peter Warren [EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] Is it possible you're caching Request or Response objects somewhere and not releasing them? I just did a bunch of memory profiling and many of the classes you mention are the same classes I see when I open and don't close a bunch of connections to the server. My code in the bottom of the servlet is such: ServletOutputStream stream = _response.getOutputStream(); BufferedOutputStream bos = new BufferedOutputStream(stream); bos.write(bytes); stream.flush(); bos.close(); As far as I under stand I should NOT close the stream object as I didn't open it. Best regards, Morten - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integration with Apache
Thanks for the reply Chris. Should add that I'm coming at this not as the person who set it up, also configuring this is not my area of expertise (if you hadn't noticed!). within the httpd.conf and workers2.properties there are no references to JkMount, which i guess may be the issue, am i right in assuming that apache will be passing everything to tomcat? I've done some digging but i'm not all that clear on how or where JkMount should be fitted in to the config, can anyone give any pointers? cheers Ed On 9/6/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, Edd Dawson wrote: I have a server setup as follows: Apache [httpd] - mod_jk2 - tomcat Stop right there. Delete mod_jk2. Forget it ever existed (everyone else has). Install mod_jk. Okay, now go: There are a number of webapps served by tomcat: /ROOT - available on http://www.mydomainname.com/ /webapp2 -available on http://www.mydomainname.com/webapp2 /webapp3 - available on http://www.mydomainame.com/webapp3 Now this all works fine, but now I need to add a php forum site onto the server on the same domain name and have it served on http://www.mydomainname.com/forum Trouble is that I cannot for the life of me figure out how to configure this without moving my /ROOT webapp off the URL http://www.mydomainname.com/and into a subdirectory. Why? Just don't map /forum/*.php to mod_jk. What do your JkMount directives look like? Can anyone confirm whether what I want to do is at all possible, and if so give any pointers as to where i need to be looking to configure it? I have all kinds of things happening with Apache httpd - mod_jk - Tomcat. You can map anything you want. Static content served by Apache httpd while dynamic stuff comes from TC? Of course. Multiple TC instances within the same URL space? Done. Some TC, some PHP, some CGI? Why not? It's all easy. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4HWW9CaO5/Lv0PARAnvAAKCH7DLvm4JOWCMSqXyPvIf/PKUMjACgxC3A kHIVn0Uj2z+MEc0m8xDlnc8= =dTQG -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
Irvine, Chuck R [EQ] wrote: My guess was different: that they were concerned about using software that might later be claimed to be covered by somebody else's patent, like M$ has been threatening with Linux. If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. You are right - I think this is the primary concern. if that is the case, you can get a commercial bundle of Tomcat from companies like www.covalent.net (and there are others) that offer the CYA they are looking for. Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
Do your lawyers have the same reluctance about proprietary software? If not, why not? There have been more patent lawsuits against users of proprietary software than against users of open-source software (from what I've seen in the press). -- Len On 9/7/07, Irvine, Chuck R [EQ] [EMAIL PROTECTED] wrote: I hope no one thinks this thread is off topic There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? Thanks Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
A good resource would be: http://www.opensolutionsalliance.org/ There are lots of knowledgeable people for the various licensing models. You'll have to register, but all it takes is an email address to do so. After that, check out Community-forums and ask away. Thanks, J For the most part, AFAIK, Tomcat Irvine, Chuck R [EQ] wrote: I hope no one thinks this thread is off topic There are many in the company I work for that would like to leverage open source software in general and and Tomcat in particular. However, our legal staff resists the idea because of perceived legal risks. I know that there are companies who provide indemnification as part of their open source support products, but I wonder to what extent such indemnification is really necessary. Could those that have experience or knowledge in this area please comment? Thanks Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joshua J. Fielek Sr. Software Engineer Centric CRM 223 East City Hall Ave., Suite 212 Norfolk, VA 23510 Phone : (757) 627-3002x6656 Mobile : (757) 754-4462 Fax: (757) 627-8773 Email : [EMAIL PROTECTED] http://www.centriccrm.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
upload and download of images with Tomcat
Hello, I try to upload images for futher download (as in a image gallery) to a folder under web application dir. Everything goes fine except one thing: the uploaded images are not seen in the application till next deployment of the application (Tomcat does not see the images). Is it possible to make Tomcat see dynamically added static content? I know that one of the solution is using web server for serving static resources, but I would like to find a solution in Tomcat. Best regards, Wojtek Stanczuk - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Closing Hibernate's SessionFactory when undeploying (or when is afilter destroyed)
From: wild_oscar [mailto:[EMAIL PROTECTED] Subject: Closing Hibernate's SessionFactory when undeploying (or when is afilter destroyed) How can I call this method right before tomcat undeploys the application? Try implementing a ServletContextListener; see section 10 of the servlet spec for details. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to manage Apache error msgs when Tomcat is down?
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Eric B. wrote: I've currently got an apache/tomcat installation using mod_jk to communicate between the two. Everything works perfectly. The only issue I have is when I am redeploying my application in tomcat, or decide to stop tomcat altogether, is that I have no idea how to configure a proper error page to be displayed to the user. Did you notice that the error message you get has an HTTP status code associated with it? Apache httpd knows how to send pages other than the stock ones, like this: ErrorDocument 500 down.html - This covers TC not running, I think ErrorDocument 503 down.html - This covers app isn't ready yet Sorry - I guess I wasn't specific enough. The HTTP status code that I got from Apache was 200 hence the OK. I assumed that it was probably 200 since I was actually able to communicate with Apache itself, even though its request to tomcat was unavailable. Or unless I am missing something in my apache configuration to display the correct error page. If I check the headers sent using Fiddler, I get the following: HTTP/1.1 200 OK Date: Fri, 07 Sep 2007 18:04:51 GMT Server: Apache/2.0.52 (White Box) Content-Length: 501 Connection: close Content-Type: text/html; charset=iso-8859-1 However, it is definitely not OK b/c my tomcat server is down. Do I have something foobar'ed in my apache config? Or is it a problem in my mod_jk params? If it makes any difference, I am running mod_jk v1.2.10 w/ Apache 2.0.52. Thanks, Eric - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Legal Risk of Using Tomcat
At 01:19 PM 9/7/2007, you wrote: My guess was different: that they were concerned about using software that might later be claimed to be covered by somebody else's patent, like M$ has been threatening with Linux. If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. You are right - I think this is the primary concern. Yes, most likely the M$ vs. Linux and the whole SCO vs Linux and Novell deal. It is rather dicey. Tomcat on Windows would pretty much CYA. However, Tomcat on Linux is quite nice and IMHO, more secure (or rather secure-able!). More tunable as far as performance too! Cheers! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Closing Hibernate's SessionFactory when undeploying (or when is a filter destroyed)
I've implemented a struts 2 interceptor to create hibernate's SessionFactory and manage sessions. My session factory is wrapped in a static class: public static SessionFactory factory; static { try { Configuration cf = new Configuration(); factory = cf.configure().buildSessionFactory(); } catch (Throwable ex) { throw new ExceptionInInitializerError(ex); } } The problem is that every time I undeploy or redeploy my application, connections to the database persist because I don't call the sessionfactory.close() method. How can I call this method right before tomcat undeploys the application? -- View this message in context: http://www.nabble.com/Closing-Hibernate%27s-SessionFactory-when-undeploying-%28or-when-is-a-filter-destroyed%29-tf4402912.html#a12560350 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Legal Risk of Using Tomcat
-Original Message- From: Len Popp [mailto:[EMAIL PROTECTED] Sent: Friday, September 07, 2007 12:57 PM To: Tomcat Users List Subject: Re: Legal Risk of Using Tomcat Do your lawyers have the same reluctance about proprietary software? If not, why not? There have been more patent lawsuits against users of proprietary software than against users of open-source software (from what I've seen in the press). Good question. Their concern is with regard to both commercial and open source software. However, they are especially concerned with open source since they believe there is less control over content than is present in commercial software. Also, since source code is readily available for open source applications, it's easier to determine whether it infringes patents, etc. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David kerber wrote: If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. Well, it started out as Apache JServ, which came from Sun's original reference implementation. At this point, I'm pretty sure there's neither JServ code nor Sun code left in Tomcat. Besides, if the application is written properly, you can always switch vendors relatively easily, right? Tomcat is one of the easiest vendors to switch away /from/ since there's not much in the way of crazy add-on services. Just imagine trying to leave BEA or Oracle when they've got their classes all up in your business. :( - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4ZWz9CaO5/Lv0PARAgyaAJ0e9ZSTJ7dLbjYzgrcIcT0uDl5DxwCfYuQ9 DYBPZuw1NgCUdykmEEw/zCY= =GUxB -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Overriding the Webapp Display Name
From: Shelley [mailto:[EMAIL PROTECTED] Subject: Overriding the Webapp Display Name Can the web-app displayName (from the web deployment descriptor) be overridden via any Tomcat configuration (ex: context.xml)? I made a cursory scan of the relevant Tomcat 6 code, and didn't find any means of overriding what's in the web.xml file via configuration. The org.apache.catalina.core.StandardContext class does provide a setDisplayName() method, so you might be able to do it with a valve or listener at run time. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Legal Risk of Using Tomcat
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David kerber wrote: If my guess is correct, then I seriously doubt there's anything to worry about there, because Tomcat has been written as open source from the beginning, and nobody has ever claimed patent rights over it. Well, it started out as Apache JServ, which came from Sun's original reference implementation. At this point, I'm pretty sure there's neither JServ code nor Sun code left in Tomcat. Besides, if the application is written properly, you can always switch vendors relatively easily, right? Tomcat is one of the easiest vendors to switch away /from/ since there's not much in the way of crazy add-on Good, point. services. Just imagine trying to leave BEA or Oracle when they've got their classes all up in your business. :( - -chris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Page problems
I am trying to capture certain errors and display a friendly screen. I put the following in my web.xml error-page error-code404/error-code location/error.html/location /error-page I noticed that I no longer get the standard Tomcat message on 404's, but I get a 404 error in the browser. I thought this was because maybe it could not find the error.html, but no matter where I put it I get the same results. Where would it normally look for that file? I have searched the forum and google, but can not find my answer. Any help would be appreciated. Thanks in advance Rob -- View this message in context: http://www.nabble.com/Error-Page-problems-tf4403245.html#a12561526 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Page problems
From: ryoung5367 [mailto:[EMAIL PROTECTED] Subject: Error Page problems I noticed that I no longer get the standard Tomcat message on 404's, but I get a 404 error in the browser. Are you using Internet Explorer? If so, it won't display short error pages for known errors. Try the same page with Firefox and see if it works. If it does, then either turn off Show friendly [sic] HTTP error messages in IE's Tools - Options - Advanced tab, or make your custom error page longer by adding spaces, dummy paragraphs, or ASCII art. (Sorry, I don't remember the threshold size.) - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Concurrency with HttpSession
I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it - When the web container replicates an HttpSession while a user's request modifies it - When multiple quick, successive requests from the same user access the same HttpSession Could somebody explain how Tomcat deals with the first two, and what steps web application developers need to take to avoid concurrency problems with all three cases above? Is it guaranteed that the passivated/replicated object is always a consistent view of the HttpSession? Thanks. -- View this message in context: http://www.nabble.com/Concurrency-with-HttpSession-tf4403264.html#a12561600 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concurrency with HttpSession
Tomcat wraps HttpSession objects underlying maps using java.util.Collections.synchronizedMap. There was a previous issue in a version of Tomcat 5.0.x something in which this was changed, and it raised a stink, so it was fixed again. It had to be put back to use synchronized as the concurrency issues caused such headaches the developer had no way to manage this from an application perspective. I can't imagine Tomcat would have calls which are not synchronized to pull a session back from storage either. The user certainly would not have any control over such a thing as JSP session access can not be wrapped easily by developers using normal synchronization techniques. Are you having some specific issue? Wade --- lightbulb432 [EMAIL PROTECTED] wrote: I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it - When the web container replicates an HttpSession while a user's request modifies it - When multiple quick, successive requests from the same user access the same HttpSession Could somebody explain how Tomcat deals with the first two, and what steps web application developers need to take to avoid concurrency problems with all three cases above? Is it guaranteed that the passivated/replicated object is always a consistent view of the HttpSession? Thanks. -- View this message in context: http://www.nabble.com/Concurrency-with-HttpSession-tf4403264.html#a12561600 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concurrency with HttpSession
I suppose in a situation where a server did not handle concurrency for you in the lowest possible level the version of JSTL and EL and such things which it used could handle concurrency by wrapping such access, but this would then mean you could not access the session in regular coding practices because you would not have access to the same locks the JSP support code was using, so you as a developer would have to choose between some pure JSP versus servlet type application instead of mixing the two, and even then I don't see how you could truly use JSP as you have to access your logic and the session one way or another at some point...that or make your own session, so I don't think with the current specifications it would be possible for a server to be reliable for any real usage if it did not handle the concurrency issues itself at the lowest possible levels. Wade --- Wade Chandler [EMAIL PROTECTED] wrote: Tomcat wraps HttpSession objects underlying maps using java.util.Collections.synchronizedMap. There was a previous issue in a version of Tomcat 5.0.x something in which this was changed, and it raised a stink, so it was fixed again. It had to be put back to use synchronized as the concurrency issues caused such headaches the developer had no way to manage this from an application perspective. I can't imagine Tomcat would have calls which are not synchronized to pull a session back from storage either. The user certainly would not have any control over such a thing as JSP session access can not be wrapped easily by developers using normal synchronization techniques. Are you having some specific issue? Wade --- lightbulb432 [EMAIL PROTECTED] wrote: I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it - When the web container replicates an HttpSession while a user's request modifies it - When multiple quick, successive requests from the same user access the same HttpSession Could somebody explain how Tomcat deals with the first two, and what steps web application developers need to take to avoid concurrency problems with all three cases above? Is it guaranteed that the passivated/replicated object is always a consistent view of the HttpSession? Thanks. -- View this message in context: http://www.nabble.com/Concurrency-with-HttpSession-tf4403264.html#a12561600 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Statistics command is broken in TC6?
I'm in the process of upgrading a server from TC5.5 to TC6. I've used the following command in the past to check on sessions: http://localhost/manager/sessions?path=/ This worked in 5.5. According to the docs for TC6, it should still work: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Session%20Statistics However, when I issue the command in TC6, I get the following error: FAIL - Unknown command /sessions Is this a bug? BTW, I'm using TC 6.0.14
Re: Concurrency with HttpSession
On 9/7/07, lightbulb432 [EMAIL PROTECTED] wrote: I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it strange use case. why should that happen? - When the web container replicates an HttpSession while a user's request modifies it Hmm.. Is it a real issue for you? - When multiple quick, successive requests from the same user access the same HttpSession No problem here, at least not with 2.5 compliant server. regards Leon Could somebody explain how Tomcat deals with the first two, and what steps web application developers need to take to avoid concurrency problems with all three cases above? Is it guaranteed that the passivated/replicated object is always a consistent view of the HttpSession? Thanks. -- View this message in context: http://www.nabble.com/Concurrency-with-HttpSession-tf4403264.html#a12561600 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.0-style logging in 6.0.
I really liked the localhost_log from Tomcat 5.0 and before that contained all the log messages I cared about for the current run of Tomcat. It was very useful in development mode to have only the latest messages in there. Is there an easy way to configure 6.0 to log the same things to such a file? Thanks, -- Scott - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Concurrency with HttpSession
--- Leon Rosenberg [EMAIL PROTECTED] wrote: On 9/7/07, lightbulb432 [EMAIL PROTECTED] wrote: I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it strange use case. why should that happen? Yes, to me that would be a bug. I mean, if the server were to be in the act of caching a dormant session out to disk and out of memory when a request came in there should be a lock in place, and then once it finished doing so, the lock would be released, the session would be brought back into memory, and all should be well. If not, then it simply would not work and would be bad coding...that is when you file a bug. - When the web container replicates an HttpSession while a user's request modifies it Hmm.. Is it a real issue for you? Again, if it were doing so, same as the above issue. If the server or infrastructure for clustering were doing anything related to copying out to keep multiple instances up to date I would expect concurrency to be controlled at the server and cluster level, and if not then it would simply be a bug. I don't see how it could be anything else unless the clustering support allowed you, in configurable instances, to tell it not to be so rigid and allow access to these things even when they may not yet be up to date. Then in this case you would have to know your logic well enough to know if it would be an issue or not, and would hope being rigid would be the default. - When multiple quick, successive requests from the same user access the same HttpSession No problem here, at least not with 2.5 compliant server. My other reply was specifically about this. Wade - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
slow shutdown with jsvc
Hi all, I am using jsvc on solaris to run tomcat on port 80 using a non root user. Startup and running seems to be ok. I use the jsvc -stop -pidfile to initiate a shutdown. this command waits until the shutdown is complete. But in my case it lasts very long until jsvc is actually doing the shutdown: Does anyone know what could be the problem ? In the mailing list I found the the command to shutdown could/should be kill -TERM `cat $PIDFILE`. this seems to be faster but does not block until shutdown is complete Thanks Charly following the -debug output shell: ... 07/09/2007 23:07:47 3369 jsvc debug: | Class Arguments: 0 07/09/2007 23:07:47 3369 jsvc debug: +--- 07/09/2007 23:07:47 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:07:47 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:07:53 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:07:53 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:07:59 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:07:59 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:05 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:05 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:12 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:12 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:18 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:18 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:24 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:24 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:30 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:30 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:36 3369 jsvc debug: get_pidf: 3 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid 07/09/2007 23:08:36 3369 jsvc debug: get_pidf: pid 3068 07/09/2007 23:08:42 3369 jsvc debug: get_pidf: -1 in /usr/local/tomcat5/jakarta-tomcat-5.0.30/pid/jsvc.pid catalina.out: Sep 7, 2007 11:08:38 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 . Sep 7, 2007 11:08:40 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-9443 catalina.err: 07/09/2007 23:07:47 3068 jsvc debug: Caught SIGTERM: Scheduling a shutdown 07/09/2007 23:08:38 3068 jsvc debug: remove_tmp_file: /tmp/3068.jsvc_up 07/09/2007 23:08:38 3068 jsvc debug: Shutdown or reload requested: exiting 07/09/2007 23:08:41 3068 jsvc debug: Daemon stopped successfully 07/09/2007 23:08:41 3068 jsvc debug: Daemon destroyed successfully 07/09/2007 23:08:41 3068 jsvc debug: Calling System.exit(0) 07/09/2007 23:08:41 3067 jsvc debug: Service shut down
Re: Concurrency with HttpSession
lightbulb432 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm reading some book concurrency books that talk about potential thread safety issues with HttpSession. Specific cases follow: - When the web container passivates an HttpSession while a user's request modifies it Should be rare, but I don't see anything in the TC code to prevent it from happening on edge cases. If someone can construct an example, I'd be more than happy to look into it. - When the web container replicates an HttpSession while a user's request modifies it I believe that with pessimistic locking, this shouldn't happen. But I'm not an expert on the TC replication code :). - When multiple quick, successive requests from the same user access the same HttpSession Could somebody explain how Tomcat deals with the first two, and what steps web application developers need to take to avoid concurrency problems with all three cases above? Is it guaranteed that the passivated/replicated object is always a consistent view of the HttpSession? Thanks. -- View this message in context: http://www.nabble.com/Concurrency-with-HttpSession-tf4403264.html#a12561600 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat usertransation
Gerard Biemolt wrote: Hi All, I'm currently trying to create a transaction between a standalone application and a web service. By starting a usertransaction in the standalone app and bridging it to/with the web service. However I'm unable to get use a transaction in the web service. I took these steps: - published a transactional webservice with apache axis on tomcat 5.5 - added to /conf/server.xml Transaction name=UserTransaction factory= com.arjuna.mw.wst.UserTransacti onFactory / factory attribute has added spaces to it shouldn't you define Resource not Transaction - added to /conf/context.xml ResourceLink name=UserTransaction global=UserTransaction type= com.arjuna.mw.wst.UserTransactionFactory/ - added the following lines to the code: InitialContext ctx = new InitialContext(); ut = (UserTransaction) ctx.lookup(java:comp/UserTransaction); which gives the javax.naming.NameNotFoundException: Name UserTransaction is java:comp/env/UserTransaction would be the correct place, Filip not bound in this Context Am I missing some xml-statements somewhere? thanks in advance, Gerard No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.8/993 - Release Date: 9/6/2007 3:18 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]