Updating environmental/application variable
Hi.. Sub: Updating environmental/application variable without restarting servlet engine i want to change my webapp environment data/variable (like session time out or maxInactiveInterval ) dynamically, means without restarting the web server i want to update the envirinment settings and servlet init parameter in web.xml. Is there any way to dynamically edit web.xml without restarting servlet engine. Or is ther any other best way to achieve this other than using web.xml, like setting some application scope variable for perticular webapp ? thanks in advance -MVB - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Set System properties at TC startup
Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] best hardware config for Tomcat
Hi all, If it is not the place to ask this question forgive me Please any one tell me a place to ask this question. I want to know the most suitable hardware configuration for Tomcat. We have to run both Tomcat and Oracle 8i on it. It is business( intranet ) application with about 10 users accessing at starting but planning to take it to 60 users in future. Then we can increase the RAM to accommodate new users. I assume by increasing RAM we Tomcat can service more users. Am I right ? I am not an admin or hardware expert. We plan to buy an assembled system. We can afford only Intel based system. I have several questions. Do Tomcat need the processing power of dual processor PIV or single Xeon processor ?. What kind of memory shall I use SDRAM or DDR ? Do Tomcat need large amount of memory or high speed memory ?.We plan to use a single hard disk. What type of hard disk is best for this configuration ?. SCSI or IDE ? When I lloked at the Intel site I have seen different categories like server,mainstream ,work station, performance etc. Remember I can't recommend any latest high cost technology. At present three developers are using a single Pentium 4 based system with 512 MB of SDRAM with Oracle and Tomcat running. It runs fine in it. We dont have conducted any stress test on it. We dont know to use JMeter or something else. I have to give the config details within 2 days. Any comments will be apprecited. Regars Antony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with binary HTTP 1.0 POST
I am writing a very simple HTTP client for Symbian Series 60 in an effort to upload an image to my catalina tomcat server. I am trying to avoid using HTTP 1.1 as HTTP 1.0 is less complex and therefore my HTTP response parser on the Symbian side can be simplier. I am also trying to avoid BASE64 encoding the data in an effort to conserve the limited wireless bandwidth available to me. When I run both sides in a graphical debugger I notice the servlet dies during the while loop. I figure I am probably creating a bad HTTP POST request, but I'm not sure. Any ideas? I had no problems receiving all the content when I played with the request body by converting it to a few lines of text. (I don't remember if my response code was a happy one though.) Even now I get a partial image in the SomePhoto.jpg image on the server. Just having someone confirm that my HTTP request is correct will help me as I will then know to look elsewhere. A good example of a similar HTTP POST request would be nice too. The HTTP 1.0 spec (RFC 1945) can be found at: http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html The HTTP request coming from Symbian looks as follows: POST /ImageHandler/HandleImage HTTP/1.0 Content-Type: image/jpeg User-Agent: BitmapSender/0.10 Accept-Language: en-US Content-Length: 10489 this is 10489 bytes of binary data here.. .. The simple servlet installed into tomcat is as follows: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int contentLength = request.getContentLength(); InputStream inStream = request.getInputStream(); FileOutputStream fileOutStream = new FileOutputStream(SomePhoto.jpg); byte[] inData = new byte[100]; int totalBytesRead = 0; while(totalBytesRead contentLength) //--the evil servlet crash presents itself within this while loop after making a good number of loops { //I should probably mention that I used to just loop until inStream.read(inData) stopped returning data. int bytesRead = inStream.read(inData);//I got very similar behavior in that case too. fileOutStream.write(inData, 0, bytesRead); totalBytesRead += bytesRead; } inStream.close(); fileOutStream.close(); response.setContentType(text/plain); PrintWriter writer = response.getWriter(); writer.println(http://wap.yahoo.com); } Thank you for your time and effort. Sincerely, James Carpenter Email: [EMAIL PROTECTED] AOL IM: nawkboyrules - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with binary HTTP 1.0 POST
I am writing a very simple HTTP client for Symbian Series 60 in an effort to upload an image to my catalina tomcat server. I am trying to avoid using HTTP 1.1 as HTTP 1.0 is less complex and therefore my HTTP response parser on the Symbian side can be simplier. I am also trying to avoid BASE64 encoding the data in an effort to conserve the limited wireless bandwidth available to me. When I run both sides in a graphical debugger I notice the servlet dies during the while loop. I figure I am probably creating a bad HTTP POST request, but I'm not sure. Any ideas? I had no problems receiving all the content when I played with the request body by converting it to a few lines of text. (I don't remember if my response code was a happy one though.) Even now I get a partial image in the SomePhoto.jpg image on the server. Just having someone confirm that my HTTP request is correct will help me as I will then know to look elsewhere. A good example of a similar HTTP POST request would be nice too. The HTTP 1.0 spec (RFC 1945) can be found at: http://ftp.ics.uci.edu/pub/ietf/http/rfc1945.html The HTTP request coming from Symbian looks as follows: POST /ImageHandler/HandleImage HTTP/1.0 Content-Type: image/jpeg User-Agent: BitmapSender/0.10 Accept-Language: en-US Content-Length: 10489 this is 10489 bytes of binary data here.. .. The doPost method of the simple servlet installed into tomcat is as follows: protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int contentLength = request.getContentLength(); InputStream inStream = request.getInputStream(); FileOutputStream fileOutStream = new FileOutputStream(SomePhoto.jpg); byte[] inData = new byte[100]; int totalBytesRead = 0; while(totalBytesRead contentLength) //--the evil servlet crash presents itself within this while loop after making a good number of loops { //I should probably mention that I used to just loop until inStream.read(inData) stopped returning data. int bytesRead = inStream.read(inData);//I got very similar behavior in that case too. fileOutStream.write(inData, 0, bytesRead); totalBytesRead += bytesRead; } inStream.close(); fileOutStream.close(); response.setContentType(text/plain); PrintWriter writer = response.getWriter(); writer.println(http://wap.yahoo.com); } --- Thank you for your time and effort. Sincerely, James Carpenter Email: [EMAIL PROTECTED] AOL IM: nawkboyrules
Does Tomcat is OK?
Hello All, We need to develop a data lookup application. The maximum concurrent users number could reach 150. That means there will be 150 users access the application and fetch data from backgroud database at the same time. The data that each user get only has 5k. We donot use session to keep this data, but directly display to user. Now the solution that we use is Window 2000 Server + Tomcat 4.2.24+JDK1.4.1. Could you please give us some suggestion about if the Tomcat solution can be used to develop the application. Thanks a lot. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] cc org Subject Re: Set System properties at TC 19.06.2003 09:45 startup Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Yoav, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? MTiA -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:29 PM To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting a reply like this.
I may be wrong but... This list knows nothing (as such) about [EMAIL PROTECTED] Here's what i believe is happening: 1) You post to the list. 2) List delivers said post to all subscribers. One subscriber is, say, [EMAIL PROTECTED] 3) The Mail Daemon/Post Master at logicaonline.com rejects the post because the From address domain is hotmail.com and sends a rejection response to the From address (you). [EMAIL PROTECTED] is oblivious The list is probably noting that mails to [EMAIL PROTECTED] fail so that account may die automatically after a while. As John Turner noted earlier, it's a miscofiguration of the anti-spam filter at logicaonline. Blocking [EMAIL PROTECTED] would have no effect as no mails are directly sent to it. Jon anto paul wrote: Then why not the Tomcat list admin block the [EMAIL PROTECTED] e-mail id. ? - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:17 PM Subject: RE: getting a reply like this. Anto, When you post to this list, the mail gets distributed to various subscribers, some of whom are behind companies anti-spam filters that range from crap to fuxxing useless. These antispam filters all seem to be poorly written and poorly configured, so that they allow in most spam but reject most legitimate mail. When they decide that your message is spam (eg you wrote something like thread xxx has terminated), they send you a message, that they somehow think doesn't constitute spam, back to you to inform you that you are the lowest form of low-life on the planet, even though you may have been actively trying to help one of their employees for free... In fact, these anti-spam filters send me more unwanted mail than do spammers. Rest assured that the annoying message is coming from individual recipients of the list, and not the list itself. Most subscribers will have received the message gracefully and not questioned your legitimacy to exist :-) All the best, Andy -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:01 To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getting a reply like this.
Jon, I agree with what you say, except that the list probably thinks the message send succeeded. The message isn't bounced back to the list - the spam warning goes back to the original sender contained in the From header. The spam warning software is ignoring the Reply-To header. Therefore the list may be oblivious to the problems, and the person behind the firewall may think the list is broken because his posts and replies don't make it through. Andy -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 09:52 To: Tomcat Users List Subject: Re: getting a reply like this. I may be wrong but... This list knows nothing (as such) about [EMAIL PROTECTED] Here's what i believe is happening: 1) You post to the list. 2) List delivers said post to all subscribers. One subscriber is, say, [EMAIL PROTECTED] 3) The Mail Daemon/Post Master at logicaonline.com rejects the post because the From address domain is hotmail.com and sends a rejection response to the From address (you). [EMAIL PROTECTED] is oblivious The list is probably noting that mails to [EMAIL PROTECTED] fail so that account may die automatically after a while. As John Turner noted earlier, it's a miscofiguration of the anti-spam filter at logicaonline. Blocking [EMAIL PROTECTED] would have no effect as no mails are directly sent to it. Jon anto paul wrote: Then why not the Tomcat list admin block the [EMAIL PROTECTED] e-mail id. ? - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:17 PM Subject: RE: getting a reply like this. Anto, When you post to this list, the mail gets distributed to various subscribers, some of whom are behind companies anti-spam filters that range from crap to fuxxing useless. These antispam filters all seem to be poorly written and poorly configured, so that they allow in most spam but reject most legitimate mail. When they decide that your message is spam (eg you wrote something like thread xxx has terminated), they send you a message, that they somehow think doesn't constitute spam, back to you to inform you that you are the lowest form of low-life on the planet, even though you may have been actively trying to help one of their employees for free... In fact, these anti-spam filters send me more unwanted mail than do spammers. Rest assured that the annoying message is coming from individual recipients of the list, and not the list itself. Most subscribers will have received the message gracefully and not questioned your legitimacy to exist :-) All the best, Andy -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:01 To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat is OK?
Hi, Performance of such application is more or less based on how it's implemented, and the hardware it runs on. Tomcats performance is quite good in comparison with other servlet/jsp containers. It's also reliable, so I cant see a reason for you not to use it. If you will have 150 users all banging on the application at the same second you might have to increase maxProcessors attribute in server.xml to handle at least 150 concurrent requests with 150 threads, but usually 150 users is not much. Hope it helps -reynir -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: 19. júní 2003 08:28 To: [EMAIL PROTECTED] Subject: Does Tomcat is OK? Hello All, We need to develop a data lookup application. The maximum concurrent users number could reach 150. That means there will be 150 users access the application and fetch data from backgroud database at the same time. The data that each user get only has 5k. We donot use session to keep this data, but directly display to user. Now the solution that we use is Window 2000 Server + Tomcat 4.2.24+JDK1.4.1. Could you please give us some suggestion about if the Tomcat solution can be used to develop the application. Thanks a lot. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat is OK?
Hi Reynir, I'm currently in the process of load testing my application. How do you think I should do it? I'm currently using OpenSTA. Best regards, Wayne Chang Pacific Northwest Software Mobile: (978) 869-3446 Email: [EMAIL PROTECTED] -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 6:27 PM To: Tomcat Users List Subject: RE: Does Tomcat is OK? Hi, Performance of such application is more or less based on how it's implemented, and the hardware it runs on. Tomcats performance is quite good in comparison with other servlet/jsp containers. It's also reliable, so I cant see a reason for you not to use it. If you will have 150 users all banging on the application at the same second you might have to increase maxProcessors attribute in server.xml to handle at least 150 concurrent requests with 150 threads, but usually 150 users is not much. Hope it helps -reynir -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: 19. júní 2003 08:28 To: [EMAIL PROTECTED] Subject: Does Tomcat is OK? Hello All, We need to develop a data lookup application. The maximum concurrent users number could reach 150. That means there will be 150 users access the application and fetch data from backgroud database at the same time. The data that each user get only has 5k. We donot use session to keep this data, but directly display to user. Now the solution that we use is Window 2000 Server + Tomcat 4.2.24+JDK1.4.1. Could you please give us some suggestion about if the Tomcat solution can be used to develop the application. Thanks a lot. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updating environmental/application variable
You can edit web.xml. Then stop and start the webapp via the manager application. For server.xml based values - this can be done via the admin app. (In tomcat5 - this can also be easily done with jmx) -Tim manjunath wrote: Hi.. Sub: Updating environmental/application variable without restarting servlet engine i want to change my webapp environment data/variable (like session time out or maxInactiveInterval ) dynamically, means without restarting the web server i want to update the envirinment settings and servlet init parameter in web.xml. Is there any way to dynamically edit web.xml without restarting servlet engine. Or is ther any other best way to achieve this other than using web.xml, like setting some application scope variable for perticular webapp ? thanks in advance -MVB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with binary HTTP 1.0 POST
read() may also return 0 or -1. -1 for end of file. Also the implementation of read is done that subsequent reads also return -1. Also make sure your posting byte calculation is correct. Problem code: int bytesRead = inStream.read(inData); fileOutStream.write(inData, 0, bytesRead); totalBytesRead += bytesRead; Alternative: ... int contentLength = request.getContentLength(); InputStream inStream = request.getInputStream(); FileOutputStream fileOutStream = new FileOutputStream(SomePhoto.jpg); byte[] inData = new byte[100]; int totalBytesRead = 0; int bytesRead = inStream.read(inData); while(bytesRead=0 totalBytesReadcontentLength) { fileOutStream.write(inData, 0, bytesRead); totalBytesRead += bytesRead; bytesRead = inStream.read(inData); } if (totalBytesReadcontentLength) { log(I didn't get enough data!); } inStream.close(); fileOutStream.close(); ... History detail of original message can be found at: http://marc.theaimsgroup.com/?l=tomcat-userm=105600834631106w=2 -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
juddi and axis jars clashing in tomcat
hi, i tried adding juddi and axis wars to tomcat. juddi is used for UDDI and axis is used for SOAP. juddi uses axis.jar which is placed in the WEB-INF/lib dir of the juddi war. when tomcat starts we got some error loading juddi. if we removed axis war then everything worked fine. after some investigation we found out that juddi was using the axis jar in the axis war WEB-INF which happens to be a newer version. what could be causing this. both were supposed to use the axis jar in their WEB-INF/lib dir. thanks, nishant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 Bill Barker [EMAIL PROTECTED] .com To Sent by: news [EMAIL PROTECTED] [EMAIL PROTECTED] cc org Subject Re: Set System properties at TC 19.06.2003 09:45 startup Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Assuming that you are using TC 4.x (TC 3.3 has a different way of doing this), then you create a file called setenv.(bat|sh) (of course, bat for Windows, sh for *nix). In this file you set the environment variable CATALINA_OPTS to define the system properties that you need. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi list, I have several web applications running. All of them have some properties equal. They are also important in order to the web applications working appropriatly. Is there a way at TC startup time to set these properties (just Strings) and in case the properties are not found to let TC immediately crash. I am not really an expert in this and there may be a totally different way how to do this. Regards, Christian Schuster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where does Tyrex fit in?
I might be clutching at straws here... Referring to an earlier mail of mine reporting a problem in setting up datasource (cannot configure BasicDataSource 'null', or something like that), I read somewhere in a posting that I should be sure to have the tyrex.jar in my server/lib or common/lib. It also said it should be standard as of 4.0 and with the Tomcat distribution, but I cannot find this jar anywhere in my Tomcat installation (4.1.24). What is it and what is it used for? Is it indeed required, or was I put on a wild-goose chase? I wanted to check out the tyrex site, but the exolab-http://tyrex.exolab.org/ site (which is the link from the Tomcat javadocs) results in an error. Thanks Riaan __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Precompiling JSPs
Here's my problem with JspC task: does not factor in class or taglib dependencies, or jsp:include references. Quote from the page mentioned below!! I need these things factored in or else you cannot run javac on these *.java files. Thanks, Andoni. - Original Message - From: Robert Priest [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:51 PM Subject: RE: Precompiling JSPs You should read up on the JspC task: http://ant.apache.org/manual/OptionalTasks/jspc.html The JspC task will compile your jsp file to a java servlet (.java) file. Then you can run javac/ to get your class files. You will need to download the jasper-compiler.jar and jasper-runtime.jar files. I currently do this in ant: Here is what my project for compiling my jsps looks like: project name=PW_JSPS default=build basedir=. target name=build property name=JSP_ROOT value=${WEB_MAIN}/src/java/jsp/ property name=JSP2JAVA_DIR value=${WEB_OUT}/jsp2java/ mkdir dir=${JSP2JAVA_DIR}/ echo message=*** / echo message=Building\Compiling JSP files: / echo message=*** / jspc srcdir=${JSP_ROOT} destdir=${JSP2JAVA_DIR} uriroot=${JSP_ROOT} package=com.myproj.web.jsp verbose=9 webinc=${JSP2JAVA_DIR}/generated_webxml_snippet.xml include name=**/*.jsp / classpath id=jsp_classpath pathelement path=${env.CLASSPATH}/ path refid=classpath/ pathelement location=${TOMCAT_SOURCE}common/lib/jasper-compiler.jar/ pathelement location=${TOMCAT_SOURCE}common/lib/jasper-runtime.jar/ /classpath /jspc javac srcdir=${JSP2JAVA_DIR} destdir=${WEB_OUT} includes=**/*.java listfiles=yes debug=${turn_on_debug} classpathref=jsp_classpath / /target /project -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:37 AM To: Tomcat Users List Subject: RE: Precompiling JSPs Andoni, I do this in Sun One Studio, where I do all my Java development. You can compile JSPs just as you can compile java source. Andy -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:25 To: Tomcat Users List Subject: Precompiling JSPs Hello, I have a build.cmd file that I have had and modified for every project I've done for years. I should probably go learn ANT or some other build technique but for now I want to do this the command line way. I'm not even sure if ANT will do what I want. I want to have my .jsp files made into .java files (easy) then compiled into .class files (hard) before starting my Tomcat. That way I can see any syntax errors in my .jsp files. If I do this at the moment I get a load of errors where one JSP which is included in another uses variables which are only declared in the major one. Is there a way to compile the .java files the way Tomcat does (which takes account of included .jsp's)? Does ANT create .class files? Thanks in advance. Andoni. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting a reply like this.
Because there is no admin monitoring the list...it would be a full-time job. Do you want to pay their salary? The list is automated. John On Thu, 19 Jun 2003 10:25:27 +0530, anto paul [EMAIL PROTECTED] wrote: Then why not the Tomcat list admin block the [EMAIL PROTECTED] e- mail id. ? - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:17 PM Subject: RE: getting a reply like this. Anto, When you post to this list, the mail gets distributed to various subscribers, some of whom are behind companies anti-spam filters that range from crap to fuxxing useless. These antispam filters all seem to be poorly written and poorly configured, so that they allow in most spam but reject most legitimate mail. When they decide that your message is spam (eg you wrote something like thread xxx has terminated), they send you a message, that they somehow think doesn't constitute spam, back to you to inform you that you are the lowest form of low-life on the planet, even though you may have been actively trying to help one of their employees for free... In fact, these anti-spam filters send me more unwanted mail than do spammers. Rest assured that the annoying message is coming from individual recipients of the list, and not the list itself. Most subscribers will have received the message gracefully and not questioned your legitimacy to exist :-) All the best, Andy -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:01 To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting a reply like this.
There is no admin on the list. The list is automated. How would such an admin be compensated for their time? This is the open source world, people...things are done for free, voluntarily, but you can't expect someone to devote their day to making sure every last email message is accounted for, and every subscriber on the list behaves. All you have to do is set a filter on YOUR end to delete logicaonline.com mail. Problem solved. Sheesh. John On Wed, 18 Jun 2003 22:21:51 -0700 (PDT), Bikash Paul [EMAIL PROTECTED] wrote: Hi all friends, Iam also getting that mail whenever i post any query to this mailing list which anto got.If that is the case which Andy drescribed in his reply then Tomcat Admin should block that [EMAIL PROTECTED] email id. Regards Bikash --- anto paul [EMAIL PROTECTED] wrote: Then why not the Tomcat list admin block the [EMAIL PROTECTED] e-mail id. ? - Original Message - From: Andy Eastham [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:17 PM Subject: RE: getting a reply like this. Anto, When you post to this list, the mail gets distributed to various subscribers, some of whom are behind companies anti-spam filters that range from crap to fuxxing useless. These antispam filters all seem to be poorly written and poorly configured, so that they allow in most spam but reject most legitimate mail. When they decide that your message is spam (eg you wrote something like thread xxx has terminated), they send you a message, that they somehow think doesn't constitute spam, back to you to inform you that you are the lowest form of low-life on the planet, even though you may have been actively trying to help one of their employees for free... In fact, these anti-spam filters send me more unwanted mail than do spammers. Rest assured that the annoying message is coming from individual recipients of the list, and not the list itself. Most subscribers will have received the message gracefully and not questioned your legitimacy to exist :-) All the best, Andy -Original Message- From: anto paul [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:01 To: tomcat mail list Subject: Fw: getting a reply like this. When I post to this mailing list I am getting the following reply. Why I am getting this. Any one else get this ? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:55 PM Subject: RE: How to stop execution of infinite loop in Tomcat ? Dear [EMAIL PROTECTED], Your recent message to this server regarding `How to stop execution of infinite loop in Tomcat ?` was not delivered. Your address is listed in one or more suppression files on this server or your account is configured to allow local mail traffic only. Please contact the postmaster at this domain if additional information is required. Thank you, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] best hardware config for Tomcat
I won't get into specifics, but I can tell you that if you are planning to put this server into production, and run Oracle on it, a single hard disk is the WORST thing you can do, for a whole range of reasons. In most cases, CPU and RAM are not bottlenecks...disk is. When in doubt, get more and faster disk, even if it means less RAM and less CPU. At a minimum you will want RAID 1...better yet, two systems disks mirrored with RAID 1 containing your OS and systems files, and then a RAID 5 array for Oracle. I strongly suggest you consult a professional. Do not try to spec this out on your own, it is clear that you are not familiar on some key points of hardware provisioning. This isn't bad, I am just suggesting that you should find someone who is familiar, and will recommend an adequate system for you. Making the wrong decision now could harm your efforts in the future. If you're planning on putting this server into production, and selling the services on this server to other people, it would be unethical to make promises about uptime and reliability unless you at least have a RAID array, redundant power supplies, a 4-hour window service contract, and preferably a duplicate system for hot backup. John On Thu, 19 Jun 2003 12:25:47 +0530, Antony [EMAIL PROTECTED] wrote: Hi all, If it is not the place to ask this question forgive me Please any one tell me a place to ask this question. I want to know the most suitable hardware configuration for Tomcat. We have to run both Tomcat and Oracle 8i on it. It is business( intranet ) application with about 10 users accessing at starting but planning to take it to 60 users in future. Then we can increase the RAM to accommodate new users. I assume by increasing RAM we Tomcat can service more users. Am I right ? I am not an admin or hardware expert. We plan to buy an assembled system. We can afford only Intel based system. I have several questions. Do Tomcat need the processing power of dual processor PIV or single Xeon processor ?. What kind of memory shall I use SDRAM or DDR ? Do Tomcat need large amount of memory or high speed memory ?.We plan to use a single hard disk. What type of hard disk is best for this configuration ?. SCSI or IDE ? When I lloked at the Intel site I have seen different categories like server,mainstream ,work station, performance etc. Remember I can't recommend any latest high cost technology. At present three developers are using a single Pentium 4 based system with 512 MB of SDRAM with Oracle and Tomcat running. It runs fine in it. We dont have conducted any stress test on it. We dont know to use JMeter or something else. I have to give the config details within 2 days. Any comments will be apprecited. Regars Antony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Howdy, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? I've used tomcat standalone for SSL/HTTPS services in production, with a 3rd party certificate -- no problems at all. This was tomcat 4.1.24, JDK 1.4.1, Solaris 8 -- so Coyote/HTTP 1.1 connector. I found the SSL HOW-TO to be more than sufficient: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: juddi and axis jars clashing in tomcat
Howdy, i tried adding juddi and axis wars to tomcat. juddi is used for UDDI and axis is used for SOAP. juddi uses axis.jar which is placed in the WEB-INF/lib dir of the juddi war. when tomcat starts we got some error loading juddi. if we removed axis war then everything worked fine. after some investigation we found out that juddi was using the axis jar in the axis war WEB-INF which happens to be a newer version. I don't think that's possible. Can you prove that's the case? what could be causing this. both were supposed to use the axis jar in their WEB-INF/lib dir. Make sure you don't have anything in common/lib which would cause this behavior. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Advantages to putting Apache as front end to Tomcat
What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158
RE: Problem implementing JAAS in Tomcat 4.1.2
Howdy, Oh boy... See intermixed. I've used this code in Weblogic 6.X without any problem. If this could be done in Weblogic, then there is NO reason why we can't do it Of course there is. Tomcat's configuration is different than Weblogic's configuration. Weblogic provides a superset of the servlet specification, not to mention a complete J2EE container. Unless this code, this, and it in the above sentence relate directly to the servlet specification, v2.3, the above is false. Can anyone tell me what am I doing wrong? Or perhaps point me in the right direction. Read the JAASRealm JavaDoc for starters: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index. html Actually look at the example JAASRealm to see what attributes it takes. Don't just assume it takes the same attribute names as the weblogic equivalent. Realm className=org.apache.catalina.realm.JAASRealm debug=99 loginContext=JAASPolicy callbackHandler=cdmanager.security.tomcat.JAASLoginCallbackHandler/ This is meaningless as these are not the attributes expected by JAASRealm. // ContainerAuthentication.java snip This is irrelevant as the JAASRealm is not configured correctly. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where does Tyrex fit in?
Howdy, Referring to an earlier mail of mine reporting a problem in setting up datasource (cannot configure BasicDataSource 'null', or something like that), I read somewhere in a posting that I should be sure to have the tyrex.jar in my server/lib or common/lib. It also said it should be standard as of 4.0 and with the Tomcat distribution, but I cannot find this jar anywhere in my Tomcat installation (4.1.24). 4.0.x != 4.1.x ;) In the 4.0.x branch, you'd see a tyrex-0.9.7.0.jar and tyrex.license files in $CATALINA_HOME/common/lib. What is it and what is it used for? Is it indeed required, or was I put on a wild-goose chase? Tyrex is an open-source implementation of the Java Transaction Service. You can use it with tomcat to have JTS (and things like XADataSource) ;) Unfortunately the exolab folks seem to be having a lot of problems recently, and tyrex appears dead in the water for now. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Advantages to putting Apache as front end to Tomcat
Howdy, Apache is the best HTTP web server out there, I'd say. That's a sweeping statement that covers: - Configurability: you can configure pretty much anything any which way - Stability: no other HTTP server is hit as hard / as much as Apache httpd, no other HTTP server is expected to stay up as long - Security: Apache is extremely well tested for security, constantly being analyzed by hackers, pros, etc. - Speed: for just serving static HTML content, Apache is as good as they come IMHO Disadvangtes of Apache/Tomcat versus Tomcat-standalone include: - Increased configuration difficulty - Increased number of services (2 instead of 1) that need to be monitored, started, etc. - Increased difficulty of debugging problems Both Apache and Tomcat can do SSL/HTTPS by themselves. Both can do virtual hosting by themselves. Apache is at least as good, possibly better, than tomcat at virtual hosting. This topic has been discussed at length, so I would usually say just search the archives. However, I think a lot of people still have this conception that tomcat sucks at static content (which it doesn't) and that all serious applications use apache as a front-end (which they don't). I personally tend to have an operational view of things, and have found tomcat-standalone (with a security manager and a tight security policy) to be sufficient for my real-world needs. I'm sure other people will disagree ;) But it's nice to have choices. If nothing else, you can always start with tomcat standalone, and if you run into something you can't do, add Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Advantages to putting Apache as front end to Tomcat What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to choose a Tomcat version
Is there a general rule of thumb for choosing which version of Tomcat to use? With servlet/jsp 2.3/1.2 specs you go for 4.0 or 4.1, but which branch and why? And furthermore, which version within the branch? I often see installations stuck at 4.0.4 - why don't they upgrade to newer versions? My tendency would be to always get the latest (4.1.24), but seeing that so many installations get stuck on earlier versions, I assume there is a good reason for, or is it just the old don't fix it if it is not broken rule? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Advantages to putting Apache as front end to Tomcat
One other point I would like to add is running on port 80. If you use apache as soon as the server has started it can switch to another role which you can't do with Tomcat. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 14:07 To: Tomcat Users List Subject: RE: Advantages to putting Apache as front end to Tomcat Howdy, Apache is the best HTTP web server out there, I'd say. That's a sweeping statement that covers: - Configurability: you can configure pretty much anything any which way - Stability: no other HTTP server is hit as hard / as much as Apache httpd, no other HTTP server is expected to stay up as long - Security: Apache is extremely well tested for security, constantly being analyzed by hackers, pros, etc. - Speed: for just serving static HTML content, Apache is as good as they come IMHO Disadvangtes of Apache/Tomcat versus Tomcat-standalone include: - Increased configuration difficulty - Increased number of services (2 instead of 1) that need to be monitored, started, etc. - Increased difficulty of debugging problems Both Apache and Tomcat can do SSL/HTTPS by themselves. Both can do virtual hosting by themselves. Apache is at least as good, possibly better, than tomcat at virtual hosting. This topic has been discussed at length, so I would usually say just search the archives. However, I think a lot of people still have this conception that tomcat sucks at static content (which it doesn't) and that all serious applications use apache as a front-end (which they don't). I personally tend to have an operational view of things, and have found tomcat-standalone (with a security manager and a tight security policy) to be sufficient for my real-world needs. I'm sure other people will disagree ;) But it's nice to have choices. If nothing else, you can always start with tomcat standalone, and if you run into something you can't do, add Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Advantages to putting Apache as front end to Tomcat What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to choose a Tomcat version
Howdy, Is there a general rule of thumb for choosing which version of Tomcat to use? With servlet/jsp 2.3/1.2 specs you go for 4.0 or 4.1, but which branch and why? And furthermore, which version within the branch? Latest stable: 4.1.24 at this point. I often see installations stuck at 4.0.4 - why don't they upgrade to newer versions? Ask them ;) My guesses would be similar to yours: - If it's not broken, don't fix it - Lack of manpower / desire to update Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Advantages to putting Apache as front end to Tomcat
Archives. FAQ. John On Thu, 19 Jun 2003 08:48:06 -0400, Jeremy Nix [EMAIL PROTECTED] wrote: What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short term, I will probably try to make a mass update once a week or every other week based on questions, gaps, (and my own knowledge of the solution). I already have a list of updates I want to make. (I save a lot of potential responses to a faqqy folder in my email client and wade through it occasionally) The new faq is now at http://jakarta.apache.org/tomcat/faq/ I hope to update the sourceforge version soon -Tim John Turner wrote: This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to choose a Tomcat version
I would add that in many cases third-party JARs require a specific version of the JDK, which can cause problems when you want to upgrade. John On Thu, 19 Jun 2003 09:13:21 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Is there a general rule of thumb for choosing which version of Tomcat to use? With servlet/jsp 2.3/1.2 specs you go for 4.0 or 4.1, but which branch and why? And furthermore, which version within the branch? Latest stable: 4.1.24 at this point. I often see installations stuck at 4.0.4 - why don't they upgrade to newer versions? Ask them ;) My guesses would be similar to yours: - If it's not broken, don't fix it - Lack of manpower / desire to update Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat is OK?
Remember, concurrent users in your case is the number of people that make a request at the EXACT same time. Tomcat should handle this load nicely. -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 4:28 AM To: [EMAIL PROTECTED] Subject: Does Tomcat is OK? Hello All, We need to develop a data lookup application. The maximum concurrent users number could reach 150. That means there will be 150 users access the application and fetch data from backgroud database at the same time. The data that each user get only has 5k. We donot use session to keep this data, but directly display to user. Now the solution that we use is Window 2000 Server + Tomcat 4.2.24+JDK1.4.1. Could you please give us some suggestion about if the Tomcat solution can be used to develop the application. Thanks a lot. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where does Tyrex fit in?
via http://marc.theaimsgroup.com/?l=tomcat-devm=105484177917337w=2 Tyrex: This project seems dead (unfortunately) :-( We could replace it with some other TM, or (I like that one better) not provide an object factory implementation for UserTransaction by default, and let third parties provide it. That model seems to work great for J2EE providers (JOTM, OpenEJB, etc). If you need database connectivity, use dbcp. -Tim Shapira, Yoav wrote: Howdy, Referring to an earlier mail of mine reporting a problem in setting up datasource (cannot configure BasicDataSource 'null', or something like that), I read somewhere in a posting that I should be sure to have the tyrex.jar in my server/lib or common/lib. It also said it should be standard as of 4.0 and with the Tomcat distribution, but I cannot find this jar anywhere in my Tomcat installation (4.1.24). 4.0.x != 4.1.x ;) In the 4.0.x branch, you'd see a tyrex-0.9.7.0.jar and tyrex.license files in $CATALINA_HOME/common/lib. What is it and what is it used for? Is it indeed required, or was I put on a wild-goose chase? Tyrex is an open-source implementation of the Java Transaction Service. You can use it with tomcat to have JTS (and things like XADataSource) ;) Unfortunately the exolab folks seem to be having a lot of problems recently, and tyrex appears dead in the water for now. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup [SOLVED]
Thanks to all for the helpful hints. Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 John Turner [EMAIL PROTECTED] turner.comTo Tomcat Users List 19.06.2003 14:44 [EMAIL PROTECTED] cc Please respond to Subject Tomcat Users Re: Set System properties at TC List startup [EMAIL PROTECTED] rta.apache.org This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: juddi and axis jars clashing in tomcat
hi, i agree that this should not have been the case. there is no axis.jar in common/lib(not even in server/lib). and as i had mentioned removing the axis war make juddi war load properly. and the error is happening because of the version difference of the two axis.jar in axis and juddi war. thanks, nishant On Thu, 2003-06-19 at 18:13, Shapira, Yoav wrote: Howdy, i tried adding juddi and axis wars to tomcat. juddi is used for UDDI and axis is used for SOAP. juddi uses axis.jar which is placed in the WEB-INF/lib dir of the juddi war. when tomcat starts we got some error loading juddi. if we removed axis war then everything worked fine. after some investigation we found out that juddi was using the axis jar in the axis war WEB-INF which happens to be a newer version. I don't think that's possible. Can you prove that's the case? what could be causing this. both were supposed to use the axis jar in their WEB-INF/lib dir. Make sure you don't have anything in common/lib which would cause this behavior. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Advantages to putting Apache as front end to Tomcat
Additional question if I may ... CGI? Reason : A previous Admin system was CGI-perl based. I have used TC to do the stuff I do ... but we still need the previous bits. We're about to integrate, and I have taken it on 'faith' that we can just 'mix the 2 together' - others know Apache well. I thought I'd piggyback on this question 'cos it seemed relevant - sorry. tim Collins, Jim wrote: One other point I would like to add is running on port 80. If you use apache as soon as the server has started it can switch to another role which you can't do with Tomcat. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 14:07 To: Tomcat Users List Subject: RE: Advantages to putting Apache as front end to Tomcat Howdy, Apache is the best HTTP web server out there, I'd say. That's a sweeping statement that covers: - Configurability: you can configure pretty much anything any which way - Stability: no other HTTP server is hit as hard / as much as Apache httpd, no other HTTP server is expected to stay up as long - Security: Apache is extremely well tested for security, constantly being analyzed by hackers, pros, etc. - Speed: for just serving static HTML content, Apache is as good as they come IMHO Disadvangtes of Apache/Tomcat versus Tomcat-standalone include: - Increased configuration difficulty - Increased number of services (2 instead of 1) that need to be monitored, started, etc. - Increased difficulty of debugging problems Both Apache and Tomcat can do SSL/HTTPS by themselves. Both can do virtual hosting by themselves. Apache is at least as good, possibly better, than tomcat at virtual hosting. This topic has been discussed at length, so I would usually say just search the archives. However, I think a lot of people still have this conception that tomcat sucks at static content (which it doesn't) and that all serious applications use apache as a front-end (which they don't). I personally tend to have an operational view of things, and have found tomcat-standalone (with a security manager and a tight security policy) to be sufficient for my real-world needs. I'm sure other people will disagree ;) But it's nice to have choices. If nothing else, you can always start with tomcat standalone, and if you run into something you can't do, add Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Advantages to putting Apache as front end to Tomcat What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set System properties at TC startup
Cool! John On Thu, 19 Jun 2003 09:23:47 -0400, Tim Funk [EMAIL PROTECTED] wrote: Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short term, I will probably try to make a mass update once a week or every other week based on questions, gaps, (and my own knowledge of the solution). I already have a list of updates I want to make. (I save a lot of potential responses to a faqqy folder in my email client and wade through it occasionally) The new faq is now at http://jakarta.apache.org/tomcat/faq/ I hope to update the sourceforge version soon -Tim John Turner wrote: This looks pretty recent...is it? John On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote: http://jakarta.apache.org/tomcat/faq/misc.html#properties -Tim [EMAIL PROTECTED] wrote: Yes I am running Tomcat 4.1.18. Where does this file need to be located that TC is reading it at startup? Just somewhere along the classpath? Christian Schuster Rudolf Schuster AG Postfach 277 CH - 3000 Bern 11 http://www.rsag.ch ++41 31 348 05 30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Advantages to putting Apache as front end to Tomcat
Howdy, You can do CGI in tomcat-standalone: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html However, seeing as how CGI is an area where security is a big risk, I'd rather delegate that to Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 9:39 AM To: Tomcat Users List Subject: Re: Advantages to putting Apache as front end to Tomcat Additional question if I may ... CGI? Reason : A previous Admin system was CGI-perl based. I have used TC to do the stuff I do ... but we still need the previous bits. We're about to integrate, and I have taken it on 'faith' that we can just 'mix the 2 together' - others know Apache well. I thought I'd piggyback on this question 'cos it seemed relevant - sorry. tim Collins, Jim wrote: One other point I would like to add is running on port 80. If you use apache as soon as the server has started it can switch to another role which you can't do with Tomcat. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 14:07 To: Tomcat Users List Subject: RE: Advantages to putting Apache as front end to Tomcat Howdy, Apache is the best HTTP web server out there, I'd say. That's a sweeping statement that covers: - Configurability: you can configure pretty much anything any which way - Stability: no other HTTP server is hit as hard / as much as Apache httpd, no other HTTP server is expected to stay up as long - Security: Apache is extremely well tested for security, constantly being analyzed by hackers, pros, etc. - Speed: for just serving static HTML content, Apache is as good as they come IMHO Disadvangtes of Apache/Tomcat versus Tomcat-standalone include: - Increased configuration difficulty - Increased number of services (2 instead of 1) that need to be monitored, started, etc. - Increased difficulty of debugging problems Both Apache and Tomcat can do SSL/HTTPS by themselves. Both can do virtual hosting by themselves. Apache is at least as good, possibly better, than tomcat at virtual hosting. This topic has been discussed at length, so I would usually say just search the archives. However, I think a lot of people still have this conception that tomcat sucks at static content (which it doesn't) and that all serious applications use apache as a front-end (which they don't). I personally tend to have an operational view of things, and have found tomcat-standalone (with a security manager and a tight security policy) to be sufficient for my real-world needs. I'm sure other people will disagree ;) But it's nice to have choices. If nothing else, you can always start with tomcat standalone, and if you run into something you can't do, add Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Advantages to putting Apache as front end to Tomcat What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or
RE: Embedding Tomcat with Java App and JRE only
This is indeed the ight place. But please check the mail archives first. I'd had to Embed Tomcat way back in Dec 2001 - Jan 2002, and had faced lots of problems then, with not a single question of mine being answered. However, I'd posted some of my lessons learnt at around that time. I've replied to some other posts on Embedding Tomcat over the past months, you should get these on the mail archives too. I'm not at all aware of changes in Tomcat 4.1.x, but here are some of the problems that I'd faced: 1. Embedding Tomcat itself. Browse the source, trace how Bootstrap and Embedded work, and you'll learn that tomcat, is actually Catalina for Servlets, Jasper for JSPs, Connectors for HTTP services, etc. I first figured how the Digestion works (where server.xml is used to assemble together the Engine, the host, the contexts, etc), and then wrote something myself on the lines of Embedded. You need to understand just how Embedded works, and you'll have a working ServletContainer running. 2. Accessing LifeCycle events With 4.0.1, the LifeCycle Interface has just the starting and stopping events. I think 4.1.x now has starting, started, stopping and stopped (or something along those lines). Since I did not dare to alter the LifeCycle Interface myself (break compatibility with the Tomcat Developers, etc), I had to resort to a check after the entire server came up. 3. Getting Jasper to work right. I had to start my app via an executable Jar, and this changed the classpath. (Remember, I was not using the startup scripts). I chose to alter the java.class.path environment variable myself before starting to assemble the Catalina components together. If you're loading via a Jar too, then you'll need to use the JarFile API, access the manifest, used the Classpath attribute from the manifest, and assemble together a classpath again. (NOTE: 4.0.1 uses the javac compiler. 4.1.x uses Ant, so I have no idea on what to expect here.) I used the Visual Age for Java IDE then, so that helped a lot (The scrap book was the best aid I had). I think Eclipse gives you similar functionality, so you could perhaps experiment with snippets of code yourself. A lot has changed since 4.0.1. Browse the source, read the Javadocs, and you should have a good understanding in about a week's time. There was also a post recently of someone writing a book on How Tomcat works, you might want to give those PDF chapters a try. Like Yoav Shapira says, go ahead and ask questions, some one will surely answer. -- Sriram Developer, Object Edge Software India Pvt. Ltd. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, This is the right place. Ask specific questions, post relevant materials (source code, stack traces, etc.), and most times you will get a good answer or two. Just like you did with your previous question. Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 11:31 AM To: Tomcat Users List Subject: Re: Embedding Tomcat with Java App and JRE only Yes, it is very difficult to get help on Embedding Tomcat in Java App. Does someone know where can I get more help on EmbeddedTomcat? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 16, 2003 9:28 PM Subject: RE: Embedding Tomcat with Java App and JRE only Howdy, Yes with two big BUTs: 1. You will no longer have the tomcat stated requirements, i.e. you will not have a standard usage of embedded tomcat, making it harder for you to receive accurate support for your questions. 2. You will of course lose the ability to deploy new JSPs to your app ;) That may not matter for your specification application though. Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Peik Feng [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 10:17 PM To: Tomcat Users List Subject: Re: Embedding Tomcat with Java App and JRE only Yes - Original Message - From: Kwok Ng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 8:16 AM Subject: Embedding Tomcat with Java App and JRE only Hi folks, I have read a article that explains how to embed the Tomcat with java app in O'Reily website. I will try to do it for my java app. But I want to do one step further which use JRE instead of JDK. Does anybody know if I pre-compile all jsp files, is it possible to embed the Tomcat with JRE only? Thanks! Billy Ng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I set up 2 realms for the same server so I can access 2 databases
Hi, Actually Angus' comment isn't really true. You just configure a seperate Realm under each of your Hosts, and Tomcat should do exactly what you want. Thanks for that info, Bill. I had set up database access in each individual context, but trying to do that with the jdbc realm didn't seem to work. So, if I move the one appliction into another virtual host, then I could make authentication application specific, if I understand you right. Thanks again for giving me a direction to explore. Regards, Val - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running two services in a server
Hello, I would like to run both standalone and apache services on my server. For the moment I can run one _or_ the other. After reading through the doc I have come to the conclusion that I have a typo in my server.xml but for the life of me I can't see where I'm going wrong. Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom Error Pages
Hi all, I have setup some custom error pages and have updated $CATALINA_HOME/conf/web.xml to direct to these pages should an error occur. However, when a error is raised the app automatically looks within /webapp/Errors for the pages instead of /ROOT/Errors where I would like it to look. Errors is the name of a directory I have created BTW. Any ideas as to why/how I can get the error pages to be picked up from there? I'm running Tomcat 4.0.6. Cheers, Kev. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom Error Pages
Howdy, The url-pattern for error pages in web.xml is relative to your docBase. C'est tout. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:25 AM To: 'Tomcat Users List' Subject: Custom Error Pages Hi all, I have setup some custom error pages and have updated $CATALINA_HOME/conf/web.xml to direct to these pages should an error occur. However, when a error is raised the app automatically looks within /webapp/Errors for the pages instead of /ROOT/Errors where I would like it to look. Errors is the name of a directory I have created BTW. Any ideas as to why/how I can get the error pages to be picked up from there? I'm running Tomcat 4.0.6. Cheers, Kev. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running two services in a server
Howdy, Perhaps posting the server.xml would be good ;) Alternatively, start again from the original server.xml that comes with your installation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tony Grant [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: running two services in a server Hello, I would like to run both standalone and apache services on my server. For the moment I can run one _or_ the other. After reading through the doc I have come to the conclusion that I have a typo in my server.xml but for the life of me I can't see where I'm going wrong. Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem implementing JAAS in Tomcat 4.1.2
I wish a was a bit more thorough in the first run, sorry about that. My question is more of How do I implement JAAS in Tomcat? I know this is a broad question so lets break it down. 1. How do I configure Tomcat so that it uses JAAS? 2. What configuration files ( Java Secutiy Tomcat ) do I need to accomplish question #1? 3. Programmatically, I believe I have to extend org.apache.catalina.realm.JAASMemoryLoginModule but how does Tomcat validates users using JAASRealm? For #1 the following: // server.xml Realm className=org.apache.catalina.realm.JAASRealm debug=99 appName=JAASPolicy userClassNames=java.security.Principal roleClassNames=java.security.Principal/ For #2 the following: // jaas.config JAASPolicy { cdmanager.security.tomcat.JAASLoginModule required debug=true; }; // jaas.policy grant codeBase file:${catalina.home}/webapps/cdmanager/WEB-INF/classes/- { permission java.util.PropertyPermission java.security.auth.login.config, read; permission java.util.PropertyPermission java.security.auth.policy, read; permission javax.security.auth.AuthPermission createLoginContext; permission javax.security.auth.AuthPermission doAsPrivileged; }; For #3 the following: // JAASLoginModule public class JAASLoginModule extends org.apache.catalina.realm.JAASMemoryLoginModule { // initial state private Subject subject; private CallbackHandler callbackHandler; snip public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) { this.subject = subject; this.callbackHandler = callbackHandler; this.sharedState = sharedState; this.options = options; snip // ContainerAuthentication.java snip cdmanager.security.tomcat.JAASLoginCallbackHandler handler = new cdmanager.security.tomcat.JAASLoginCallbackHandler(request); loginContext = new LoginContext(JAASPolicy, new cdmanager.security.tomcat.JAASLoginCallbackHandler(request)); loginContext = new LoginContext(JAASPolicy, handler ); loginContext.login(); // EXCEPTION HERE snip Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Oh boy... See intermixed. I've used this code in Weblogic 6.X without any problem. If this could be done in Weblogic, then there is NO reason why we can't do it Of course there is. Tomcat's configuration is different than Weblogic's configuration. Weblogic provides a superset of the servlet specification, not to mention a complete J2EE container. Unless this code, this, and it in the above sentence relate directly to the servlet specification, v2.3, the above is false. Can anyone tell me what am I doing wrong? Or perhaps point me in the right direction. Read the JAASRealm JavaDoc for starters: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index. html Actually look at the example JAASRealm to see what attributes it takes. Don't just assume it takes the same attribute names as the weblogic equivalent. debug=99 loginContext=JAASPolicy callbackHandler=cdmanager.security.tomcat.JAASLoginCallbackHandler/ This is meaningless as these are not the attributes expected by JAASRealm. // ContainerAuthentication.java This is irrelevant as the JAASRealm is not configured correctly. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
RE: running two services in a server
On Thu, 2003-06-19 at 16:29, Shapira, Yoav wrote: Perhaps posting the server.xml would be good ;) I was a bit worried about posting the server.xml for a live public server to a public mailing list... Alternatively, start again from the original server.xml that comes with your installation. I'm using http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html and the standalone service from my 4.0.24 tree Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom Error Pages
Merci :O) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 15:28 To: Tomcat Users List Subject: RE: Custom Error Pages Howdy, The url-pattern for error pages in web.xml is relative to your docBase. C'est tout. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas, Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:25 AM To: 'Tomcat Users List' Subject: Custom Error Pages Hi all, I have setup some custom error pages and have updated $CATALINA_HOME/conf/web.xml to direct to these pages should an error occur. However, when a error is raised the app automatically looks within /webapp/Errors for the pages instead of /ROOT/Errors where I would like it to look. Errors is the name of a directory I have created BTW. Any ideas as to why/how I can get the error pages to be picked up from there? I'm running Tomcat 4.0.6. Cheers, Kev. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running two services in a server
The java web services developer pack (from sun) has multiple services if you need a reference server.xml (i think) -Tim Tony Grant wrote: Hello, I would like to run both standalone and apache services on my server. For the moment I can run one _or_ the other. After reading through the doc I have come to the conclusion that I have a typo in my server.xml but for the life of me I can't see where I'm going wrong. Cheers Tony Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wwwrun user on UnitedLinux 1.0
I have installed an Apache Tomcat/4.1.24-LE-jdk14 on a UnitedLinux 1.0 (UL) system (which is very much alike to SuSE Linux 8.x). UL contains a Tomcat 4.0 distribution. UL also has a custom startup script /etc/init.d/tomcat. The script starts Tomcat with a user wwwrun: su wwwrun -c $TOMCAT_HOME/bin/startup.sh I shot myself in the foot by adapting this startup script to Tomcat 4.1 (see below). Everything seemed to work fine, until Tomcat Administration webapp failed. (It could not deploy struts.jar). Running under root everything works fine - so far. What's the point? - SuSE should have a reason for using a wwwrun user instead of root. Is it a possible vulnerability to Tomcat when running under user root? We will use Tomcat in a production environment. If somebody has a working script for UL and Tomcat41, please let me know. References to documentation are also welcome. Hayo Schmidt - #! /bin/sh # Copyright (c) 1995-2001 SuSE GmbH Nuernberg, Germany. # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. # # Author: Rolf Haberrecker [EMAIL PROTECTED] # Adaptiert: hys 2003-05-16 # # /etc/init.d/tomcat41 # # and symbolic its link # # /usr/sbin/rctomcat41 # # System startup script for the Tomcat servlet container # ### BEGIN INIT INFO # Provides: tomcat41 # Required-Start: $local_fs $remote_fs # X-UnitedLinux-Should-Start: $named $syslog $time $network # Required-Stop: $local_fs $remote_fs # X-UnitedLinux-Should-Stop: $named $syslog $time $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Tomcat Servlet Container Version 4.1 # Description:Start Tomcat 4.1 to allow JAVA server pages ### END INIT INFO CATALINA_HOME=/usr/java/tomcat test -d $CATALINA_HOME/bin || exit 5 # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status . /etc/rc.status # First reset status of this service rc_reset # Return values acc. to LSB for all commands but status: # 0 - success # 1 - generic or unspecified error # 2 - invalid or excess argument(s) # 3 - unimplemented feature (e.g. reload) # 4 - insufficient privilege # 5 - program is not installed # 6 - program is not configured # 7 - program is not running # # Note that starting an already running service, stopping # or restarting a not-running service as well as the restart # with force-reload (in case signalling is not supported) are # considered a success. case $1 in start) echo -n Starting Tomcat ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. # NOTE: startproc return 0, even if service is # already running to match LSB spec. ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep /usr/java/tomcat/temp org.apache.catalina.startup.Bootstrap /var/tmp/tomcat.ps.log /dev/null 2/dev/null ; then rc_failed 0 else chown -R wwwrun:root $CATALINA_HOME/logs $CATALINA_HOME/work su wwwrun -c $CATALINA_HOME/bin/startup.sh /var/log/tomcat.log 2/var/log/tomcat.log #su root -c $CATALINA_HOME/bin/startup.sh /var/log/tomcat.log 2/var/log/tomcat.log sleep 1 #hys chgrp root $CATALINA_HOME/conf/tomcat-users.xml ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep /usr/java/tomcat/temp org.apache.catalina.startup.Bootstrap /var/tmp/tomcat.ps.log /dev/null 2/dev/null ; then rc_failed 0 else rc_failed 7 fi fi rm -f /var/tmp/tomcat.ps.log rc_status -v ;; stop) echo -n Shutting down Tomcat ## Stop daemon with killproc(8) and if this fails ## set echo the echo return value. ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep /usr/java/tomcat/temp org.apache.catalina.startup.Bootstrap /var/tmp/tomcat.ps.log /dev/null 2/dev/null ; then su wwwrun -c $CATALINA_HOME/bin/shutdown.sh /var/log/tomcat.log 2/var/log/tomcat.log #su root -c $CATALINA_HOME/bin/shutdown.sh /var/log/tomcat.log 2/var/log/tomcat.log sleep 12 ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep /usr/java/tomcat/temp org.apache.catalina.startup.Bootstrap /var/tmp/tomcat.ps.log /dev/null 2/dev/null ; then rc_failed 1 else rc_failed 0 fi else rc_failed 0 fi rm -f /var/tmp/tomcat.ps.log # Remember status and be verbose rc_status -v ;; try-restart) ## Stop the service and if this succeeds (i.e. the ## service was running before), start it again.
Element web-app does not allow servlet here.
I'm using jakarta-tomcat-4.1.24-LE-jdk14 with java version 1.4.1_02 on Linux. For some reason, I'm starting to get the following errors from my web.xml: SEVERE: Parse Error at line 24 column -1: Element web-app does not allow servlet here. org.xml.sax.SAXParseException: Element web-app does not allow servlet here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:34 9) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1543) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) The exact same web xml file was working fine for me yesterday. It's still working fine today for my co-worker, who's running a different instance of tomcat. We are both working out of the same repository. I've checked on the web and newsgroups, and people seem to only say to make sure that servlet-mapping come after servlet. I don't have any servlet-mapping tags. As reference, I've included my web.xml. Thanks for any help. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd; web-app servlet servlet-name ConnectionServlet/servlet-name servlet-classdb.ConnectionServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-namesearch/servlet-name servlet-classsearch.Search/servlet-class load-on-startup2/load-on-startup /servlet servlet servlet-nameARCSearch/servlet-name servlet-classsearch.ARCSearch/servlet-class load-on-startup2/load-on-startup /servlet servlet servlet-nameuser/servlet-name servlet-classuser.User/servlet-class load-on-startup2/load-on-startup /servlet servlet servlet-nameloaduser/servlet-name servlet-classuser.LoadUser/servlet-class load-on-startup2/load-on-startup /servlet servlet
Re: Element web-app does not allow servlet here.
2 problems: 1) web.xml is NOT well formed with respect to the dtd 2) You declare servlets but do not map them to URLS -Tim Jiann-Ming Su wrote: I'm using jakarta-tomcat-4.1.24-LE-jdk14 with java version 1.4.1_02 on Linux. For some reason, I'm starting to get the following errors from my web.xml: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Element web-app does not allow servlet here.
Howdy, 1. Can you verify the web.xml against the DTD (by using any xml validator, e.g. XMLSpy) ? 2. Why are you using a servlet specification v2.2 DTD and not v2.3? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jiann-Ming Su [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:00 PM To: Tomcat Users List Subject: Element web-app does not allow servlet here. I'm using jakarta-tomcat-4.1.24-LE-jdk14 with java version 1.4.1_02 on Linux. For some reason, I'm starting to get the following errors from my web.xml: SEVERE: Parse Error at line 24 column -1: Element web-app does not allow servlet here. org.xml.sax.SAXParseException: Element web-app does not allow servlet here. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Va lida tingParser.java:34 9) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1543) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf ig.j ava:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. java :243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:356 7) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 58) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497 ) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) The exact same web xml file was working fine for me yesterday. It's still working fine today for my co-worker, who's running a different instance of tomcat. We are both working out of the same repository. I've checked on the web and newsgroups, and people seem to only say to make sure that servlet-mapping come after servlet. I don't have any servlet-mapping tags. As reference, I've included my web.xml. Thanks for any help. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Advantages to putting Apache as front end to Tomcat
Thanks - 'fraid I was being lazy (didn't check beforehand) but it was not high on my priority list. Shapira, Yoav wrote: Howdy, You can do CGI in tomcat-standalone: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html However, seeing as how CGI is an area where security is a big risk, I'd rather delegate that to Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Shaw [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 9:39 AM To: Tomcat Users List Subject: Re: Advantages to putting Apache as front end to Tomcat Additional question if I may ... CGI? Reason : A previous Admin system was CGI-perl based. I have used TC to do the stuff I do ... but we still need the previous bits. We're about to integrate, and I have taken it on 'faith' that we can just 'mix the 2 together' - others know Apache well. I thought I'd piggyback on this question 'cos it seemed relevant - sorry. tim Collins, Jim wrote: One other point I would like to add is running on port 80. If you use apache as soon as the server has started it can switch to another role which you can't do with Tomcat. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 19 June 2003 14:07 To: Tomcat Users List Subject: RE: Advantages to putting Apache as front end to Tomcat Howdy, Apache is the best HTTP web server out there, I'd say. That's a sweeping statement that covers: - Configurability: you can configure pretty much anything any which way - Stability: no other HTTP server is hit as hard / as much as Apache httpd, no other HTTP server is expected to stay up as long - Security: Apache is extremely well tested for security, constantly being analyzed by hackers, pros, etc. - Speed: for just serving static HTML content, Apache is as good as they come IMHO Disadvangtes of Apache/Tomcat versus Tomcat-standalone include: - Increased configuration difficulty - Increased number of services (2 instead of 1) that need to be monitored, started, etc. - Increased difficulty of debugging problems Both Apache and Tomcat can do SSL/HTTPS by themselves. Both can do virtual hosting by themselves. Apache is at least as good, possibly better, than tomcat at virtual hosting. This topic has been discussed at length, so I would usually say just search the archives. However, I think a lot of people still have this conception that tomcat sucks at static content (which it doesn't) and that all serious applications use apache as a front-end (which they don't). I personally tend to have an operational view of things, and have found tomcat-standalone (with a security manager and a tight security policy) to be sufficient for my real-world needs. I'm sure other people will disagree ;) But it's nice to have choices. If nothing else, you can always start with tomcat standalone, and if you run into something you can't do, add Apache. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeremy Nix [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Advantages to putting Apache as front end to Tomcat What are the advantages/disadvantages to using Apache as the http server sending all jsp/servlet related traffic to Tomcat for processing, or using Tomcat stand alone? Other factors...I need to run SSL, and to support multiple virtual hosts. _ Jeremy Nix Senior Application Developer Southwest Financial Ltd. [EMAIL PROTECTED] (513) 621-6699 ext 1158 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational
Re: running two services in a server
On Thu, 2003-06-19 at 17:00, Tim Funk wrote: The java web services developer pack (from sun) has multiple services if you need a reference server.xml (i think) Looks a lot like mine =:-( Cheers Tony Grant -- www.tgds.net Library management software toolkit, redhat linux on Sony Vaio C1XD, Dreamweaver MX with Tomcat and PostgreSQL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wwwrun user on UnitedLinux 1.0
Its never a good idea to run public services as root, which is probably why the script chooses another username. There are only a few known vulnerabilities in Tomcat, and none are related to Tomcat running as root, though I guess there's always the chance someone will find one. A couple of things: first, you're probably better off using the full Tomcat distribution, not the LE version. It isn't clear in the download areas, but the LE distribution is a special purpose distribution only intended for people who know exactly what they need or don't need. Tomcat distributions are the opposite of the convention. Typically, when downloading applications, the regular version is all you need, and you can download a pro version that adds extras. Tomcat is the opposite...the pro version (the full distribution) is really the one you want to try first...the LE version does not have everything you need to get going in a typical environment. So, I would swap out full 4.1.24 for 4.1.24-LE. Also, I would check the permissions on the folders under $CATALINA_HOME ($TOMCAT_HOME), and make sure the wwwrun user has write privileges where needed. John On Thu, 19 Jun 2003 17:58:43 +0200, Hayo Schmidt [EMAIL PROTECTED] wrote: I have installed an Apache Tomcat/4.1.24-LE-jdk14 on a UnitedLinux 1.0 (UL) system (which is very much alike to SuSE Linux 8.x). UL contains a Tomcat 4.0 distribution. UL also has a custom startup script /etc/init.d/tomcat. The script starts Tomcat with a user wwwrun: su wwwrun -c $TOMCAT_HOME/bin/startup.sh I shot myself in the foot by adapting this startup script to Tomcat 4.1 (see below). Everything seemed to work fine, until Tomcat Administration webapp failed. (It could not deploy struts.jar). Running under root everything works fine - so far. What's the point? - SuSE should have a reason for using a wwwrun user instead of root. Is it a possible vulnerability to Tomcat when running under user root? We will use Tomcat in a production environment. If somebody has a working script for UL and Tomcat41, please let me know. References to documentation are also welcome. Hayo Schmidt - #! /bin/sh # Copyright (c) 1995-2001 SuSE GmbH Nuernberg, Germany. # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. # # Author: Rolf Haberrecker [EMAIL PROTECTED] # Adaptiert: hys 2003-05-16 # # /etc/init.d/tomcat41 # # and symbolic its link # # /usr/sbin/rctomcat41 # # System startup script for the Tomcat servlet container # ### BEGIN INIT INFO # Provides: tomcat41 # Required-Start: $local_fs $remote_fs # X-UnitedLinux-Should-Start: $named $syslog $time $network # Required-Stop: $local_fs $remote_fs # X-UnitedLinux-Should-Stop: $named $syslog $time $network # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Tomcat Servlet Container Version 4.1 # Description:Start Tomcat 4.1 to allow JAVA server pages ### END INIT INFO CATALINA_HOME=/usr/java/tomcat test -d $CATALINA_HOME/bin || exit 5 # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status # rc_statuscheck and set local and overall rc status # rc_status -v ditto but be verbose in local rc status # rc_status -v -r ditto and clear the local rc status # rc_failedset local and overall rc status to failed # rc_failed num set local and overall rc status to numnum # rc_reset clear local rc status (overall remains) # rc_exit exit appropriate to overall rc status . /etc/rc.status # First reset status of this service rc_reset # Return values acc. to LSB for all commands but status: # 0 - success # 1 - generic or unspecified error # 2 - invalid or excess argument(s) # 3 - unimplemented feature (e.g. reload) # 4 - insufficient privilege # 5 - program is not installed # 6 - program is not configured # 7 - program is not running # # Note that starting an already running service, stopping # or restarting a not-running service as well as the restart # with force-reload (in case signalling is not supported) are # considered a success. case $1 in start) echo -n Starting Tomcat ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. # NOTE: startproc return 0, even if service is # already running to match LSB spec. ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep /usr/java/tomcat/temp org.apache.catalina.startup.Bootstrap /var/tmp/tomcat.ps.log /dev/null 2/dev/null ; then rc_failed 0 else chown -R wwwrun:root $CATALINA_HOME/logs $CATALINA_HOME/work su wwwrun -c $CATALINA_HOME/bin/startup.sh /var/log/tomcat.log 2/var/log/tomcat.log #su root -c $CATALINA_HOME/bin/startup.sh /var/log/tomcat.log 2/var/log/tomcat.log sleep 1 #hys chgrp root $CATALINA_HOME/conf/tomcat-users.xml ps -aux --cols 1024 /var/tmp/tomcat.ps.log if grep
Mime Type Header errors!
Hi, I just moved my Turbine application from one server to another. The new one has jdk1.4.1 and tomcat 4.1.24. My users are complaining of clicking links, and getting back a page not found error. If they refresh, then it does hit the page. I looked into the logs, and found these errors: stderr.log: INFO: Jk running ID=0 time=0/141 config=c:\java\tomcat\conf\jk2.properties java.lang.NullPointerException java.lang.NullPointerException at org.apache.tomcat.util.http.MimeHeaders.getName(MimeHeaders.java:204) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav a:1211) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:660) at org.apache.coyote.Response.action(Response.java:220) at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.j ava:516) at org.apache.coyote.Response.doWrite(Response.java:524) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:345) at org.apache.coyote.tomcat4.CoyoteWriter.flush(CoyoteWriter.java:119) at com.upstate.services.scheduler.JobFiringServlet.doGet(JobFiringServlet.java: 179) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:536) Jun 19, 2003 10:29:30 AM org.apache.coyote.http11.Http11Processor process SEVERE: Error finishing response java.lang.NullPointerException at org.apache.tomcat.util.http.MimeHeaders.getValue(MimeHeaders.java:323) at org.apache.tomcat.util.http.MimeHeaders.setValue(MimeHeaders.java:306) at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.jav a:1151) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:660) at org.apache.coyote.Response.action(Response.java:220) at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffe r.java:371) at
Re: Element web-app does not allow servlet here.
On Thu, 19 Jun 2003, Tim Funk wrote: 2 problems: 1) web.xml is NOT well formed with respect to the dtd http://www.hcrc.ed.ac.uk/~richard/xml-check.cgi?url=http%3A%2F%2Fzenodotus.library.emory.edu%2F%7Ejsu2%2Fweb.xmlvalidate=onnamespaces=on 2) You declare servlets but do not map them to URLS Yes, but this wasn't a problem yesterday, nor is it a problem for my colleague today. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Element web-app does not allow servlet here.
On Thu, 19 Jun 2003, Shapira, Yoav wrote: 2. Why are you using a servlet specification v2.2 DTD and not v2.3? I changed it to v2.3 before I sent my original email to this list, and it didn't solve my problem. Again, it was working just fine yesterday for me. And, it's still working fine for my colleague, but somehow, it's stopped working for me today. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Element web-app does not allow servlet here.
Howdy, I changed it to v2.3 before I sent my original email to this list, and it You should keep it at 2.3 if possible. didn't solve my problem. Again, it was working just fine yesterday for me. And, it's still working fine for my colleague, but somehow, it's stopped working for me today. Something has to have changed in your local installation then ;) Since the file seems fine by that validator and by your colleague's tomcat installation, it must be something wrong with your installation. Did you happen to change the digester or xml parser files in your tomcat installation? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Element web-app does not allow servlet here.
and is the file corrupted? Have you done a sum on your file and matched it to your co-worker's? Are there stray characters in your web.xml, like ^M or something similar, that perhaps aren't being shown in your editor? John On Thu, 19 Jun 2003 13:11:19 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, I changed it to v2.3 before I sent my original email to this list, and it You should keep it at 2.3 if possible. didn't solve my problem. Again, it was working just fine yesterday for me. And, it's still working fine for my colleague, but somehow, it's stopped working for me today. Something has to have changed in your local installation then ;) Since the file seems fine by that validator and by your colleague's tomcat installation, it must be something wrong with your installation. Did you happen to change the digester or xml parser files in your tomcat installation? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.jk.common.ChannelSocket processConnection
Hello, My tomcat logs are filled with this type of entry: Jun 19, 2003 10:17:16 AM org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection I was unable to find any documentation on this issue, I'm looking to find out what exactly is going on. Thanks ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Element web-app does not allow servlet here.
On Thu, 19 Jun 2003, Shapira, Yoav wrote: Something has to have changed in your local installation then ;) Since the file seems fine by that validator and by your colleague's tomcat installation, it must be something wrong with your installation. Did you happen to change the digester or xml parser files in your tomcat installation? Yeah, I think that's exactly what happened. I backed up my server.xml and web.xml and reinstalled tomcat 4.1.24 and everything works again. I'm pretty sure I didn't change anything in the installation, but reinstalling was relatively painless so I did it right before your email showed up. Thanks for all the help. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-Tomcat mod_jk Problem
Hello, I have compiled and configure mod_jk for use with Apache 2.0.40 proxying for Tomcat 4.1.24. There seems to be a problem when I try out the example login.jsp. It works fine if I go directly to the tomcat server directly, but if I access it via the proxy then Apache returns 404 (not found). e.g this works http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp user=tomcat/password=password this returns a 404 ;-( http://funbox.hopto.org/examples/jsp/security/protected/login.jsp I have scoured the mail archives for a solution, alas still no answer. Does anyone out there know what causes this? Finally can someone please inform me where I go to view the replies to this message, it was mentioned that there was a forum somewhere. Hope this is a 'smart question'. Many thanks in advance. Dave _ Get mobile Hotmail. Go to http://ninemsn.com.au/mobilecentral/signup.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Standalone and Virtual Hosting
There's also an iptables workaround for port 80 on Linux that I am using in production and found very useful: http://www-106.ibm.com/developerworks/linux/library/l-secjav.html Roman -Original Message- From: Yoav Shapira [mailto:[EMAIL PROTECTED] Sent: Wed 6/18/2003 4:16 PM To: Tomcat Users List; [EMAIL PROTECTED] Cc: Subject: Re: Tomcat Standalone and Virtual Hosting Howdy, This partially depends on your OS. If you're on windows, you can just run tomcat on port 80. If you're on unix, port 80 is privileged and you need to: - Work around that, e.g. by using sudo or commons-launcher - Put an Apache front-end to serve static content on port 80, and connect it to tomcat for dynamic content. Either tomcat or apache by themselves support virtual hosting. For tomcat, you simply add more Host elements in server.xml. See the Host configuration reference in the tomcat docs. Yoav Shapira --- Latesha Williams [EMAIL PROTECTED] wrote: I have a web application deployed under Tomcat v4.1.18 (port 8080). Is it also possible to configure the Tomcat Standalone Service to support virtual hosting, but on port 80? If so, how is this accomplished? What is the best practices method for storing static web content in this situation? Should the web content be placed in the Tomcat directory, or someplace else? Any guidance you can provide is appreciated. Latesha Williams Applications Support, Information Technology American Museum of Natural History [EMAIL PROTECTED] (W) 212.769.5947 (C) 917.837.2460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
Profiler for Servlets?
What's a good java profiler for use with servlets? So far I've found JMemProf and JProfiler. Thanks for any recommendations. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Profiler for Servlets?
Howdy, Search the list's archives. I like OptimizeIt. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jiann-Ming Su [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 1:57 PM To: Tomcat Users List Subject: Profiler for Servlets? What's a good java profiler for use with servlets? So far I've found JMemProf and JProfiler. Thanks for any recommendations. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache-Tomcat mod_jk Problem
We'll need more information, like what are your JkMount statements, what are the contents of your workers.properties file, and what does mod_jk.log say when you make the request on port 80. You might want to increase JkLogLevel in Apache's httpd.conf to get more info in mod_jk.log. John On Thu, 19 Jun 2003 17:50:11 +, Dave Wicks [EMAIL PROTECTED] wrote: Hello, I have compiled and configure mod_jk for use with Apache 2.0.40 proxying for Tomcat 4.1.24. There seems to be a problem when I try out the example login.jsp. It works fine if I go directly to the tomcat server directly, but if I access it via the proxy then Apache returns 404 (not found). e.g this works http://funbox.hopto.org:8080/examples/jsp/security/protected/login.jsp user=tomcat/password=password this returns a 404 ;-( http://funbox.hopto.org/examples/jsp/security/protected/login.jsp I have scoured the mail archives for a solution, alas still no answer. Does anyone out there know what causes this? Finally can someone please inform me where I go to view the replies to this message, it was mentioned that there was a forum somewhere. Hope this is a 'smart question'. Many thanks in advance. Dave _ Get mobile Hotmail. Go to http://ninemsn.com.au/mobilecentral/signup.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best versions - of Tomcat to run with apache
Beware that late Tomcat behaves oddly when reading certificates from an Apache web server. Apparently, it will be fixed on 4.1.25, and is fixed on CVS (I will be testing it tomorrow morning, with a CVS snapshot taken a few days ago. If you want to hear about the results, please e-mail me at work at antonio dot fiol at red dot es ). Antonio Fiol Kyle J. Lange wrote: Yoav, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? MTiA -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:29 PM To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Howdy, beingLazy Do you have the bugzilla ID for this issue? /beingLazy Yoav Shapira Millennium ChemInformatics -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:20 PM To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache Beware that late Tomcat behaves oddly when reading certificates from an Apache web server. Apparently, it will be fixed on 4.1.25, and is fixed on CVS (I will be testing it tomorrow morning, with a CVS snapshot taken a few days ago. If you want to hear about the results, please e-mail me at work at antonio dot fiol at red dot es ). Antonio Fiol Kyle J. Lange wrote: Yoav, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? MTiA -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:29 PM To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can JDBCrealm ... be in META-INF/context.xml file?
Or does it have to be in the server.xml file? Next question. Once I've got it there, what do I have to do to 1. For a login for the app. 2. After the user has logged in, how do I get his role? Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JDBCrealm ... be in META-INF/context.xml file?
Howdy, As the Realm configuration document says: You may nest a Realm inside any Catalina container Engine, Host, or Context). In addition, Realms associated with an Engine or a Host are automatically inherited by lower-level containers, unless explicitly overridden. So yes to your first (subject line) question. Next question. Once I've got it there, what do I have to do to 1. For a login for the app. 2. After the user has logged in, how do I get his role? See the JDBC Realm HOW-TO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java applets
does anyone know if you can call instances to your own classes from java applets? ex. class MyApplet extends Applet{ MyClass temp = new MyClass(); } class MyClass { MyClass() } for some reason when i do that everthing below my instantiation gets cut off mike _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Standalone and Virtual Hosting
+1 !! I liked the idea. I note it for future needs. Antonio Fiol Roman Fail wrote: There's also an iptables workaround for port 80 on Linux that I am using in production and found very useful: http://www-106.ibm.com/developerworks/linux/library/l-secjav.html Roman -Original Message- From: Yoav Shapira [mailto:[EMAIL PROTECTED] Sent: Wed 6/18/2003 4:16 PM To: Tomcat Users List; [EMAIL PROTECTED] Cc: Subject: Re: Tomcat Standalone and Virtual Hosting Howdy, This partially depends on your OS. If you're on windows, you can just run tomcat on port 80. If you're on unix, port 80 is privileged and you need to: - Work around that, e.g. by using sudo or commons-launcher - Put an Apache front-end to serve static content on port 80, and connect it to tomcat for dynamic content. Either tomcat or apache by themselves support virtual hosting. For tomcat, you simply add more Host elements in server.xml. See the Host configuration reference in the tomcat docs. Yoav Shapira --- Latesha Williams [EMAIL PROTECTED] wrote: I have a web application deployed under Tomcat v4.1.18 (port 8080). Is it also possible to configure the Tomcat Standalone Service to support virtual hosting, but on port 80? If so, how is this accomplished? What is the best practices method for storing static web content in this situation? Should the web content be placed in the Tomcat directory, or someplace else? Any guidance you can provide is appreciated. Latesha Williams Applications Support, Information Technology American Museum of Natural History [EMAIL PROTECTED] (W) 212.769.5947 (C) 917.837.2460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = Yoav Shapira [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best versions - of Tomcat to run with apache
mode lazy=off ;-) href=http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java; Revision *1.39* http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?rev=1.39 / *(view)* http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?rev=1.39content-type=text/vnd.viewcvs-markup - annotate http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?annotate=1.39 - [select for diffs] http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?r1=1.39 , /Wed Apr 9 02:57:08 2003 UTC/ (2 months, 1 week ago) by /billbarker/ Branch: *MAIN* http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?only_with_tag=MAIN Changes since *1.38: +6 -3 lines* Diff to previous 1.38 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java.diff?r1=1.38r2=1.39 (colored http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java.diff?r1=1.38r2=1.39diff_format=h) Small fix to the Status-Line. Fix loading of CLIENT-CERT from Apache. Fix for Bug #15790 Reported By: Jay Garala [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /mode Antonio Fiol Shapira, Yoav wrote: Howdy, beingLazy Do you have the bugzilla ID for this issue? /beingLazy Yoav Shapira Millennium ChemInformatics -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:20 PM To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache Beware that late Tomcat behaves oddly when reading certificates from an Apache web server. Apparently, it will be fixed on 4.1.25, and is fixed on CVS (I will be testing it tomorrow morning, with a CVS snapshot taken a few days ago. If you want to hear about the results, please e-mail me at work at antonio dot fiol at red dot es ). Antonio Fiol Kyle J. Lange wrote: Yoav, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? MTiA -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:29 PM To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best versions - of Tomcat to run with apache
Howdy, Cool, thanks. Yoav Shapira Millennium ChemInformatics -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:40 PM To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache mode lazy=off ;-) href=http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java Revision *1.39* http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?rev=1.39 / *(view)* http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?rev=1.39conte nt-type=text/vnd.viewcvs-markup - annotate http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?annotate=1.39 - [select for diffs] http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?r1=1.39 , /Wed Apr 9 02:57:08 2003 UTC/ (2 months, 1 week ago) by /billbarker/ Branch: *MAIN* http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java?only_with_tag= MAIN Changes since *1.38: +6 -3 lines* Diff to previous 1.38 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java.diff?r1=1.38r 2=1.39 (colored http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java.diff?r1=1.38r 2=1.39diff_format=h) Small fix to the Status-Line. Fix loading of CLIENT-CERT from Apache. Fix for Bug #15790 Reported By: Jay Garala [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /mode Antonio Fiol Shapira, Yoav wrote: Howdy, beingLazy Do you have the bugzilla ID for this issue? /beingLazy Yoav Shapira Millennium ChemInformatics -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:20 PM To: Tomcat Users List Subject: Re: Best versions - of Tomcat to run with apache Beware that late Tomcat behaves oddly when reading certificates from an Apache web server. Apparently, it will be fixed on 4.1.25, and is fixed on CVS (I will be testing it tomorrow morning, with a CVS snapshot taken a few days ago. If you want to hear about the results, please e-mail me at work at antonio dot fiol at red dot es ). Antonio Fiol Kyle J. Lange wrote: Yoav, Do you (have to for your app.) also run a certificate and or any HTTPS pages? Or do I genuinely need Apache for such things? MTiA -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 5:29 PM To: Tomcat Users List Subject: RE: Best versions - of Tomcat to run with apache Howdy, I did the standard apache2 - tomcat mod_jk configuration once, just to try it out. But I run tomcat standalone, including in production, as I find its performance more than adequate and don't need any apache features. Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Profiler for Servlets?
On Thu, 19 Jun 2003, Shapira, Yoav wrote: Howdy, Search the list's archives. How do I do that since it's not obvious from the jakarta website. In fact, navigating through the apache projects' website is not very intuitive. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Profiler for Servlets?
Howdy, Go to jakarta.apache.org. Click Mailing Lists on the left. Click here near the bottom of the page after reading the page. You'll see the Archives and Searching section then. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jiann-Ming Su [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:02 PM To: Tomcat Users List Subject: RE: Profiler for Servlets? On Thu, 19 Jun 2003, Shapira, Yoav wrote: Howdy, Search the list's archives. How do I do that since it's not obvious from the jakarta website. In fact, navigating through the apache projects' website is not very intuitive. -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
i guess my question is in a java applet, can I import javabeans and use them. I'm having trouble because I cannot make instances of the beans I import. mike From: Michele Neylon :: BlacknightSolutions [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 21:03:38 +0200 Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Howdy, Yes. The bean classes must be in the jar that you name as the applet codebase. That jar cannot reside under the /WEB-INF directory of your webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: RE: java applets i guess my question is in a java applet, can I import javabeans and use them. I'm having trouble because I cannot make instances of the beans I import. mike From: Michele Neylon :: BlacknightSolutions [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 21:03:38 +0200 Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml init param
Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please help. I set initial parameters for a servlet in web.xml. When I start the server and run the servlet, the servlet can not get the initial parameters. It seems that the web.xml was not accessed at all. Can you help? By the way, is there a place that documents how to configure the web.xml and server.xml for different purposes?
RE: web.xml init param
If you are invoking your servlet through /servlet it will not pick up the init-params from web.xml. You need to invoke it through a proper mapping. That's my best shot. ;) -Original Message- From: Jing Huang [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:46 PM To: [EMAIL PROTECTED] Subject: web.xml init param Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please help. I set initial parameters for a servlet in web.xml. When I start the server and run the servlet, the servlet can not get the initial parameters. It seems that the web.xml was not accessed at all. Can you help? By the way, is there a place that documents how to configure the web.xml and server.xml for different purposes? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Hmm that really is dissapointing. I have a whole web app going with my java beans in my WEB-INF folder. I need to grab some information from the beans in my java applet so I can display graphical stuff, but there is no way to call the beans in my WEB-INF? mike From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:40:21 -0400 Howdy, Yes. The bean classes must be in the jar that you name as the applet codebase. That jar cannot reside under the /WEB-INF directory of your webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: RE: java applets i guess my question is in a java applet, can I import javabeans and use them. I'm having trouble because I cannot make instances of the beans I import. mike From: Michele Neylon :: BlacknightSolutions [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 21:03:38 +0200 Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml init param
Howdy, If you are invoking your servlet through /servlet it will not pick up the init-params from web.xml. Umm, no ;) If the invoker servlet is enabled then the init-param behavior is the same whether you use a servlet mapping or the invoker servlet. Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please help. I set initial parameters for a servlet in web.xml. When I start the server and run the servlet, the servlet can not get the initial parameters. It seems that the web.xml was not accessed at all. Can you help? Chances are your web.xml is malformed and you have some errors in the tomcat logs. What do the tomcat logs say? By the way, is there a place that documents how to configure the web.xml and server.xml for different purposes? Yes. For web.xml, the document is called The Servlet Specification, and you want version 2.3. For server.xml, look here: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Howdy, Clients cannot access content under WEB-INF. That's a protected directory per the Servlet Specification. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:54 PM To: [EMAIL PROTECTED] Subject: RE: java applets Hmm that really is dissapointing. I have a whole web app going with my java beans in my WEB-INF folder. I need to grab some information from the beans in my java applet so I can display graphical stuff, but there is no way to call the beans in my WEB-INF? mike From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:40:21 -0400 Howdy, Yes. The bean classes must be in the jar that you name as the applet codebase. That jar cannot reside under the /WEB-INF directory of your webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: RE: java applets i guess my question is in a java applet, can I import javabeans and use them. I'm having trouble because I cannot make instances of the beans I import. mike From: Michele Neylon :: BlacknightSolutions [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 21:03:38 +0200 Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
what is the server side alternative for java applets? mike From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:54:48 -0400 Howdy, Clients cannot access content under WEB-INF. That's a protected directory per the Servlet Specification. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:54 PM To: [EMAIL PROTECTED] Subject: RE: java applets Hmm that really is dissapointing. I have a whole web app going with my java beans in my WEB-INF folder. I need to grab some information from the beans in my java applet so I can display graphical stuff, but there is no way to call the beans in my WEB-INF? mike From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:40:21 -0400 Howdy, Yes. The bean classes must be in the jar that you name as the applet codebase. That jar cannot reside under the /WEB-INF directory of your webapp. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:37 PM To: [EMAIL PROTECTED] Subject: RE: java applets i guess my question is in a java applet, can I import javabeans and use them. I'm having trouble because I cannot make instances of the beans I import. mike From: Michele Neylon :: BlacknightSolutions [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 21:03:38 +0200 Hmm... My understanding of applets is that they are entirely client-side, so I don't think you can. Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.com/ Spam Virus scanning available # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Howdy, what is the server side alternative for java applets? Depends on your requirements: take a step back and tell us what you're trying to accomplish, and we can help pick the best design/implementation. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
I'm trying to make a multiplayer online game. Basically the game is a java bean on the webserver. Multiple browsers access the same java bean...much like an application scope scenario. Now I need to display the game with information inside these beans. the beans reside in my web-inf/classes...but now to my understanding using the applets I cannot import that bean to the applet. mike does that make it more clear? i can explain more =) From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:58:23 -0400 Howdy, what is the server side alternative for java applets? Depends on your requirements: take a step back and tell us what you're trying to accomplish, and we can help pick the best design/implementation. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ServletRequestListener, ServletRequestAttributeListener examples
Howdy, I was about to write examples for the new Servlet 2.4 listeners for tomcat 5's example webapp, but before I make something up I wanted to ask: do people have any good ideas for when to use these new listeners? See SRV.14.2.20 for ServletRequestListener, SRV.14.2.18 for ServletRequestAttributeListener. (In the Servlet Specification, v2.4 PFD3). Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can JDBCrealm ... be in META-INF/context.xml file?
Thanks, I'm making progress. I found samples of three different versions of the realm descriptor. JDBCRealm ... realm ... and Realm JDBCRealm and Realm both behave the same. When I use them with: connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim I get an error message upon deployment: FAIL - Encountered exception java.io.IOException: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Adding a ; to the end of the password doesn't help. However changing it to: connectionURL=jdbc:mysql://localhost/authority?user=jim;password=jim does fix the problem, however when I attempt to log in, it fails. There are no entries in the mysql.log file so I'm pretty sure it isn't actually getting logged in. Here is part of the localhost_log.2003-06-19.txt file: I apologize for the wrap... 2003-06-19 16:02:09 StandardWrapper[/resources:default]: Loading container servlet default 2003-06-19 16:02:09 StandardWrapper[/resources:invoker]: Loading container servlet invoker 2003-06-19 16:02:09 StandardContext[/resources]: Starting completed 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:33 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:33 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:33 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:33 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:33 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:33 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:33 Authenticator[/resources]: Failed authenticate() test I can't find anything in the log as a result of the debug setting in the realm . Here's my whole context.xml file: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=9 displayName=resources docBase=/usr/local/jakarta-tomcat-4.1.24/webapps/resources mapperClass=org.apache.catalina.core.StandardContextMapper path=/resources privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper JDBCRealm classname=org.apache.catalina.realm.JDBCRealm debug=9 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context Anyone see what might be wrong? I've logged into the mysql database with the user/pw and accessed the tables so I'm sure that is working. Besides, if he attempted to log in, it would show up in the mysql.log. The application I'm trying to protect is accessing mysql fine, so I know the .jar file is working. THanks, Jim. Shapira, Yoav wrote: Howdy, As the Realm configuration document says: You may nest a Realm inside any Catalina container Engine, Host, or Context). In addition, Realms associated with an Engine or a Host are automatically inherited by lower-level containers, unless explicitly overridden. So yes to your first (subject line) question. Next question. Once I've got it there, what do I have to do to 1. For a login for the app. 2. After the user has logged in, how do I get his role? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JDBCrealm ... be in META-INF/context.xml file?
Howdy, I'm surprised JDBCRealm even gets you that far. You should use Realm as the document says: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=dbuserpassword=dbp ass userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ The document I'm referring to is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 4:20 PM To: Tomcat Users List Subject: Re: Can JDBCrealm ... be in META-INF/context.xml file? Thanks, I'm making progress. I found samples of three different versions of the realm descriptor. JDBCRealm ... realm ... and Realm JDBCRealm and Realm both behave the same. When I use them with: connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim I get an error message upon deployment: FAIL - Encountered exception java.io.IOException: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Adding a ; to the end of the password doesn't help. However changing it to: connectionURL=jdbc:mysql://localhost/authority?user=jim;password=jim does fix the problem, however when I attempt to log in, it fails. There are no entries in the mysql.log file so I'm pretty sure it isn't actually getting logged in. Here is part of the localhost_log.2003-06-19.txt file: I apologize for the wrap... 2003-06-19 16:02:09 StandardWrapper[/resources:default]: Loading container servlet default 2003-06-19 16:02:09 StandardWrapper[/resources:invoker]: Loading container servlet invoker 2003-06-19 16:02:09 StandardContext[/resources]: Starting completed 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:33 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:33 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:33 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:33 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:33 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:33 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:33 Authenticator[/resources]: Failed authenticate() test I can't find anything in the log as a result of the debug setting in the realm . Here's my whole context.xml file: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=9 displayName=resources docBase=/usr/local/jakarta-tomcat-4.1.24/webapps/resources mapperClass=org.apache.catalina.core.StandardContextMapper path=/resources privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper JDBCRealm classname=org.apache.catalina.realm.JDBCRealm debug=9 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context Anyone see what might be wrong? I've logged into the mysql database with the user/pw and accessed the tables so I'm sure that is working. Besides, if he attempted to log in, it would show up in the mysql.log. The application I'm trying to protect is accessing mysql fine, so I know the .jar file is working. THanks, Jim. Shapira, Yoav wrote:
Re: ServletRequestListener, ServletRequestAttributeListener examples
Just a quicky warning: Tomcat5's examples webapp is still 2.3 webapp. Doh! -Tim Shapira, Yoav wrote: Howdy, I was about to write examples for the new Servlet 2.4 listeners for tomcat 5's example webapp, but before I make something up I wanted to ask: do people have any good ideas for when to use these new listeners? See SRV.14.2.20 for ServletRequestListener, SRV.14.2.18 for ServletRequestAttributeListener. (In the Servlet Specification, v2.4 PFD3). Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletRequestListener, ServletRequestAttributeListener examples
Howdy, That's OK, I was going to address that too ;) Thanks though... Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 4:28 PM To: Tomcat Users List Subject: Re: ServletRequestListener, ServletRequestAttributeListener examples Just a quicky warning: Tomcat5's examples webapp is still 2.3 webapp. Doh! -Tim Shapira, Yoav wrote: Howdy, I was about to write examples for the new Servlet 2.4 listeners for tomcat 5's example webapp, but before I make something up I wanted to ask: do people have any good ideas for when to use these new listeners? See SRV.14.2.20 for ServletRequestListener, SRV.14.2.18 for ServletRequestAttributeListener. (In the Servlet Specification, v2.4 PFD3). Yoav Shapira Millennium ChemInformatics - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java applets
Hmm my solution to my problem is to get all the information i need first and pass it to the client where he loads in the applet. Too bad applets aren't server side. From: Michael Ni [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 13:03:27 -0700 I'm trying to make a multiplayer online game. Basically the game is a java bean on the webserver. Multiple browsers access the same java bean...much like an application scope scenario. Now I need to display the game with information inside these beans. the beans reside in my web-inf/classes...but now to my understanding using the applets I cannot import that bean to the applet. mike does that make it more clear? i can explain more =) From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: java applets Date: Thu, 19 Jun 2003 15:58:23 -0400 Howdy, what is the server side alternative for java applets? Depends on your requirements: take a step back and tell us what you're trying to accomplish, and we can help pick the best design/implementation. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JDBCrealm ... be in META-INF/context.xml file?
Here's my realm from Tomcat 4.1.x Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/appfuse?autoReconnect=true connectionName=test connectionPassword=test userTable=app_user userNameCol=username userCredCol=password userRoleTable=user_role roleNameCol=role_name / -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:20 PM To: Tomcat Users List Subject: Re: Can JDBCrealm ... be in META-INF/context.xml file? Thanks, I'm making progress. I found samples of three different versions of the realm descriptor. JDBCRealm ... realm ... and Realm JDBCRealm and Realm both behave the same. When I use them with: connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim I get an error message upon deployment: FAIL - Encountered exception java.io.IOException: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Adding a ; to the end of the password doesn't help. However changing it to: connectionURL=jdbc:mysql://localhost/authority?user=jim;password=jim does fix the problem, however when I attempt to log in, it fails. There are no entries in the mysql.log file so I'm pretty sure it isn't actually getting logged in. Here is part of the localhost_log.2003-06-19.txt file: I apologize for the wrap... 2003-06-19 16:02:09 StandardWrapper[/resources:default]: Loading container servlet default 2003-06-19 16:02:09 StandardWrapper[/resources:invoker]: Loading container servlet invoker 2003-06-19 16:02:09 StandardContext[/resources]: Starting completed 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:33 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:33 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:33 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:33 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:33 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:33 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:33 Authenticator[/resources]: Failed authenticate() test I can't find anything in the log as a result of the debug setting in the realm . Here's my whole context.xml file: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=9 displayName=resources docBase=/usr/local/jakarta-tomcat-4.1.24/webapps/resources mapperClass=org.apache.catalina.core.StandardContextMapper path=/resources privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper JDBCRealm classname=org.apache.catalina.realm.JDBCRealm debug=9 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / /Context Anyone see what might be wrong? I've logged into the mysql database with the user/pw and accessed the tables so I'm sure that is working. Besides, if he attempted to log in, it would show up in the mysql.log. The application I'm trying to protect is accessing mysql fine, so I know the .jar file is working. THanks, Jim. Shapira, Yoav wrote: Howdy, As the Realm configuration document says: You may nest a Realm inside any Catalina container Engine,
Re: Can JDBCrealm ... be in META-INF/context.xml file?
Yes, I tried that too, but had the same problem. If I had put this in the server.xml file I would never have seen the problem. The fact I'm putting in the META-INF/context.xml file and am doing an ant deploy to send it via http is causing the problem. Turns out you've got to encode that stupid ampersand. This works: connectionURL=jdbc:mysql://localhost/authority?user=dbuseramp;password=dbpass Thanks for the help. Perhaps someone else will benfit from my discovery. This should be in a FAQ somewhere. Jim. Shapira, Yoav wrote: Howdy, I'm surprised JDBCRealm even gets you that far. You should use Realm as the document says: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=dbuserpassword=dbp ass userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name/ The document I'm referring to is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRea lm Yoav Shapira Millennium ChemInformatics -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 4:20 PM To: Tomcat Users List Subject: Re: Can JDBCrealm ... be in META-INF/context.xml file? Thanks, I'm making progress. I found samples of three different versions of the realm descriptor. JDBCRealm ... realm ... and Realm JDBCRealm and Realm both behave the same. When I use them with: connectionURL=jdbc:mysql://localhost/authority?user=jimpassword=jim I get an error message upon deployment: FAIL - Encountered exception java.io.IOException: org.xml.sax.SAXParseException: The reference to entity password must end with the ';' delimiter. Adding a ; to the end of the password doesn't help. However changing it to: connectionURL=jdbc:mysql://localhost/authority?user=jim;password=jim does fix the problem, however when I attempt to log in, it fails. There are no entries in the mysql.log file so I'm pretty sure it isn't actually getting logged in. Here is part of the localhost_log.2003-06-19.txt file: I apologize for the wrap... 2003-06-19 16:02:09 StandardWrapper[/resources:default]: Loading container servlet default 2003-06-19 16:02:09 StandardWrapper[/resources:invoker]: Loading container servlet invoker 2003-06-19 16:02:09 StandardContext[/resources]: Starting completed 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:31 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:31 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:31 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:31 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:31 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:31 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:31 Authenticator[/resources]: Failed authenticate() test 2003-06-19 16:02:33 Authenticator[/resources]: Security checking request GET /resources 2003-06-19 16:02:33 Authenticator[/resources]: Checking constraint 'SecurityConstraint[resources]' against GET -- true 2003-06-19 16:02:33 Authenticator[/resources]: Subject to constraint SecurityConstraint[resources] 2003-06-19 16:02:33 Authenticator[/resources]: Calling checkUserData() 2003-06-19 16:02:33 Authenticator[/resources]: User data constraint has no restrictions 2003-06-19 16:02:33 Authenticator[/resources]: Calling authenticate() 2003-06-19 16:02:33 Authenticator[/resources]: Failed authenticate() test I can't find anything in the log as a result of the debug setting in the realm . Here's my whole context.xml file: Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=9 displayName=resources docBase=/usr/local/jakarta-tomcat-4.1.24/webapps/resources mapperClass=org.apache.catalina.core.StandardContextMapper path=/resources privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper JDBCRealm