Tomcat 4.1.18 session
I moved my web appl from Tomcat 4.0.4 to Tomcat4.1.18. For each user session I store the reference to the session in a Vector so that I can tell what users are logged-in, last-accessed-time etc. It was working fine in Tomcat 4.0.4. But in Tomcat4.1.18 (perhaps due to new specifications) session objects are pooled (StandardSessionFactory) and hence the references I am storing in the Vector become useless across the jsp page calls. I have a thread that uses this Vector to clean up the users that are timedout but since the session refs in my Vector are useless I can do nothing. Instead of storing the refs if I store Session IDs then can I get ref to a session from JSP Server so that I can get the attributes I have set in it. Please comment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mac os x and class files
Hi Warren, classes can go into two places in a webapp, let's say I have a myapp as an example myapp |WEB-INF |-classes |-lib You can put all your classes (if they are not in jar in classes, follow whatever package structure you need) in the classes directory. also : you can put all your classes in the lib directory if they are in a jar file. Tomcat should be able to find your classes now. Warrren Burholt wrote: Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: %@ page import=Plans021103% %@ page import=SidebarTr% %@ page import=java.util.HashMap % %@ page import=java.io.* % %@ page import=java.util.regex.* % Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB-INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe [EMAIL PROTECTED] Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Mac os x and class files Reply-To: Tomcat Users List [EMAIL PROTECTED] Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as jakarta-tomcat-4.1.8-LE-jdk14 I'm really glad to hear that Tomcat works great on os x -- actually that has been my experience with jakarta-tomcat-4.0.3 except for the class mystery. Thank you for your help, Jake and Ian. From: Jake Robb [EMAIL PROTECTED] Date: Fri Feb 21, 2003 9:17:35 PM America/Montreal To: Tomcat Users List
Read parameters from web.xml
Hi all. I've creating my own JNDIRealm and I would like to read the parameters from $CATALINA_HOME/webapps/example/WEB-INF/web.xml file. How I can to read these parameters?? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent (servlets+jdbc(oracle8i thin driver)+tomcat)
Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file that is in zaf_fin directory and a servlet also in the same directory in webapps. pls help me out , i would be very very thankful for yr kind help. [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent (servlets+jdbc(oracle8i thin driver)+tomcat)
Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file, a servlet file both in zaf_fin directory and how to call the servlet from html.what should be written in action tag to call it? pls help me out , i would be very very thankful for yr kind help. [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent (servlets+jdbc(oracle8i thin driver)+tomcat)
Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file, a servlet file both in zaf_fin directory and how to call the servlet from html.what should be written in action tag to call it? pls help me out , i would be very very thankful for yr kind help. [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBC ORACLE implementation !
hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: JDBC ORACLE implementation ! Date: Thu, 20 Feb 2003 09:14:52 -0800 clip senior DBA's help. when ever I need to tune oracle, I ask my Oracle DBA friends who have 8 yrs of exp for help. peter Me too, oracle can be a pain. If you stay small however all the tuning defaults should work for you. --mikej -=- mike jackson [EMAIL PROTECTED] - 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]
web.xml and server.xml for *.jsp pages
Hi all, I've got the following jsp page: C:\Apache\Tomcat\webapps\holidayspots\jsp\index.html What changes do I need to make to the server.xml and the web.xml to be able to able to open the jsp page using: http://localhost:8080/holidayspots/ Thanks! Romeo Dickason Java Developer eMMS Discovery Health Ltd Reg number: 66/03901/06 Web: www.discoveryhealth.co.za This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Discovery Health Ltd immediately, telephone number +27-11-529 2888. Any unauthorized use, alteration or dissemination is prohibited. Discovery Health Ltd accepts no liability whatsoever for any loss, whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MBeans and MC4J
Hi, I'm trying to manage Tomcat from mc4j, but I can't find any documentation for the MBeans support. Is the MBean support official and how can I use it from an external tool? Achim
urgent (servlets+jdbc(oracle8i thin driver)+tomcat)pls reply soon
-- - Forwarded Message - DATE: Mon, 24 Feb 2003 01:10:47 From: zafar ahsan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file, a servlet file both in zaf_fin directory which is in webapps directory and how to call the servlet from html.what should be written in action tag to call it? pls help me out , i would be very very thankful for yr kind help. [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - End Forwarded Message - _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Read parameters from web.xml
Hi all. I've creating my own JNDIRealm and I would like to read the parameters from $CATALINA_HOME/webapps/example/WEB-INF/web.xml file. How I can to read these parameters?? Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Excel sheets
And the swirl goes on ... try putting putting response.setHeader(Content-disposition, attachment; filename=foo.csv); and watch as you get two save as dialogs from the browser (I.E. 5.5, I think) ... ouch! WARNING: You can waste a lot of time on this problem. Proceed at your own risk :-) We reported a bug to Microsoft on the double dialog problem ... you guessed it ... software is working as designed. They actually said that having to respond to two save as dialogs was per design. Figures, John -Original Message- From: Mike Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 2:52 AM To: Tomcat Users List Cc: John Leveille Subject: RE: Excel sheets I was having the same problem with IE until I finally found a microsoft document on the subject. It suggested setting the Content-disposition header, which does force IE to treat files like you'd expect. *shrugs* eg: response.setHeader(Content-disposition, filename=foo.csv); On Thu, 2003-02-20 at 18:31, John Leveille wrote: Ah, I have done battle with this one many times. I grow weary of the fight. First let me say that this problem can stem from a variety of causes given the many combinations of browser make, browser version, and web server make and version. In the past I have found that I.E. ignores the content-type header (bad browser! bad browser!). But, by all means, do as Tim says and set the proper header (probably text/csv). If that doesn't do it, try adding a couple fake parameters to the URL (because I.E. is looking there to decide what client app to launch). For example, if you have a servlet creating the CSV your URL might look like http://localhost:8080/myservlet?a=b change this to http://localhost:8080/myservlet/foo.csv?a=bsaveas=/foo.csv This is usually enough to convince the browser to do the right thing. John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, February 20, 2003 9:10 PM To: Tomcat Users List Subject: Re: Excel sheets Tomcat is not sending the right header back( Content-type probably). Telnet into port 80, simulate a web request and see what the server repsonse header is and adjust tomcat accordingly. -Tim David Epstein wrote: I have a website that serves up files, which are often .csv files. When I run the site using IIS (ick), a user with Excel on their machine will see the .csv files automatically open in Excel. But when I use the Tomcat server, I can't get it to do the same. Is there an easy way to enable this functionality? Any help appreciated. David Epstein - 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] -- Mike Johnson [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database load balancing?
Does anyone have a clue about load balancing read-only database requests to PostgreSQL? I'm developing a data-intensive application that requires scalability, not just from Tomcat, but from Postgres as well. I will use hardware load balancing to Tomcat, but I cannot do the same to a database using persistent connections. The only thing I've seen (after several days of searching) is DBBalancer, an alpha release load balancer with no JDBC support. I know SOMEBODY is running a load-balanced database architecture. Your insights are in need! Thanks in advance, Hawkeye King - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Database load balancing?
It depends on your requirements. For read only load balancing to achieve more performance you might also consider to use replication: http://gborg.postgresql.org/project/pgreplication/projdisplay.php This way you could for exapmle setup 4 instances of tomcat and 2 instances of postgreSQL where one db instance is shared by two tomcats. This is no true loadbalancing, but might give you enough power through the use of serveral db instances. The main drawbacks against true load balancing are: - no simple fail over (you would have to implement on your own) - no load based switching between databases. (The connectiones between the tomcat instances and the databases are rather static) You migh also read the following article http://conferences.oreillynet.com/presentations/os2002/johnson_darren.pdf with pointers to other replication solution to postgreSQL. -Original Message- From: Hawkeye I. King [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:39 AM To: Tomcat Users List Subject: Database load balancing? Does anyone have a clue about load balancing read-only database requests to PostgreSQL? I'm developing a data-intensive application that requires scalability, not just from Tomcat, but from Postgres as well. I will use hardware load balancing to Tomcat, but I cannot do the same to a database using persistent connections. The only thing I've seen (after several days of searching) is DBBalancer, an alpha release load balancer with no JDBC support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: urgent (servlets+jdbc(oracle8i thin driver)+tomcat)pls reply soon
Tx for help Do u mean i will have to copy it to my application . i mean in $tomcat_home\webapps\zaf_fin\web_inf\classes\ or $tomcat_home\lib\ and then add the class path environment variable. pls let me know soon , i would be thankful for yr help, also pls let me what else do i need to do. zafar -- On Mon, 24 Feb 2003 18:46:04 Galbayar Dorjgotov wrote: copy oracle driver to the $TOMCAT_HOME\common\lib\ directory -Original Message- From: zafar ahsan [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 5:43 PM To: [EMAIL PROTECTED] Subject: urgent (servlets+jdbc(oracle8i thin driver)+tomcat)pls reply soon -- - Forwarded Message - DATE: Mon, 24 Feb 2003 01:10:47 From: zafar ahsan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file, a servlet file both in zaf_fin directory which is in webapps directory and how to call the servlet from html.what should be written in action tag to call it? pls help me out , i would be very very thankful for yr kind help. [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - End Forwarded Message - _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.18 standard version XML parser
All, this might be a old question but I'd searched online and can't find any tomcat 4.1.x related. so hope someone could help. I am using a vendor's jar file which need using a version of Xerces parser(sorry asking them now which version) so I guess can't use default tomcat one. so I place the xercesImpl.jar (from them) into the MYAPPDIR/WEB-INF/lib. I am not start tomcat using the -D endors setting so the parser in COMMON/ENDORSED shouldn't be used by tomcat. in this case, can I tell that all my appl is using the parser in MYAPPDIR/WEB-INF/lib instead of any others? Neither the one from JDK 1.4(I am using 1.4.02) nor tomcat internal? Many thanks, HL -let me send this mail before I go insane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Virtual Sites in IIS
Hi. Thank You very much for Your help. It is working very well. I did it earlier, but I forgot restart IIS and I couldn't connect to Tomcat by means of redirect.dll. This is my fault. Thanks and have a nice day. Konrad - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:46 AM Subject: RE: Tomcat and Virtual Sites in IIS Morning! In your uriworkermap.properties ( if you use jk - redirect.dll), needs to type /oponyzimowe/*.jsp=$(yourworke.worker) so isapi redirector will be able to redirect all request for this url into Tomcat. BeSt ReGaRdS level0 icq#155042687 -Original Message- From: Konrad Rusz [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 12:29 PM To: Tomcat Users List Subject: Tomcat and Virtual Sites in IIS Hi. I have one question. I'm trying to configure Tomcat 4.1.12 to work with IIS 5.0. All of my settings work properly, but I can't configure IIS Virtual Sites to serve .jsp pages by means of Tomcat (I have configured site in IIS - this site name is sklep.zlp.pl, and I have configured virtual directory naming 'oponyzimowe' under this site; I have configured virtual directory naming 'jakarta' under this site as well). I think it is correct, because when I connect over Internet to site http://sklep.zlp.pl/examples I can see that my Tomcat work and I be able to execute examples servlets and .jsp pages. However, if I try to connect over the Internet to the site http://sklep.zlp.pl/oponyzimowe/examples I see the IIS Error 404 - File Not Found. How can I configure my Tomcat and IIS to work with IIS Virtual Sites? If You have some idea please contact me. Konrad Rusz 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]
AW: Connection Pooling
Hello Sebastian, i think, the common-dbcp + commons-pooling is the better way. I tried both ways, but no one works! My problem is the context. Whe i make a Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/TestB); this Datasource Statement raise an error. It seems, the context jdbc/TestDB will never initialized. I test the (envCtx != null), but it is not null. I don't know, what I can do, because I tried it two weeks and every time the same error. It seems, it would not work on XP and 1.4.1?! Regards Chris -Ursprüngliche Nachricht- Von: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 23. Februar 2003 19:37 An: [EMAIL PROTECTED] Betreff: RE: Connection Pooling Indeed which is the difference of using 1. Tomcat JNDI: or 2. commons-dbcp + commons-pooling: ? Thank you There are two options. 1. Tomcat JNDI: refer to Tomcat's JNDI datasource how-to 2. commons-dbcp + commons-pooling: refer to commons-dbcp and pooling API documentation Which one do you want to know? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing Sebastião Carlos Santos Oracle Database Administrator - OCP DBA 8i Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Get URL within JNDIRealm
Hi... I've making a JNDIRealm with LDAP access and I need to get the URL where JNDIRealm is called. I've various security constraints and I would like to distinguish the protected zones. How I can to get the URL within of my own JNDIRealm?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Subject: RE: Tomcat 4.1.18-LE re-writes tomcat-users.xml file; why?
1. Tomcat-dev is the place for that discussion 2. Submit a patch 3. Solved John -Original Message- From: nord ehacedod [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 10:21 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Subject: RE: Tomcat 4.1.18-LE re-writes tomcat-users.xml file; why? Yoav is correct - you can create users in the Admin webapp. ...and you could use the Fullname field for your comments. So users should put comments into the Fullname attribute because the file must be writeable for the admin app even if you don't run the admin app? This is likely to depress instead of impress Tomcat users. We make few changes to the tomcat-users.xml file and do not run the admin webapp, so it is natural for us to want this file to be configured read-only. It is fairly easy to find the few lines of code in org.apache.catalina.user.MemoryUserDatabase which do the rewriting, comment them out, rename the class ReadOnlyMemoryUserDatabase, compile it, put it in server/lib/, and edit server.xml to use the fixed class. It would be nice to have a configurable option instead. -- nord __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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: Apache modules with Tomcat
My point was that changing the output of a servlet stream, from an architectural and portability standpoint, is probably more appropriate while Tomcat still has control over the output. I'm sure there are a number of ways to get what you want, some requiring more work, some requiring less. John -Original Message- From: Jordan Hayes [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:55 AM To: Tomcat Users List Subject: Re: Apache modules with Tomcat Have you considered Tomcat filters instead? ... except that the modules I want to use are already written? Sure: it's software. I could just write something new. I take it the answer is 'no' then? :-) /jordan - 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: Problem with Tomcat Apache running on Different IPs
I don't use JK2, so I cant answer #2 and #3. The answer to #1 is: No, it is not required to run Tomcat and Apache on the same IP address, as long as the relevant properties files for your chosen connector point to the IP address where Tomcat listens. Looking at your URL, it looks like the problems you are having in #1 are virtual host related. If you don't have an Apache VirtualHost for that IP address, and a corresponding connector config, and a corresponding Tomcat Host container, you will get an error. By default, Tomcat is only configured to listen for requests for http://localhost;. If you want anything different, you have to set it up. John -Original Message- From: Santos Jha [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:21 PM To: Tomcat Users List Subject: Problem with Tomcat Apache running on Different IPs Hello all, After successfully configuring mod_jk2 to enable communication in between Apache and tomcat, I have couple of questions. I will love to know the answers.: 1. With Ajp13 is it necessary to run tomcat apache on same IP? Here is the scenario: For me Apache is running of real IP(192.168.0.200) and tomcat is listening on localhost at port 8009. If I goto http://192.168.0.200:80, I can see the output from Apache. but If I type http://192.168.0.200:80/examples I get HTTP 400 However, If I goto http://localhost/examples i can see the all outputs. I think if I make changes in server.xml and workers.properties(make same IP), I should be able to get the output even on 192.168.0.200. I have not tried though. 2. What is the use of mod_jk2.conf. The default file that comes with tomcat has all the lines commented. If I get any line uncomented I get following error: SEVERE: can't create apr. ( Is this apr related to WARP protocol?) java could not find some logging class.? I even tried to make changes in catalina.sh to alter CLASSPATH but no avail After reading the documentation, it seems mod_jk2.conf can be automatically generated. In case of mod_jk there are certain parameter that kept in server.xml will generate in file, should be follow same direction/ 3.It seems to me if I want to use Unix domain socket ( which should be faster), all I need to do is to uncommnent releted lines in mod_jk2.properties. But for me tomcat never created any socket file ? please let me know if anyone knows the trick. Thanks you. Santos - 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]
Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind
RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Add servlet-mapping servlet-nameTesting/servlet-name url-pattern/servlet/MyServlet/url-pattern (change this as needed) /servlet-mapping to your web.xml below the entry you already made. The entry you have is incomplete, there is no URL map. That's the reason for the 404. John -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:56 AM To: Tomcat Users List Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18) Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)
Are you using jdk 1.4, in 1.4 you can no longer have non packaged classes.. Also you might need to setup the default servlet as it is disabled by default for security reasons. If you do not want to enable the default servlet you could also create a servlet mapping. John -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:56 AM To: Tomcat Users List Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18) Hi. I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat. 1.) I have placed the servlet class in: .../webapps/application/WEB-INF/classes/servlet class 2.) I have added a web.xml file in: .../webapps/application/WEB-INF/web.xml 3.) I have added the following lines to the web.xml file: - servlet -servlet-nameTesting/servlet-name -servlet-classTesting/servlet-class - /servlet 4.) I have then tried to execute the servlet with this: - a href=/servlet/TestingTesting servlet/a and - a href=/application/servlet/TestingTesting servlet/a but I am always getting a HTTP Status 404 ERR: - The requested resource (path to servlet class) is not available. Any help is appriciated. Best regards, Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml and server.xml for *.jsp pages
In the server.xml you have to define a context like Context path=/holidayspots docBase=C:/Apache/Tomcat/webapps/holidayspots/jsp .. in the same location you have web.xml you will find the last entry(most of the times) welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list hope this helps -Original Message- From: Romeo Dickason [SMTP:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:54 PM To: 'Tomcat Users List' Subject:web.xml and server.xml for *.jsp pages Hi all, I've got the following jsp page: C:\Apache\Tomcat\webapps\holidayspots\jsp\index.html What changes do I need to make to the server.xml and the web.xml to be able to able to open the jsp page using: http://localhost:8080/holidayspots/ Thanks! Romeo Dickason Java Developer eMMS Discovery Health Ltd Reg number: 66/03901/06 Web: www.discoveryhealth.co.za This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Discovery Health Ltd immediately, telephone number +27-11-529 2888. Any unauthorized use, alteration or dissemination is prohibited. Discovery Health Ltd accepts no liability whatsoever for any loss, whether it be direct, indirect or consequential, arising from information made available and actions resulting there from. - 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]
Apache and Tomcat: a bad practice
Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
urgent pls help me(servlets+jdbc(oracle8i thin driver)+tomcat)pls reply soon
Hello Am working on oracle8i,servlets and tomcat. My tomcat3.2.4 is working ok. Am new and novice to tomcat as well as java technology can pls any one help me, how to get my application working on tomcat.i just mean what i will have to do it to connect the oracle to tomcat, would i have to configure server.xml file for this if so what i would have to do am using thin layer driver for oracle and the application is running ok on java. i have already written a servet and have commiled it , the onlything i require to know is do i need to configure tomcat for this and if so what is to be done. ok i have a html file, a servlet file both in zaf_fin directory which is in webapps directory and how to call the servlet from html.what should be written in action tag to call it? pls help me out , i would be very very thankful for yr kind help. zafar Ahsan [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database load balancing?
Try caching first; with Poolman.sf.net or http://www.phworks-online.com/cache.html Replication could slow you down. .V Ralph Einfeldt wrote: It depends on your requirements. For read only load balancing to achieve more performance you might also consider to use replication: http://gborg.postgresql.org/project/pgreplication/projdisplay.php This way you could for exapmle setup 4 instances of tomcat and 2 instances of postgreSQL where one db instance is shared by two tomcats. This is no true loadbalancing, but might give you enough power through the use of serveral db instances. The main drawbacks against true load balancing are: - no simple fail over (you would have to implement on your own) - no load based switching between databases. (The connectiones between the tomcat instances and the databases are rather static) You migh also read the following article http://conferences.oreillynet.com/presentations/os2002/johnson_darren.pdf with pointers to other replication solution to postgreSQL. -Original Message- From: Hawkeye I. King [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:39 AM To: Tomcat Users List Subject: Database load balancing? Does anyone have a clue about load balancing read-only database requests to PostgreSQL? I'm developing a data-intensive application that requires scalability, not just from Tomcat, but from Postgres as well. I will use hardware load balancing to Tomcat, but I cannot do the same to a database using persistent connections. The only thing I've seen (after several days of searching) is DBBalancer, an alpha release load balancer with no JDBC support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Manager in 3.3.1
Hello, I'd like to know if there is any way to execute the Tomcat Manager in 3.3.1. I know this is a 4.0.1 functionality, but is there a patch that enables this in 3.3.1 ? Thanks a lot .. Sincerely, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache and Tomcat: a bad practice
Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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: JDBC ORACLE implementation !
overall, using JDBC with Tomcat is the easy part. Deciding how to implement your tables and application logic will be the hard part. If your data is not normalized and doesn't need to be, then the first thing you should look into is statistical analysis of text. there are several well tested algo's for doing this type of processing. Unfortunately I don't know the name of the algo's. I worked on integrating personalization applications a couple years back relating to filtering news. If your needs aren't too complex, it shouldn't take too long to implement some form of statistical analysis. Using file system to store the entire text doesn't necessarily mean you can't store the text summaries in Oracle. Google for related topics and you should be to find some examples. If you're needs are more complex, you'll need to look into grammar based parsing, which is a slow process. Most of the comparison between grammar based and statistical parsing has shown that statistical is more effective. hope that helps. peter Swapneel Dange [EMAIL PROTECTED] wrote:hey peter, mike chong ! so if i stay with a small thing like SQLPLUS, the JDBC connectivity wont be a tough thing to do as compared to the ORACLE implementation. right ? because in last few days after consulting with some people in-house here, i am thinking over the OPTION of SQLPLUS. do commment on this ! Swapneel Dange 505-642-4126 http://www.cs.nmsu.edu/~sdange From: Mike Jackson Reply-To: Tomcat Users List To: Tomcat Users List Subject: RE: JDBC ORACLE implementation ! Date: Thu, 20 Feb 2003 09:14:52 -0800 senior DBA's help. when ever I need to tune oracle, I ask my Oracle DBA friends who have 8 yrs of exp for help. peter Me too, oracle can be a pain. If you stay small however all the tuning defaults should work for you. --mikej -=- mike jackson [EMAIL PROTECTED] - 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Re: Apache and Tomcat: a bad practice
No need to use big words. I was just giving you good practice, vs no so good practice. I take it you disagree. You can load balance Tomcat just fine. IMO: It's a good practice to try to avoid using Apache. Mostly newbies think that this is required. I am just saying, this is not required or possibly good. It makes operations and development easier not to have Apache, and my clients have removed it to great sucess. Take it into consideration a word to the wise. http://www.mail-archive.com/[EMAIL PROTECTED]/msg85780.html .V Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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: Internal Server Error
Howdy, Apologies in advance - newbie here. Don't apologize for that ;) Running Tomcat 4.0.6 on 2000 box, using JDK 1.3.1_02, and Apache 1.3. I'm Cool. Suggest you update JDK to 1.4.1 if you can, as 1.3x has numerous bugs and 1.4.1 is faster. (pasted below). From looking through the threads, I belive I have some type of XML parser error - but I'm too new at this to be sure. Any ideas Your hunch is right. root cause java.lang.VerifyError: (class: org/apache/xerces/jaxp/DocumentBuilderImpl, method: parse signature: (Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;) Incompatible object argument for function call at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Do cume ntBuilderFactoryImpl.java:88) This indicates a mismatch between the version of JAXP and the version of Xerces that are on your classpath. Are you using tomcat 4.0.6-LE or the full 4.0.6 distribution? What are the names and versions of all the jars containing the org.apache.xerces and org.xml.sax/org.w3c.dom packages throughout your tomcat distribution? Look in $CATALINA_HOME/common/lib, your webapps WEB-INF/lib directories, and $CATALINA_HOME/server/lib. Also see release notes section on XML Parsers. Chances are you will have to remove/replace one or more of the XML parser-related (either the JAXP API or the xerces implementation) jars in your webapp directory. 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: Is it necessary to use a jdk with tomcat?
Howdy, Technically, as things are right now, if you don't have JSPs that need to be compiled at runtime, you can use the JRE. If you have JSPs and want to use the JRE, pre-compile your JSPs using JspC. However, please note that the official tomcat requirement for installation is the JDK, not the JRE. That may change in the future, but it is the policy right now and has been for a while. Generally speaking, if you do not follow installation instructions for a product and then run into difficulties, you will have a tougher time getting (relevant) support. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 6:35 PM To: [EMAIL PROTECTED] Subject: Is it necessary to use a jdk with tomcat? Hi all, Is it better to run tomcat with a jdk over a jre? Or it doesn't really matter... Thanks! Alain - 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: Microsoft JVM
Howdy, What's the -version output on that JVM? From you message I gather you've so far tried unsuccessfully to do this. That's not too surprising. I think the MS JVM is really old. Yoav Shapira Millennium ChemInformatics -Original Message- From: rf [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 1:11 AM To: [EMAIL PROTECTED] Subject: Microsoft JVM Has anybody tried to run tomcat using the Microsoft JVM - jview? If yes, what do you set for JAVA_HOME? Thank you ~rf __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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: Mapping .jsp to controller servlet
You should use filters instead of a bean. They will greatly simplify what you are trying to do as Erik explained. When you create new JSP's, you will just be able to drop them in the mapped directory and they will automatically be protected by your filter. any JSP that is not protected by tomcat's authentication(as defined in your web.xml) or by a filter(for custom authentication) will be available to anyone who knows the URL. Otherwise no one would be able to see any of your pages. Charlie -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 4:05 PM To: Tomcat Users List Subject: RE: Mapping .jsp to controller servlet I've found a workaround for the time being. Each .jsp page has access to a bean that includes login info. I changed jsp page to test to see if the login flag is true. If so nothing happens. If not then I use jsp:forward to send it back to the login.jsp page. So this will work until I feel ready to explore filters. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 1:33 PM To: Tomcat Users List Subject: RE: Mapping .jsp to controller servlet Thanks Erik, I'm going to hold off for awhile and see if anyone clarifies the public nature of the .jsp files and any possible way around it. In the meantime I'll keep experimenting on my own. If that leads to nothing, as I sort of suspect it will, then it's on to filters and more questions about them. Ken -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 12:40 PM To: Tomcat Users List Subject: Re: Mapping .jsp to controller servlet Januski, Ken wrote: Erik, Thanks. Sorry I haven't been clearer. The servlet does use request.include. I just added a try/catch to it and noticed that it fails when trying to include the file that I've put in WEB-INF. The error is javax.servlet.ServletException: queries.jsp. Oh. Sorry about that. For some reason I remember someone on this list saying that they did something like putting their JSPs in WEB-INF and include() or forward()ed to them. But I must have been mistaken. I would like to get a few things clear before I pursue filters, which I haven't used before. Is it true that any jsp file put in root directory will be accessible to anyone by just putting the url to it in browser? It is my understanding that this is how it is supposed to work. I have changed my own code to use servlets that forward to JSPs, but originally I started out with a setup that allowed users to directly request JSPs. It doesn't require any special extra effort on the part of the developer. And if so do you or anyone else know if moving it to a protected folder should solve it. I know that's your theory. If it's correct then for now I'll pursue getting that to work. If not then I guess I'll need to take a closer look at filters. Hopefully someone else can clarify. But the theory would go like this: 1. All JSPs are tucked away in a subdirectory. 2. A filter is mapped to any requests of any resource under that subdirectory. 3. The filter checks the session to determine if the user making the request is properly authenticated. If so, do nothing (actually, doing nothing really means allowing the filter to call its doFilterChain method, which in this case would allow the request to pass through since the JSP itself is the next resource in the chain). However, if the user's session indicates that the user is not authenticated, you could call response.sendRedirect() to send the user to another page or servlet or perhaps the Login resource. However, be sure to put a return statement immediately after the call to sendRedirect because I discovered (in implementing an identical filter to the one I am describing) that the sendRedirect doesn't happen fast enough to stop the filter from calling doFilterChain, and that the JSP would get served anyway. Putting a return in your filter will prevent the doFilterChain() from getting called. If this is confusing, fire away, I can explain this better in more detail. Erik - 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: Odd classloader behavior in Tomcat 4.x
Howdy, See intermixed. I'm having trouble executing a JSP page that is throwing NoClassDefFoundError for a class that it should find. The JSP page instantiates an object via the tag: One of the keys to understanding this issue is understanding the difference between a ClassNotFound and a NoClassDefFound errors. The JavaDocs for the two have some more details. The class ipa.LoginBean is in WEB-INF/lib/ipa.jar. However, it references a class com.ibm.db.Statement which I've placed in $CATALINA_HOME/shared/lib/ivjdab35.jar in my Tomcat 4.1.8 server (I also have it in $CATALINA_HOME/lib/ivjdab35.jar in my Tomcat 4.0.6 server). Do you mean 4.1.18 instead of 4.1.8? Assuming that you do, try moving the ivjdab25.jar from shared/lib to common/lib. This is totally IMHO, but I don't like putting anything in the common/lib or shared/lib directories. Two reasons: - I like the principal of self-containment for web applications. One war file with everything, without needing to rely on server-specific magic directories. - Several server implementations (not just tomcat) seem to have bugs in this complicated classloading implementation. I can't figure out why the servlet engine can compile the page but not run it. It's a pain of a classloading issue. There is more than one related open Bugzilla issue around this if you care to search there. Essentially, the classpath for Jasper is NOT that same as the runtime classpath for the compiled servlet. Furthermore, the behavior between the 4.0.6 and 4.1.8 server is different True, but that's valid. Lastly, if I copy ivjdab35.jar into WEB-INF/lib, it works properly every time. See my above preference for this approach anyways. The benefits from putting anything in a common/lib type directory are negligible at best. 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: OT: Is it ok to close connection in finalize() ?
Howdy, That's not the half of it. Garbage collection requires that all running threads (except its own) are halted. Not always true. Depends on the collector chosen and its implementation. Use to be always true when the JDK offered only a stop-the-world implementation. 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: OT: Is it ok to close connection in finalize() ?
Howdy, 2. With very few exceptions, calling System.gc() is a bad idea. The JVM knows what it's doing better than you do. I completely agree. 4. From what I can tell, the main reason to have a finalize() method is if your object has some kind of JNI resources that it needs to clean up outside of the JVM. snip So... bottom line: Unless you are doing something like using JNI, don't use finalizers. I completely disagree. Finalize() is a general method with possibly very broad uses. It's impossible to say don't use it in general. Rather, it's a case by case comparison. Holding references and handles to various things for the lifetime of an object is a completely valid design decision for some implementations. I think the intent and spirit of the finalize() method are well documented in its javadoc. A lot of thought went into making it available (and protected, rather than final / private or public for that matter) and it has its uses. 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: Mac os x and class files
Thanks Peng, I have been doing exactly that and more, and that is the problem, it should work, but doesn't. If you get a chance, please read through the entire thread to see if you can find anything that I might be doing wrong. Warren On Monday, February 24, 2003, at 03:07 AM, Peng Tuck Kwok wrote: Hi Warren, classes can go into two places in a webapp, let's say I have a myapp as an example myapp |WEB-INF |-classes |-lib You can put all your classes (if they are not in jar in classes, follow whatever package structure you need) in the classes directory. also : you can put all your classes in the lib directory if they are in a jar file. Tomcat should be able to find your classes now. Warrren Burholt wrote: Hello Tony, Thank you for your interest in my problem. Here is what I see when I start Tomcat. Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr I am under the impression that Tomcat follows a specific hierarchy when searching for class files and consequently it is not necessary to set the CLASSPATH. However I set it as follows to see if it would help Tomcat find my classes. No. CLASSPATH=/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/ 529_jsp_021103/ WEB-INF/classes:/usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB- INF/ classes:. Tomcat does find the java. classes. The following is in my jsp file: %@ page import=Plans021103% %@ page import=SidebarTr% %@ page import=java.util.HashMap % %@ page import=java.io.* % %@ page import=java.util.regex.* % Only Plans021103 and SidebarTr are not found. Here is the beginning of the specific errors I see. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 12 in the jsp file: /529_jsp_021103/529Wrapper.jsp Generated servlet error: [javac] Compiling 1 source file /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:7: '.' expected import Plans021103; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:8: '.' expected import SidebarTr; (the caret is under the semi-colon) ^ /usr/local/jakarta-tomcat-4.1.18/work/Standalone/localhost/_/ 529_jsp_021103/_529Wrapper_jsp.java:60: cannot resolve symbol symbol : class Plans021103 location: class org.apache.jsp._529Wrapper_jsp Plans021103 plans = new Plans021103(); (the caret is under the first uppercase P) I trust that there will be something in the above that jumps out at you. Warren Hi Warren, What are values for JAVA_HOME, CATALINA_HOME, CATALINA_BASE, and your CLASSPATH? Regards, Tony On Saturday, Feb 22, 2003, at 17:40 Europe/Berlin, Warrren Burholt wrote: Here is the version of my java 1.4.1 DP10. java -version java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-24) Java HotSpot(TM) Client VM (build 1.4.1_01-12, mixed mode) Since Tony states that he is using 1.4.1 and 4.1.18, I installed 4.1.18. Running Tomcat standalone on 10.2.3 I have the same situation as before. My class files are not being found. I've put them everywhere I could think to test. /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/529_jsp_021103/WEB- INF/ classes /usr/local/jakarta-tomcat-4.1.18/webapps/ROOT/WEB-INF/classes /usr/local/jakarta-tomcat-4.1.18/common/classes /usr/local/jakarta-tomcat-4.1.18/shared/classes /usr/local/jakarta-tomcat-4.1.18/classes Any additional suggestions for testing would be greatly appreciated. Warren From: Anthony Marlowe [EMAIL PROTECTED] Date: Sat Feb 22, 2003 6:39:20 AM America/Montreal To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Mac os x and class files Reply-To: Tomcat Users List [EMAIL PROTECTED] Hi, I would like to know your Mac OS X configuration. I have Tomcat 4.1.18 running standalone and in conjunction with JBoss 3.0.6 with Apples 1.4.n DP10 and OS X 10.2.4. With no problem what so ever. This all works with 1.3.1 also with no problem. In addition I have mod_jk2 installed and running Apache 2.0.44 with no problem. By the way I do not use the light version, I have also replace the LE version in JBoss to the full version. For your infor JBoss with Jetty works correctly. Regards, Tony On Saturday, Feb 22, 2003, at 04:44 Europe/Berlin, Warrren Burholt wrote: I'm using JDK 1.4. I'll go back to 1.3 although my 4.0.3 has the exact same problem with finding classes whether I'm using 1.3 or 1.4After I have 1.3 running, if the problem persists in 4.1.18 (and not the 1.4 version!), at least I will know that the preview version is not the cause. And I did mean 4.1.18, although I see I have it named in usr/local as
RE: Re[2]: Best Logging practices
Howdy, I wrote up a brief comparison, it's at http://darksleep.com. The It's an interesting comparison (and a generally interesting web site, plus a very cool domain name) -- thanks for writing and sharing it. I wanted to point out, however, that your comparison doesn't include a crucial aspect of a logging toolkit: performance. Moreover, a feature that you mention as sort of nifty, guessing the class and method from which a logging call arrives, can be a HUGE performance sot. Log4j offers this functionality if a user desires it (the %m and %n tokens in a PatternLayout), whereas JDK 1.4 just saddles you with a performance hit. We've probably had enough discussion on this topic on this list for now, so I'll stop here ;) 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: MBeans and MC4J
Does your tomcat load MBean server during startup? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Achim Hügen [mailto:[EMAIL PROTECTED] Sent: February 24, 2003 4:44 AM To: [EMAIL PROTECTED] Subject: MBeans and MC4J Hi, I'm trying to manage Tomcat from mc4j, but I can't find any documentation for the MBeans support. Is the MBean support official and how can I use it from an external tool? Achim
Have a jakarta-tomcat version question
I have downloaded the jakarta tomcat version 4.1.18 I was reading the documentation from the link provided on this page http://wwfcanon.panda.org/index.jsp Now when I did that I read the introduction and now on the install and running part. I clicked on that link: http://wwfcanon.panda.org/tomcat-docs/RUNNING.txt Now I saw installing and running the version 4.0 I just want to know before I read the installation file and setup tomcat that wondering if this is the correct version. Because doesn't version 4.1.18 mean version 4.1? Thanks just want to make sure i'm doing the right thing. Thanks George __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: urgent (servlets+jdbc(oracle8i thin driver)+tomcat)pls replysoon
Galbayar:*PLEASE DON'T BLIND COPY TO THE LIST * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Porting
Howdy, 2003-02-19 01:26:43 ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: /templates/gaggle/html/systemError.jsp at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.j ava:211) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) That one is very difficult for us to diagnose unless you post the JSP (systemError.jsp) source. 2003-02-19 09:57:37 StandardManager[] Cannot serialize session attribute GAGGLE$STATE for session 54279C61F055148C959AE9D7B7B51962 java.io.NotSerializableException: com.gaggle.util.Services Tomcat serializes sessions to disk. That requires that the session (javax.servlet.http.HttpSession is the interface, tomcat has an implementation and a façade) implement java.io.Serializable. Moreover, it requires that anything put in a session attribute be serializable as well. As the above message shows, com.gaggle.util.Services does not implement java.io.Serializable. You will need to modify the code to either: - Have com.gaggle.util.Services be serializable - Don't stick instances of com.gaggle.util.Services in the session 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: Have a jakarta-tomcat version question
Howdy, Use either the docs on the tomcat site (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html) or the ones that ship with your distribution. Yoav Shapira Millennium ChemInformatics -Original Message- From: george mouyios [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:41 AM To: [EMAIL PROTECTED] Subject: Have a jakarta-tomcat version question I have downloaded the jakarta tomcat version 4.1.18 I was reading the documentation from the link provided on this page http://wwfcanon.panda.org/index.jsp Now when I did that I read the introduction and now on the install and running part. I clicked on that link: http://wwfcanon.panda.org/tomcat-docs/RUNNING.txt Now I saw installing and running the version 4.0 I just want to know before I read the installation file and setup tomcat that wondering if this is the correct version. Because doesn't version 4.1.18 mean version 4.1? Thanks just want to make sure i'm doing the right thing. Thanks George __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
Application redeploy does not work! Please reply.
When I use the manager app to redeploy my servlet context it does not affect the behavior as seen by the outside world. On my ISP users come in through an Apache server, not directly to the Tomcat server. Issuing the redeploy command through the manager app reloads the classes only on the Tomcat server. So if I go into the backdoor to the Tomcat server I see the updated functionality. But my customers can only see the functionality presented by the Apache server, which does not show the update. Every time I make a change to any of the classes in my servlet I have to call the ISP to restart the connector. How do I configure my Tomcat server so that when I redeploy the context my customers can see the updated behavior? I did not install either the Apache server or the Tomcat server so I do not know the details of their installation. Since I know where the Tomcat server is located I can see its conf/server.xml which indicates that mod_jk is being used for the connector. Jim Cobban [EMAIL PROTECTED] 34 Palomino Dr. Kanata, ON, CANADA K2M 1M1 +1-613-592-9438 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache and Tomcat: a bad practice
I disagree. In my opinion you should play to the applications strengths, and serving static content is NOT Tomcat's strength. When you throw in load balancing and the ability to dynamically add and subtract Tomcat nodes out of your pool by adjusting the Apache's on the front-end, the benefits become obvious. Setting up Mod_Jk is very easy, so the complications you allude to in my opinion, are not an issue. Mod_Jk2 on the other hand is a whole different ball game ... :) Dennis -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:08 AM To: [EMAIL PROTECTED] Subject: Re: Apache and Tomcat: a bad practice No need to use big words. I was just giving you good practice, vs no so good practice. I take it you disagree. You can load balance Tomcat just fine. IMO: It's a good practice to try to avoid using Apache. Mostly newbies think that this is required. I am just saying, this is not required or possibly good. It makes operations and development easier not to have Apache, and my clients have removed it to great sucess. Take it into consideration a word to the wise. http://www.mail-archive.com/[EMAIL PROTECTED]/msg85780.html .V Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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: Tomcat 4.1.18 standard version XML parser
Not sure what you mean by I am not start tomcat using the -D endors setting so the parser in COMMON/ENDORSED shouldn't be used by tomcat, because the parser in common/endorsed will get used if it exists. This is by default. You would have to modify the default for this not to be the case. Secondly, if you use j2sdk1.4.x, you cannot put endorsed libraries such as javax.xml.*, org.w3c.dom.*, and org.xml.sax.*, etc... into WEB-INF/lib. That would violate the Sun classloading spec. Tomcat enforces the Sun classloading spec. What you will need to do is remove xerces from WEB-INF/lib and copy it to common/endorsed overwriting the existing Xerces. Try that and see if it works. Jake At 07:07 PM 2/24/2003 +0800, you wrote: All, this might be a old question but I'd searched online and can't find any tomcat 4.1.x related. so hope someone could help. I am using a vendor's jar file which need using a version of Xerces parser(sorry asking them now which version) so I guess can't use default tomcat one. so I place the xercesImpl.jar (from them) into the MYAPPDIR/WEB-INF/lib. I am not start tomcat using the -D endors setting so the parser in COMMON/ENDORSED shouldn't be used by tomcat. in this case, can I tell that all my appl is using the parser in MYAPPDIR/WEB-INF/lib instead of any others? Neither the one from JDK 1.4(I am using 1.4.02) nor tomcat internal? Many thanks, HL -let me send this mail before I go insane. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2: Can't find child in scoreboard error msg
I am using Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6g mod_jk2/2.0.2 on a Solaris 8. Apache forwards requests to Tomcat , but I get suspicious messages in apache/logs/error_logs when a servlet is accessed... [Thu Feb 20 23:50:39 2003] [error] jk2_init() Can't find child 25336 in scoreboard [Thu Feb 20 23:50:39 2003] [error] mod_jk child init 1 -2 The process number changing with each request. Are these messages critical since the request forwarding works correctly. I have been searched the mailing lists all night for an explanation on the error message with no success. Can someone tell me how the scoreboard works for mod_jk2? I keep everything default in jk2.properties. And use the following workers2.properties file [shm] file=${serverRoot}/logs/shm.file size=1048576 # socket channel [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Announce a status worker [status:status] # Uri mapping [uri:/status/*] worker=status:status [uri:/aps/*] worker=ajp13:localhost:8009 [uri:/tmm/*] worker=ajp13:localhost:8009 [uri:/XMLServlet/*] worker=ajp13:localhost:8009 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including header, footer in jsp
The Struts template taglib handles this very nicely and is pretty straightforward, although the Struts team is now recommending using a more complex version of this called Tiles. Check it out. runu rathi [EMAIL PROTECTED] 02/22/03 12:25 PM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:including header, footer in jsp Hi all, If I want to design an application such that I have a template for the footer, header, side menus etc.. And I want to include that in all my jsp pages without copying the whole of it. How can I do it? Thanks for any help. Runu __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 standard version XML parser
Oops, is this why fewer people response? Ok, from the documentation of 4.1.18,Class Loader HOW-TO,at the bottom said as below: . XML Parsers and JDK 1.4 Among many other changes, the JDK 1.4 release packages the JAXP APIs, and a version of Xerces, inside the JDK. This has impacts on applications that wish to use their own XML parser. In previous versions of Tomcat 4, you could simply replace the XML parser in the $CATALINA_HOME/common/lib directory to change the parser used by all web applications. However, this technique will not be effective when you are running on JDK 1.4, because the usual class loader delegation process will always choose the implementation inside the JDK in preference to this one. JDK 1.4 supports a mechanism called the Endorsed Standards Override Mechanism to allow replacement of APIs created outside of the JCP (i.e. DOM and SAX from W3C). It can also be used to update the XML parser implementation. For more information, see: http://java.sun.com/j2se/1.4/docs/guide/standards/index.html. Tomcat utilizes this mechanism by including the system property setting -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed in the command line that starts the container. Therefore, you can replace the parser that is installed in this directory, and it will get used even on a JDK 1.4 system. . So what I said I am not start tomcat using the -D encors setting etc, really based on above description. What I mean there is, since I am not use -D java.endorsed.dirs=$CATALINA_HOME/common/endorsed , so Tomcat 4.1.18 I am using must use the XML parser from the JDK1.4 I'd installed. but since I place my own parser under MYAPP/WEB-INF/lib as described of above document Class Loader HOW-TO, xerces.jar - The XML parser that is visible by default to Tomcat internal classes and to web applications. This can be overridden, for a particular web application, by including your desired parser in /WEB-INF/lib So I am doing as the same, put own parser in /WEB-INF/lib, why Tomcat seems still not using it? I use this parser with my app with Tomcat 4.0.6, all fine. Many thanks, HL -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 2003224 23:05 To: Tomcat Users List Subject: Re: Tomcat 4.1.18 standard version XML parser Not sure what you mean by I am not start tomcat using the -D endors setting so the parser in COMMON/ENDORSED shouldn't be used by tomcat, because the parser in common/endorsed will get used if it exists. This is by default. You would have to modify the default for this not to be the case. Secondly, if you use j2sdk1.4.x, you cannot put endorsed libraries such as javax.xml.*, org.w3c.dom.*, and org.xml.sax.*, etc... into WEB-INF/lib. That would violate the Sun classloading spec. Tomcat enforces the Sun classloading spec. What you will need to do is remove xerces from WEB-INF/lib and copy it to common/endorsed overwriting the existing Xerces. Try that and see if it works. Jake At 07:07 PM 2/24/2003 +0800, you wrote: All, this might be a old question but I'd searched online and can't find any tomcat 4.1.x related. so hope someone could help. I am using a vendor's jar file which need using a version of Xerces parser(sorry asking them now which version) so I guess can't use default tomcat one. so I place the xercesImpl.jar (from them) into the MYAPPDIR/WEB-INF/lib. I am not start tomcat using the -D endors setting so the parser in COMMON/ENDORSED shouldn't be used by tomcat. in this case, can I tell that all my appl is using the parser in MYAPPDIR/WEB-INF/lib instead of any others? Neither the one from JDK 1.4(I am using 1.4.02) nor tomcat internal? Many thanks, HL -let me send this mail before I go insane. - 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]
mod_jk + ssl
I am getting ready to setup a Linux box running Apache 1.3.29, Tomcat 4.1.18, and mod_jk and I am wondering if there is anything special I need to do to my Tomcat config as the Apache HTTP is what will have the SSL running on it (via mod_ssl). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Apache
The problem seems to be the CA certificate. There are two levels of authentication; one certificate from server-client (wich says this server is ...) and a client-server (wich says this connection is made from ...). For the server-client you import your certificate (I guess). But for the client-server (the client authentication set ON) you need to say to the WebServer what certificates are allowed as client-certificates, by importing the CA root certificate into the WebServer. Then the webserver notifies to the browser the list of valid certificates that can be used to connect with, and the browser should show yours in the list. -Mensaje original- De: Kwan Hon Luen [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 24 de Febrero de 2003 01:23 Para: [EMAIL PROTECTED] Asunto: Tomcat Apache Hi , Have configured Tomcat to use SSL with client authentication set to true. Have imported client (which is the web browser IE) certificate to tomcat server keystore. But when I use IE to connect to Tomcat, it pops up a message box saying The Web site you want to view requests identification. Select the certificate to use when connecting. Problem is that there is no certificate displayed to select. Does anyone know how to solve this using the current setup ? regards, Hon Luen __ Do You Yahoo!? Promote your business from just $5 a month! http://sg.biztools.yahoo.com - 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: Have a jakarta-tomcat version question
The link you provided has Running The Tomcat 4.0 Servlet/JSP Container under Install and Run - Just a little wrinkle on documentation. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Use either the docs on the tomcat site (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html) or the ones that ship with your distribution. Yoav Shapira Millennium ChemInformatics -Original Message- From: george mouyios [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:41 AM To: [EMAIL PROTECTED] Subject: Have a jakarta-tomcat version question I have downloaded the jakarta tomcat version 4.1.18 I was reading the documentation from the link provided on this page http://wwfcanon.panda.org/index.jsp Now when I did that I read the introduction and now on the install and running part. I clicked on that link: http://wwfcanon.panda.org/tomcat-docs/RUNNING.txt Now I saw installing and running the version 4.0 I just want to know before I read the installation file and setup tomcat that wondering if this is the correct version. Because doesn't version 4.1.18 mean version 4.1? Thanks just want to make sure i'm doing the right thing. Thanks George __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Apache/Tomcat(linux) Permission denied error
Hi: I am running apache2.044/tomcat4.1.18 on linux. I am having a servlet that creates a file on the server(under usr/local/apache2/htdocs/subdirectory) on getting a particular request. This works welll for sometime, but after a period of inactivity generally overnight I start getting a Java.IO.Exception: Permission denied error. If i restart the server, it starts working again. I am also having a servlet that lists the files in a particular folder. This also gives me an error in the same manner as above. I am running both the servers under root. I see these lines in catalina.out after i get the permission denied error. I am not sure if it is related to my error message tho. Feb 24, 2003 9:30:04 AM org.apache.jk.server.JkCoyoteHandler action INFO: RESET What does this mean?? Has anybody else come across similar problems??Any help is appreciated. Thanks a lot Vim __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antwort: RE: MBeans and MC4J
Does your tomcat load MBean server during startup? Regards, Yes it does, I have included this entry in the server.xml: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 port=-1 login=admin password=admin/ I have additionally tried port 8082. I have no idea which settings I have to use in mc4j. I tried mx4j as connection type and the urls rmi://localhost:1099 and rmi://localhost:8082, but without success. Achim
Re: new instalation missing startup scripts
Zachary Kuhn wrote: I just installed the 4.1.8 release of Tomcat via the linux binary RPM. However, when I go to /var/tomcat4/bin i have no startup scripts, only a couple jar files. The docs say the startup files should be there. Is there something I am missing? The bin/ scripts are only found in the binary release. With the .rpm, you launch the server using something like /usr/bin/tomcat4. I wrestled with the rpm for about a week, and then took the advice of everybody who responded to me and switched to the binaries. The documentation is now much more relevant for me, and I have no complaints about installation. I understand the convenience factor, but I would highly recommend using the binaries over the .rpm version, which is weird, undocumented, and prone to problems that the people on this list can't help you with. Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mapping .jsp to controller servlet
Januski, Ken wrote: I've found a workaround for the time being. Each .jsp page has access to a bean that includes login info. I changed jsp page to test to see if the login flag is true. If so nothing happens. If not then I use jsp:forward to send it back to the login.jsp page. So this will work until I feel ready to explore filters. That sounds like a good solution. If and when you do explore them, there is a good article here (that helped me): http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi.html and when you're done with that, http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5.0 build problem
When I tried, telnet cvs.apache.org 2401, I got 'connect failed' message. I assume I already have everything on my PC, can I turn off the 'cvs' feature, and compile all local files? I understand there is need for version control, but for a starter, is there a simple way out? Thanks, Steve Tim Funk [EMAIL PROTECTED] wrote:There is a good chance CVS is blocked by your firewall. It was for me. You can test this by: telnet cvs.apache.org 2401 If your connection times out - then your blocked by your firewall. -Tim Steve Guo wrote: Actually I am using Ant 1.5.1.Although my company has a firewall, we do not use a proxy server (?), because this is the setup in IE when accessing the Internet from office. In IE5.5, Tools | Internet Options | Connections | Lan Settings, proxy server is unchecked, 'Use automatic configuration script' is checked. But when using Yahoo Messenger or MSN messenger from office, I have to set the following: Use Proxies (checked) Enable HTTP proxy (checked) HTTP Proxy server name: FIREWALL server port: 80 --- So based on above, I make the following build.properties file: proxy.host=FIREWALL proxy.port=80 proxy.use=on base.path=/usr/local Still the same error message. I am really confused. Following Filip Hanik, I downloaded cvs, it is a challenge to set it up too. Actually I have been able to use the binary version (4.1.18) fine, but I thought I would try my luck building from source. Thanks all, steve Bill Barker wrote:Since you are behind a firewall, make sure that you have set 'proxy.host', 'proxy.port', and 'proxy.use' in your build.properties file. They are commented out in the build.properties.default file. At a guess, the wall you are hitting first is due to using a version of Jakarta-Ant 1.5. You need to use at least 1.5 to build TC 5. Filip Hanik wrote in message news:[EMAIL PROTECTED] try this, cvs checkout jakarta-tomcat-5 cd jakarta-tomcat-5 ant download ant checkout ant dist Filip -Original Message- From: Steve Guo [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 1:54 PM To: tomcatuser Subject: tomcat5.0 build problem Hi, this is the first time I tried to build tomcat from source, ran into the following problems. If you can provide your comment or point me to resource, I would appreciate it. Thanks. Steve 1. I followed the instructions in BUILDING.TXT, almost exactly - the Xerces2.2.1 I am using does not have xalan.jar, so I used the same file from Xalan2.4.1. 2. I got the following error after running ant: Buildfile: build.xml check.source: get.source: check.out: BUILD FAILED Build.xml:67: the task doesn't support the 'compression' attribute. 3. I am running behind corporate firewall. - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
Re: 403 unavilable
Nandish A wrote: hi all i have this directory structure c:/Windows/Desktop/Code/ | |___Web-inf |__web.xml |__classes |MyServlet(.java .class) |__gc |__MyWelcomServlet(.java .class) declared with the package gc I have the configuration of web.xml as web-app servlet servlet-nameMyServlet/servlet-name servlet-classMyServlet/servlet-class /servlet servlet servlet-nameMyWelcomServlet/servlet-name servlet-classMyWelcomServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping servlet-mapping servlet-nameMyWelcomServlet/servlet-name url-pattern/gc.MyWelcomServlet/url-pattern /servlet-mapping web-app You should instead use: servlet servlet-nameMyWelcomServlet/servlet-name servlet-classgc.MyWelcomServlet/servlet-class /servlet servlet-mapping servlet-nameMyWelcomServlet/servlet-name url-pattern/MyWelcomServlet/url-pattern /servlet-mapping Jon Roberts www.mentata.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 4.1.18 locks up
this is all i can tell you (from catalina.out) SCHWERWIEGEND: Caught exception executing [EMAIL PROTECTED], terminating java.lang.OutOfMemoryError 24.02.2003 14:55:03 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:435) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.18 locks up
Howdy, Once you get an OutOfMemoryError, you're in an indeterminate state. Configure your JVM such that you don't get OutOfMemoryErrors. See http://java.sun.com/docs/hotspot/VMOptions.html for your options. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:03 AM To: [EMAIL PROTECTED] Subject: tomcat 4.1.18 locks up this is all i can tell you (from catalina.out) SCHWERWIEGEND: Caught exception executing [EMAIL PROTECTED], terminating java.lang.OutOfMemoryError 24.02.2003 14:55:03 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:435) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java :500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590 ) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:530) at java.lang.Thread.run(Thread.java:536) - 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]
Apache Alias Error (Apache+Tomcat+JBoss)
Hi: I am using Apache 1.3.26 + JBoss(embedded with Tomcat). I configured my MOD_JK.SO and my Apache + Tomcat connection is working fine. I have following on my HTTPD.CONF file: -- LoadModule jk_module libexec/mod_jk.so JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkMount /mig/* ajp13 -- I run my applicatin as https://My_IP_ADDR-ESS/mig/ and it wors fine... Now I want to configure ALIAS for this MIG Web Application and added following to my HTTPD.CONF: -- Alias /mig/ /jboss/server/default/deploy/mig/ Directory /jboss/server/default/deploy/mig/ Options Indexes FollowSymLinks AllowOverride None Order allow, deny Allow from all /Directory -- Now when I run my https://My_IP_ADDR-ESS/mig/ I get follwoing ERROR: -- Forbidden You don't have permission to access /mig/ on this server. -- Does any one know how to fix this? THANKS! _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 4.1.18 locks up
Once you get an OutOfMemoryError, you're in an indeterminate state. Configure your JVM such that you don't get OutOfMemoryErrors. See http://java.sun.com/docs/hotspot/VMOptions.html for your options. Sorry, but which option should i use? i seem to be blind. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1.18 locks up
Howdy, For starters, try -Xmx512m. That will set a max heap size of 512MB for your JVM. To set the option for tomcat, modify the JAVA_OPTS variable in $CATALINA_HOME/bin/catalina.sh. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Re: tomcat 4.1.18 locks up Once you get an OutOfMemoryError, you're in an indeterminate state. Configure your JVM such that you don't get OutOfMemoryErrors. See http://java.sun.com/docs/hotspot/VMOptions.html for your options. Sorry, but which option should i use? i seem to be blind. - 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: Database load balancing?
From: Vic Cekvenich [EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:02 AM Subject: Re: Database load balancing? Try caching first; with Poolman.sf.net or http://www.phworks-online.com/cache.html Yeah, that's what I would try first. Especially if it's read only data, make it an issue to not hit the database at all, and then you won't have to scale the back end as much. And caching can mean many things. Caching not just in memory, but even entire pages. It depends on how dynamic that actual pages are, not just the data. Heck, just sticking a caching proxy in front of your site can do wonders! At the application level, though, your basic logic can be: Get Request IF !memoryCache THEN IF !fileCache THEN Create fileCache from DB END IF Create memoryCache from File END IF server out of memory. Whole bunch of syncrhonization issues and other stuff that makes this not-so-trivial, plus the cache cleaning threads, data expiration etc to add complication. Finally, it may not even work with your application. Replication could slow you down. It all depends on the application. It depends on how much incoming data there is, and how up to date you must keep the mirrors. Are they allowed to be out of synch at all? Probably. From a Java level, you can have your data come into a JMS queue, where the listeners update the master DB and also the mirrors. The real trick is doing any bulk synchronization should they get out of the synch outside of the JMS process. Of course, this could be accomplished with simply a bulk copy of the masters data files. The biggest problems happen when the producer and consumer of the data are the same person (like a BBS), where folks expect instant feedback from their messages. But, if your staff creates the data out of the view of the consumers, then your consumers have no expectations of when new data will appear in the system, so a delay between data submission and site update can be minutes or hours or even days. But, anyway, cache first. Overall I think it's a less complicated solution. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to protect file
From: Xiongfei Wang [EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:21 AM Subject: how to protect file I have tomcat 4.1.18 i want to develop a login system similar to login system of my bank's website. Why not go and read Section 12. Security in the Servlet Spec. This wheel has already been invented for you. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 4.1.18 locks up
ps aux now shows something like /opt/java/bin/java -server -Xmx512m ... i think, this should help. is it a good idea, to use -server (selects the server vm)? Shapira, Yoav wrote: Howdy, For starters, try -Xmx512m. That will set a max heap size of 512MB for your JVM. To set the option for tomcat, modify the JAVA_OPTS variable in $CATALINA_HOME/bin/catalina.sh. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:23 AM To: [EMAIL PROTECTED] Subject: Re: tomcat 4.1.18 locks up Once you get an OutOfMemoryError, you're in an indeterminate state. Configure your JVM such that you don't get OutOfMemoryErrors. See http://java.sun.com/docs/hotspot/VMOptions.html for your options. Sorry, but which option should i use? i seem to be blind. - 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: tomcat 4.1.18 locks up
The mosts posts in this list indicate that the server option is not a good option. It's faster, but also less stable. Havn't seen anything about the latests JDK's in this respect. So you may have to try and stress test it. -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 5:35 PM To: [EMAIL PROTECTED] Subject: Re: tomcat 4.1.18 locks up is it a good idea, to use -server (selects the server vm)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Porting
From: Jeff Masud [EMAIL PROTECTED] Sent: Sunday, February 23, 2003 1:28 AM Subject: Tomcat Porting 2003-02-19 09:57:37 StandardManager[] Cannot serialize session attribute GAGGLE$STATE for session 54279C61F055148C959AE9D7B7B51962 java.io.NotSerializableException: com.gaggle.util.Services Here's where I see the problem: It looks to me that the Tomcat Session Manager is (for whatever reason) try to save out some of your sessions, and they're simply not cooperating. Now, the StandardManager won't serialize sessions except at startup or shutdown, but the PersistentManager will swap old sessions in and out of the JVM, though it's marked as experimental in the docs (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/manager.html). Now, you mentioned that you're not a Java person, so it's not clear to me how you're going to fix this should Tomcat try this while running (as it takes changing the actuall classes to solve this problem). But, the class to look at is com.gaggle.util.Services, that's what it's complaing about. Good Luck! Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 4.1.18 locks up
The mosts posts in this list indicate that the server option is not a good option. It's faster, but also less stable. shouldn't it be the other way round? Havn't seen anything about the latests JDK's in this respect. So you may have to try and stress test it. i'll removed the -server switch. it's a production-server, so i'll better test that at home ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat with secrurity option prevents access
Another question about getting Tomcat to work with security. It seems like there are quite a few these. Platform: Tomcat 4.0.4 running with security option on Redhat8 acessing Oracle at host.xxx.com:1521 The policy regarding our web application is specified in catalina.policy file (Quoting below). grant codeBase file:${catalina.home}/webapps/maps/- { permission java.security.AllPermission; }; grant codeBase file:${catalina.home}/webapps/maps/WEB-INF/lib/- { permission java.io.FilePermission *, read,write; permission java.util.PropertyPermission *, read,write; permission java.net.SocketPermission localhost:1521, accept,connect,listen; permission java.net.SocketPermission host.xxx.com:1521, accept,connect; }; After running our testing program, we have an error occuring shown below. type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.security.AccessControlException: access denied (java.net.SocketPermission host.xxx.com resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042) at java.net.InetAddress.getAllByName0(InetAddress.java:909) at java.net.InetAddress.getAllByName0(InetAddress.java:890) at java.net.InetAddress.getAllByName(InetAddress.java:884) at java.net.InetAddress.getByName(InetAddress.java:814) at java.net.InetSocketAddress.(InetSocketAddress.java:109) at java.net.Socket.(Socket.java:118) at oracle.net.nt.TcpNTAdapter.connect(Unknown Source) at oracle.net.nt.ConnOption.connect(Unknown Source) at oracle.net.nt.ConnStrategy.execute(Unknown Source) at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source) at oracle.net.ns.NSProtocol.establishConnection(Unknown Source) at oracle.net.ns.NSProtocol.connect(Unknown Source) at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1120) at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:195) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:198) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.tetratech.fedet.extractDataServlet.doExtract(extractDataServlet.java:230) at com.tetratech.fedet.extractDataServlet.doPost(extractDataServlet.java:151) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:450) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
RE: tomcat 4.1.18 locks up
Howdy, I agree with what Mr. Einfeldt said. -server is less stable even though it should be more stable, so we don't use. That includes the latest stable JDK release from Sun. Yoav Shapira Millennium ChemInformatics -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:46 AM To: [EMAIL PROTECTED] Subject: Re: tomcat 4.1.18 locks up The mosts posts in this list indicate that the server option is not a good option. It's faster, but also less stable. shouldn't it be the other way round? Havn't seen anything about the latests JDK's in this respect. So you may have to try and stress test it. i'll removed the -server switch. it's a production-server, so i'll better test that at home ;-) - 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]
problem with FilePermisson for context
is it possible to set a FilePermission in the catalina.policy file that every context can access his own directory for read write ? i found this somewhere in the internet: grant codeBase file:${doc.root}/- { permission java.io.FilePermission ${doc.root}/-, read,write,delete; }; but i can't find anything about the variable doc.root !?!? does doc.root means: the context's own directory? - or do i have to set an environment variable? thanx, joe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with FilePermission for context
is it possible to set a FilePermission in the catalina.policy file that every context can access his own directory for read write ? i found this somewhere in the internet: grant codeBase file:${doc.root}/- { permission java.io.FilePermission ${doc.root}/-, read,write,delete; }; but i can't find anything about the variable doc.root !?!? does doc.root means: the context's own directory? - or do i have to set an environment variable? thanx, joe
RE: tomcat 4.1.18 locks up
No, the ideal would be faster and more stable :) Just some statements from Sun: The Java HoSpot Client VM ... it is tuned for best performance ... by reducing application start-up time and memory footprint. The Java HotSpot Server VM is designed for maximum program execution speed. (In other words you buy speed by paying with memory) Some theory behind that is here: http://java.sun.com/docs/hotspot/gc/index.html Having a closer look at http://java.sun.com/docs/hotspot/VMOptions.html indicates that a vm that uses the -server option is quite a different beast than the one with the -client option. -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 5:46 PM To: [EMAIL PROTECTED] Subject: Re: tomcat 4.1.18 locks up The mosts posts in this list indicate that the server option is not a good option. It's faster, but also less stable. shouldn't it be the other way round? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat4 dies when JBDC Realm is configured
hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=false autoDeploy=true !-- Logger shared by all Contexts related to this virtual host. -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_ suffix=.log timestamp=true/ Realm classname=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.informix.jdbc.IfxDriver connectionURL= connectionName= connectionPassword= userTable=users userNameCol=username userCredCol=password userRoleTable=roles roleNameCol=rolename:/ Context path=/onjava docBase=onjava debug=0 reloadable=true /Context /Host /Engine /Service When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat4 dies when JBDC Realm is configured
hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=false autoDeploy=true !-- Logger shared by all Contexts related to this virtual host. -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_ suffix=.log timestamp=true/ Realm classname=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.informix.jdbc.IfxDriver connectionURL= connectionName= connectionPassword= userTable=users userNameCol=username userCredCol=password userRoleTable=roles roleNameCol=rolename:/ Context path=/onjava docBase=onjava debug=0 reloadable=true /Context /Host /Engine /Service When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
catalina_log* filling up with errors
Hello all, I was looking at catalina_log files and I found out that every day I get dozen of this errors...Connection reset by peer... don't know it's a normal behaveour or if it's problem with some connector (I'm using tomcat 4.0.4 for the moment) and if it's a normal behaveour is there a way not to get this error messages in the log (but still getting the normal jsp errors) Thank you Simone 2003-02-22 16:03:49 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.io.IOException: Connection reset by peer at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:126) at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:674 ) at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase. java:764) at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647) at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312) at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStre am.java:189) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:19 03) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1652) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.jav a:1197) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519) 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:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Thread.java:536) - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache and Tomcat: a bad practice
Great! I'd love to see a HOWTO for load-balancing Tomcat instances across multiple hosts without spending any money for a dedicated hardware solution and doesn't use another software product besides Tomcat. Got a link for one? Newbies on this list are FREQUENTLY told that Apache is NOT required, and that in many cases Tomcat alone is sufficient. A search of the archives will validate this. My point was simply that good practice is relative. What works for you may not work for someone else, for various reasons. The reverse is also true. Implying that somebody who doesn't do exactly what you do is not doing the best they can do, or is not using the optimal solution, is rude. Feel free to contact me off the list if you're interested in debating. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:08 AM To: [EMAIL PROTECTED] Subject: Re: Apache and Tomcat: a bad practice No need to use big words. I was just giving you good practice, vs no so good practice. I take it you disagree. You can load balance Tomcat just fine. IMO: It's a good practice to try to avoid using Apache. Mostly newbies think that this is required. I am just saying, this is not required or possibly good. It makes operations and development easier not to have Apache, and my clients have removed it to great sucess. Take it into consideration a word to the wise. http://www.mail-archive.com/[EMAIL PROTECTED]/msg 85780.html .V Please don't troll the list. There are all sorts of reasons besides need CGI to use Apache. I can think of one right now (load balancing) that would pretty much make using Apache mandatory in many installations. Instead of bashing people for the software they choose to use, a more helpful response might be to help them use it easily. John -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: Apache and Tomcat: a bad practice Lot's of Apache to Tomcat questions. In the past, (Hardware sales) people would say you need a html server (Apache) and a jsp server (Tomcat). Now Tomcat can server HTML pages very fast and can do SSL, etc. There is no reason to maintain and configure in operations communications between the two. Recomendation: It is *a good practice to deprecate Apache!, and use Tomcat* (or other J2EE, such as Resin) as your only server, SSL and HTML, etc. The speed is just fine. There are only a few exceptions, such as you need CGI, but you can save money, time now, but de-instaling Apache and put Tomcat on port 88 and 443. .V - 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: Apache Alias Error (Apache+Tomcat+JBoss)
There was a typo in my last posting... Here is the modified posting... ~~~ Hi: I am using Apache 1.3.26 + JBoss(embedded with Tomcat). I configured my MOD_JK.SO and my Apache + Tomcat connection is working fine. I have following on my HTTPD.CONF file: -- LoadModule jk_module libexec/mod_jk.so JkWorkersFile /jboss/catalina/conf/jk/workers.properties JkMount /mig/* ajp13 -- I run my applicatin as https://My_IP_ADDR-ESS/mig/ and it wors fine... Now I want to configure ALIAS for this MIG Web Application and added following to my HTTPD.CONF: -- Alias /mig/ /jboss/server/default/deploy/mig/ Directory /jboss/server/default/deploy/mig/ Options Indexes FollowSymLinks AllowOverride None Order allow, deny Allow from all /Directory -- Now when I run my https://My_IP_ADDR-ESS/mig/ I get follwoing ERROR: -- Forbidden You don't have permission to access /mig/ on this server. -- Does any one know how to fix this? THANKS! _ 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]
RE: Tomcat 3.3.1a Install Windows 2000 Service
Check this link out on apache's site: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html There are various tools out there. I read a posting that listed this site: http://web.bvu.edu/staff/david/tcservcfg/ If you run a search on google you will find a bunch and if you search the archives at www.mail-archive.com under tomcat't user list, you will find a bunch of links on this. Hope this helps... Haytham -Original Message- From: Kathleen Long [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3.1a Install Windows 2000 Service Is there a way to install Tomcat as a Windows Service? I downloded a zip file and there was no install program. How can I make Tomcat a windows service? - 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: mod_jk + ssl
Nope. The communications between Tomcat and Apache, via mod_jk, will be in the clear (non-SSL). Assuming you can configure your Apache for SSL correctly, and can configure the JK connection correctly, there's nothing else you have to do to Tomcat. John -Original Message- From: Adam Greene [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:29 AM To: Tomcat Users List Subject: mod_jk + ssl I am getting ready to setup a Linux box running Apache 1.3.29, Tomcat 4.1.18, and mod_jk and I am wondering if there is anything special I need to do to my Tomcat config as the Apache HTTP is what will have the SSL running on it (via mod_ssl). - 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: having trouble using tomcat
You may need to set your database context as well. I.e. DriverManager.getConnection(jdbc:microsoft:sqlserver://128.91.107.105:1 433;User=sa;Password=duder;DatbaseName=myDB); = Mark Clarke - Exotic Pets E-Mail: [EMAIL PROTECTED] WWW: www.ExoticPets.co.za = -Original Message- From: laikiow [mailto:[EMAIL PROTECTED] Sent: 24 February 2003 05:05 To: Tomcat Users List Subject: Re: having trouble using tomcat try this... DriverManager.getConnection(jdbc:microsoft:sqlserver://128.91 .107.105:1433;User=sa;Password=duder); DriverManager.getConnection(jdbc:microsoft:sqlserver://128.91 .107.105:1433,User=sa,Password=duder); - Original Message - From: Michael Ni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:36 AM Subject: having trouble using tomcat hi im new to tomcat. im having trouble using jsp pages to query my microsoft sql server 2000. does anyone know how to do this? i've followed the microsoft instructions but it doens't work still. i created the CLASSPATH environement variables, but my jsp code looks like it doens't work !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN %@ page import=java.sql.*, java.util.* errorPage=error.jsp % html head titleCurrent Election Results:/title /head body h2Here are the latest voting results... /h2 % Class.forName(com.microsoft.jdbc.sqlserver.SQLServerDriver); Connection con = DriverManager.getConnection(jdbc:microsoft:sqlserver://128.91 .107.105:1433;User=sa;Password=duder); Statement stmt = con.createStatement(); String queryStr = SELECT username FROM player; ResultSet rs = stmt.executeQuery(queryStr); % table border=0 cellspacing=0 cellpadding=2 tr bgcolor=lightgrey th align=leftCandidate/th th align=rightTotal Votes/th /tr % while (rs.next()) { String firstname = rs.getString(1); % tr td%= firstname % /td td align=rightdfd/td /tr % } // end while() // clean up. if (rs!=null) rs.close(); if (stmt!=null) stmt.close(); if (con!=null) con.close(); % /table /body /html _ 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: catalina_log* filling up with errors
Howdy, Try changing to the Coyote connector, and better yet moving to 4.1.18. Yoav Shapira Millennium ChemInformatics -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:31 PM To: Tomcat User List Subject: catalina_log* filling up with errors Hello all, I was looking at catalina_log files and I found out that every day I get dozen of this errors...Connection reset by peer... don't know it's a normal behaveour or if it's problem with some connector (I'm using tomcat 4.0.4 for the moment) and if it's a normal behaveour is there a way not to get this error messages in the log (but still getting the normal jsp errors) Thank you Simone 2003-02-22 16:03:49 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.io.IOException: Connection reset by peer at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:126) at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.jav a:67 4 ) at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponse Base . java:764) at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647) at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java: 312) at org.apache.catalina.connector.http.HttpResponseStream.write(HttpRespons eStr e am.java:189) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.ja va:1 9 03) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:16 52) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServle t.ja v a:1197) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:5 19) 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(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j a va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava: 2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 0 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 0 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 8) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor. java : 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java :112 5 ) at java.lang.Thread.run(Thread.java:536) - Simone
Re: Apache and Tomcat: a bad practice
From: Turner, John [EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:31 AM Subject: RE: Apache and Tomcat: a bad practice Great! I'd love to see a HOWTO for load-balancing Tomcat instances across multiple hosts without spending any money for a dedicated hardware solution and doesn't use another software product besides Tomcat. Got a link for one? Yes! Hear Hear! Me Too For whatever reason, there is a complete dearth of information on open solutions to generic load balancing. The hardware involved is NOT cheap (hell, it's not even reasonable). Apache's mod_proxy can kinda sorta maybe almost do it, but you lose session affinity and other nice things. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More info on custom tag problem
Thanks for your help on the custom tag error problem. When I move the application from the ROOT/ folder to the webapps folder everything worked fine. I am new to JSP and tomcat and have been putting all my applications under ROOT and everything worked fine before this. WHY? --- Bill Barker [EMAIL PROTECTED] wrote: Percival Bragg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The following are the current files and the error from tomcat that I received in trying my first custom tag. The following is the java class for the custom tag. package com.braggonline.portal; import java.io.*; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.*; public class bannerTag extends TagSupport { public int doEndTag() throws JspException { StringBuffer out = new StringBuffer(); out.append(table width=quot;100%quot; cellspacing=quot;0quot; class=quot;HeadBgquot; border=quot;0quot;); out.append(tr valign=quot;topquot;); out.append(td colspan=quot;3quot; class=quot;SiteLinkquot; background=quot;images/bars.gifquot; align=quot;rightquot;); out.append(span id=quot;Banner_WelcomeMessagequot; style=quot;color:#EE;quot;/span); out.append(a href=quot;index.htmlquot; class=quot;SiteLinkquot;Braggonline Home/a); out.append(span class=quot;Accentquot;|/span); out.append(a href=quot;index.htmlquot; target=quot;_blankquot; class=quot;SiteLinkquot;Site Map/a); out.append(span class=quot;Accentquot;|/span); out.append(a href=quot;index.htmlquot; target=quot;_blankquot;class=quot;SiteLinkquot;Logoff/a); out.append(nbsp;nbsp;/td/tr); out.append(trtd width=quot;10quot; rowspan=quot;2quot;nbsp;/td); out.append(td height=quot;40quot;); out.append(span id=quot;Banner_siteNamequot; class=quot;SiteTitlequot;BraggOnline Portal/span/td); out.append(td align=quot;centerquot; rowspan=quot;2quot;nbsp;/td/tr); out.append(trtd); out.append(table id=quot;Banner_tabsquot; class=quot;OtherTabsBgquot; cellspacing=quot;0quot; border=quot;0quot; style=quot;border-collapse:collapse;quot;tr); out.append(td class=quot;TabBgquot; style=quot;border-width:1px;border-style:solid;height:25px;quot;); out.append(nbsp;span class=quot;SelectedTabquot;Home/spannbsp;/td); out.append(td style=quot;border-width:1px;border-style:solid;height:25px;quot;nbsp;a href=quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=1tabid =2quot; class=quot;OtherTabsquot;JSP/a/td); out.append(td style=quot;border-width:1px;border-style:solid;height:25px;quot;nbsp;a href=quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=2tabid =3quot; class=quot;OtherTabsquot;JavaBeans/a/td); out.append(td style=quot;border-width:1px;border-style:solid;height:25px;quot;nbsp;a href=quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=3tabid =4quot; class=quot;OtherTabsquot;Discussions/a/td); out.append(td style=quot;border-width:1px;border-style:solid;height:25px;quot;nbsp;a href=quot;http://www.ibuyspyportal.com/DesktopDefault.aspx?tabindex=4tabid =5quot; class=quot;OtherTabsquot;About the Portal/a/td); out.append(/tr/table); try { pageContext.getOut().print(Got Here); } catch (Exception e) { throw new JspException(e.toString()); } return EVAL_PAGE; } } The following is the TLD file. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; taglib tlib-version1.0/tlib-version jsp-version1.2/jsp-version short-namePortalTags/short-name descriptionTags for dynamic creation of portal pages./description tag namebanner/name tag-classcom.braggonline.portal.bannerTag/tag-class /tag /taglib The following is the JSP file %@ taglib uri=WEB-INF/portalTags.tld prefix=portal % % /* The DesktopDefault.jsp page is used to load and populate each Portal View. It accomplishes this by reading the layout configuration of the portal from the Portal Configuration system, and then using this information to dynamically instantiate portal modules (each implemented as a custom tag), and then inject them into the page. */ /* This scriplet capture the request parameters passed and uses them to determine how to process the page. */ String tabIndex = request.getParameter(tabIndex); String tabId = request.getParameter(tabId); if (tabIndex == null){ session.setAttribute(tabIndex, 0); }else{ session.setAttribute(tabIndex, tabIndex); } if (tabId == null){ session.setAttribute(tabId, 0); }else{ session.setAttribute(tabId, tabId); } % html head titleBraggOnline Portal/title link href=braggonline.css type=text/css rel=stylesheet / /head body
RE: tomcat4 dies when JBDC Realm is configured
In your xml, if it is what you're using in your setup, then you didn't provide any value to connectionURL, connectionName, and connectionPassword to establish connection to the database. If you need help on this, you should read the document that comes with tomcat where you will find a section related to setting up JDBC REALM and the document of the JDBC driver that you use. Hope this help. Michael -Original Message- From: Mubaraka Arif [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:16 AM To: Tomcat Users List Subject: tomcat4 dies when JBDC Realm is configured hello , I have been trying to establish conainer amanaged security , so I tried to configure it using JDBC Realm. Steps what I follwed where : 1. created users table with fields username, password. 2. created roles tables with fields username, rolename. 3. In server.xml I added the JDBC Realm as follows : Snippet of server.xml !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=false autoDeploy=true !-- Logger shared by all Contexts related to this virtual host. -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_ suffix=.log timestamp=true/ Realm classname=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.informix.jdbc.IfxDriver connectionURL= connectionName= connectionPassword= userTable=users userNameCol=username userCredCol=password userRoleTable=roles roleNameCol=rolename:/ Context path=/onjava docBase=onjava debug=0 reloadable=true /Context /Host /Engine /Service When I start tomcat4 , it starts and dies in about 60sec. If any of you have encountered such situations , please provide some light to this problem which would be greatly appreciated. Mubaraka Arif Data Management Software Developer St Mary's University, San Antonio, TX e-mail : [EMAIL PROTECTED] phone: 210-436-3647 - 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]
Initialization of Dispatcher Failed
When starting up The Tomcat 3.3.1a (startup.bat on Win2000), I get the following error message in the prompt window: WARNING: Dispatcher could not be set up: javax.servlet.UnavailableException: Initialization of Dispatcher failed javax.servlet.UnavailableException: Initialization of Dispatcher failed at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispat cher.java:508) at com.sapportals.portal.prt.dispatcher.Dispatcher.access$000(Dispatcher .java:59) at com.sapportals.portal.prt.dispatcher.Dispatcher$InitRunner.run(Dispat cher.java:153) at java.lang.Thread.run(Thread.java:479) Do you know what may be causing this issue? Thanks, John
Do not display the wekcome-file
Hi. How can I setup my Tomcat so that the welcome-file is not shown in the adresse field http://mydomain.net/welcome-file Best regards Soren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NT Service for Tomcat 4.1
Does the same functionality to load Tomcat as an NT service exist for 4.1 as it does for 3.2? Thanks, Tony
RE: Do not display the wekcome-file
Howdy, You can't right now with tomcat standalone. But you do have several other options: - Wait for servlet spec 2.4, implemented by tomcat 5.x, to come out. The spec allows for servlets to be welcome files. So you could just write a welcome servlet and map it to url-pattern/welcome-file/url-pattern in web.xml. - Have your static welcome file, e.g. index.html, simply content a meta refresh tag that redirects to a servlet mapped to /welcome-file. - Use Apache as a front-end and a bit of URL-rewriting. There are probably other options out there right now but I have to run to a meeting ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 1:53 PM To: [EMAIL PROTECTED] Subject: Do not display the wekcome-file Hi. How can I setup my Tomcat so that the welcome-file is not shown in the adresse field http://mydomain.net/welcome-file Best regards Soren - 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: NT Service for Tomcat 4.1
Tomcat 4.1.x can be run as a service in NT, 2000, and XP. John -Original Message- From: Anthony Shawver [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:11 PM To: Tomcat Users List Subject: NT Service for Tomcat 4.1 Does the same functionality to load Tomcat as an NT service exist for 4.1 as it does for 3.2? Thanks, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it necessary to use a jdk with tomcat?
Hi Shapira, Yoav wrote: Howdy, Technically, as things are right now, if you don't have JSPs that need to be compiled at runtime, you can use the JRE. If you have JSPs and want to use the JRE, pre-compile your JSPs using JspC. However, please note that the official tomcat requirement for installation is the JDK, not the JRE. That may change in the future, but it is the policy right now and has been for a while. Generally speaking, if you do not follow installation instructions for a product and then run into difficulties, you will have a tougher time getting (relevant) support. [...] And with TC 4.1 there is even a check in the startup scripts to test for the JDK. Look into setclasspath.bat and you will find a check for jdb and javac. You must comment out these checks to successfully start Tomcat. Olli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classfile availability for applets while maintaining restricted access
Weird problem here. Any help or suggestions would be greatly appreciated. This is slightly off-topic, but is still relevant to Tomcat users. I have a large package of Java classes, which contains half a dozen subclasses, each with several classes. Total class count is about 150. I have Apache linked to Tomcat 4.0.3 using mod_webapp, serving my web application. The application consists entirely of JSP pages -- no servlets. I'm running RedHat 7.3. Some site functionality is also accessible through a couple of applets, which allow a more live interface when quick interaction is necessary. The applets and JSP pages make use of many of the same classes. So, I need to make the class files available via HTTP, so that the applets can access them. I could do this with a JAR file, but I'd rather not, because then the applet clients would end up downloading many classes that they won't need. I like the dynamic approach of allowing the applet to selectively download only the classes it needs, and as far as I know, applets have no way of doing that with JAR files. However, I'd like to hide my class files, so that a user can't download them and keep them on his computer. I have a level of security by obscurity here, as the classes are in a directory that nothing ever links to. However, anyone could look at the source to one of the applet pages and easily find this directory. Am I missing a possibility here? Does anyone have an idea? I also would like to disable directory index listings in this hidden folder -- how do I do that? I didn't find it in the Tomcat documentation, and since I'm using mod_webapp, I can't do it in Apache. -Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Retrieve parameters from web.xml in my own JNDIRealm
I've making my own JNDIRealm and my web application has various protected zones. In my JNDIRealm I would like to retrieve the parameters from web.xml (security-constraint subelements) related with the protected zones. For example, in web.xml file I have the following lines: security-constraint web-resource-collection web-resource-namePrivate Zone 1/web-resource-name ... /web-resource-collection ... /security-constraint security-constraint web-resource-collection web-resource-namePrivate Zone 2/web-resource-name ... /web-resource-collection ... /security-constraint In my JNDIRealm I would like to distinguish the different zones for the web-resource-name subelement for to make different things. How I can to retrieve this subelement when my application is running?? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NT Service for Tomcat 4.1
Hello Anthony, Yep, see: http://www.mattkelli.com/tech/tomcat/ntservice.htm Jake Monday, February 24, 2003, 1:11:15 PM, you wrote: AS Does the same functionality to load Tomcat as an NT service exist for 4.1 as AS it does for 3.2? AS Thanks, AS Tony -- Best regards, Jacobmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Problems Uprgrading from Tomcat 3.2.x to Tomcat 4.1.18
I am a newbie at Tomcat and Java so please forgive me if I am about to ask some stupid question that everyone should no when working in this environment. Our customer has asked me to upgrade their Tomcat installation from 3.2.4 to 4.1.18. This environment is on Windows 2000. I first installed Tomcat 4.1.18, from binary, and made my necessary changes in server.xml and web.xml for the new system to see the servlet directory and classes. The default home page comes up just fine but when I use the test page to hit the class I get the following error: Error executing remote method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache/Tomcat This class uses RMI to call a listener to complete the process. I am using Sun's Java SDK 1.4.1. I have recompiled the classes with the libraries pointing to the $CATALINA_HOME\common\lib so it knows about the new activation.jar and servlet.jar. I also set the classpath in the runtime of the background listener program to use these same jar's (this application attaches to the RMI on the standard port) Here is my webapps web.xml file. I did not make any changes to this for the upgrade nor did I write it originally. ?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 context-param param-nameceRmiUrl/param-name param-valuermi://localhost:1099/communicationengine.httpmodule.Receive r/param-value descriptionRMI URI that is used to post incoming messages to CE /description /context-param servlet servlet-name snoop /servlet-name servlet-class SnoopServlet /servlet-class !-- init-param param-namefoo/param-name param-valuebar/param-value /init-param -- /servlet servlet servlet-name servletToJsp /servlet-name servlet-class servletToJsp /servlet-class /servlet servlet servlet-nameHTTP Servlet/servlet-name servlet-classServletHttpPostReceiver/servlet-class init-param param-nameceRmiUrl/param-name param-valuermi://localhost:1099/communicationengine.httpmodule.Receive r/param-value /init-param /servlet servlet servlet-nameHTTPS Servlet/servlet-name servlet-classServletHttpSSLPostReceiver/servlet-class init-param param-nameceRmiUrl/param-name param-valuermi://localhost:1099/communicationengine.httpmodule.Receive r/param-value /init-param /servlet servlet-mapping servlet-name snoop /servlet-name url-pattern /snoop /url-pattern /servlet-mapping servlet-mapping servlet-name snoop /servlet-name url-pattern *.snp /url-pattern /servlet-mapping servlet-mapping servlet-name servletToJsp /servlet-name url-pattern /servletToJsp /url-pattern /servlet-mapping taglib taglib-uri http://java.apache.org/tomcat/examples-taglib /taglib-uri taglib-location /WEB-INF/jsp/example-taglib.tld /taglib-location /taglib security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/jsp/security/protected/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint I appreciate any help or insight someone can give me into getting this