Re: What LDAP servers does JNDI realm support? -
Davi Leal wrote: jerome moliere wrote: I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). :( As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) I have been told the LDAP protocol is no-100% a standard. That is to say, a lot of providers have realized different offers, which share only 90% of the specification (the core standard). Nowdays, it is said, the Netscape's one being the more recognised/compatible/ standard. So, my question is now: What LDAP products does the JNDI Tomcat realm support? No problem with OpenLDAP ('from my experience), NDS or Sun implementations seem to work nicely. For microsoft active directory is quite a LDAP server, but you can't use the referral paradigm HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MultipartRequest class with Tomcat 3.2.1
Fausto Zorzi wrote: Hi, I have a problem using the com.oreilly.servlet.MultipartRequest class by Jason Hunter (documentation at http://www.servlets.com/cos/index.html) with Tomcat 3.2.1 and Apache 1.3.20. The configuration I'm using is the following: - RedHat 7.3 - JDK 1.4.1_01 - Apache 1.3.20 - Tomcat 3.2.1 - Servlet 2.3 Hi fausto, excuse me but are you sure you use the servlet 2.3 API with the old ( good) Tomcat 3.2.1 ? I guess it's a typo because I used this release 4 years ago(3.2) No, Tomcat 3.2 is not a servlet 2.3 compliant engine... So you may use older releases from the Jason Hunter code (compliant with your Tomcat release) or upgrade your tomcat ... HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering Tomcat - Loadbalancing and Failover
Hanasaki JiJi wrote: Hello, What is available, in Tomcat, or as an add-on, and preferably free/open-source to cluster tomcat for: load balancing fail over humm filip hanik could answer with more details (or remy maucherat) but as far as I know new Tomcat 5 code (backported to 4.1) use the Javagroups library for replication mechanism. For tomcat 4.1, adding jars (javagroups + patch) is enough to add theses features... For tomcat 5, nothing needed because it's one of the new features... how are session states replicated? It's one of the limits of this system, because every put made, induces replication for the entire object using broadcast (by default). So heavy traffic... Also, in general, and a bit off-topic (my apologies), are there any resources for the design, or open source implementation, of load balancing / fail-over frameworks? javagroups :) google may point you to the current address !!! I think that this porject recently joined the JBOSS project Thanks Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat, Jonas and Valves.
I figured out the problem. I had installed the valve, in my org.apache.catalina.valves, in catalina.jar in tomcat. I expected that jonas would also run the tomcat scripts, when starting up tomcat. But, instead, jonas runs its version of server.xml and web.xml (in preference to the ones defined in %tomcat_home%\conf) during startup. So, it was when i updated server.xml, in jonas\conf, it was looking for the file in its directory structure, i.e. org.apache.catalina.valves, in jonas, defined in web_catalina.jar. Once I updated this jar to include my file, its working fine with Jonas and Tomcat. The valve I made is a modified version of the RequestDumperValve. Steve. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, What seems to be happening with the Valve? (And should I just throw away my hopes of getting people to write portable applications? Is the appeal of container-specific features really that great? Ignore these questions, I'm just asking myself ;)) Yoav Shapira Millennium ChemInformatics -Original Message- From: Steven Perry [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 6:34 AM To: Tomcat Users List Subject: Tomcat, Jonas and Valves. I have implemented a Valve, and configured it in %tomcat_home%\conf\server.xml . When I run catalina start, this valve work perfectly. I have integrated tomcat and jonas, since Jonas is my preferred ejb-container. But, when i use jonas start, my valve doesn't seem to be functioning. I even configured server.xml in %jonas_base%\conf, but to no avail. If anyone has any idea how to go about this, I'd be grateful to hear from you. --Steve __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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!? The New Yahoo! Shopping - with improved product search
Re: What LDAP servers does JNDI realm support? -
Hi Can youguys give some input on the following. I am using the following Tomcat: 4.1.27-LE-jdk14 Apache: 2.0.47 Java : 1.4.2 Linux OS: 7.3 iPlanet LDAP Server I am trying to configure LDAP authentication mechanism to my application. 1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar file to $CATALINA_HOME/server/lib directory. 2) The i have added the following entry to the server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://ldap.mycompany.com:389; userBase=ou=active,ou=employees,ou=people,o=mycompany.com userSearch=(uid={0}) roleSearch=(uniqueMember={0}) roleName=cn debug=99 contextFactory=com.sun.jndi.ldap.LdapCtxFactory / 3) In my application web.xml file i have added the following security-constraint web-resource-collection web-resource-nameNrt/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameCEC/realm-name /login-config But authentication is not working, any debug techniques or methods will be a great help. Thanks jerome moliere [EMAIL PROTECTED] wrote: Davi Leal wrote: jerome moliere wrote: I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). :( As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) I have been told the LDAP protocol is no-100% a standard. That is to say, a lot of providers have realized different offers, which share only 90% of the specification (the core standard). Nowdays, it is said, the Netscape's one being the more recognised/compatible/ standard. So, my question is now: What LDAP products does the JNDI Tomcat realm support? No problem with OpenLDAP ('from my experience), NDS or Sun implementations seem to work nicely. For microsoft active directory is quite a LDAP server, but you can't use the referral paradigm HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
CLIENT-CERT and custom username?
hello everyone, looked for this all over but couldn't find an answer... So I would like to ask a question about the auth-method CLIENT-CERT. It seems that the username resulting from an authentication is the CN component of the subject's DN (as it appears in the client certificate). Is there any way to using a custom function that returns a username based on the DN? Or is it possible to use a custom function to return a principal that is different from the username? many thanks for any help --bud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class problem
Hi, I have Tomcat 4.1.27 and j2sdk1.4.2 installed. I'm using Win 2000. I have tried to create a form and I use a java class(UserData.java) to store the information collected from the form. My form page and Display.jsp page is in TOMCAT_HOME\webapps\ROOT\. The UserData.java is stored in TOMCAT_HOME\webapps\ROOT\WEB-INF\classes\com directory. I have compiled it and get UserData.class stored in the same directory. I have added something in web.xml file in TOMCAT_HOME\webapps\ROOT\WEB-INF\web.xml which are servlet-nameuserdata/servlet-name servlet-classcom.UserData/servlet-class I run my tomcat and open my form page and put in some data. The next page should display the data I have provided earlier. Unfortunately I get this error message type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /Display.jsp(0,4) Invalid directive What is actually wrong here? Any idea? Thanks. - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
blocking connections
Hi. I want to block connections from some hosts, I was reading about Filters and Valves, but I think they cannot do what I want to achive. The goals are: - block connection very early, immediately after connection, before reading and parsing any data from the client (to save the bandwith) - manage an access list from the servlet, adding and removing hosts when necessary It would be better to achive this under stable tomcat release that is 4.*. Thanks for any advice Roman Bednarek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What LDAP servers does JNDI realm support? -
Hi Can youguys give some input on the following. I am using the following Tomcat: 4.1.27-LE-jdk14 Apache: 2.0.47 Java : 1.4.2 Linux OS: 7.3 iPlanet LDAP Server I am trying to configure LDAP authentication mechanism to my application. 1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar file to $CATALINA_HOME/server/lib directory. 2) The i have added the following entry to the server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://ldap.mycompany.com:389; userBase=ou=active,ou=employees,ou=people,o=mycompany.com userSearch=(uid={0}) roleSearch=(uniqueMember={0}) roleName=cn debug=99 contextFactory=com.sun.jndi.ldap.LdapCtxFactory / 3) In my application web.xml file i have added the following security-constraint web-resource-collection web-resource-nameNrt/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameCEC/realm-name /login-config But authentication is not working, any debug techniques or methods will be a great help. Thanks jerome moliere [EMAIL PROTECTED] wrote: Davi Leal wrote: jerome moliere wrote: I am trying to authenticate my webapps via a JNDI Realm, which connects to Microsoft Site Server (LDAP). :( As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) I have been told the LDAP protocol is no-100% a standard. That is to say, a lot of providers have realized different offers, which share only 90% of the specification (the core standard). Nowdays, it is said, the Netscape's one being the more recognised/compatible/ standard. So, my question is now: What LDAP products does the JNDI Tomcat realm support? No problem with OpenLDAP ('from my experience), NDS or Sun implementations seem to work nicely. For microsoft active directory is quite a LDAP server, but you can't use the referral paradigm HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
RE: Tomcat4.1, jk2, and apache 1.3
Fully agree - the connector tomcat/apache doc is a mess - can't understand why the connector developers cannot write a simple doc as part of release procedure or ask for help in documenting this. I'm alo trying to integrate Apache 1.3, TC 4.1.27 using jk2 on RH7.3 From what I see you need mod_jk2.so (build this), jk2.properties, workers2.properties. Avoid going the auto config route in httpd just add the 2 lines for the jk2 module. Thomas -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 23:18 To: [EMAIL PROTECTED] Subject: Tomcat4.1, jk2, and apache 1.3 Hi. I am trying to get the mod_jk2 to load into apache 1.3 and I am slowly going insane. I have googled my way around the web and have seen lots of people ask the same type of question I am asking, but there are few good answers. (I feel a bit like that guy in the commercial that finished the internet.) I have in my httpd.conf file: LoadModule jk2_module libexec/mod_jk2.so Include tomcat/conf/auto/mod_jk.conf I have read that there is a way to get tomcat to produce its own mod_jk.conf-auto file, but I cannot find how to do it. I have looked at the jk2 docs a lot, but it seems that they are for a different (incompatible) version. The JkMount directives cannot be added manually either, since mod_jk2 doesn't seem to understand these. What magic do I need to do so that tomcat 4.1 can produce the jk2 config file automatically? Thanks, Mark - Nonviolence is the answer to the crucial political and moral questions of our time; the need for man to overcome oppression and violence without resorting to oppression and violence. -- Martin Luther King Jr. Mark Claassen Donnell Systems, Inc. 300 S. St. Louis Blvd. Ste. 203 South Bend, IN 46617 E-mail: mailto:[EMAIL PROTECTED] Voice: (574)232-3784 Fax: (574)232-4014 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * This email and any attachments are confidential and intended for the sole use of the intended recipient(s).If you receive this email in error please notify [EMAIL PROTECTED] and delete it from your system. Any unauthorized dissemination, retransmission, or copying of this email and any attachments is prohibited. Euroconex does not accept any responsibility for any breach of confidence, which may arise from the use of email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. This message has been scanned for known computer viruses. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
Which versions of IE is that applicable to? (Graham Reeds) Sorry for the delay. IE v 6.0.2600 Regards, Carlos Pereira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What LDAP servers does JNDI realm support? -
Equipment Lamp wrote: Hi Can youguys give some input on the following. I am using the following Tomcat: 4.1.27-LE-jdk14 Apache: 2.0.47 Java : 1.4.2 Linux OS: 7.3 iPlanet LDAP Server I am trying to configure LDAP authentication mechanism to my application. 1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar file to $CATALINA_HOME/server/lib directory. 2) The i have added the following entry to the server.xml file. Realm className=org.apache.catalina.realm.JNDIRealm connectionURL=ldap://ldap.mycompany.com:389; userBase=ou=active,ou=employees,ou=people,o=mycompany.com userSearch=(uid={0}) roleSearch=(uniqueMember={0}) roleName=cn debug=99 contextFactory=com.sun.jndi.ldap.LdapCtxFactory / 3) In my application web.xml file i have added the following security-constraint web-resource-collection web-resource-nameNrt/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameCEC/realm-name /login-config But authentication is not working, any debug techniques or methods will be a great help. have you any log entries or anything helpful ? classnotfound exception or something like this woulmd be great (easy to fix) Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
W2K service stops when logging off
Hi. I am running Tomcat 3 as a W2K service using jk_nt_service.exe as a wrapper. When the W2K server is booted up the Tomcat service (Local System) runs fine with no user logged in. But if I log in as a user and then log out the service stops. Could anyone help me with this? Thanks Glyn
HOW TO CREATE VIRTUAL HOST IN APACHE
hi all.. Can any one tell me how to create virtual hosts in apache2.0.47. please, if any one can help me. tell me the step by step procedure to create a virtual host in apache2. Thanks mail me at [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HOW TO CREATE VIRTUAL HOST IN APACHE
This would be more appropriate in an Apache forum - not a Tomcat portion to this question in sight. The documentation which comes free with Apache explains this in very good detail. You can also read these docs online at: http://httpd.apache.org/docs-2.0/vhosts/ Google for examples if still confused. Regards, Morgan -Original Message- From: ABDUL BASIT [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:34 To: Tomcat Users List Subject: HOW TO CREATE VIRTUAL HOST IN APACHE hi all.. Can any one tell me how to create virtual hosts in apache2.0.47. please, if any one can help me. tell me the step by step procedure to create a virtual host in apache2. Thanks mail me at [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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: HOW TO CREATE VIRTUAL HOST IN APACHE
Edit your httpd.conf and make it look like something like this: VirtualHost 10.99.1.114 ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/www.someserver2.com ServerName www.someserver2.com ErrorLog /export/home3/system_logs/error-log_www.someserver2.com CustomLog /export/home3/system_logs/common-log_common_www.someserver2.com common /VirtualHost VirtualHost 10.99.1.114 ServerAdmin [EMAIL PROTECTED] DocumentRoot /export/home/www.someserver1.com ServerName www.someserver1.com ErrorLog /export/home3/system_logs/error-log_www.someserver1.com CustomLog /export/home3/system_logs/common-log_www.someserver1.com common /VirtualHost restart apache. Regards, Johan Louwers. - Original Message - From: ABDUL BASIT [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:33 AM Subject: HOW TO CREATE VIRTUAL HOST IN APACHE hi all.. Can any one tell me how to create virtual hosts in apache2.0.47. please, if any one can help me. tell me the step by step procedure to create a virtual host in apache2. Thanks mail me at [EMAIL PROTECTED] __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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]
JDBC Realm not working with - Please help
Hi, I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000. Here is the script to create tables: CREATE TABLE [dbo].[t_Role] ( [RoleId] [int] IDENTITY (1, 1) NOT NULL , [role] [varchar] (12) ) CREATE TABLE [dbo].[t_Usr] ( [UsrId] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [Pwd] [varchar] (10) ) CREATE TABLE [dbo].[t_UsrRole] ( [UsrRoleAdmin] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [RoleName] [varchar] (10) ) Below is the only changes I have made to my server.xml file. Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://exp468:1433;DatabaseName=Mosaic;user=sa;password=c0mmun1$t; connectionName=rudi connectionPassword=rudi userTable=t_Usr userNameCol=UsrName userCredCol=Pwd userRoleTable=t_UsrRole roleNameCol=RoleName / Any assistance would be greatly appreciated. Cheers, Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC Realm not working with - Please help
Hi again, I'm using version 4.1.27 of tomcat, and my login page is taking forever to load. I'm not actually getting any error messages. Thanks again, Rudi Hi, I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000. Here is the script to create tables: CREATE TABLE [dbo].[t_Role] ( [RoleId] [int] IDENTITY (1, 1) NOT NULL , [role] [varchar] (12) ) CREATE TABLE [dbo].[t_Usr] ( [UsrId] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [Pwd] [varchar] (10) ) CREATE TABLE [dbo].[t_UsrRole] ( [UsrRoleAdmin] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [RoleName] [varchar] (10) ) Below is the only changes I have made to my server.xml file. Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://exp468:1433;DatabaseName=Mosaic;user=sa;password=c0mmun1$t; connectionName=rudi connectionPassword=rudi userTable=t_Usr userNameCol=UsrName userCredCol=Pwd userRoleTable=t_UsrRole roleNameCol=RoleName / Any assistance would be greatly appreciated. Cheers, Rudi - 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 Realm not working with - Please help
I have also placed the following files in D:\Tomcat 4.1\common\lib: msutil.jar, mssqlserver.jar, and msbase.jar, and restarted tomat, but still no joy. Hi again, I'm using version 4.1.27 of tomcat, and my login page is taking forever to load. I'm not actually getting any error messages. Thanks again, Rudi Hi, I'm trying to setup my web app to use JDBC Realm. I am using SQL Server 2000. Here is the script to create tables: CREATE TABLE [dbo].[t_Role] ( [RoleId] [int] IDENTITY (1, 1) NOT NULL , [role] [varchar] (12) ) CREATE TABLE [dbo].[t_Usr] ( [UsrId] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [Pwd] [varchar] (10) ) CREATE TABLE [dbo].[t_UsrRole] ( [UsrRoleAdmin] [int] IDENTITY (1, 1) NOT NULL , [UsrName] [varchar] (10) , [RoleName] [varchar] (10) ) Below is the only changes I have made to my server.xml file. Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver connectionURL=jdbc:microsoft:sqlserver://exp468:1433;DatabaseName=Mosaic;user=sa;password=c0mmun1$t; connectionName=rudi connectionPassword=rudi userTable=t_Usr userNameCol=UsrName userCredCol=Pwd userRoleTable=t_UsrRole roleNameCol=RoleName / Any assistance would be greatly appreciated. Cheers, Rudi - 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]
Getting exception running examples
Hi, I wanted to install a war file from cfdev activedit when I noticed most of their jsp files doesnt work on my tomcat. I have a tomacat 5.0.7 haven't used it so much, I then tried to run the examples see if they work, well most of them do, so it can compile jsp at least but, one doesnt and gives me same error. It is the jsp configuration example. The exception I get is: javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) java.lang.NoSuchMethodError at org.apache.jasper.compiler.JspUtil.makeJavaPackage(JspUtil.java:948) at org.apache.jasper.JspCompilationContext.getDerivedPackageName(JspCompilation Context.java:403) at org.apache.jasper.JspCompilationContext.getServletPackageName(JspCompilation Context.java:393) at org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContex t.java:605) at org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.j ava:227) at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationConte xt.java:475) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:514) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:484) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 53) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 00) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) So I thought easiet way is to search this archive or/and ask you guys. Have you seen this before? what is it? thanks artin
Tomcat vs Bea WebLogic - (was: Re: What LDAP servers does JNDI realm support?)
Davi Leal wrote: jerome moliere wrote: As I am getting [LDAP: error code 2 - Protocol Error] (See below), I would like to know if that Micro$oft product is a certified LDAP server. as fai as i Know, like any other microsoft product, partially... :) I have been told the LDAP protocol is no-100% a standard. That is to say, a lot of providers have realized different offers, which share only 90% of the specification (the core standard). Nowdays, it is said, the Netscape's one being the more recognised/compatible/ standard. So, my question is now: What LDAP products does the JNDI Tomcat realm support? No problem with OpenLDAP ('from my experience), NDS or Sun implementations seem to work nicely. For microsoft active directory is quite a LDAP server, but you can't use the referral paradigm Reference: http://www.weblogic.com/docs51/admindocs/ldap2.html#intro The WebLogic LDAP realm has been tested against the following LDAP servers: * OpenLDAP * iPlanet Directory Server * Microsoft Site Server I would like to get a similar Tomcat link to show to my boss. Regards, Davi Leal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could Not Start The Tomcat Server After Commenting Out Realm in the server.xml For Using JDBCRealm
Tomcat won't start up if the Realm can't start up. Since you didn't replace your connection information with the dummy JDBCRealm placeholder, the connection failed to the database. As for the , in your connection string in your older email had: connectionURL=jdbc:mysql://localhost:3306/artimus?user=javauserpassword=javadude Which should be: connectionURL=jdbc:mysql://localhost:3306/artimus?user=javauseramp;password=javadude -Tim Caroline Jen wrote: Thanks for your reply. I tried the following: 1) I put !-- and -- around the UserDababaseRealm shown below: !-- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ -- 2) I removed the !-- and -- around the JDBCRealm for MySql (I did not insert any of my code, I simply use the existing code in the server.xml) and I do not see any in that section of code. See below: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority connectionName=test connectionPassword=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / I saved the file and I could not start the Tomcat server. I then reverted everything back, the Tomcat server works as normal. Wondering what is going on? -Caroline --- Tim Funk [EMAIL PROTECTED] wrote: 1) For simplicity, did you coment out the UserDatabaseRealm when placing your JDBCRealm at the same level? 2) Make sure the are encoded as amp; Otherwise - you xml document is not valid. -Tim Caroline Jen wrote: I encountered this problem: I followed the instructions on using the JDBCRealm (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html). I prepared userTable and userRoleTable tables. However, I could not start the Tomcat server after I inserted [CODE] Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/artimus?user=javauserpassword=javadude userTable=members userNameCol=user_name userCredCol=user_password userRoleTable=user_roles roleNameCol=user_role/ [/CODE] within the Engine tag in the $CATALINA_HOME/conf/server.xml file. I first inserted the aforementioned Realm within the context tag in the $CATALINA_HOME/conf/server.xml and I was unable to start the Tomcat server. I then moved the Realm inside the Engine tag, but it did not help. By the way, do you think the user and password given in the JDBCRealm are correct? I configured database username and password for use by Tomcat in the $CATALINA_HOME/conf/server.xml in the following way and I have used this database many times without problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class problem
Its your JSP (Display.jsp) which is bad cand can't be compiled. -Tim mas suhaila wrote: Hi, I have Tomcat 4.1.27 and j2sdk1.4.2 installed. I'm using Win 2000. I have tried to create a form and I use a java class(UserData.java) to store the information collected from the form. My form page and Display.jsp page is in TOMCAT_HOME\webapps\ROOT\. The UserData.java is stored in TOMCAT_HOME\webapps\ROOT\WEB-INF\classes\com directory. I have compiled it and get UserData.class stored in the same directory. I have added something in web.xml file in TOMCAT_HOME\webapps\ROOT\WEB-INF\web.xml which are servlet-nameuserdata/servlet-name servlet-classcom.UserData/servlet-class I run my tomcat and open my form page and put in some data. The next page should display the data I have provided earlier. Unfortunately I get this error message type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /Display.jsp(0,4) Invalid directive What is actually wrong here? Any idea? Thanks. - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: blocking connections
There is already valves which do this. See Remote Address Filter in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html -Tim Roman Bednarek wrote: Hi. I want to block connections from some hosts, I was reading about Filters and Valves, but I think they cannot do what I want to achive. The goals are: - block connection very early, immediately after connection, before reading and parsing any data from the client (to save the bandwith) - manage an access list from the servlet, adding and removing hosts when necessary It would be better to achive this under stable tomcat release that is 4.*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is a good dev-enviroment for servlet/tomcat?
Have you never run into a problem when multiple developers are working on the same server, and someone crashes the server, overwrites someone else's code, breaks something that someone else was relying on, or restarts the server when someone was in the middle of testing a long running batch job? I certainly have! It's easy to ensure people in a small team have the same version. Put up a poster with Tomcat 4.1.18 or something written on it, or if they are distributed around the world, email them weekly with what the approved development environment is. If they can't be trusted, replace them with people who can ;-). By all means have a single test server shared by everyone, but make sure people only upload code that has at least been locally module tested. That way everyone won't tread on each others toes all the time, and if the test server goes wrong, others can continue working in their local environments. Andy -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 20:45 To: Tomcat Users List Subject: Re: What is a good dev-enviroment for servlet/tomcat? Just a precaution. We had run into problem before when different developers have different version of Tomcat with different configuration locally. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 01:55 PM Subject: RE: What is a good dev-enviroment for servlet/tomcat? Howdy, IMHO, instead of one instance per developer, I think you should have one development server with one instance of Tomcat shared by the 3 developers. Why oh why do you think that?? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
register/remove HttpSessionListener after context startup?
Hi all, Is it possible to register/remove a class which implements HttpSessionListener after startup without changing web.xml and reloading the context? Martin Grüneberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xerces version used by Tomcat 4.1.27
Hi Could any one please tell what version of xerces-j is used by Tomcat 4.1.27. Also since xerces libraries are available in common/ directory, my web app don't need to have another copy of xerces jar files and can use the one lying in the common/ directory of Tomcat? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to write file download program
Hi, I am afraid to ask some instruction for my work. I am thinking to write a program to help client to download some sound file from server. Client send request to download a file in server. The request includes the file name and directory he want the file to be loaded onto. the request invokes the download program callled for example as download.php in server.(Apache). The download.php retrieve the sound file (greeting.wav) and download the file to client. Besides. i need to wirte a upload program called upload.php help client to upload file from client to server. Any help will be really appreciated. - Do you Yahoo!? The New Yahoo! Shopping - with improved product search
Re: StackOverflow
OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: how to write file download program
You know that you are on a java oriented list, and i assume that not much of the members are php-experienced. Mike -Ursprüngliche Nachricht- Von: bin cai [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. Oktober 2003 12:08 An: Tomcat Users List Betreff: how to write file download program Hi, I am afraid to ask some instruction for my work. I am thinking to write a program to help client to download some sound file from server. Client send request to download a file in server. The request includes the file name and directory he want the file to be loaded onto. the request invokes the download program callled for example as download.php in server.(Apache). The download.php retrieve the sound file (greeting.wav) and download the file to client. Besides. i need to wirte a upload program called upload.php help client to upload file from client to server. Any help will be really appreciated. - Do you Yahoo!? The New Yahoo! Shopping - with improved product search - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StackOverflow
OK can someone answer a simple question here: if tomcat gives me a StackOverflowError, does that mean that there is no way of getting a stack trace? Or am I making 2 + 2 = 5? Adam On 10/09/2003 01:45 PM Adam Hardy wrote: OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overhead of having a WAR file in docPath
I found that basically Tomcat doesn't auto-deploy when one explicitly declares a context. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot view pages in frame
Hello, My welcome page has the following: [EMAIL PROTECTED] contentType=text/html% html head base href=http://localhost:8081/mosaic/welcome.jsp; / titleMosaic Admin Welcome/title /head frameset noresize=noresize cols=210, * frame noresize=noresize src=/dbs.jsp name=listframe frame noresize=noresize src=/info.jsp name=detailsframe /frameset /html The login form redirects me to a LoginServelet which in turn directs me to welcome.jsp. I can view all pages on my machine but unfortunately, others on the same network are unable to view both dbs.jsp or info.jsp. Internet Explorer returns tow empty pages. Any pointers would be very much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot view pages in frame
They won't unless they have localhost mapped to your ip address ;) [EMAIL PROTECTED] wrote: Hello, My welcome page has the following: [EMAIL PROTECTED] contentType=text/html% html head base href=http://localhost:8081/mosaic/welcome.jsp; / titleMosaic Admin Welcome/title /head frameset noresize=noresize cols=210, * frame noresize=noresize src=/dbs.jsp name=listframe frame noresize=noresize src=/info.jsp name=detailsframe /frameset /html The login form redirects me to a LoginServelet which in turn directs me to welcome.jsp. I can view all pages on my machine but unfortunately, others on the same network are unable to view both dbs.jsp or info.jsp. Internet Explorer returns tow empty pages. Any pointers would be very much appreciated! Rudi - 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: StackOverflow
For all those out there hanging on every msg in this thread, it seems it was just an infinite loop. Personally I think it was gremlins that came in last night and coded it. Remarkable how their coding style is so similar to my own. ;) At least there's one positive point, I'm learning to listen to the little voice in the back of my head, which told me not to put it in bugzilla with lots of quotes from Nietzsche and Dostoevsky. But seriously, the original error message was amazingly misleading. That my code threw the exception was my fault but tomcat couldn't handle the stack trace and worse, output an error message quoting my filter as the source. I know the filter would have been near the bottom of the stacktrace, since it would be amazingly long due to the infinite loop, but of course it made me think that tomcat had fallen over trying to handle the request before it even passed it on to struts my code. No? Is this an issue? Adam On 10/09/2003 02:09 PM Adam Hardy wrote: OK can someone answer a simple question here: if tomcat gives me a StackOverflowError, does that mean that there is no way of getting a stack trace? Or am I making 2 + 2 = 5? Adam On 10/09/2003 01:45 PM Adam Hardy wrote: OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting exception running examples
Howdy, Do you have the JDK installed on your system? If so, what version, and is JAVA_HOME set correctly? Do you have more than one version of tomcat installed on your system, or more than one jasper jar in your tomcat installation? Yoav Shapira Millennium ChemInformatics -Original Message- From: Artin Modaresi [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 6:12 AM To: '[EMAIL PROTECTED]' Subject: Getting exception running examples Hi, I wanted to install a war file from cfdev activedit when I noticed most of their jsp files doesnt work on my tomcat. I have a tomacat 5.0.7 haven't used it so much, I then tried to run the examples see if they work, well most of them do, so it can compile jsp at least but, one doesnt and gives me same error. It is the jsp configuration example. The exception I get is: javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) java.lang.NoSuchMethodError at org.apache.jasper.compiler.JspUtil.makeJavaPackage(JspUtil.java:948) at org.apache.jasper.JspCompilationContext.getDerivedPackageName(JspCompil atio n Context.java:403) at org.apache.jasper.JspCompilationContext.getServletPackageName(JspCompil atio n Context.java:393) at org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationC onte x t.java:605) at org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationCont ext. j ava:227) at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilation Cont e xt.java:475) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:514) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:484) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j ava: 5 53) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 3 00) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) So I thought easiet way is to search this archive or/and ask you guys. Have you seen this before? what is it? thanks artin 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: not getting a stacktrace on an exception
Howdy, As you know a StackOverflowError is usually caused due to an infinite loop. Look for that in your code: chances are it happens on requests to specific URLs and not to other URLs. Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 4:00 PM To: Tomcat Users List Subject: not getting a stacktrace on an exception I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilte r.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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: Overhead of having a WAR file in docPath
Howdy, Yup, by design, and that's why I said you were trying too many things at once ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten Sent: Thursday, October 09, 2003 8:14 AM To: [EMAIL PROTECTED] Subject: Re: Overhead of having a WAR file in docPath I found that basically Tomcat doesn't auto-deploy when one explicitly declares a context. http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/host.html#Automatic%20Application%20Deployment Morten - 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: StackOverflow
Howdy, You usually don't get stack traces on StackOverflowErrors. In fact, many times you won't get a stack trace for an Error at all (as opposd to an exception). It's not a tomcat issue: I've seen the same behavior on Weblogic and Websphere. The reason is simple: there's no room on the stack to store the error stack trace itself ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 8:44 AM To: Tomcat Users List Subject: Re: StackOverflow For all those out there hanging on every msg in this thread, it seems it was just an infinite loop. Personally I think it was gremlins that came in last night and coded it. Remarkable how their coding style is so similar to my own. ;) At least there's one positive point, I'm learning to listen to the little voice in the back of my head, which told me not to put it in bugzilla with lots of quotes from Nietzsche and Dostoevsky. But seriously, the original error message was amazingly misleading. That my code threw the exception was my fault but tomcat couldn't handle the stack trace and worse, output an error message quoting my filter as the source. I know the filter would have been near the bottom of the stacktrace, since it would be amazingly long due to the infinite loop, but of course it made me think that tomcat had fallen over trying to handle the request before it even passed it on to struts my code. No? Is this an issue? Adam On 10/09/2003 02:09 PM Adam Hardy wrote: OK can someone answer a simple question here: if tomcat gives me a StackOverflowError, does that mean that there is no way of getting a stack trace? Or am I making 2 + 2 = 5? Adam On 10/09/2003 01:45 PM Adam Hardy wrote: OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilte r.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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: not getting a stacktrace on an exception
Actually I didn't know until now - but see my other message please, the bit at the end. On 10/09/2003 02:48 PM Shapira, Yoav wrote: Howdy, As you know a StackOverflowError is usually caused due to an infinite loop. Look for that in your code: chances are it happens on requests to specific URLs and not to other URLs. Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 4:00 PM To: Tomcat Users List Subject: not getting a stacktrace on an exception I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilte r.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot view pages in frame
Thanks a million. Problem solved in a matter os seconds. They won't unless they have localhost mapped to your ip address ;) [EMAIL PROTECTED] wrote: Hello, My welcome page has the following: [EMAIL PROTECTED] contentType=text/html% html head base href=http://localhost:8081/mosaic/welcome.jsp; / titleMosaic Admin Welcome/title /head frameset noresize=noresize cols=210, * frame noresize=noresize src=/dbs.jsp name=listframe frame noresize=noresize src=/info.jsp name=detailsframe /frameset /html The login form redirects me to a LoginServelet which in turn directs me to welcome.jsp. I can view all pages on my machine but unfortunately, others on the same network are unable to view both dbs.jsp or info.jsp. Internet Explorer returns tow empty pages. Any pointers would be very much appreciated! Rudi - 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: StackOverflow
Fiendishly logical. But thanks for the info Yoav. On 10/09/2003 02:52 PM Shapira, Yoav wrote: Howdy, You usually don't get stack traces on StackOverflowErrors. In fact, many times you won't get a stack trace for an Error at all (as opposd to an exception). It's not a tomcat issue: I've seen the same behavior on Weblogic and Websphere. The reason is simple: there's no room on the stack to store the error stack trace itself ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 8:44 AM To: Tomcat Users List Subject: Re: StackOverflow For all those out there hanging on every msg in this thread, it seems it was just an infinite loop. Personally I think it was gremlins that came in last night and coded it. Remarkable how their coding style is so similar to my own. ;) At least there's one positive point, I'm learning to listen to the little voice in the back of my head, which told me not to put it in bugzilla with lots of quotes from Nietzsche and Dostoevsky. But seriously, the original error message was amazingly misleading. That my code threw the exception was my fault but tomcat couldn't handle the stack trace and worse, output an error message quoting my filter as the source. I know the filter would have been near the bottom of the stacktrace, since it would be amazingly long due to the infinite loop, but of course it made me think that tomcat had fallen over trying to handle the request before it even passed it on to struts my code. No? Is this an issue? Adam On 10/09/2003 02:09 PM Adam Hardy wrote: OK can someone answer a simple question here: if tomcat gives me a StackOverflowError, does that mean that there is no way of getting a stack trace? Or am I making 2 + 2 = 5? Adam On 10/09/2003 01:45 PM Adam Hardy wrote: OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilte r.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xerces version used by Tomcat 4.1.27
Howdy, It's Xerces 2.4.0 for tomcat 4.1.27. You can use the parser in $CATALINA_HOME/conf/endorsed, you don't need another copy. It's automatically on your webapp's classpath, which you'd know if you read any of the classloader docs. Could any one please tell me if they think looking into a jar's manifest in order to find out the implementation version is too difficult? thumbs down! / Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:56 AM To: [EMAIL PROTECTED] Subject: xerces version used by Tomcat 4.1.27 Hi Could any one please tell what version of xerces-j is used by Tomcat 4.1.27. Also since xerces libraries are available in common/ directory, my web app don't need to have another copy of xerces jar files and can use the one lying in the common/ directory of Tomcat? thanks, Naresh 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: register/remove HttpSessionListener after context startup?
Howdy, Only in a container-specific, non-portable way: navigate down the tomcat classes starting with Server to get the Context (org.apache.catalina.Context) for your webapp, call addApplicationListener on it with the class name of your listener. Call removeApplicationListener to remove your listener. Yoav Shapira Millennium ChemInformatics -Original Message- From: Martin Grüneberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 7:25 AM To: Tomcat User Subject: register/remove HttpSessionListener after context startup? Hi all, Is it possible to register/remove a class which implements HttpSessionListener after startup without changing web.xml and reloading the context? Martin Grüneberg - 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: StackOverflow
Hello Adam, we got here StackOverflow or OutOfMemory errors it s because our servlets consumed too much resources from JVM. when you run Tomcat with just you in your machine everything seems fine and quick, but with more then 100 or 200 users from production server, history is different as we say here. Try to check profile your JVM and find out which servlets wast more resources. Regards, Edson Alves Pereira -- De: Adam Hardy[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 9 de outubro de 2003 9:56 Para: Tomcat Users List Assunto: Re: StackOverflow Fiendishly logical. But thanks for the info Yoav. On 10/09/2003 02:52 PM Shapira, Yoav wrote: Howdy, You usually don't get stack traces on StackOverflowErrors. In fact, many times you won't get a stack trace for an Error at all (as opposd to an exception). It's not a tomcat issue: I've seen the same behavior on Weblogic and Websphere. The reason is simple: there's no room on the stack to store the error stack trace itself ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 8:44 AM To: Tomcat Users List Subject: Re: StackOverflow For all those out there hanging on every msg in this thread, it seems it was just an infinite loop. Personally I think it was gremlins that came in last night and coded it. Remarkable how their coding style is so similar to my own. ;) At least there's one positive point, I'm learning to listen to the little voice in the back of my head, which told me not to put it in bugzilla with lots of quotes from Nietzsche and Dostoevsky. But seriously, the original error message was amazingly misleading. That my code threw the exception was my fault but tomcat couldn't handle the stack trace and worse, output an error message quoting my filter as the source. I know the filter would have been near the bottom of the stacktrace, since it would be amazingly long due to the infinite loop, but of course it made me think that tomcat had fallen over trying to handle the request before it even passed it on to struts my code. No? Is this an issue? Adam On 10/09/2003 02:09 PM Adam Hardy wrote: OK can someone answer a simple question here: if tomcat gives me a StackOverflowError, does that mean that there is no way of getting a stack trace? Or am I making 2 + 2 = 5? Adam On 10/09/2003 01:45 PM Adam Hardy wrote: OK so I took the SetCharacterEncodingFilter out of the equation, but the stack overflow still occurs: StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.StackOverflowError I presume [action] refers to struts, which I'm running. Any ideas anyone? On 10/08/2003 10:00 PM Adam Hardy wrote: I'm getting a Status 500 error page in my app javax.servlet.ServletException: Servlet execution threw an exception org.blacksail.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilte r.java:146) root cause java.lang.StackOverflowError It goes on to say that the full stack trace of the root cause is available in the Tomcat logs., but it isn't. I have the looked on the console, in the engine, host context log files but I can't find a stack trace. Whether I need one or not is questionable - that SetCharacterEncodingFilter is the one from tomcat's example app and has been working faultlessly for at least two weeks on tomcat5. Sets encoding to UTF-8. I can't think of what I have changed that has caused this, so I am at a loss. There's nothing in bugzilla that looks like this, and I can't see anything relevant in the archives. It's reproducible, every time at the same place. Is there anything I can do or should I just log it straight into bugzilla? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9
Urgent help, please!Best practices using Connection Pool
Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xerces version used by Tomcat 4.1.27
Yoav, in the xerces bundled with tomcat 5.0.12, there is nothing of use in the manifest. You have to run something like: java -cp xercesImpl.jar org.apache.xerces.impl.Version to get the version. Not exactly intuitive. Adam On 10/09/2003 03:01 PM Shapira, Yoav wrote: Howdy, It's Xerces 2.4.0 for tomcat 4.1.27. You can use the parser in $CATALINA_HOME/conf/endorsed, you don't need another copy. It's automatically on your webapp's classpath, which you'd know if you read any of the classloader docs. Could any one please tell me if they think looking into a jar's manifest in order to find out the implementation version is too difficult? thumbs down! / Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:56 AM To: [EMAIL PROTECTED] Subject: xerces version used by Tomcat 4.1.27 Hi Could any one please tell what version of xerces-j is used by Tomcat 4.1.27. Also since xerces libraries are available in common/ directory, my web app don't need to have another copy of xerces jar files and can use the one lying in the common/ directory of Tomcat? thanks, Naresh 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Urgent help, please!Best practices using Connection Pool
I could remember that there was a mail today that answered your question. The pool provides an wrapper for the connection object that you receive, this means you call getConnection and you do not get the real connection instead you recive an object implementing the Connection functionality with an altered close() method, which does not close/release the connection, but returns the connection to the pool. If it was to short, read the original post in the archives. Mike -Ursprüngliche Nachricht- Von: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. Oktober 2003 15:27 An: '[EMAIL PROTECTED]' Betreff: Urgent help, please!Best practices using Connection Pool Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - 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: Urgent help, please!Best practices using Connection Pool
You should close your pool connection because the pool doesn't close the real connection. this doc can help you : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how to.html#Random%20Connection%20Closed%20Exceptions Arnaud -Message d'origine- De : Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Envoyé : jeudi 9 octobre 2003 15:27 À : '[EMAIL PROTECTED]' Objet : Urgent help, please!Best practices using Connection Pool Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - 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: Urgent help, please!Best practices using Connection Pool
Usually you should return every connection to your Persistence mechanism, you cannot close the connection, because if do that other process won´t use it. -- De: Jose Euclides da Silva Junior - DATAPREVRJ[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 9 de outubro de 2003 10:26 Para: '[EMAIL PROTECTED]' Assunto: Urgent help, please!Best practices using Connection Pool Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xerces version used by Tomcat 4.1.27
Howdy, He didn't ask about 5.0.12, as the subject says. Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:28 AM To: Tomcat Users List Subject: Re: xerces version used by Tomcat 4.1.27 Yoav, in the xerces bundled with tomcat 5.0.12, there is nothing of use in the manifest. You have to run something like: java -cp xercesImpl.jar org.apache.xerces.impl.Version to get the version. Not exactly intuitive. Adam On 10/09/2003 03:01 PM Shapira, Yoav wrote: Howdy, It's Xerces 2.4.0 for tomcat 4.1.27. You can use the parser in $CATALINA_HOME/conf/endorsed, you don't need another copy. It's automatically on your webapp's classpath, which you'd know if you read any of the classloader docs. Could any one please tell me if they think looking into a jar's manifest in order to find out the implementation version is too difficult? thumbs down! / Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:56 AM To: [EMAIL PROTECTED] Subject: xerces version used by Tomcat 4.1.27 Hi Could any one please tell what version of xerces-j is used by Tomcat 4.1.27. Also since xerces libraries are available in common/ directory, my web app don't need to have another copy of xerces jar files and can use the one lying in the common/ directory of Tomcat? thanks, Naresh 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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: AW: Urgent help, please!Best practices using Connection Pool
I think he must be having problems with his email because he send more or less the same msg 12 hours ago but didn't respond to any of the replies. On 10/09/2003 03:27 PM Nitschke Michael wrote: I could remember that there was a mail today that answered your question. The pool provides an wrapper for the connection object that you receive, this means you call getConnection and you do not get the real connection instead you recive an object implementing the Connection functionality with an altered close() method, which does not close/release the connection, but returns the connection to the pool. If it was to short, read the original post in the archives. Mike -Ursprüngliche Nachricht- Von: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. Oktober 2003 15:27 An: '[EMAIL PROTECTED]' Betreff: Urgent help, please!Best practices using Connection Pool Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Charset encoding issue (again :-))
Hi, everybody. I've some doubts about html form charset encoding. I will be glad if someone could answer questions above. 1 ) We have jsp files with directive %@ page language=java pageEncoding=utf-8 contentType=text/html;charset=utf-8 % and some classes with the following working code : if ( request.getEncoding() == null ) { String s = request.getParameter( some_param ); byte [] b = s.getBytes( iso-8859-1); s = new String( b, utf-8 ); } a) Will it work for any charset encoding ? If i replace utf-8 for windows-1251 this code will still work ? b) Is there another clean way to use utf-8 in my jsp pages ? I've read the document in http://tagunov.tripod.com/i18n/i18n.html but i'm not sure if i could understand it. :-( 2 ) When i use request.setEncoding( windows-1251) and request.getParameter( some_param ), which one of these sentences will be true ? a) request.getParameter() will do byte [] b = s.getBytes( iso-8859-1); return new String( b, windows-1251 ); b) request.getParameter() will do byte [] b = s.getBytes( windows-1251 ); return new String( b ); c) request.getParameter() will do byte [] b = s.getBytes( windows-1251 ); return new String( b, windows-1251 ); d) request.getParameter() will do byte [] b = s.getBytes(); return new String( b, windows-1251 ); Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Charset encoding issue (again :-))
The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in JAVA_OPTS, with this you ensure that your JVM is using the encoding that you want. -- De: Daniel H A Lima[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 9 de outubro de 2003 10:45 Para: Tomcat Users List Assunto: Charset encoding issue (again :-)) Hi, everybody. I've some doubts about html form charset encoding. I will be glad if someone could answer questions above. 1 ) We have jsp files with directive %@ page language=java pageEncoding=utf-8 contentType=text/html;charset=utf-8 % and some classes with the following working code : if ( request.getEncoding() == null ) { String s = request.getParameter( some_param ); byte [] b = s.getBytes( iso-8859-1); s = new String( b, utf-8 ); } a) Will it work for any charset encoding ? If i replace utf-8 for windows-1251 this code will still work ? b) Is there another clean way to use utf-8 in my jsp pages ? I've read the document in http://tagunov.tripod.com/i18n/i18n.html but i'm not sure if i could understand it. :-( 2 ) When i use request.setEncoding( windows-1251) and request.getParameter( some_param ), which one of these sentences will be true ? a) request.getParameter() will do byte [] b = s.getBytes( iso-8859-1); return new String( b, windows-1251 ); b) request.getParameter() will do byte [] b = s.getBytes( windows-1251 ); return new String( b ); c) request.getParameter() will do byte [] b = s.getBytes( windows-1251 ); return new String( b, windows-1251 ); d) request.getParameter() will do byte [] b = s.getBytes(); return new String( b, windows-1251 ); Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: AW: Urgent help, please!Best practices using Connection Pool
Good! Its enough to me! So, i always can use the 'close()' method whenever the query statement ends since my connection pool will stand 'alive', still. Of course, my pool wraps the connection object... My email service was down yesterday... Thanks at all, Euclides. -Mensagem original- De: Adam Hardy [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 9 de outubro de 2003 10:42 Para: Tomcat Users List Assunto: Re: AW: Urgent help, please!Best practices using Connection Pool I think he must be having problems with his email because he send more or less the same msg 12 hours ago but didn't respond to any of the replies. On 10/09/2003 03:27 PM Nitschke Michael wrote: I could remember that there was a mail today that answered your question. The pool provides an wrapper for the connection object that you receive, this means you call getConnection and you do not get the real connection instead you recive an object implementing the Connection functionality with an altered close() method, which does not close/release the connection, but returns the connection to the pool. If it was to short, read the original post in the archives. Mike -Ursprüngliche Nachricht- Von: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 09. Oktober 2003 15:27 An: '[EMAIL PROTECTED]' Betreff: Urgent help, please!Best practices using Connection Pool Hi gurus, help me please. i am using DBCP 1.0 to make connection pool avaiable. My question can be easy: since DBCP 1.0 doesnt create a singleton object ( just a datasource object), what should i do whenever my sql queries are done? Should i close the connection after each sql command is completed? But, if i do this, will i loose my connection pool facility, so my next sql command will spend more time since the connection process ( with the database ) would be started before the sql running. I really need to improve my database response time! Thanks in advance, Euclides. - 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] -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - 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]
bind tomcat to specific ip
Hi all, Is it possible to bind Tomcat to a specific IP? I'm asking because I have one single machine which runs 2 webservers (Lotus Domino and Tomcat), both on port 80. My machine has two IP's. I'm using tomcat 4.1.27 (integrated in JBoss 3.2.2RC4). Thanks, Harm de Laat Informatiefabriek The Netherlands - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bind tomcat to specific ip
add address=myip to your connector declaration. -Tim [EMAIL PROTECTED] wrote: Hi all, Is it possible to bind Tomcat to a specific IP? I'm asking because I have one single machine which runs 2 webservers (Lotus Domino and Tomcat), both on port 80. My machine has two IP's. I'm using tomcat 4.1.27 (integrated in JBoss 3.2.2RC4). Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange tomcat behavior
Hi everybody on the list! We observed a strange tomcat behavior (tomcat 4.1.24) while running a servlet: Everything works fine some days or even weeks. Suddenly (and at random time) tomcat throws the following exceptions: 2003-10-08 11:44:48 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:484) This exception occurs some times. Suddenly tomcat throws another exception: 2003-10-08 11:46:44 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at java.lang.String.charAt(String.java:509) at org.apache.tomcat.util.buf.ByteChunk.indexOf(ByteChunk.java:669) at org.apache.coyote.tomcat4.CoyoteAdapter.normalize(CoyoteAdapter.java:578) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:280) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:484) Note that there are no user defined classes in the stacktrace. What's the reason of this behavior? Regards Ralf * OptiSoft GmbHRalf Bechtel Pforzheimer Str. 68a mail : [EMAIL PROTECTED] D-75242 Neuhausenphone: +49 7234 9518-51 http://www.optisoft.de fax : +49 7234 9518-44 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where does system.out go?
TOMCAT_HOME/logs/catalina.out Wade -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 4:46 PM To: Tomcat Users List Subject: Re: Where does system.out go? I usually get system.out and/or system.err in the catalina.log file. Ben Ricker Wellinx.com On Wed, 2003-10-08 at 15:36, Adam Hardy wrote: Dude, you just hijacked my thread! Bad netiquette. Anyway, your System.out.println statements will go to the console, i.e. the command line window where you are running tomcat. If you have no command line window, they will probably get caught in a system.out or system.err file although I'm not sure where. HTH Adam On 10/08/2003 10:13 PM Michael Remijan wrote: Hello, In a JSP page i'm doing some testing. I have System.out.println() statements in there temporarily. Anyone know where they go? I checked the Context's logger that they are not there. Mike - 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: Tomcat4.1, jk2, and apache 1.3
What are the two lines that you mean? These two in the http.conf? LoadModule jk2_module libexec/mod_jk2.so Include tomcat/conf/auto/mod_jk.conf What goes in the mod_jk.conf file? -Original Message- From: Curley, Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 3:39 AM To: Tomcat Users List Subject: RE: Tomcat4.1, jk2, and apache 1.3 Fully agree - the connector tomcat/apache doc is a mess - can't understand why the connector developers cannot write a simple doc as part of release procedure or ask for help in documenting this. I'm alo trying to integrate Apache 1.3, TC 4.1.27 using jk2 on RH7.3 From what I see you need mod_jk2.so (build this), jk2.properties, workers2.properties. Avoid going the auto config route in httpd just add the 2 lines for the jk2 module. Thomas -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: 08 October 2003 23:18 To: [EMAIL PROTECTED] Subject: Tomcat4.1, jk2, and apache 1.3 Hi. I am trying to get the mod_jk2 to load into apache 1.3 and I am slowly going insane. I have googled my way around the web and have seen lots of people ask the same type of question I am asking, but there are few good answers. (I feel a bit like that guy in the commercial that finished the internet.) I have in my httpd.conf file: LoadModulejk2_module libexec/mod_jk2.so Include tomcat/conf/auto/mod_jk.conf I have read that there is a way to get tomcat to produce its own mod_jk.conf-auto file, but I cannot find how to do it. I have looked at the jk2 docs a lot, but it seems that they are for a different (incompatible) version. The JkMount directives cannot be added manually either, since mod_jk2 doesn't seem to understand these. What magic do I need to do so that tomcat 4.1 can produce the jk2 config file automatically? Thanks, Mark - Nonviolence is the answer to the crucial political and moral questions of our time; the need for man to overcome oppression and violence without resorting to oppression and violence. -- Martin Luther King Jr. Mark Claassen Donnell Systems, Inc. 300 S. St. Louis Blvd. Ste. 203 South Bend, IN 46617 E-mail: mailto:[EMAIL PROTECTED] Voice: (574)232-3784 Fax: (574)232-4014 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** *** This email and any attachments are confidential and intended for the sole use of the intended recipient(s).If you receive this email in error please notify [EMAIL PROTECTED] and delete it from your system. Any unauthorized dissemination, retransmission, or copying of this email and any attachments is prohibited. Euroconex does not accept any responsibility for any breach of confidence, which may arise from the use of email. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the Company. This message has been scanned for known computer viruses. ** *** - 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: Charset encoding issue (again :-))
But with this approach, all web apps running under the same JVM will use this encoding. We want to avoid this... Edson Alves Pereira wrote: The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in JAVA_OPTS, with this you ensure that your JVM is using the encoding that you want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get past java.net.ConnectException
An applet isn't affected by your server settings. What is your applet trying to connect to? What port. Also what servlet or jsp is it connecting to on your server. The applet will be affected by the client system it is running on. Send the link to the url you need the applet to connect to. I setup a URLConnection like this: java.net.URL url = new java.net.URL(s); java.net.URLConnection urlc = url.openConnection(); urlc.setDoInput(true); urlc.setDoOutput(true); urlc.setUseCaches(false); java.io.PrintStream pout = urlc.getOutputStream();//other streams work as well, just an example. But you need to understand where you are executing an applet and when and where the security and settings matter. Wade -Original Message- From: jon yeargers [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 5:28 PM To: [EMAIL PROTECTED] Subject: Trying to get past java.net.ConnectException Problem: Im trying to use an Applet to interact with my Tomcat code via sockets to transfer files. I get the following exception: java.net.ConnectException: Connection refused: connect and it points to a line in my code where I call URLConnection::getOutputStream(); All well and good. I can see where this needs to be protected. I STFW for information about setting tomcat security (since my books don't seem to cover it very well.. bad books I guess) and found this page: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.h tml Sounds like a good thing to try. My applet lives in ${catalina.home}/webapps/viewer so I added this line to my catalina.policy file: grant codebase file:{catalina.home}/webapps/viewer/- { permission java.security.AllPermission; }; and restarted the server with bin/startup.sh -security .. to no avail. The situation hasn't changed. is this the right approach? Am I barking up the wrong proverbial tree? (The applet in question is signed with a test cert - it makes it past client security and sees my local drive ok) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: W2K service stops when logging off
See the JVM Options comment near the bottom of: http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat/src/etc/jk/wrapper.properties?rev=1.4 which mention the -Xrs option. HTH, Larry -Original Message- From: Glyn Walters [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:24 AM To: [EMAIL PROTECTED] Subject: W2K service stops when logging off Hi. I am running Tomcat 3 as a W2K service using jk_nt_service.exe as a wrapper. When the W2K server is booted up the Tomcat service (Local System) runs fine with no user logged in. But if I log in as a user and then log out the service stops. Could anyone help me with this? Thanks Glyn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 + ssl + client authentication
Hi all, I've been searching the internet for 2 days now and still haven't found a solution for my problem. I am trying to set up a Tomcat 4 server running in HTTPS mode, contacted by a client written in Java. The client is using HTTPClient from apache. I have done everything the document at http://ws.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html describes. If I disable client authentication in the tomcat config, the client is able to comunicate with the server. If I enable the authentication the client aborts with the following exception: java.net.SocketException: Software caused connection abort: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead0(Native Method) ... I enabled all possible debugging on the Tomcat server and this is part of what I found in the console: Thread-10, WRITE: SSL v3.1 Handshake, length = 625 Thread-10, READ: SSL v3.1 Handshake, length = 141 *** Certificate chain *** Thread-10, SEND SSL v3.1 ALERT: fatal, description = bad_certificate Thread-10, WRITE: SSL v3.1 Alert, length = 2 The client's certificate cannot be bad. It was signed with the server's key and it's in the server's keystore. I have no idea what is goin wrong. Can someone tell me how to make this work? MTIA regards, Kenneth _ Op zoek naar makkelijk recept? http://www.msn.be/culinair - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Charset encoding issue (again :-))
Then, you could create a class that would convert strings from some encoding that you don´t known and transform to UTF-8 and that class load its configuration from a local .properties file to make it flexible, for example: public String getParameter( String stName_ ) { //This will change the native encoding to you favorite one: byte[ ]b = request.getParameter( MyParam ).getBytes( UTF-8 ); return new String( b ); //To use default encoding: return new String( b, UTF-8 );//Some different: } -- De: Daniel H A Lima[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 9 de outubro de 2003 11:11 Para: Tomcat Users List Assunto: Re: Charset encoding issue (again :-)) But with this approach, all web apps running under the same JVM will use this encoding. We want to avoid this... Edson Alves Pereira wrote: The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in JAVA_OPTS, with this you ensure that your JVM is using the encoding that you want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange tomcat behavior
[EMAIL PROTECTED] wrote: Hi everybody on the list! We observed a strange tomcat behavior (tomcat 4.1.24) while running a servlet: Everything works fine some days or even weeks. Suddenly (and at random time) tomcat throws the following exceptions: 2003-10-08 11:44:48 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:484) This exception occurs some times. Suddenly tomcat throws another exception: 2003-10-08 11:46:44 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at java.lang.String.charAt(String.java:509) at org.apache.tomcat.util.buf.ByteChunk.indexOf(ByteChunk.java:669) at org.apache.coyote.tomcat4.CoyoteAdapter.normalize(CoyoteAdapter.java:578) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:280) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:484) Note that there are no user defined classes in the stacktrace. What's the reason of this behavior? The second one was weirder, so I looked into it: For the TC 4.1.24 source: CoyoteAdapter.java:578: index = uriBC.indexOf(/../, 0, 4, index); For reference: ByteChunk.java:668: public int indexOf( String src, int srcOff, int srcLen, int myOff ) { ByteChunk.java:669: char first=src.charAt( srcOff ); If you get a NPE inside charAt on a constant String, I think it means your VM has issues. For the first one, the engine associated with the engine valve is null, which can't happen either, but I can't demonstrate as easily that it's not a Tomcat bug. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
One solution to the problem with IIS and Tomcat 4.1.24 config
Hi all I got problem trying to configure tomcat4 and IIS. The problem was: When I configure steep by steep just like the iis-tomcat-howto explain to, the redirector sent itself like the resource to the tomcat container and as the result I got the ERROR 404 /Jakarta/isapi_redirect.dll is not available by the tomcat container After many ours I thought that maybe the problem was something wrong in the parameter that carry the resource. I remembered that I inserted something in the registry exactly equal to the resource that tomcat was trying to reach /jakarta/isapi_redirect.dll My solution: I read again the iis-tomcat-howto and I understand very well what I must to do, the important section of the iis-tomcat-howto is here: Using the IIS management console, add isapi_redirect.dll as a filter in your IIS/PWS web site. The name of the filter should reflect its task (I use the name jakarta), its executable must be our c:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll. For PWS,(*HERE IS WHERE I PUT ALL MY ATTENTION***) you'll need to use regedit and add/edit the Filter DLLs key under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters . This key contains a , separated list of dlls ( full paths ) - you need to insert the full path to isapi_redirect.dll. If you read carefully you can see that ...For PWS, you'll need to use regedit and add/edit the Filter DLLs... and I wasn't used PWS (Personal Web Server) I'm using IIS. Yeahp, when I remove the registry entry all was OK. I really hope you can resolve the problem if you still with that headache Sicerelly Lic. In Computer Science Erlis Alberto Vidal Santos
RE: Strange tomcat behavior
Howdy, I recall having the charAt NPE -- it went away during an upgrade of the JDK (to 1.4.2) and tomcat (to 4.1.27). At that time I also had them update all the Solaris OS patches required by the JDK. So I don't know which was the deciding factor in the charAt NPE you're getting, but doing all the updates should work ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:24 AM To: Tomcat Users List Subject: Re: Strange tomcat behavior [EMAIL PROTECTED] wrote: Hi everybody on the list! We observed a strange tomcat behavior (tomcat 4.1.24) while running a servlet: Everything works fine some days or even weeks. Suddenly (and at random time) tomcat throws the following exceptions: 2003-10-08 11:44:48 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:164) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:619) at java.lang.Thread.run(Thread.java:484) This exception occurs some times. Suddenly tomcat throws another exception: 2003-10-08 11:46:44 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at java.lang.String.charAt(String.java:509) at org.apache.tomcat.util.buf.ByteChunk.indexOf(ByteChunk.java:669) at org.apache.coyote.tomcat4.CoyoteAdapter.normalize(CoyoteAdapter.java:578) at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java :280) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn ection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:619) at java.lang.Thread.run(Thread.java:484) Note that there are no user defined classes in the stacktrace. What's the reason of this behavior? The second one was weirder, so I looked into it: For the TC 4.1.24 source: CoyoteAdapter.java:578: index = uriBC.indexOf(/../, 0, 4, index); For reference: ByteChunk.java:668: public int indexOf( String src, int srcOff, int srcLen, int myOff ) { ByteChunk.java:669: char first=src.charAt( srcOff ); If you get a NPE inside charAt on a constant String, I think it means your VM has issues. For the first one, the engine associated with the engine valve is null, which can't happen either, but I can't demonstrate as easily that it's not a Tomcat bug. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - 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: Charset encoding issue (again :-))
But to do byte[ ]b = request.getParameter( MyParam ).getBytes( UTF-8 ); you must know the charset encoding of the form paramaters (utf-8 in this case) which leads us to original question. Edson Alves Pereira wrote: Then, you could create a class that would convert strings from some encoding that you don´t known and transform to UTF-8 and that class load its configuration from a local .properties file to make it flexible, for example: public String getParameter( String stName_ ) { //This will change the native encoding to you favorite one: byte[ ]b = request.getParameter( MyParam ).getBytes( UTF-8 ); return new String( b ); //To use default encoding: return new String( b, UTF-8 ); //Some different: } -- De: Daniel H A Lima[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:quinta-feira, 9 de outubro de 2003 11:11 Para: Tomcat Users List Assunto:Re: Charset encoding issue (again :-)) But with this approach, all web apps running under the same JVM will use this encoding. We want to avoid this... Edson Alves Pereira wrote: The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in JAVA_OPTS, with this you ensure that your JVM is using the encoding that you want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk (Apache + Tomcat)
I have configured apache 2.0.47 + tomcat 4.1.27 with mod_jk 2.0.2 on a Red Hat 6.2 distribution. It seems to work fine but in the error_log file I obtain the following message: [error] mod_jk child init 1 0 I dont know what is the problem. Thanks
DeleteWorkDirs under Jboss 3.2.1/Tomcat4.1.24 Bundle
Hello, does anybody have an idea how I can make this property work, so that Tomcat does not recompile all JSPs after a restart of Jboss? I previously used Jboss 3.0.7/Tomcat 4.1.24, and it was no problem to set this parameter in the tomcat configuration xml. In the new version, the parameter (which I have set in jboss-service.xml) has no effect: mbean code=org.jboss.web.catalina.EmbeddedCatalinaService41 name=jboss.web:service=WebServer attribute name=Java2ClassLoadingCompliancetrue/attribute attribute name=DeleteWorkDirsfalse/attribute Thank you for any comments! Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
String added to session in servlet not available in jsp
Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: blocking connections
Hi. I thought that a valve can be used only after the request object is created(maybe I am wrong), so at that time the data from client is already read and processed, and it is too late. Thanks Roman Bednarek On Thu, 9 Oct 2003, Tim Funk wrote: There is already valves which do this. See Remote Address Filter in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html -Tim Roman Bednarek wrote: Hi. I want to block connections from some hosts, I was reading about Filters and Valves, but I think they cannot do what I want to achive. The goals are: - block connection very early, immediately after connection, before reading and parsing any data from the client (to save the bandwith) - manage an access list from the servlet, adding and removing hosts when necessary It would be better to achive this under stable tomcat release that is 4.*. - 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: String added to session in servlet not available in jsp
Can you please show how are you creating the session object??? Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - 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: String added to session in servlet not available in jsp
Howdy, If you display the session ID before adding the user name, and then in your JSP as you already do, are they the same session? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - 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: String added to session in servlet not available in jsp
Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - 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: String added to session in servlet not available in jsp
And how you get the session in your JSP?? Try this HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ; session.setAttribute(usr, username); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:54 AM To: Tomcat Users List Subject: RE: String added to session in servlet not available in jsp Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - 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: String added to session in servlet not available in jsp
Yoav, Very good point. The sessionid from the servlet is different to the one in the browser, as shown below. Ser: 1DFADA80613F3BE01C86A5C6DE2501A8 jsp: AEAE6C4879702A3CF4254FF85B778D81 Rudi Howdy, If you display the session ID before adding the user name, and then in your JSP as you already do, are they the same session? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can tomcat give me page loadtime stats?
Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. JDG -- Jay Glanville Web Developer jay.glanville @ naturalconvergence . com (613) 725-2030 x393 http://www.naturalconvergence.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: String added to session in servlet not available in jsp
I really sorry the last message I sent it by mistake, is difficult to me write code in outlook ;) well Try this HttpSession session = request.getSession(true); String username = request.getParameter(username) if ( username == null ) username = noParameter; if ( .equals( username ) ) username = noParameter; session.setAttribute(usr, username); I'm thinking that your request parameter is empty.. Try this and tell us Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: DA-Erlis Vidal Sent: Thursday, October 09, 2003 11:02 AM To: 'Tomcat Users List' Subject: RE: String added to session in servlet not available in jsp And how you get the session in your JSP?? Try this HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ; session.setAttribute(usr, username); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:54 AM To: Tomcat Users List Subject: RE: String added to session in servlet not available in jsp Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - 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: String added to session in servlet not available in jsp
When i need to get session variables or objects i use Taglibs, its do a good job. -- De: [EMAIL PROTECTED]:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quinta-feira, 9 de outubro de 2003 12:01 Para: Tomcat Users List Assunto: RE: String added to session in servlet not available in jsp Yoav, Very good point. The sessionid from the servlet is different to the one in the browser, as shown below. Ser: 1DFADA80613F3BE01C86A5C6DE2501A8 jsp: AEAE6C4879702A3CF4254FF85B778D81 Rudi Howdy, If you display the session ID before adding the user name, and then in your JSP as you already do, are they the same session? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can tomcat give me page loadtime stats?
See the AccessLogValve javadocs. -Tim Glanville, Jay wrote: Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and NT Authentication
Can someone please point me in the right direction for integratin NT authentication with my application running on Tomcat? I am working on a government project that requires that users be authenticated against their domain. When a user tries to access the web application at, for example, www.mysite.com, they need to be prompted for a domain login. Thanks in advance, Mark Gregory Turansky Web Engineer [EMAIL PROTECTED] www.keymind.com 5111 Leesburg Pike, Suite 703 Falls Church, VA 22041 Tel. 703.379.2060 x450 Fax.703.379.6328 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and NT Authentication
http://jakarta.apache.org/tomcat/faq/windows.html#ntlm -Tim Turansky, Mark wrote: Can someone please point me in the right direction for integratin NT authentication with my application running on Tomcat? I am working on a government project that requires that users be authenticated against their domain. When a user tries to access the web application at, for example, www.mysite.com, they need to be prompted for a domain login. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: String added to session in servlet not available in jsp
Sorry, not entirely sure what you meant. I have copied your code and placed it in my servlet as follows: HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ; session.setAttribute(usr, username); my jsp now looks like this: String username = ( request.getParameter(usr) != null ? request.getParameter(usr) : ) ; session.setAttribute(usr, username); String usr = (String)session.getAttribute(usr); Could you please tell me if this is what you meant? And how you get the session in your JSP?? Try this HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ; session.setAttribute(usr, username); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:54 AM To: Tomcat Users List Subject: RE: String added to session in servlet not available in jsp Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and NT Authentication
Thanks, and I should have gone and read the FAQ *before* posting mark -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:18 AM To: Tomcat Users List Subject: Re: Tomcat and NT Authentication http://jakarta.apache.org/tomcat/faq/windows.html#ntlm -Tim Turansky, Mark wrote: Can someone please point me in the right direction for integratin NT authentication with my application running on Tomcat? I am working on a government project that requires that users be authenticated against their domain. When a user tries to access the web application at, for example, www.mysite.com, they need to be prompted for a domain login. - 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 vs Bea WebLogic -
I have gotten JNDIRealm to work against iPlanet. I have heard others get it working against: - Active Directory (I personally had problems due to some IT policies) - Novell - OpenLDAP But in the worst case - the code is open for change so creating a custom Realm should be simple if one understands JNDI programming. Which is what I had to do with respect to ActiveDirectory and wacky business rules vs domain setup. -Tim David Diaz wrote: Reference: http://www.weblogic.com/docs51/admindocs/ldap2.html#intro The WebLogic LDAP realm has been tested against the following LDAP servers: * OpenLDAP * iPlanet Directory Server * Microsoft Site Server I would like to get a similar Tomcat link to show to my boss. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: String added to session in servlet not available in jsp
No worries. I added the following to doPost in my servlet: HttpSession session = request.getSession(true); String username = request.getParameter(username); if ( username == null ) username = noParameter; if ( .equals( username ) ) username = noParameter; System.out.println(username); session.setAttribute(usr, username); I added the following to my JSP: String username = ( request.getParameter(usr)); out.println(username + username); String usr = (String)session.getAttribute(usr); out.println(usr + usr); I should added that my JSP is a frameset with 2 frames. That could be the problem!!! Rudi I really sorry the last message I sent it by mistake, is difficult to me write code in outlook ;) well Try this HttpSession session = request.getSession(true); String username = request.getParameter(username) if ( username == null ) username = noParameter; if ( .equals( username ) ) username = noParameter; session.setAttribute(usr, username); I'm thinking that your request parameter is empty.. Try this and tell us Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: DA-Erlis Vidal Sent: Thursday, October 09, 2003 11:02 AM To: 'Tomcat Users List' Subject: RE: String added to session in servlet not available in jsp And how you get the session in your JSP?? Try this HttpSession session = request.getSession(true); String username = ( request.getParameter(username) != null ? request.getParameter(username) : ) ; session.setAttribute(usr, username); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:54 AM To: Tomcat Users List Subject: RE: String added to session in servlet not available in jsp Can you please show how are you creating the session object??? No worries, here it is: HttpSession session = request.getSession(true); session.setAttribute(usr, request.getParameter(username)); Sincerely Lic. Computer Science Erlis Vidal Santos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: tomcat-use [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: String added to session in servlet not available in jsp
Howdy, That's your answer ;( Your code for getting the session is fine. Is the RequestDispatcher forwarding to a different webapp? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:01 AM To: Tomcat Users List Subject: RE: String added to session in servlet not available in jsp Yoav, Very good point. The sessionid from the servlet is different to the one in the browser, as shown below. Ser: 1DFADA80613F3BE01C86A5C6DE2501A8 jsp: AEAE6C4879702A3CF4254FF85B778D81 Rudi Howdy, If you display the session ID before adding the user name, and then in your JSP as you already do, are they the same session? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 10:44 AM To: [EMAIL PROTECTED] Subject: String added to session in servlet not available in jsp Hi, I created a session object and added a string (username) to it. Systemout.println shows the username from the request. My page is then forwarded to another as follows: RequestDispatcher disp = ctx.getRequestDispatcher(target); disp.forward(request, response); On this jsp page, I have teh following code: String usr = (String)session.getAttribute(usr); out.println(User: + usr + !); out.println(Session Id: + session.getId()); The page displays the session Id but not the usr. I'm quite baffled at why this is the case. looking in google for similar problems, but any help would be much appreciated! Rudi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can tomcat give me page loadtime stats?
Good. Thanks. Now, a little help is requested in how to use AccessLogValue. (and now that I read the first answer, I realize that I might not have phrased my question as unambiguously as possible). I'd like to have the following information logged: page x took y milliseconds to create (or something like that) According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ap ache/catalina/valves/AccessLogValve.html, I would use %U for x (the page's URL), but what would I use for y (the amount of time it took to create the page)? %t only gives me the date and time it was requested, not how long it took Tomcat to calculate the page's contents. Thanks JDG See the AccessLogValve javadocs. -Tim Glanville, Jay wrote: Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can tomcat give me page loadtime stats?
D'oh! The catalina javadocs are out of date (but not by much) on the website. In your local version of the javadoc, there should be the following: %D - Time taken to process the request, in millis %T - Time taken to process the request, in seconds -Tim Jay Glanville wrote: Good. Thanks. Now, a little help is requested in how to use AccessLogValue. (and now that I read the first answer, I realize that I might not have phrased my question as unambiguously as possible). I'd like to have the following information logged: page x took y milliseconds to create (or something like that) According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ap ache/catalina/valves/AccessLogValve.html, I would use %U for x (the page's URL), but what would I use for y (the amount of time it took to create the page)? %t only gives me the date and time it was requested, not how long it took Tomcat to calculate the page's contents. Thanks JDG See the AccessLogValve javadocs. -Tim Glanville, Jay wrote: Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. - 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]
Thread problem
I am currently running Tomcat 4.1.18 with a 1Gig heap and Max Processors is set to 2000. I keeping getting a java.lang.OutOfMemoryError: unable to create new native thread. I checked my garbage collection log but I never use more then 850mb of memory and this is with about 500 concurrent users connected. Any help would be appreciated Thanks Rob
RE: can tomcat give me page loadtime stats?
Howdy, And so, you probably want pattern=page %U took %D milliseconds to serve in server.xml. Be very careful with your terminology in this area, because people draw conclusions about performance from this log file. The time to create a page can be defined in many different ways. The time to serve a page, which is what the access log measures, is more precise. How long it took tomcat to calculate the contents is similarly ambiguous. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:44 AM To: Tomcat Users List Subject: Re: can tomcat give me page loadtime stats? D'oh! The catalina javadocs are out of date (but not by much) on the website. In your local version of the javadoc, there should be the following: %D - Time taken to process the request, in millis %T - Time taken to process the request, in seconds -Tim Jay Glanville wrote: Good. Thanks. Now, a little help is requested in how to use AccessLogValue. (and now that I read the first answer, I realize that I might not have phrased my question as unambiguously as possible). I'd like to have the following information logged: page x took y milliseconds to create (or something like that) According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ap ache/catalina/valves/AccessLogValve.html, I would use %U for x (the page's URL), but what would I use for y (the amount of time it took to create the page)? %t only gives me the date and time it was requested, not how long it took Tomcat to calculate the page's contents. Thanks JDG See the AccessLogValve javadocs. -Tim Glanville, Jay wrote: Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Thread problem
Howdy, Does the word native strike a chord? Check ulimmit and similar OS parameters that limit how many OS-level threads your user account may open at one time. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Thread problem I am currently running Tomcat 4.1.18 with a 1Gig heap and Max Processors is set to 2000. I keeping getting a java.lang.OutOfMemoryError: unable to create new native thread. I checked my garbage collection log but I never use more then 850mb of memory and this is with about 500 concurrent users connected. Any help would be appreciated Thanks Rob 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]
Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ
Hi All, Can anyone recommend an FAQ or quide for this on mod_jk2? Many thanks, Greg Cope GCS Ltd Assign to: CIT, Sandwich - ISG Phone: (44) 01304 642040 Fax: (44) 01304 652118 LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addresee(s) only. Access to this e-mail by anyone else is unauthorised. If you are not an addressee, any disclosure or copying of the contents of this e-mail or any action taken (or not taken) in reliance on it is unauthorised and may be unlawful. If you are not an addressee, please inform the sender immediately. Pfizer Limited is registered in England under No. 526209 with its registered office at Ramsgate Road, Sandwich, Kent CT13 9NJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trying to get past java.net.ConnectException
I guess Im confused as it worked fine when run against the same server code runnning in my IDE. I assumed that Tomcat would have more security to prevent hostile apps from doing damage. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 2:48 PM To: Tomcat Users List Subject: Re: Trying to get past java.net.ConnectException If your applet is bombing with java.net.ConnectException, then your applet is the problem, not tomcat. -Tim jon yeargers wrote: Problem: Im trying to use an Applet to interact with my Tomcat code via sockets to transfer files. I get the following exception: java.net.ConnectException: Connection refused: connect and it points to a line in my code where I call URLConnection::getOutputStream(); All well and good. I can see where this needs to be protected. I STFW for information about setting tomcat security (since my books don't seem to cover it very well.. bad books I guess) and found this page: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto .h tml Sounds like a good thing to try. My applet lives in ${catalina.home}/webapps/viewer so I added this line to my catalina.policy file: grant codebase file:{catalina.home}/webapps/viewer/- { permission java.security.AllPermission; }; - 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: W2K service stops when logging off
Thanks. -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: 09 October 2003 15:16 To: Tomcat Users List Subject: RE: W2K service stops when logging off See the JVM Options comment near the bottom of: http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat/src/etc/jk/wrap per.properties?rev=1.4 which mention the -Xrs option. HTH, Larry -Original Message- From: Glyn Walters [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 5:24 AM To: [EMAIL PROTECTED] Subject: W2K service stops when logging off Hi. I am running Tomcat 3 as a W2K service using jk_nt_service.exe as a wrapper. When the W2K server is booted up the Tomcat service (Local System) runs fine with no user logged in. But if I log in as a user and then log out the service stops. Could anyone help me with this? Thanks Glyn - 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: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ
Although this is for Linux, here is an Article that might help you get started: http://raibledesigns.com/tomcat/index.html -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:57 AM To: [EMAIL PROTECTED] Subject: Loadballacing with Apache 1.3.2x, mod_jk2 on solaris FAQ Hi All, Can anyone recommend an FAQ or quide for this on mod_jk2? Many thanks, Greg Cope GCS Ltd Assign to: CIT, Sandwich - ISG Phone: (44) 01304 642040 Fax: (44) 01304 652118 LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addresee(s) only. Access to this e-mail by anyone else is unauthorised. If you are not an addressee, any disclosure or copying of the contents of this e-mail or any action taken (or not taken) in reliance on it is unauthorised and may be unlawful. If you are not an addressee, please inform the sender immediately. Pfizer Limited is registered in England under No. 526209 with its registered office at Ramsgate Road, Sandwich, Kent CT13 9NJ - 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 vs Bea WebLogic -
Thanks Tim for this useful information. I have gotten JNDIRealm to work against iPlanet. I have heard others get it working against: - Active Directory (I personally had problems due to some IT policies) - Novell - OpenLDAP But in the worst case - the code is open for change so creating a custom Realm should be simple if one understands JNDI programming. Which is what I had to do with respect to ActiveDirectory and wacky business rules vs domain setup. David Diaz wrote: Reference: http://www.weblogic.com/docs51/admindocs/ldap2.html#intro The WebLogic LDAP realm has been tested against the following LDAP servers: * OpenLDAP * iPlanet Directory Server * Microsoft Site Server I would like to get a similar Tomcat link to show to my boss. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can tomcat give me page loadtime stats?
I have a feeling that these variables (%D and %T) are not available in 4.1.12 as they don't actually resolve to anything in the access log. I can determine that they were added in AccessLogValue (ver 1.3), but I don't know what the CVS tag is for version 4.1.12 (ver 1.3 has these tags: s1ap8_i3, s1ap8_i2, s1ap8_i1, jwsdp_12__02, jwsdp_12__01, TOMCAT_5_0_2, TOMCAT_5_0_1) Thanks for you help. JDG D'oh! The catalina javadocs are out of date (but not by much) on the website. In your local version of the javadoc, there should be the following: %D - Time taken to process the request, in millis %T - Time taken to process the request, in seconds -Tim Jay Glanville wrote: Good. Thanks. Now, a little help is requested in how to use AccessLogValue. (and now that I read the first answer, I realize that I might not have phrased my question as unambiguously as possible). I'd like to have the following information logged: page x took y milliseconds to create (or something like that) According to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/ ap ache/catalina/valves/AccessLogValve.html, I would use %U for x (the page's URL), but what would I use for y (the amount of time it took to create the page)? %t only gives me the date and time it was requested, not how long it took Tomcat to calculate the page's contents. Thanks JDG See the AccessLogValve javadocs. -Tim Glanville, Jay wrote: Is there a way for tomcat to give me information on how long it takes to load a page? I have a web application upon which I wish to improve it's performance. Before I can do any attempts at improvement, I need a way to measure its performance. One of the ways that I was considering measuring this delta was to see how long Tomcat takes to load a page. Can tomcat product this information for me (configuration setting, log files, etc)? Or do I need to manually add timestamp information to the top and bottom of my page templates? Suggestions appreciated. - 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]