The Apache Jakarta Tomcat 5 Servlet/JSP Container - MBean Descriptor How To
Hi. There is just one link that I've found that is incorrect. The "print-friendly version" link on http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.html should point to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/printer/mbeans-descriptor-howto.html. Currently the link goes to /mbean-descriptor-howto.html... (the 's' is missing). Regards, Paul Diedericks MagmaTec (Pty) Ltd e : [EMAIL PROTECTED]tel : +27 (0)21 670 7926 fax : +27 (0)21 683 9789 cell : +27 (0)82 705 1429 www : www.magmatec.co.za smime.p7s Description: S/MIME cryptographic signature
PreparedStatement Unicode MySQL
Hi, I am having trouble inserting and retrieving Asian characters in my MySQL DB using PreparedStatement. I have set up my table thus: CREATE TABLE `messages` ( `id` int(10) unsigned NOT NULL auto_increment, `message_body` text NOT NULL, `sender_number` text NOT NULL, `shortcode` text NOT NULL, `image` longblob, PRIMARY KEY (`id`) ) CHARACTER SET utf8 TYPE=MyISAM; and am inserting using a PreparedStatement - pstmt.setString(indexOfColumnInQuestion, asianTextString); to insert in to message_body. However, when viewing the column in the query browser, and retrieving it from a ResultSet, it reads ? ??? and so on (I am attempting to insert Thai characters in this instance). Is there a method of PreparedStatement I am missing? thanks and regards Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
io.File relative path constructor
Hi, A should-be easy one - I do not wish to define an absolute path to a File as it will packaged in a JAR, therefore its path will change. How do I construct a File relative to my src root, something like File file = new File(/path/myFile.xml);? I tried passing in a URL, URI but am getting: Exception in thread main java.lang.IllegalArgumentException: URI is not hierarchical when I jar and run it. Am using Win XP + Java 1.5. Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Input stream
Hi All, I have a socket receiving streams of XML. I receive an InputStream, but short of a dirty hack, do not know when (or how) I pass the stream/contents to be parsed. Any thoughts/resources on parsing streaming XML please? Thanks Paul.
RE: Input stream
Hi thanks, Parsing a file would not normally be a problem, but as it is a stream, there is no EOF and when I parse the stream into: DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); db.parse(in); I get: org.xml.sax.SAXParseException: The processing instruction target matching [xX][mM][lL] is not allowed. What I have read on this message means invalid XML. And if there were no EOF that would be expected? I have tried parsing the simplest of XML files. This is my dirty hack - I can delimit the 'packet' with some obscure character while populating say a StringBuffer, write it to File, and re-parse it (I did say it was dirty;). A packet is the contents of a complete XML file which are sent randomly. So my problem is not the parsing, but capturing the fragment of an inputstream that will parse as valid XML. All input appreciated rgds Paul. You can use different things, but directly programming you can use SAX2, XMLReader, and XMLReaderFactory.createXMLReadersee JDK javax.xml package documentation. You could use a DOM object, but I wouldn't recommend it because of memory usage. You can change the underlying XML parser impls for your JDK as well. Hope it helps, Wade --- Chris Lamprecht [EMAIL PROTECTED] wrote: See XmlPull: http://www.xmlpull.org/ On 8/15/05, Paul Wallace [EMAIL PROTECTED] wrote: Hi All, I have a socket receiving streams of XML. I receive an InputStream, but short of a dirty hack, do not know when (or how) I pass the stream/contents to be parsed. Any thoughts/resources on parsing streaming XML please? Thanks Paul. - 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]
data push
Hi All, I would like server A (TC 5.5) to 'push' streams of data to server B (TC 5.5) at random points in time, and for server B to accept the data when it is received. This is not using request / response, hence I am new to this topic. A couple of questions - what protocol(s) can be used, HTTP? How does one push data, than than have it requested? Can anyone point me towards a resource of this nature please? I understand sockets are in the picture - also new to me. Thanks Paul. Paul Wallace BSc Hons. IPTV Specialist Two Way TV Australia Level 3, City West Centre 55 Pyrmont Bridge Road Pyrmont Sydney, NSW 2009 Australia Tel +61 2 9017 7000 Fax +61 2 9017 7001 Mb +61 422 538 465 Skype wallacpaul
RE: communication from jsp to valve
I will reply to myself since I have worked out the solution and other might find it useful Valve itself must go in tomcat/server Supporting code for valve and classes exposed to the jsp must go in tomcat/common -Original Message- From: Paul Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 1:32 PM To: tomcat-dev@jakarta.apache.org Subject: communication from jsp to valve I have a valve that does various valve type things, mess with requests, twiddle cookies, etc. I need a JSP to be able to communicate with the valve (generate URLS based on the result of some of the twiddling for example). The class loaders are doing their best to stonewall me. I have tried putting my TwiddlyValveInterface instance in A) thread locals - get null out (different ThreadLocal class with different static map?) B) appContext attribute - class cast error (clear sign that I loaded through different loaders) What is the recommended way to do this? - 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]
communication from jsp to valve
I have a valve that does various valve type things, mess with requests, twiddle cookies, etc. I need a JSP to be able to communicate with the valve (generate URLS based on the result of some of the twiddling for example). The class loaders are doing their best to stonewall me. I have tried putting my TwiddlyValveInterface instance in A) thread locals - get null out (different ThreadLocal class with different static map?) B) appContext attribute - class cast error (clear sign that I loaded through different loaders) What is the recommended way to do this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded use : How to programmatically add a servlet instance.
I've been looking at Embedded, Context, StandardContext, Wrapper and StandardWrapper and want a way participating in the instantiation of a servlet. i.e. ... context = embedded.createContext(fooContext); context.addServlet(barServlet, myServlet); I know there are mechanisms for adding a servlet by classname, but it seems logical to allow adding my instance if TC5 is allowed to be embedded at all. Is this feasable? Is there appetite for it? Regards, - Paul -- ThoughtWorks - recruiting Java/.Net OSS* Architects/Developers worldwide Speak to the ThoughtWorker(s) you know best/longest about ThoughtWorks.. * Also recruiting non-OSS developers, PMs, BAs, Agilists, Testers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: agradou
aly chin [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote:me diz o queacha? ATTACHMENT part 2 application/x-zip-compressed name=:(.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 13823139100 - Do You Yahoo!? 150MP3 1G1000 - Do You Yahoo!? 150MP3 1G1000
Re: I want to learn the source code of Tomcat
zhang lan [EMAIL PROTECTED] wrote:Dear, warm-hearted experts: I want to learn the source code of Tomcat, but I don't know where I should start? Could you give me some directions, such as jsper, catlina... by the way, I am a Chinese java programmer and I have developed six web projects. Best Regards Alan(^_^) _ MSN Hotmail http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do You Yahoo!? 150MP3 1G1000
Re: Clustering and Load balancing
hello ,I am at China . Vinayagam [EMAIL PROTECTED] wrote:Hi!, I didn't get understand this language. Can u pls send it as English! Regards Vinayagam - Original Message - From: aly chin To: Tomcat Developers List Sent: Wednesday, November 10, 2004 10:25 AM Subject: Re: Clustering and Load balancing Vinayagam wrote:Hi All! Can any one help me abt clustering and Loadbalancing using Tomcat 5.0/later. We have an application, Which is run on Tomcat 4.0. Now we are going to run this application in Tomcat 5.0. Also we are going to implements the clustering technology to our appl. So that i need som help, How to do this. Thanx Regards Vinayagam 13823139100 - Do You Yahoo!? 150MP3 1G1000 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do You Yahoo!? 150MP3 1G1000
Re: agradou
,.Good luck ! aly chin [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote:me diz o queacha? ATTACHMENT part 2 application/x-zip-compressed name=:(.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 13823139100 - Do You Yahoo!? 150MP3 1G1000 - Do You Yahoo!? 150MP3 1G1000
[Off-Topic] Re: java.io.tempdir Problems
It sounds like maybe there is some confusion between environment variables and system properties. java.io.tempdir is a system property which presumably means it can be set on the Java command line using -Djava.io.tempdir=foo This is different then anything getenv() would return since those would be environment variables. Some of which are reflected as differently named system properties. For example, I think java.io.tempdir defaults to the TEMP environment variable under Windows and perhaps TMP under Unix or something like that. I'd have to drill into javadocs to be sure. -Paul Michael McGrady wrote: I don't know if this is helpful or not, Martin, but if you attempt System.getenv(java.io.tempdir) [which is deprecated], you get as part of the error message getenv no longer supported, use properties and -D instead: java.io.tempdir. Is that helpful? Does the -D there mean as in -Djava.io.tempdir? Michael Martin Gainty wrote: Good Afternoon Michael Perusing the Manual for Jspc at http://64.233.167.104/search?q=cache:pfbfEPvvvHUJ:www.gefionsoftware.com/Lit eWebServer/lws-jsp/ReferenceManual.pdf+TOMCAT+java.io.tempDir+-Djava.io.temp Dirhl=en formal syntax for the JSPC command jspc [options] -webapp web-app-root-dir Where option -d output-dir specifies The -d output-dir specification is the directory specified by the java.io.tempdir system property I see that there are 2 ways to specify java.io.tempdir System Property Anyone else The directory specified by the java.io.tempdirsystem property The directory specified by the java.io.tempdirsystem property The directory specified by the java.io.tempdirsystem property The directory specified by the java.io.tempdir??? Martin - Original Message - From: Michael McGrady [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:46 AM Subject: Re: java.io.tempdir Problems Martin, Perhaps I should add, Martin, that if I set the environment variables for java.io.tempdir and -Djava.io.tempdir in the application but not in Tomcat startup, I don't have the problem. I am a bit confused about whether to use java.io.tempdir or -Djava.io.tempdir. Can you explain a bit about that? Michael McGrady Martin Gainty wrote: Michael createTempFile employs 3 steps algorithm to locate/create tempDir 1) Attempt to retrieve the value of javax.servlet.context.tempdir from the ServletContext 2) If that's not found, attempt to retrieve the value of the init-parameter tempDir 3) If that's not found, default to the system-wide temp directory specified by the system property java.io.tempdir A)what is the value of javax.servlet.context.tempdir from the ServletContext? B)what is the value of the init-parameter tempDir? Martin- - Original Message - From: Michael McGrady [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Thursday, October 14, 2004 3:16 AM Subject: java.io.tempdir Problems I hope this is Tomcat related. If not, please accept my apologies, and give me direction. I have removed from my Tomcat 5 (Struts 1.2 using a custom taglib) service the java.io.tempdir setting because when I use the following code: File file = new File(Classpath.WEB_INF + resource+ File.separator + content_type+ File.separator + ttf + File.separator + physicalName); FileInputStream fontStream = new FileInputStream(file); Font font = Font.createFont(Font.TRUETYPE_FONT,fontStream); font = font.deriveFont(attributes); fontStream.close(); I get temp files of around 50 - 150 kilobytes each written to the temp directory. I requested assistance on Tomcat User without an answer. Anyway, I assume that there may be a concurrency issue of somekind. Is that right? Anyone with any assistance out there? Michael McGrady - 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: Configure Teradata data source connection
http://jakarta.apache.org/site/mail.html See the first bulleted section. -Paul Prabhjot Sodhi wrote: Hi: I am new to Java and this forum, so my apologies for asking novice queries (but u have to start one day)!!! I am working on creating a database management site using JSDK and Apache Tomcat server on my WinXp laptop. I have got a dummy test file using an applet to connect to the Teradata database. But it is failing in dearth of proper drivers. Can you please guide me set up the Teradata drivers information in the conf files, etc so that the applet can sonnect to the RDBMS and submit the query? Thanks in advance!!! Hoping for an early response. Thanks Regards, Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure Teradata data source connection
Prabhjot Sodhi wrote: Yep it says... The User lists where you can send questions and comments about configuration, setup, usage and other user types of questions. I wish to know about the server configuration. So send it to the user's list. Since that's where configuration would be discussed. This is the developer list, where people discuss bugs and other internal tomcatty goodness. -Paul Thanks Regards, Pete Senior System Analyst, IBM Global Services, 202 Coward Street, Mascot. Ph (O) : +61 2 9691 3589 mail-id: [EMAIL PROTECTED] ** This communication may contain CONFIDENTIAL or copyright information of IBM Australia Limited, (ABN 79 000 024 733). If you are not an intended recipient, you MUST NOT keep, forward, copy, use, save or rely on this communication, and any such action is unauthorised and prohibited. If you have received this communication in error, please reply to this e-mail to notify the sender of its incorrect delivery, and then delete both it and your reply. Thank you. ** Paul Speed [EMAIL PROTECTED] 22/09/2004 02:15 PM Please respond to Tomcat Developers List To Tomcat Developers List [EMAIL PROTECTED] cc Subject Re: Configure Teradata data source connection http://jakarta.apache.org/site/mail.html See the first bulleted section. -Paul Prabhjot Sodhi wrote: Hi: I am new to Java and this forum, so my apologies for asking novice queries (but u have to start one day)!!! I am working on creating a database management site using JSDK and Apache Tomcat server on my WinXp laptop. I have got a dummy test file using an applet to connect to the Teradata database. But it is failing in dearth of proper drivers. Can you please guide me set up the Teradata drivers information in the conf files, etc so that the applet can sonnect to the RDBMS and submit the query? Thanks in advance!!! Hoping for an early response. Thanks Regards, Pete - 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: cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler SmapUtil.java
Amy Roh wrote: [EMAIL PROTECTED] wrote: amyroh 2004/09/20 10:51:28 Modified:jasper2/src/share/org/apache/jasper/compiler SmapUtil.java Log: Remove verbose. -if (verbose) { -if (log.isDebugEnabled()) -log.debug(constant pool count: + constantPoolCount); -} +log(constant pool count: + constantPoolCount); You need to keep if (log.isDebugEnabled()), otherwise, zillions of Strings will be created for no reason (as the parameter of your method will have to be created). I have added the following log helper method so I don't have to do if (log.isDebugEnabled()) everytime I use log.debug() + +private static void log(String msg) { +if (log.isDebugEnabled()) +log.debug(msg); +} + } Amy +log(constant pool count: + constantPoolCount); But even to call your log() method, a String will need to be created that combines the constant pool count: with a String.valueOf(constantPoolCount). Even if it's just going to be thrown away. -Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi ExpressionParseTree.java ExpressionTokenizer.java SSIConditional.java SSIConditionalState.java ByteArrayServletOutputStream.java ResponseIncludeWrapper.java SSICommand.java SSIConfig.java SSIEcho.java SSIExec.java SSIExternalResolver.java SSIFlastmod.java SSIFsize.java SSIInclude.java SSIMediator.java SSIPrintenv.java SSIProcessor.java SSIServlet.java SSIServletExternalResolver.java SSIServletRequestUtil.java SSISet.java SSIStopProcessingException.java
Yay! My code is back. :) -Paul [EMAIL PROTECTED] wrote: funkman 2004/09/01 11:33:34 Modified:catalina/src/share/org/apache/catalina Globals.java catalina/src/share/org/apache/catalina/ssi ByteArrayServletOutputStream.java ResponseIncludeWrapper.java SSICommand.java SSIConfig.java SSIEcho.java SSIExec.java SSIExternalResolver.java SSIFlastmod.java SSIFsize.java SSIInclude.java SSIMediator.java SSIPrintenv.java SSIProcessor.java SSIServlet.java SSIServletExternalResolver.java SSIServletRequestUtil.java SSISet.java SSIStopProcessingException.java Added: catalina/src/share/org/apache/catalina/ssi ExpressionParseTree.java ExpressionTokenizer.java SSIConditional.java SSIConditionalState.java Log: Backport from 4.1 the ssi if else logic Revision ChangesPath 1.11 +12 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java.diff?r1=1.10r2=1.11 1.5 +23 -21jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/ByteArrayServletOutputStream.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/ByteArrayServletOutputStream.java.diff?r1=1.4r2=1.5 1.5 +57 -57jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/ResponseIncludeWrapper.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/ResponseIncludeWrapper.java.diff?r1=1.4r2=1.5 1.4 +29 -28jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSICommand.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSICommand.java.diff?r1=1.3r2=1.4 1.4 +34 -40jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIConfig.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIConfig.java.diff?r1=1.3r2=1.4 1.3 +44 -53jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIEcho.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIEcho.java.diff?r1=1.2r2=1.3 1.4 +49 -55jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIExec.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIExec.java.diff?r1=1.3r2=1.4 1.4 +46 -39jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIExternalResolver.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIExternalResolver.java.diff?r1=1.3r2=1.4 1.4 +47 -52jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIFlastmod.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIFlastmod.java.diff?r1=1.3r2=1.4 1.3 +76 -82jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIFsize.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIFsize.java.diff?r1=1.2r2=1.3 1.4 +39 -45jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIInclude.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIInclude.java.diff?r1=1.3r2=1.4 1.4 +258 -176 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIMediator.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIMediator.java.diff?r1=1.3r2=1.4 1.3 +36 -43jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIPrintenv.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIPrintenv.java.diff?r1=1.2r2=1.3 1.4 +224 -193 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIProcessor.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIProcessor.java.diff?r1=1.3r2=1.4 1.8 +87 -99jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIServlet.java http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIServlet.java.diff?r1=1.7r2=1.8 1.4 +379 -356 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ssi/SSIServletExternalResolver.java http
Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml
To configure space tabs on Emacs... quoted from: http://www.student.northpark.edu/pemente/emacs_tabs.htm For this session, force Emacs to indent with spaces, never with TABs: M-x set-variableRET indent-tabs-modeRET nil Permanently force Emacs to indent with spaces, never with TABs: (setq-default indent-tabs-mode nil); # put this in your .emacs file Or, to just one spot convert tabs to spaces for a given selection: M-x untabify I don't have an emacs up and running at the moment so can't verify, but it sounds right from what I remember. As I recall, untabify requires selecting the contents of the buffer first. -Paul Shapira, Yoav wrote: Hi, I'm actually working in emacs over PuTTY due to some weird network/firewall (mis)configuration issues here at work, so it's a pain for me to fix the tabs at this time ;( Yoav Shapira Millennium Research Informatics -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 31, 2004 10:53 AM To: Tomcat Developers List Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml [EMAIL PROTECTED] wrote: yoavs 2004/08/31 07:50:41 Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0 StandardContext.java webapps/docs Tag: TOMCAT_5_0 changelog.xml webapps/docs/config Tag: TOMCAT_5_0 context.xml Log: Added StandardContext processTlds attribute, added context configuration references docs for processTlds, tldValidation, tldNamespaceAware. I can feel two more commits are coming in shortly ;) Can you fix the tabs at the same time ? Rémy - 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: tomcat build broken with strange javac error(never seen this one before)
Stop sending me e-mail. - Original Message - From: Hiller, Dean D (Dean) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 12, 2004 3:00 PM Subject: tomcat build broken with strange javac error(never seen this one before) I have never seen an error from javac like this before(and I am by no means new to java). I have even read the JLS and am not sure what in the world this is. Can anyone point me somewhere on how to resolve this issue? Or possibly point me to a build.xml for tomcat5 that works? The one on the website does not work as I get the below. I am using 1.4.2_05. Does the build.xml file work for anyone else? If so, what version of java are you using? build-catalina-core: [javac] Compiling 302 source files to C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-5\build\classes [javac] C:\ROOT\views\jakartaviews\tomcatTry\jakarta-tomcat-catalina\catalina\sr c\share\org\apache\catalina\Container.java:23: cannot access javax.servlet.ServletException [javac] bad class file: C:\usr\share\java\servlet-api-2.4\lib\servlet-api.jar(javax/servlet/Serv letException.class) [javac] class file has wrong version 49.0, should be 48.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import javax.servlet.ServletException; [javac] ^ [javac] 1 error Also, I really want to know more about this error and how it is possible. Does anyone know what this means? Ps. Am I on the wrong list? Is this really a problem with the servlet api jar?, but which project is that and who do I talk to??? thanks, dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hin Kan Lee/Prymnewey is out of the office.
And give his auto-responder admin a big wedgie too. -Paul Mladen Turk wrote: Can someone kill this guy? -Original Message- From: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Like to play chess? Never have time?
Then sign up for e-mail chess! This is an application built on JBoss/Tomcat technology that lets you play chess when you want to. Check out A HREF=http://www.paulrowe.com/game.cgi;http://www.paulrowe.com/game.cgi/A Sincerely, paulrowe.com __ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WYSIWYG Portal/Weblog Server based on Jakarta/Tomcat
From: Bernhard Fastenrath [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 11:39 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: WYSIWYG Portal/Weblog Server based on Jakarta/Tomcat I'd like to write a WYSIWYG Portal/Weblog Server based on Jakarta/Tomcat. On Thu, 2004-04-08 at 16:53, Shapira, Yoav wrote: Hi, Well, there's Jetspeed (http://jakarta.apache.org/jetspeed/site/) which is a nice portal implementation running on top of tomcat. jetspeed is a resource monster. don't even think about develop for it on anything less than a 1.5GHz CPU with 512MB memory, preferably a 3GHz P4 with 1GB memory or more! Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WYSIWYG Portal/Weblog Server based on Jakarta/Tomcat
On Tue, 2004-04-13 at 14:31, Shapira, Yoav wrote: jetspeed is a resource monster. don't even think about develop for it on anything less than a 1.5GHz CPU with 512MB memory, preferably a 3GHz P4 with 1GB memory or more! Good to know. You should contact its developers with suggestions for improvement. The mailing list links are here among other places: http://jakarta.apache.org/jetspeed/site/faq.html. he he, I was active on the jetspeed mailing lists for a while, and it's a known feature. Jetspeed also leaks processes and memory badly when reloading the app... our dual 4GHz Zeon box with 2GB of RAM would run out of memory every half hour with just two developers, requiring full tomcat restart which takes quite a while. we simply turned out jetspeed portlets into JSPs and back-end classes, and can now turn pages round in less than 200ms, as opposed to more than a second with jetspeed. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need LoadFile librt.so with mod_jk 2.0.4, Solaris, apache1.3
Hi, I just built jk 2.0.4. It seems to work fine in our system (with rudimentary testing), but one issue I had that should maybe be added to the documentation is that I had to do a LoadFile /usr/lib/librt.so to get it to run. This is with Solaris 8 apache 1.3. Unless someone thinks this means I did something wrong that is... - paul r. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Spam vulnerability at apache
Everyone on the list received these e-mails since they were sent to the list. No harvesting was necessary. As I understand it, the apache mailing lists are promiscuous in a way and will easily/accidentally let any e-mail address subscribe as long as it sends a reply to a subscribe confirmation e-mail. This means script kiddies or whoever can simply pretend to be [EMAIL PROTECTED] and subscribe to the mailing list. Since these kinds of support e-mails get auto-responded and because most sysadmins can't seem to be bothered to ignore e-mails of type bulk, these support addresses get subscribed and can then auto-reply to every message. The list moderators are pretty quick about removing the offending addresses, but it doesn't stop a few e-mails from sneaking through. The really painful part is how often this is happening lately. Some people seem to have way to much time on their hands and an abnormal sense of humor. Just a lurker's two cents. -Paul Reshat Sabiq wrote: Hi, I extremely apologize for this message, but i think this needs to be figured out. I just yesterday registered my new email address with tomcat-dev, and i received the spam below almost immediately thereafter. Only a few people are aware of this email address, so the origin of spam info 99% appears to be tomcat-dev registration. Is there any chance that DNS gets resolved to one of several IPs, one of which collects these emails and uses them for spam (or perhaps is infected with a virus)? I would look for any IPs based in russia as the prime suspects, because this email contains russian text and appears to be originated there. What's worse is that 25 minutes after this spam, i received another one of similar content. Please help save me and others from this plague of the Internet. I entrusted apache.org with this address, and hope we can keep it between us. P.S. If there are other people who received similar emails, please let me, the admins, or the list know. If you let only me know, i will accumulate the number of people affected and forward this to an admin. P.P.S. I see that emails are protected in the archives publicly published, and i think this issue is in the same category. Thanks, rsa/ [EMAIL PROTECTED] wrote: russian(win-1251): ! Photo document, . . , [TID#4977]. , : [TID#4977] (subject) . (reply). C , -10 http://www.m-10.ru english: Greetings, This message has been automatically generated in response to your message regarding Photo document, the content of which appears below. There is no need to reply to it now. Support has received your message and it has been assigned a ticket ID of [TID#4977]. Please include the string: [TID#4977] in the subject line of all future correspondence about this problem. To do so, you may reply to this message. WBR, Support Team Hosting Operator M-10 http://www.m-10.ru Original Message- Please, photo document. Yours sincerely +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com -Headers Follow-- Received: from [EMAIL PROTECTED] by office.m-10.ru (CommuniGate Pro GROUP 4.1.8) with GROUP id 1745058; Mon, 12 Apr 2004 17:13:05 +0400 Received: from [62.5.188.222] (HELO office.m-10.ru) by office.m-10.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1745042 for [EMAIL PROTECTED]; Mon, 12 Apr 2004 17:12:58 +0400 X-Antivirus: Checked by Dr.Web (http://www.drweb.net) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Photo document Date: Mon, 12 Apr 2004 17:11:48 +0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0016=_NextPart_000_0016 X-Priority: 3 X-Msmail-Priority: Normal Message-Id: [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: Spam vulnerability at apache
I think this is a combination of a misconfigured mail server at one800.net and a bad e-mail address subscribed to the list. The mail server is badly configured because it replied to sender instead of the reply-to address. If it had replied to the reply-to address you would never have seen it and the mailing list software would likely have disabled the address. It's probably also a recent thing. -Paul Reshat Sabiq wrote: I'm sorry to report that sending the message below, caused the following to show up in my mail box. There is definitely something fishy with the apache mail servers. This does not happen when i send an email to a non-apache address. Please, let's fix this: Your Mail has been bounced from the OutPost/1.800eMail Server Because [EMAIL PROTECTED] is not a valid username Original message, less any attachments, follows: ... Reshat Sabiq wrote: Hi, I extremely apologize for this message, but i think this needs to be figured out. I just yesterday registered my new email address with tomcat-dev, and i received the spam below almost immediately thereafter. Only a few people are aware of this email address, so the origin of spam info 99% appears to be tomcat-dev registration. Is there any chance that DNS gets resolved to one of several IPs, one of which collects these emails and uses them for spam (or perhaps is infected with a virus)? I would look for any IPs based in russia as the prime suspects, because this email contains russian text and appears to be originated there. What's worse is that 25 minutes after this spam, i received another one of similar content. Please help save me and others from this plague of the Internet. I entrusted apache.org with this address, and hope we can keep it between us. P.S. If there are other people who received similar emails, please let me, the admins, or the list know. If you let only me know, i will accumulate the number of people affected and forward this to an admin. P.P.S. I see that emails are protected in the archives publicly published, and i think this issue is in the same category. Thanks, rsa/ [EMAIL PROTECTED] wrote: russian(win-1251): ! Photo document, . . , [TID#4977]. , : [TID#4977] (subject) . (reply). C , -10 http://www.m-10.ru english: Greetings, This message has been automatically generated in response to your message regarding Photo document, the content of which appears below. There is no need to reply to it now. Support has received your message and it has been assigned a ticket ID of [TID#4977]. Please include the string: [TID#4977] in the subject line of all future correspondence about this problem. To do so, you may reply to this message. WBR, Support Team Hosting Operator M-10 http://www.m-10.ru Original Message- Please, photo document. Yours sincerely +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com -Headers Follow-- Received: from [EMAIL PROTECTED] by office.m-10.ru (CommuniGate Pro GROUP 4.1.8) with GROUP id 1745058; Mon, 12 Apr 2004 17:13:05 +0400 Received: from [62.5.188.222] (HELO office.m-10.ru) by office.m-10.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1745042 for [EMAIL PROTECTED]; Mon, 12 Apr 2004 17:12:58 +0400 X-Antivirus: Checked by Dr.Web (http://www.drweb.net) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Photo document Date: Mon, 12 Apr 2004 17:11:48 +0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary==_NextPart_000_0016=_NextPart_000_0016 X-Priority: 3 X-Msmail-Priority: Normal Message-Id: [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: jk2 new shmem using APR
Thanks a lot for this synopsis Glenn. Obviously I am also considering whether I should recommmend moving to Apache2 to our team. - paul r. In message [EMAIL PROTECTED]you write: On Tue, Mar 16, 2004 at 02:48:26PM -, [EMAIL PROTECTED] wrote: Greg, As an aside our team will be looking at apache2 and tomcat5 sooner rather than later as it would appear that more development effort is taking place on these platforms. However balancing lots of apps and infrastructure upgrades and testing with day to day support means this will not happen soon. I went through the process of upgrading our servers to Apache2 over the last 9 months. These are Sun servers running Solaris and using the Apache 2 worker MPM. There are alot of advantages to upgrading. My testing found Apache 2 to require a great deal fewer system resources (CPU,memory) when using the worker MPM and be much more scaleable. I also like the way filters work. You can now have Tomcat generate HTML with SSI which mod_include can then parse. This can help scaling for Tomcat. We use it with Tomcat4 and mod_jk 1.2.5, both are working very reliably for us. I did run into a number of problems at first. Most of them were Solaris specific. And some bugs which caused problems. I ended up learning a whole lot more about apache internals than I really wanted to, and even submitted a number of patches which got rolled into later releases. All in all it is working pretty well for us but we still get some core dumps once in a while, nothing that causes apache to completely fail though. We do have one nasty bug we hope the 2.0.49 release will fix. That is a runaway apache process which consumes all memory on the server. That was pretty nasty until we used ulimit on solaris to limit the size of the data and virtual memory segments for apache processes. Now the infrequent times this bug is triggered the apache process core dumps when it hits these memory limits rather than causing general failures on the server due to exhausing all physical and virtual memory. The biggest effort had to be put into making sure all the third party apache modules we use were thread safe. This included patches to mod_jk 1.2 to fix a few thread safe problems. The mod_jk 1.2.5 includes all these patches. All in all it was worth the effort, 9 months later it should be easier for someone with a similar environment to mine to upgrade to apache 2. Regards, Glenn -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- - 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: Returned mail: Delivery Failed
I remember when these lists were moderated. Those were the days. -Paul Martin Gainty wrote: Personally I was thinking of something more politically correct. There is not much room for misinterpretation of your statement Is there a way to unsubscribe these people so we do not get spammed by them? Martin - Original Message - From: Lee [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Monday, March 15, 2004 8:01 AM Subject: Re: Returned mail: Delivery Failed FUCK OFF --- [EMAIL PROTECTED] wrote: The attempted delivery of Returned mail: Delivery Failed failed for the following reason: mail from 202.57.162.11 refused, blocked by: proxies.relays.monkeys.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Returned mail: Delivery Failed
It seemed to me that in the old days, posts were held until a moderator let them through. You had to be put on an approved list to have direct posting access. At least, that's how the posting delay for new subscribers was explained. As I undertand it, none of these messages would have made it through under that system. I wouldn't call the current situation as moderated so much as managed. Is there a reason that the developers list allows posting from non-subscribers? Or are these troubled addresses actually fully subscribed? -Paul Shapira, Yoav wrote: Hi, The lists are moderated ;) Ignacio Ortega moderated them by himself for a long time, and I've helped him out for the past year and change, to the point where he's not really that active anymore ;) Moderating the lists is by and large an unglamorous, thankless job. Like all ASF things, it's done on our free time without compensation. I don't check my email on weekends, hence the delayed response to this particular one. I am happy to help out with moderating this list. I get just as annoyed as everyone else with spam. What is the process for becoming a moderator? Will you commit to checking the lists on weekends? I have the weekdays covered pretty much. If you want to continue this discussion privately/off-list, feel free ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Returned mail: Delivery Failed
Shapira, Yoav wrote: Hi, It seemed to me that in the old days, posts were held until a moderator let them through. That was true for some lists. Very few lists are so light in traffic that that's possible now. Ah. The way I understood it before was that new subscribers were allowed to post but their posts would get moderated until putting them on a good poster list. I guess I was mistaken about the last part, but it would be a pretty good system. subscribers was explained. As I undertand it, none of these messages would have made it through under that system. That's true, but that system is not feasible for tomcat-dev and tomcat-user, as it requires moderators to screen thousands of messages daily. I wouldn't call the current situation as moderated so much as managed. Is there a reason that the developers list allows posting from non-subscribers? Or are these troubled addresses actually fully subscribed? All these addresses are fully subscribed (i.e. they responded to the subscription confirmation message). Only subscribed addresses may post here. Thanks for the information. I'm not one to sit by and critique something that I'm not willing to help out on. So, I'd be willing to help out if needed. I'm not a committer, but I've been reading this list for years. -Paul Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Returned mail: Delivery Failed
David Rees wrote: Shapira, Yoav wrote: I wouldn't call the current situation as moderated so much as managed. Is there a reason that the developers list allows posting from non-subscribers? Or are these troubled addresses actually fully subscribed? All these addresses are fully subscribed (i.e. they responded to the subscription confirmation message). Only subscribed addresses may post here. Note that most of these auto-responders are brain-dead enough that anyone can unsubscribe them by sending a blank message to the following addresses: Good point. As convenient as the reply to confirm system is, maybe it's time for mailing list program authors to come up with something better. Is this a configurable option for this list's software? (ezmail?) -Paul [EMAIL PROTECTED] Replace tomcat-dev with tomcat-user for auto-responders spamming that list. Unfortunately, as easy as it is to unsubscribe these addresses, they can become subscribed again so they need to be blacklisted. Yoav, you currently handle blacklisting of these addresses, correct? -Dave - 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: jk2 new shmem using APR
In message [EMAIL PROTECTED] comyou write: [...] It is worth noting that this appears to be an apache 1.3.x issue as no one else seems to suffer from this. However I have no idea if anyone else has tried building mod_jk2 on Solaris for apache 1.3.x. Thanks. Greg Greg, I have just recently joined this list (and this is my first post!) because I *might* have a few cycles and (in theory :-)) the expertise to help out a little. Anyway after seeing this post - just thought I'd let you know that you are not alone. I am also trying to use mod_jk2 on Solaris 8 with apache 1.3.x. I'm only experimenting with jk2 so far and haven't built from anything recent - just 2.0.2 and kludged around the problems to get it to build run. Thought I'd wait until 2.0.4 at least before really trying to integrate it into our system... - paul r. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Email account utilization warning.
It is a little strange that noone from the apache team has stepped forward to clarify that these are fake... since they are being sent to an apache mailing list after all. The clues I had that it was a fake: 1) Sent to an apache/jakarta mailing list... by apache.org. 2) Really poor grammar in the message. (Ok, who am I kidding? ;) 3) I started getting similar e-mails from my own domain. ;) But it's probably given more than a few people pause. -Paul Mark Roth wrote: Hi Michael, I think the message itself is from a clever virus that is trying to get you to open the attachment. I thought I saw another such email go by my Inbox the other day that was signed The somethingelse.com team. Fortunately, us Linux and Solaris folk don't have to worry about such things :) --- Mark Roth, Java Software JSP 2.0 Specification Lead Sun Microsystems, Inc. Michael McGrady wrote: What is this about? I am sure of one thing, I did not improperly use anything. I don't know what you mean about resign[ing my]account information either. Since there was no attached file, I assume my security picked up an attempt to pass on a virus. Anyone else seeing these? Michael At 01:07 AM 3/8/2004, you wrote: Dear user, the management of Apache.org mailing system wants to let you know that, Your e-mail account will be disabled because of improper using in next three days, if you are still wishing to use it, please, resign your account information. For more information see the attached file. Attached file protected with the password for security reasons. Password is 46855. Kind regards, The Apache.org team http://www.apache.org - 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: problem
Vano Beridze wrote: jean-frederic clere wrote: +++ --- Additional Comments From Remy Maucherat 2004-02-19 19:44 --- Yes, but not doing so is too complex to implement overall (since you would have to parse the descriptor to know what to do). +++ For me that is a good explaination as severity of the bug is enhancement. Have you read the comment next to that message? I'm saying that it's not necessary to parse the descriptor. If I'm wrong then tell me instead of closing the bug as wontfix again. Then propose a patch for your problem I will aply it :-) If it would be a critical problem for me I would propose :) I was just impressed by so aggresive behaviour. Tomcat list was always friendly to me. Don't see it as aggressive behavior. See at as someone who tries to keep the bug database trimmed to only those things that someone cares enough about to implement. It doesn't really serve any purpose if it's filled with 500 enhancements that noone wants to implement. Just a lurker's opinion, -Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
control Array
Hi, How might I request a series of checkboxes that all share the same name? E.g: form input type=checkbox name=myCheck value=01 input type=checkbox name=myCheck value=02 input type=checkbox name=myCheck value=03 /form I understand in VB something called a control array exists, that retrieves the checked checkbox values and stores them in an array. This is also possible in CFM. Is there the equivalent in Java/HTTP? Something where I DON'T have to do: input type=checkbox name=myCheck1 value=01 input type=checkbox name=myCheck2 value=02 input type=checkbox name=myCheck3 value=03 % for (int i = 0;i noofCheckboxes; i++) { myarr[i] = request.getParameter(myCheck + i); } % Thanks for any replies, or direction towards doco re this. Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: [5.0] JSP performance ...
I think the performance improvement was because the Strings were converted to char[] arrays during servlet init, and not at every request. It seems to me as if that would make a difference. -Paul Kin-Man Chung wrote: I took a look at o.a.j.runtime.JspWriterImpl and the methods write(String s, int off, int len) and write(char cbuf[], int off, int len) in particualr, and failed to see any performance gain of the 2nd over the first. They are very similar, the only different is that the first uses String.getChars while the second uses System.arraycopy, but those two methods should be on par in terms of performance. That is, I don't see any extra unnecessary copies. Perhasp the culprit is those extra writes? -Kin-man Date: Mon, 08 Sep 2003 23:03:19 +0200 From: Remy Maucherat [EMAIL PROTECTED] Subject: Re: AW: [5.0] JSP performance ... To: Tomcat Developers List [EMAIL PROTECTED] Kin-Man Chung wrote: This seems easy enough to implement, so I'll look into it. Concatenating texts is also on my list, and it should help a little in this case. That would be awesome. The test had a *lot* of writes, so this would save hundreds of write invocations (as well as making them faster as it would user char arrays). JSP performance should be really good with that change. Remy - 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]
double format
Hi all, A simple one for most..how do I enforce a double primitive format? E.g 00.00, or to enforce 2 and only 2 decimal points? Thanks Paul.
RE: double format
Obviously I am, I now have a value with approx 30 decimal points. What method formats to ii.dd ? Paul. BigDecimal? Or am I on drugs? -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 September 2003 2:23 PM To: [EMAIL PROTECTED] Subject: double format Hi all, A simple one for most..how do I enforce a double primitive format? E.g 00.00, or to enforce 2 and only 2 decimal points? Thanks Paul. The content of this e-mail, including any attachments is a confidential communication between Virgin Blue and the intended addressee and is for the sole use of that intended addressee. If you are not the intended addressee, any use, interference with, disclosure or copying of this material is unauthorized and prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). Virgin Blue respects your privacy. Our privacy policy can be accessed from our website: www.virginblue.com.au - 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: double format
That's sorted..thanks. I'll have some of what you're having.. Paul. I meant I was on drugs.. I never post to anything.. And I guessed I as going to post wrong.. You can do something linke BigDecimal bleh = new BigDecimal(12345.678); BigDecimal blah = bleh.setScale(2, BigDecimal.ROUND_HALF_DOWN); Or something... -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 September 2003 2:46 PM To: Tomcat Developers List Subject: RE: double format Obviously I am, I now have a value with approx 30 decimal points. What method formats to ii.dd ? Paul. BigDecimal? Or am I on drugs? -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 September 2003 2:23 PM To: [EMAIL PROTECTED] Subject: double format Hi all, A simple one for most..how do I enforce a double primitive format? E.g 00.00, or to enforce 2 and only 2 decimal points? Thanks Paul. The content of this e-mail, including any attachments is a confidential communication between Virgin Blue and the intended addressee and is for the sole use of that intended addressee. If you are not the intended addressee, any use, interference with, disclosure or copying of this material is unauthorized and prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). Virgin Blue respects your privacy. Our privacy policy can be accessed from our website: www.virginblue.com.au - 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] The content of this e-mail, including any attachments is a confidential communication between Virgin Blue and the intended addressee and is for the sole use of that intended addressee. If you are not the intended addressee, any use, interference with, disclosure or copying of this material is unauthorized and prohibited. If you have received this e-mail in error please contact the sender immediately and then delete the message and any attachment(s). Virgin Blue respects your privacy. Our privacy policy can be accessed from our website: www.virginblue.com.au - 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]
MEI Whitelist Dequarantine Notice
This message has been dequarantined. Although the system only presents the first 55 lines here, the original message was sent to paul intact. From [EMAIL PROTECTED] Wed Aug 27 17:39:19 2003 Return-Path: [EMAIL PROTECTED] Received: from apache.org (daedalus.apache.org [208.185.179.12]) by mei.net (8.12.9/8.12.9) with SMTP id h7RLdIHL012871 for [EMAIL PROTECTED]; Wed, 27 Aug 2003 17:39:19 -0400 Received: (qmail 13893 invoked by uid 500); 27 Aug 2003 21:13:24 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Developers List tomcat-dev.jakarta.apache.org Reply-To: Tomcat Developers List [EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 13329 invoked from network); 27 Aug 2003 21:13:13 - Received: from unknown (HELO prv-mail20.provo.novell.com) (137.65.81.122) by daedalus.apache.org with SMTP; 27 Aug 2003 21:13:13 - Received: from INET-PRV-MTA by prv-mail20.provo.novell.com with Novell_GroupWise; Wed, 27 Aug 2003 15:13:16 -0600 Message-Id: [EMAIL PROTECTED] X-Mailer: Novell GroupWise Internet Agent 6.5.1 Date: Wed, 27 Aug 2003 15:13:07 -0600 From: Jeff Tulley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Patch] Edit field maxlength in admin app's login.jsp Mime-Version: 1.0 Content-Type: multipart/mixed; boundary==__PartF7A988F3.0__= X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N BCT-delivery-for: paul MEI-wl-code: MEI0128841062020359b1bcCKd7kF6nm5U0kIfHig --=__PartF7A988F3.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline The admin application needlessly sets the maximum size of the username and password fields to 16 characters. It is VERY easy to run into a problem with some Realm types (like JNDI, if you are using fully-qualified LDAP names). I know a password of 16 characters is a bit pathological, but the limit is arbitrary and needless. I have attached a simple patch to this to just get rid of the maximums. I have seen two or three emails complaining about this and ran into this myself today. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com --=__PartF7A988F3.0__= - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: window close session invalidate
Hi, That might be the case, but the window I am closing is a popup window that derives from the original. The original window remains unscathed. Paul. That is according to the spec, The session only lives for the time of the application,closing your browser window, means that you are ending your application Filip -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:01 PM To: Tomcat Developers List Subject: window close session invalidate Dear all, May someone enlighten me on why my session is being invalidated when I close a browser window? I am doing this in one of two ways - the application close icon on the top right of the window, or a simple: a href=javascript:window.close();CLOSE/a Does anyone have any experience of this? The session is being killed and thus so is my app. I will submit this query to the user list, but thought it appropriate for this list as I am getting the same result from multiple instances of TC on different servers, implying it is not a configuration issue as first suspected. Thanks Paul. - 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: window close session invalidate
OK, Thanks for that. An interesting note however..after some testing, the session is not killed when run from another terminal i.e running the same instance of TC (same server) but from different terminals. That would suggest it is an IE configuration issue (at much annoyance to certain developers). I will at this stage bring this up on the user list! Thanks Paul. i had the same problem with internet explorer. mozilla seems to work properly. i tracked the problem down and found out that internet explorer looses the session cookie when closing the popup browser window. then i added DefaultContext cookies=false / to my virtualhost definition in server.xml to disable the session-cookie mechanism. after that everything worked fine for me. remember to encode all urls with response.encodeURL(). jochen schwörer Wednesday, August 6, 2003, 6:00:57 AM, you wrote: PW Dear all, PW May someone enlighten me on why my session is being invalidated PW when I close a browser window? I am doing this in one of two ways - the PW application close icon on the top right of the window, or a simple: PW a href=javascript:window.close();CLOSE/a PW Does anyone have any experience of this? The session is being killed and PW thus so is my app. I will submit this query to the user list, but PW thought it appropriate for this list as I am getting the same result PW from multiple instances of TC on different servers, implying it is not a PW configuration issue as first suspected. PW Thanks PW Paul. PW - PW To unsubscribe, e-mail: [EMAIL PROTECTED] PW 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: Fwd: Re: security hole on windows tomcat?
Yes, adding -Dsun.io.useCanonCaches=false to the tomcat seemed to fix the security hole I discovered on my 4.1.24 tomcat on Windows XP using JDK 1.4.2. Great job finding a solution. It's a testament to open source and cooperation. Fortunately it's JSP source it's showing and people should have anything worth seeing in their servlets or EJBs anyway. :) Paul Sundling Jeff Tulley wrote: I just wanted to make sure you saw this -- Jeanfrancois made the connection that this issue has a known workaround, so you don't have to backrev your JVM if you don't want to. I tried this on Windows XP and NetWare and it worked in both places... Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 7:08:50 PM Sorry I've just realize this thread may be related to bugtraq #4895132 (thanks to Jeff for the wake up mail on tomcat-dev ;-) ). The workaround is to add the following property when starting Tomcat: -Dsun.io.useCanonCaches=false Can someone try it and let me know if it change something. If this is not working, then point me to a very simple test case and I will file a new bugtraq bug. -- Jeanfrancois Eric J. Pinnell wrote: I think at this point this might be a worthwile canidate for Sun's bugparade. At least get it on their radars (if they don't know about it already). It's interesting that the bug doesn't show up in Tomcat 4.1.27. When 1.4.2 was released 4.1.24 was the latest stable build. Regardless the JDK/appserver/whatever should never puke it's guts and spit out the source code when it gets a request it doesn't know how to deal with. Upon failure it should result in some kind of error. Sun might care about this... -e On Tue, 12 Aug 2003, Jeff Tulley wrote: It is highly possible that this is dependent on the JVM you have installed. I actually finally WAS able to see this on Windows XP, but only if Tomcat was running on JVM 1.4.2. The problem did NOT happen with 1.4.1. Of course, JVM version is the one item I left off of my poll in my email below. :) I'm trying to verify this on other OS's and track down what the actual problem is. But, if you run Tomcat on JVM 1.4.2, verify if you have this problem. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 4:10:53 PM Tomcat 4.0.6 on Win2K via direct connection to Tomcat on localhost via either port 8080 or port 80 - pages return fine without the %20 suffix, always return http 404 with the suffix. Murray -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: Wednesday, 13 August 2003 02:41 To: [EMAIL PROTECTED] Subject: RE: security hole on windows tomcat? So this issue is confusing. It seems that indeed there IS an issue, though most cannot see a problem. Talking to some people off-list, it seems that some think it is a JK2 / workers2.properties issue. But I'm pretty sure that others have seen this going directly to port 8080. We probably need to take a quick poll: If you have seen this security problem of being able to view JSP source, in what scenario(s)? Tomcat version OS version Directly to Tomcat (8080) or through Apache - JK or JK2? (If you've seen the problem, please include your workers or workers2.properties file, with a .txt extension) Browser version(s) url's where this was seen or not seen If you have seen this in multiple scenarios, and not in others, please list each separately. I have NOT seen it in the following scenarios: Tomcat 4.1.18, 4.1.24, 4.1.26, 4.1.27 Windows 2000 5.00.2195 Service Pack 4 Directly to port 8080 Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 Tomcat 4.1.18, 4.1.24, 4.1.26, fairly standard distributions (only adding one JNDIRealm beyond the default config) Novell NetWare 6.5 Directly to port 8080, and through Apache - mod_jk.nlm Internet Explorer 6.0.2800.1106 with all security patches up to date I tried http://(url):8080/index.jsp%20 and https://(url)/tomcat/admin/index.jsp%20 Hopefully this mail gets through; I haven't been seeing my emails show up on tomcat-user for some reason (I un/resubscribed today...) It would be really good to get to the bottom of this! Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/12/03 6:02:55 AM can you turn on debugging for the default servlet(conf/web.xml) and also turn on the requestdumpervalve(server.xml) and post the log. - To unsubscribe, e-mail: [EMAIL PROTECTED
RE: window close session invalidate
-Original Message- From: Paul Wallace Sent: Thursday, 7 August 2003 9:20 AM To: Tomcat Developers List Subject: RE: window close session invalidate OK, Thanks for that. An interesting note however..after some testing, the session is not killed when run from another terminal i.e running the same instance of TC (same server) but from different terminals. That would suggest it is an IE configuration issue (at much annoyance to certain developers). I will at this stage bring this up on the user list! Thanks Paul. i had the same problem with internet explorer. mozilla seems to work properly. i tracked the problem down and found out that internet explorer looses the session cookie when closing the popup browser window. then i added DefaultContext cookies=false / to my virtualhost definition in server.xml to disable the session-cookie mechanism. after that everything worked fine for me. remember to encode all urls with response.encodeURL(). jochen schwörer Wednesday, August 6, 2003, 6:00:57 AM, you wrote: PW Dear all, PW May someone enlighten me on why my session is being invalidated PW when I close a browser window? I am doing this in one of two ways - the PW application close icon on the top right of the window, or a simple: PW a href=javascript:window.close();CLOSE/a PW Does anyone have any experience of this? The session is being killed and PW thus so is my app. I will submit this query to the user list, but PW thought it appropriate for this list as I am getting the same result PW from multiple instances of TC on different servers, implying it is not a PW configuration issue as first suspected. PW Thanks PW Paul. PW - PW To unsubscribe, e-mail: [EMAIL PROTECTED] PW 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: window close session invalidate
Also, I was under the impression that 'session' is good for the amount of time specified in your configuration file, or until session.invalidate(); is called? Thanks Paul. That is according to the spec, The session only lives for the time of the application,closing your browser window, means that you are ending your application Filip -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:01 PM To: Tomcat Developers List Subject: window close session invalidate Dear all, May someone enlighten me on why my session is being invalidated when I close a browser window? I am doing this in one of two ways - the application close icon on the top right of the window, or a simple: a href=javascript:window.close();CLOSE/a Does anyone have any experience of this? The session is being killed and thus so is my app. I will submit this query to the user list, but thought it appropriate for this list as I am getting the same result from multiple instances of TC on different servers, implying it is not a configuration issue as first suspected. Thanks Paul. - 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]
window close session invalidate
Dear all, May someone enlighten me on why my session is being invalidated when I close a browser window? I am doing this in one of two ways - the application close icon on the top right of the window, or a simple: a href=javascript:window.close();CLOSE/a Does anyone have any experience of this? The session is being killed and thus so is my app. I will submit this query to the user list, but thought it appropriate for this list as I am getting the same result from multiple instances of TC on different servers, implying it is not a configuration issue as first suspected. Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session expiry
Hello All, A simple one? I have my session defined in a servlet thus: HttpSession session = req.getSession(); session.setAttribute(userSession, h); // (h = HashMap) how or where do define session parameters such as expiry? I would ideally like my session to die when I call a specified method e.g close() { // kill my session here } or failing that, how do I define a length of time for the session life? Thanks Paul.
Re: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkMain.java
Clearly you guys make it way to easy to subscribe to the list. ;) -Paul Bill Barker wrote: Ok, I tried asking nice, and just got a machine-response. Could whoever is currently Moderator for this list helpfully allow minimalist to unsubscribe ;-). - Original Message - From: Minimalist Manager [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 11:45 PM Subject: Re: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkMain.java ERROR: There is no such list JKMAIN.JAVA here. SOLUTION: Send a message to [EMAIL PROTECTED] with a subject of 'info' (no quotes) for a list of available mailing lists. -- Sincerely, the Minimalist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. - 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]
oddity
Hello, Can someone please tell me how to configure (I am assuming it is a configuration issue) TC such that my servlets do not insist on persisting. Even when I clear IE history, delete temporary Internet files, cookies, delete the class its self! I literally removed the servlet class and it was still running and outputting to the browser! I eventually had to restart the server each time this happened. Obviously not an acceptable way to develop. Is it an entry in conf/server.xml? Many thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: redirect from Servlet
Hi, thanks, I added the line. No 404 is present, but the servlet maintains, ie the browser is completely blank. What about the (/xxx.jsp) path? Thanks Paul. Try this getServletConfig().getServletContext().getRequestDispatcher(/xxx.jsp). forward(request, response); - Original Message - From: Paul Wallace [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 11:21 AM Subject: redirect from Servlet Hello, I have a packaged servlet (com.mypackage.servlets;) in WEB-INF\classes\com\mypackage\servlets, where it performs its logic dutifully. From the servlet I wish to redirect back to the JSP that called it. Currently the JSP origin cannot be found (404). I have tried all manner of variations of path: res.sendRedirect(addAgent.jsp); including a fully formed URL (local and HTTP). How do I redirect to the desired file please? Thanks Paul. - 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]
redirect from Servlet
Hello, I have a packaged servlet (com.mypackage.servlets;) in WEB-INF\classes\com\mypackage\servlets, where it performs its logic dutifully. From the servlet I wish to redirect back to the JSP that called it. Currently the JSP origin cannot be found (404). I have tried all manner of variations of path: res.sendRedirect(addAgent.jsp); including a fully formed URL (local and HTTP). How do I redirect to the desired file please? Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Object Pooling(especially database conn)
On Saturday 18 January 2003 06:41 am, White Knight wrote: Hi, I feel providing Object Pooling ability to tomcat would be very useful. Database connection pooling would be very useful for a lot of users. I have been doing it as a separate component.I wrote for my purpose and bundled with the tomcat my folks are using.I have used the Object pooling facility in commons library. Wouldn't it be nice to make such a thing standard? Hope to hear your opinions. Try ls $CATALINA_HOME/common/lib/*pool* ls $CATALINA_HOME/common/lib/*dbcp* and look at http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 or similar messages, or I don't exactly understand you. Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 - Catalina will not compile.
Hi, Any pointers... following on from the strange problem I had with a binary download of 4.1.12 (limited contexts) I thought I would try a source build. Using suns jdk1.4 as a the javac I get this little bundle of errors: build-catalina: [javac] Compiling 12 source files to /usr/local/src/tomcat/jakarta-tomcat-4.1.12-src/catalina/build/server/classes [javac] This version of java does not support the classic compiler; upgrading to modern [javac] /usr/local/src/tomcat/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache /catalina/session/StandardSessionFacade.java:97: org.apache.catalina.session.StandardSessionFacade should be declared abstract; it does not define logout() in org.apache.catalina.session.StandardSessionFacade [javac] public class StandardSessionFacade [javac]^ [javac] /usr/local/src/tomcat/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache /catalina/session/StandardSession.java:121: org.apache.catalina.session.StandardSession should be declared abstract; it does not define logout() in org.apache.catalina.session.StandardSession [javac] class StandardSession [javac] ^ [javac] /usr/local/src/tomcat/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache/ catalina/connector/HttpResponseBase.java:111: org.apache.catalina.connector.HttpResponseBase should be declared abstract; it does not define setCharacterEncoding(java.lang.String) in org.apache.catalina.connector.ResponseBase [javac] public class HttpResponseBase [javac]^ [javac] /usr/local/src/tomcat/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache/ catalina/connector/ResponseFacade.java:86: org.apache.catalina.connector.ResponseFacade should be declared abstract; it does not define setCharacterEncoding(java.lang.String) in org.apache.catalina.connector.ResponseFacade [javac] public class ResponseFacade implements ServletResponse { [javac]^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 4 errors Any hints? Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [4.1.16] [VOTE] Stability rating
Haven't had time load/test 4.1.16 yet, but have the hierarchical class loader issues been resolved? As of 4.1.15, I get ClassNotFound errors when starting tomcat. Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC: 15750 [main] ERROR server.JkMain - Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) rest of stack trace deleted Paul : -Original Message- : From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] : Sent: Monday, December 02, 2002 3:24 PM : To: Tomcat Developers List : Subject: Re: [4.1.16] [VOTE] Stability rating : : : : : ballot : [ ] Alpha : [ ] Beta : [X ] Stable (aka GA) : /ballot : : : -- Jeanfrancois : : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:[EMAIL PROTECTED] : Paul J. Brzezinski ([EMAIL PROTECTED]).vcf Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat App. Dev. Guide
This is a message for Tomcat developers, in particular authors of the Tomcat Application Developers' Guide. Thank you for this simple and lucid yet so helpful and powerful document. It answered literally dozens of my questions and it's almost flawless except for a tiny bug in build.xml where in the dist target, the attribute of the mkdir task should be dir instead of todir. Thanks again, Paul -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-4.0/tester/web/golden SSIConditional09.txt
Thanks Dan. Now I have my 15 milliseconds of fame back. ;) I'll see if I can test the updates with my site soon. -Paul Speed [EMAIL PROTECTED] wrote: dsandberg2002/11/25 02:15:43 Modified:catalina/src/share/org/apache/catalina/ssi SSICommand.java SSIConfig.java SSIEcho.java SSIExec.java SSIFlastmod.java SSIFsize.java SSIInclude.java SSIMediator.java SSIPrintenv.java SSIProcessor.java SSISet.java SSIStopProcessingException.java tester/src/bin tester.xml Added: catalina/src/share/org/apache/catalina/ssi ExpressionParseTree.java ExpressionTokenizer.java SSIConditional.java SSIConditionalState.java tester/web SSIConditional09.shtml tester/web/golden SSIConditional09.txt Log: Added back Paul Speed's conditional SSI enhancement. Updated code/regression tests to better emulate Apache SSI. Fixed bug w/ expression parser's handling of literals. Revision ChangesPath 1.2 +5 -3 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSICommand.java Index: SSICommand.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSICommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SSICommand.java 24 May 2002 16:35:39 - 1.1 +++ SSICommand.java 25 Nov 2002 10:15:42 - 1.2 @@ -79,12 +79,14 @@ * Write the output of the command to the writer. * * @param ssiMediator the ssi mediator + * @param commandName the name of the actual command ( ie. echo ) * @param paramNames The parameter names * @param paramValues The parameter values * @param writer the writer to output to * @throws SSIStopProcessingException if SSI processing should be aborted */ public void process(SSIMediator ssiMediator, + String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) throws SSIStopProcessingException; 1.3 +6 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIConfig.java Index: SSIConfig.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIConfig.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SSIConfig.java24 Nov 2002 06:22:36 - 1.2 +++ SSIConfig.java25 Nov 2002 10:15:42 - 1.3 @@ -72,6 +72,7 @@ * Implements the Server-side #exec command * * @author Bip Thelin + * @author Paul Speed * @author Dan Sandberg * @version $Revision$, $Date$ */ @@ -80,6 +81,7 @@ * @see SSICommand */ public void process(SSIMediator ssiMediator, + String commandName, String[] paramNames, String[] paramValues, PrintWriter writer ) { 1.2 +6 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIEcho.java Index: SSIEcho.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIEcho.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SSIEcho.java 24 May 2002 04:38:58 - 1.1 +++ SSIEcho.java 25 Nov 2002 10:15:42 - 1.2 @@ -71,6 +71,7 @@ * Return the result associated with the supplied Server Variable. * * @author Bip Thelin + * @author Paul Speed * @author Dan Sandberg * @version $Revision$, $Date$ */ @@ -82,6 +83,7 @@ * @see SSICommand */ public void process(SSIMediator ssiMediator, + String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) { 1.3 +7 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIExec.java Index: SSIExec.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/ssi/SSIExec.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SSIExec.java 24 Nov 2002 06:22:36 - 1.2 +++ SSIExec.java 25 Nov 2002 10:15:42 - 1.3 @@ -89,6 +89,7 @@ * * @author Bip Thelin * @author Amy Roh + * @author Paul Speed * @author Dan
Re: Why can I not use attributes lang and maxRows in a custom tag
The Java beans API requires getters. It does not require setters. No setter means the property is read-only. There's no such thing as write-only in the Java beans API. A getter is the only way to determine what the type of the property is since there can be only one getter with a particular name. The Java beans API is all about deducing all of this information at runtime... so it must be able to figure this out. (For PropertyDescriptors and such.) Not 100% useful as a way to do simple reflection though. -Paul [EMAIL PROTECTED] wrote: If Tomcat uses the beans API in Java to do the reflection for calling these methods, then that is probably why. It insists on having a valid get and set method for an attribute for some reason. I ran into this once when I only wanted to have getters with no setters, and I couldn't find a way around it other than to use reflection directly (mind you, I was in a hurry, so I didn't try too hard). -- Rob Jim Cobban [EMAIL PROTECTED]To: Jan Luehe [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: Why can I not use attributes lang and maxRows in a custom tag 23/11/2002 11:17 AM Please respond to Tomcat Developers List - Original Message - From: Jan Luehe [EMAIL PROTECTED] Subject: Re: Why can I not use attributes lang and maxRows in a custom tag Tomcat 4.1.12 does not accept a custom tag with attributes lang or maxRows. When I asked about this on the Tomcat users list I was informed that it also does not accept the attribute class. Specifically if I define those attributes then when the jsp is compiled I get an unable to find setter error. If I replace them with similar but meaningless attribute names the page compiles correctly. This can't be true. For example, JSTL defines an attribute named 'maxRows' for its sql:query action. I am not aware of any naming restrictions for custom tag attributes. Are you sure the tag handler for your custom action defines an approriate setter method for the attributes in question? I kept experimenting and found exactly what it was that Tomcat disliked about my attribute. It was not the name. It was not the presence or absence of the set method. It was that there was also a get method which did not return String! Since Tomcat does not use the get method I do not understand why it cares whether or not one is present or what its signature is. But as soon as I change the name of the get method so it did not match the set method Tomcat merrily accepted the tag. For me this is now an issue of documentation. I have searched the JSP 1.2 spec using every term I can think of and I cannot find where it specifies the characteristics of the set method for an attribute on a custom tag. I have therefore been depending upon the description of this capability in Marty Hall's book. If the JSP specification, and Tomcat, have a legitimate reason for looking at the characteristics of the get method when deciding whether or not to use the set method, then that should be documented. Otherwise the behavior is frankly mysterious. Thank you for responding. When a week went by without a response I unsubscribed from the list, so the CC on this message may be discarded. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] If you received this e-mail in error please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Why can I not use attributes lang and maxRows in a customtag
Craig R. McClanahan wrote: On Sat, 23 Nov 2002, Paul Speed wrote: Date: Sat, 23 Nov 2002 18:50:34 -0500 From: Paul Speed [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Subject: Re: Why can I not use attributes lang and maxRows in a custom tag The Java beans API requires getters. It does not require setters. No setter means the property is read-only. There's no such thing as write-only in the Java beans API. That turns out not to be the case. Section 8.3.1 of the JavaBeans Specification makes it clear that you can have either a read-only or a write-only property, in addition to a read-write property. Ok, I'll admit this is true... however, (and it may be a personal problem) the only way I ever got write-only properties to work was to setup bean info. I've had problems getting the introspector to find these automatically... especially if you have more than one setter. Whereas, if you add a properly typed getter, everything magically works without the extra trouble. I knew as soon as I made an absolute statement right after waking up from a nap, I'd regret it. ;) Now if beans would just get multi-valued properties right... but that's another story. :) -Paul JSP custom tags are a pretty good use case for write-only properties -- the JSP contracts only require an ability to *set* the property values; there is no requirement that the attribute values be made publicly available to any other class. After all, the tag implementation class will have internal access to the set value, by referencing whatever instance variable the setter stored it in. A getter is the only way to determine what the type of the property is since there can be only one getter with a particular name. The Java beans API is all about deducing all of this information at runtime... so it must be able to figure this out. (For PropertyDescriptors and such.) The user's original problem wasn't that they had a write-only property. The problem was that the data type of the getter and setter did not match, which violates the design patterns of Section 8.3. Therefore, te JavaBeans introspector does not consider this to be an actual JavaBeans property. Not 100% useful as a way to do simple reflection though. -Paul Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problems with SSI extensions
These worked at one time. Then that entire version of SSI was clobbered and replaced with a version that only supported a subset of the commands. None of my clobbered rewrite has been ported forward again and I haven't had the time (or motivation) to rewrite my rewrite again and try to get a patch committed. I only mention this so that if someone wants to scratch this particular itch they know that there's code in the CVS attic that does this. They'd just have to port it somehow. Might save someone some time. -Paul Richard Hallier wrote: Hello, Tomcat 4.1.12 with SSI enabled Basic functions work well, but i'm in trouble with : 1/ !--#if is not supported (i've got an unknown command), maybe it's normal 2/ This command in my .shtm : !--#include virtual=${QUERY_STRING} -- generates the following error: 2002-11-19 21:11:20 ssi: #include--Couldn't include file: ${QUERY_STRING} java.io.IOException: Couldn't find file: /${QUERY_STRING} Thank you for your help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ServletOutputStreamWrapper
Duh! Thank you - why ddn't I think of that! On Fri, 2002-11-15 at 09:01, Martin Algesten wrote: Java tip: System.out.println( request.getInputStream().getClass().getName() ); and all shall be revealed. -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: JK2 unixsocket: Can't create apr
Costin Manolache wrote: A quick test: put commons-logging.jar and log4j.jar in common/lib. Most classloader problems are due to the loader hierarchy. It is possible ( at least with 5.0 - I'm running it this way ) to put all the jars in the same place ( like common/lib or just in CLASSPATH) and run tomcat with delegation and a simple class loader hierarchy. please help me understand if there's anything out-of-the ordinary that I need to do to run tomcat with delegation and a simple class loader hierarchy. I quickly reviewed the class loader HOW-TO and nothing popped out as how to do this. If you mean putting everything -- all the jar files mentioned in that document into $CATALINA_HOME/common/lib... I would bet the same works with 4.1.x - jboss for example is using embeded tocmat with all the jars in the main loader. Regarding the unix channel - you need to be able to load libjkjni.so and libapr.so. It may be a good idea ( at least for testing ) to place them in the JRE_HOME/lib dir - that's a place where java will certainly look for .so files. ( at least with JDK1.4 I had some problems with loading jars, and the LD_LIBRARY_PATH may create some problems ). Costin Brzezinski, Paul J wrote: Original post came from Tomcat Users, replying/cross-posting... : -Original Message- : From: Costin Manolache [mailto:cmanolache;yahoo.com] : Sent: Wednesday, November 13, 2002 3:16 PM : To: Tomcat Developers List : Subject: RE: JK2 unixsocket: Can't create apr : : : Very weird. : : Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 : ? Do you have log4j ? Yes -- *I* get this error on 4.1.12/5.0 on Solaris 8, hopefully Robert Williams can provide details about his specfic config: I have: j2sdk1.4.1 commons-logging-1.0.2 jakarta-log4j-1.2.6 Tried this against: jakarta-tomcat-4.1.12 jakarta-tomcat-4.1.12-LE-jdk14 jakarta-tomcat-5 I get the same error -- can't create apr... java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : The problem seems releated to class loading ( as usual :-). Yeah, but how do we work-around it or solve it permanently. I've tried massaging the catalina.sh startup script to include commons-logging.jar in CLASSPATH that gets passed to the JVM at startup. I've put commons-logging.jar in $CATALINA_HOME/server/lib even though commons-logging-api.jar exists there. I see in the -LE-jdk14 that there's a log4j.rename-to-jar. What's the confidence level that this will resolve this problem? Is this a problem on other platforms? Is this NOT a problem on Linux? : Costin : : : Brzezinski, Paul J wrote: : : I wonder if a better question is: : : Is anyone using the ChannelUnix (AF_UNIX socket) connector on any : platform? : : On what platforms is the ChannelUnix (AF_UNIX socket) connector : actually known to function? : : : : : -Original Message- : : From: Robert Williams [mailto:rcw1;pacbell.net] : : Sent: Wednesday, November 13, 2002 1:05 PM : : To: Tomcat User : : Subject: JK2 unixsocket: Can't create apr : : : : : : Hi all, : : I am trying to implement the unixsocket on JK2. While the : : channelSocket : : works fine I was hoping to get the speed benefits of a : : unixsocket. I am : : using the example setups in the JK2 documentation. And since : : it seems to : : be looking for the LogFactory I have made sure that : : commons-logging-api.jar was in the Tomcat common/lib and I : : also put it : : in java/jre/lib/ext as well. All to no avail. I am : stumped. I haven't : : been able to find anything in the list or on google : addressing this : : problem. Some docs regarding channelSocket say disable : apr for this : : error but apparently unixsocket won't work without apr : : enabled. Any help : : would be appreciated. : : Thanks Robert : : : : jakarta-tomcat-4.1.12 : : jakarta-tomcat-connectors-4.1.12 : : Apache/2.0.43 : : Solaris 9 : : : : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler : : SEVERE: Can't create apr : : java.lang.NoClassDefFoundError: : org/apache/commons/logging/LogFactory : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : : at java.lang.Class.forName0(Native Method) : : at java.lang.Class.forName(Class.java:130) : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) : : at org.apache.jk.server.JkMain.start(JkMain.java:316) : : at : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav : : : : workers2.properties : : : : [shm] : : file=${serverRoot}/logs/shm.file : : size=1048576 : : : : # Example unixsocket channel. : : [channel.un:unixsocket] : : file=/usr/local/tomcat/work/jk2.socket : : : : # define the worker : : [ajp13:unixsocket] : : channel=channel.un:unixsocket : : : : # Uri mapping : : [uri:/examples/*] : : worker=ajp13:unixsocket : : : : jk2.properties
Re: ServletOutputStreamWrapper
Thanks Craig, I'll take a look at that - hope fully it'll help me to move forward. I'm somewhat confused though - surely Tomcat must have subclasses of ServletInputStream and ServletOutputStream? What gets returned when an application call request.getInputStream() or response.getOutputStream? Paul Hunnisett www.lombok.org.uk -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: JK2 unixsocket: Can't create apr
I wonder if a better question is: Is anyone using the ChannelUnix (AF_UNIX socket) connector on any platform? On what platforms is the ChannelUnix (AF_UNIX socket) connector actually known to function? : -Original Message- : From: Robert Williams [mailto:rcw1;pacbell.net] : Sent: Wednesday, November 13, 2002 1:05 PM : To: Tomcat User : Subject: JK2 unixsocket: Can't create apr : : : Hi all, : I am trying to implement the unixsocket on JK2. While the : channelSocket : works fine I was hoping to get the speed benefits of a : unixsocket. I am : using the example setups in the JK2 documentation. And since : it seems to : be looking for the LogFactory I have made sure that : commons-logging-api.jar was in the Tomcat common/lib and I : also put it : in java/jre/lib/ext as well. All to no avail. I am stumped. I haven't : been able to find anything in the list or on google addressing this : problem. Some docs regarding channelSocket say disable apr for this : error but apparently unixsocket won't work without apr : enabled. Any help : would be appreciated. : Thanks Robert : : jakarta-tomcat-4.1.12 : jakarta-tomcat-connectors-4.1.12 : Apache/2.0.43 : Solaris 9 : : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler : SEVERE: Can't create apr : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : at java.lang.Class.forName0(Native Method) : at java.lang.Class.forName(Class.java:130) : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) : at org.apache.jk.server.JkMain.start(JkMain.java:316) : at : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav : : workers2.properties : : [shm] : file=${serverRoot}/logs/shm.file : size=1048576 : : # Example unixsocket channel. : [channel.un:unixsocket] : file=/usr/local/tomcat/work/jk2.socket : : # define the worker : [ajp13:unixsocket] : channel=channel.un:unixsocket : : # Uri mapping : [uri:/examples/*] : worker=ajp13:unixsocket : : jk2.properties : # list of needed handlers. : handler.list=apr,channelUnix,request : : # Location of the socket. : channelUnix.file=${jkHome}/work/jk2.socket : : # Dynamic library : apr.NativeSo=${jkHome}/lib/jkjni.so : : jk2.properties.save : #AUTOMATICALLY GENERATED : #Wed Nov 13 09:38:33 PST 2002 : handler.list=apr,channelUnix,request : secure=false : soTimeout=2 : port=8009 : jkHome=/usr/local/jakarta-tomcat-4.1.12 : maxThreads=75 : backlog=10 : apr.NativeSo=${jkHome}/lib/jkjni.so : timeout=2 : channelUnix.file=${jkHome}/work/jk2.socket : tcpNoDelay=true : : : Build Apache : ./configure --with-mpm=worker --enable-so --enable-layout=Apache : --enable-module=most --enable-mods-shared=most : make : make install : : Build jk2 Conector : cd ${conector.home}/jk/native2 : sh ./buildconf.sh : : cp /usr/java/include/solaris to /usr/java/include/ : : CPPFLAGS=-DBSD_COMP ./configure \ : --with-apxs2=/usr/local/apache2/bin/apxs \ : --with-tomcat41=/usr/local/tomcat \ : --with-java-home=${JAVA_HOME} \ : --with-java-platform=2 \ : --with-jni : : make CPPFLAGS=-DBSD_COMP : : cd ${conector.home}/jk/build/jk2/apache2 : mkdir /usr/local/tomcat/lib/ : cp * /usr/local/tomcat/lib/ : cp mod_jk2.so /usr/local/apache2/modules/ : : installed GNU Tools : autoconf-2.54-sol9-sparc-local.gz : tar-1.13.19-sol9-sparc-local.gz : m4-1.4-sol9-sparc-local : automake-1.7.1-sol9-sparc-local : make-3.80-sol9-sparc-local.gz : libtool-1.4 : : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-user-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:tomcat-user-help;jakarta.apache.org : -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: JK2 unixsocket: Can't create apr
Original post came from Tomcat Users, replying/cross-posting... : -Original Message- : From: Costin Manolache [mailto:cmanolache;yahoo.com] : Sent: Wednesday, November 13, 2002 3:16 PM : To: Tomcat Developers List : Subject: RE: JK2 unixsocket: Can't create apr : : : Very weird. : : Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 : ? Do you have log4j ? Yes -- *I* get this error on 4.1.12/5.0 on Solaris 8, hopefully Robert Williams can provide details about his specfic config: I have: j2sdk1.4.1 commons-logging-1.0.2 jakarta-log4j-1.2.6 Tried this against: jakarta-tomcat-4.1.12 jakarta-tomcat-4.1.12-LE-jdk14 jakarta-tomcat-5 I get the same error -- can't create apr... java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : The problem seems releated to class loading ( as usual :-). Yeah, but how do we work-around it or solve it permanently. I've tried massaging the catalina.sh startup script to include commons-logging.jar in CLASSPATH that gets passed to the JVM at startup. I've put commons-logging.jar in $CATALINA_HOME/server/lib even though commons-logging-api.jar exists there. I see in the -LE-jdk14 that there's a log4j.rename-to-jar. What's the confidence level that this will resolve this problem? Is this a problem on other platforms? Is this NOT a problem on Linux? : Costin : : : Brzezinski, Paul J wrote: : : I wonder if a better question is: : : Is anyone using the ChannelUnix (AF_UNIX socket) connector on any : platform? : : On what platforms is the ChannelUnix (AF_UNIX socket) connector : actually known to function? : : : : : -Original Message- : : From: Robert Williams [mailto:rcw1;pacbell.net] : : Sent: Wednesday, November 13, 2002 1:05 PM : : To: Tomcat User : : Subject: JK2 unixsocket: Can't create apr : : : : : : Hi all, : : I am trying to implement the unixsocket on JK2. While the : : channelSocket : : works fine I was hoping to get the speed benefits of a : : unixsocket. I am : : using the example setups in the JK2 documentation. And since : : it seems to : : be looking for the LogFactory I have made sure that : : commons-logging-api.jar was in the Tomcat common/lib and I : : also put it : : in java/jre/lib/ext as well. All to no avail. I am : stumped. I haven't : : been able to find anything in the list or on google : addressing this : : problem. Some docs regarding channelSocket say disable : apr for this : : error but apparently unixsocket won't work without apr : : enabled. Any help : : would be appreciated. : : Thanks Robert : : : : jakarta-tomcat-4.1.12 : : jakarta-tomcat-connectors-4.1.12 : : Apache/2.0.43 : : Solaris 9 : : : : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler : : SEVERE: Can't create apr : : java.lang.NoClassDefFoundError: : org/apache/commons/logging/LogFactory : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : : at java.lang.Class.forName0(Native Method) : : at java.lang.Class.forName(Class.java:130) : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) : : at org.apache.jk.server.JkMain.start(JkMain.java:316) : : at : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav : : : : workers2.properties : : : : [shm] : : file=${serverRoot}/logs/shm.file : : size=1048576 : : : : # Example unixsocket channel. : : [channel.un:unixsocket] : : file=/usr/local/tomcat/work/jk2.socket : : : : # define the worker : : [ajp13:unixsocket] : : channel=channel.un:unixsocket : : : : # Uri mapping : : [uri:/examples/*] : : worker=ajp13:unixsocket : : : : jk2.properties : : # list of needed handlers. : : handler.list=apr,channelUnix,request : : : : # Location of the socket. : : channelUnix.file=${jkHome}/work/jk2.socket : : : : # Dynamic library : : apr.NativeSo=${jkHome}/lib/jkjni.so : : : : jk2.properties.save : : #AUTOMATICALLY GENERATED : : #Wed Nov 13 09:38:33 PST 2002 : : handler.list=apr,channelUnix,request : : secure=false : : soTimeout=2 : : port=8009 : : jkHome=/usr/local/jakarta-tomcat-4.1.12 : : maxThreads=75 : : backlog=10 : : apr.NativeSo=${jkHome}/lib/jkjni.so : : timeout=2 : : channelUnix.file=${jkHome}/work/jk2.socket : : tcpNoDelay=true : : : : : : Build Apache : : ./configure --with-mpm=worker --enable-so --enable-layout=Apache : : --enable-module=most --enable-mods-shared=most : : make : : make install : : : : Build jk2 Conector : : cd ${conector.home}/jk/native2 : : sh ./buildconf.sh : : : : cp /usr/java/include/solaris to /usr/java/include/ : : : : CPPFLAGS=-DBSD_COMP ./configure \ : : --with-apxs2=/usr/local/apache2/bin/apxs \ : : --with-tomcat41=/usr/local/tomcat \ : : --with-java-home=${JAVA_HOME} \ : : --with-java-platform=2 \ : : --with-jni : : : : make CPPFLAGS=-DBSD_COMP
RE: JK2 unixsocket: Can't create apr
: -Original Message- : From: Costin Manolache [mailto:cmanolache;yahoo.com] : Sent: Wednesday, November 13, 2002 3:16 PM : To: Tomcat Developers List : Subject: RE: JK2 unixsocket: Can't create apr : : : Very weird. : : Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 : ? Do you have log4j ? Do I need a .properties file or .xml file log4j or Apr? With log4j in $CATALINA_HOME/server/lib: This is the $CATALINA_HOME/logs/catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory .java:153) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:281) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400) at org.apache.commons.digester.Digester.init(Digester.java:345) at org.apache.catalina.startup.Catalina.createStartDigester(Unknown Sour ce) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) ... 5 more : The problem seems releated to class loading ( as usual :-). : : Costin : : : Brzezinski, Paul J wrote: : : I wonder if a better question is: : : Is anyone using the ChannelUnix (AF_UNIX socket) connector on any : platform? : : On what platforms is the ChannelUnix (AF_UNIX socket) connector : actually known to function? : : : : : -Original Message- : : From: Robert Williams [mailto:rcw1;pacbell.net] : : Sent: Wednesday, November 13, 2002 1:05 PM : : To: Tomcat User : : Subject: JK2 unixsocket: Can't create apr : : : : : : Hi all, : : I am trying to implement the unixsocket on JK2. While the : : channelSocket : : works fine I was hoping to get the speed benefits of a : : unixsocket. I am : : using the example setups in the JK2 documentation. And since : : it seems to : : be looking for the LogFactory I have made sure that : : commons-logging-api.jar was in the Tomcat common/lib and I : : also put it : : in java/jre/lib/ext as well. All to no avail. I am : stumped. I haven't : : been able to find anything in the list or on google : addressing this : : problem. Some docs regarding channelSocket say disable : apr for this : : error but apparently unixsocket won't work without apr : : enabled. Any help : : would be appreciated. : : Thanks Robert : : : : jakarta-tomcat-4.1.12 : : jakarta-tomcat-connectors-4.1.12 : : Apache/2.0.43 : : Solaris 9 : : : : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler : : SEVERE: Can't create apr : : java.lang.NoClassDefFoundError: : org/apache/commons/logging/LogFactory : : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) : : at java.lang.Class.forName0(Native Method) : : at java.lang.Class.forName(Class.java:130) : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494) : : at org.apache.jk.server.JkMain.start(JkMain.java:316) : : at : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav : : : : workers2.properties : : : : [shm] : : file=${serverRoot}/logs/shm.file : : size=1048576 : : : : # Example unixsocket channel. : : [channel.un:unixsocket] : : file=/usr/local/tomcat/work/jk2.socket : : : : # define the worker : : [ajp13:unixsocket] : : channel=channel.un:unixsocket : : : : # Uri mapping : : [uri:/examples/*] : : worker=ajp13:unixsocket : : : : jk2.properties : : # list of needed handlers. : : handler.list=apr,channelUnix,request : : : : # Location of the socket. : : channelUnix.file=${jkHome}/work/jk2.socket : : : : # Dynamic library : : apr.NativeSo=${jkHome}/lib/jkjni.so : : : : jk2.properties.save : : #AUTOMATICALLY GENERATED : : #Wed Nov 13 09:38:33 PST 2002 : : handler.list=apr,channelUnix,request : : secure=false : : soTimeout=2 : : port=8009 : : jkHome=/usr/local/jakarta-tomcat-4.1.12 : : maxThreads=75 : : backlog=10 : : apr.NativeSo=${jkHome}/lib/jkjni.so : : timeout=2 : : channelUnix.file=${jkHome}/work/jk2.socket : : tcpNoDelay=true : : : : : : Build Apache : : ./configure --with-mpm=worker --enable-so --enable-layout=Apache : : --enable-module=most --enable-mods-shared=most : : make : : make install : : : : Build jk2 Conector : : cd ${conector.home}/jk/native2 : : sh ./buildconf.sh : : : : cp
Re: ServletOutputStreamWrapper
Actually, a good example of a ServletInputStream subclass with a read() implementation would be helpful too. I am trying to find al lthese examples in the source, but am haviong limited success tracking down the appropriate classes On Tue, 2002-11-12 at 10:13, Paul Hunnisett wrote: The main reason I was looking at this class in the first place was to try to find a good way of overriding the write(int) method of OutputStream in a server context. Is there another class which extends ServletOutputStream and would give me a more real world example? On Tue, 2002-11-12 at 00:03, Dan Sandberg wrote: Hi Paul. That class is specific to the server-side include code, so the server doesn't need to know anything about the writeTo method. Basically, the ServletOutputStreamWrapper is used so that we can capture the result of Tomcat processing a page, so that we may include the contents of one page within another. o.a.c.servlets.SsiInvokerServlet calls the writeTo method. If you have any questions after looking at the source-code, let us know. Is anyone familiar with this class? Yup. -Dan Paul Hunnisett wrote: I have been examining the source code for org.apache.catalina.util.ssi.ServletOutputStreamWrapper and I discovered a writeTo() method that writes the current buffer to the OutputStream. What I can't quite see is how this method would be called. It is not part of the servlet spec, so the web application won't be calling it. So I assume that the server calls it, but how does the server know when to write the buffer out? Any information would be appreciated. Paul Hunnisett -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Tomcat I/O
I assume that somewhere in Tomcat are some classes that extend ServletOutputStream and ServletInputStream? I've been looking through the source trying to find them but I'm afraid I can't see what they are. Is anyone able to shed any light on this for me? Paul Hunnisett www.lombok.org.uk -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: ServletOutputStreamWrapper
Thanks Dan, I'll try that. Basically what I'm trying to do is to write my own subclasses of ServletOutputStream and ServletInputStream and I need a little bit of inspiration - especially with the write(int) and read() methods that I have to override. On Tue, 2002-11-12 at 19:06, Dan Sandberg wrote: Paul, it would be a lot easier to help if I knew what you were trying to do specifically. If you want to find a class that extends another, why not just search the source-code textually? On my unix system, I just do: findj extends ServletOutputStream where findj is an alias: alias findj='find . -name *.java -not -path */autogenerated/* | xargs grep' which returns: ./util/ssi/ServletOutputStreamWrapper.java:extends ServletOutputStream { ./connector/ResponseStream.java:extends ServletOutputStream { -Dan Paul Hunnisett wrote: Actually, a good example of a ServletInputStream subclass with a read() implementation would be helpful too. I am trying to find al lthese examples in the source, but am haviong limited success tracking down the appropriate classes On Tue, 2002-11-12 at 10:13, Paul Hunnisett wrote: The main reason I was looking at this class in the first place was to try to find a good way of overriding the write(int) method of OutputStream in a server context. Is there another class which extends ServletOutputStream and would give me a more real world example? On Tue, 2002-11-12 at 00:03, Dan Sandberg wrote: Hi Paul. That class is specific to the server-side include code, so the server doesn't need to know anything about the writeTo method. Basically, the ServletOutputStreamWrapper is used so that we can capture the result of Tomcat processing a page, so that we may include the contents of one page within another. o.a.c.servlets.SsiInvokerServlet calls the writeTo method. If you have any questions after looking at the source-code, let us know. Is anyone familiar with this class? Yup. -Dan Paul Hunnisett wrote: I have been examining the source code for org.apache.catalina.util.ssi.ServletOutputStreamWrapper and I discovered a writeTo() method that writes the current buffer to the OutputStream. What I can't quite see is how this method would be called. It is not part of the servlet spec, so the web application won't be calling it. So I assume that the server calls it, but how does the server know when to write the buffer out? Any information would be appreciated. Paul Hunnisett -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: ServletOutputStreamWrapper
Is anyone familiar with this class? On Mon, 2002-11-11 at 11:14, Paul Hunnisett wrote: I have been examining the source code for org.apache.catalina.util.ssi.ServletOutputStreamWrapper and I discovered a writeTo() method that writes the current buffer to the OutputStream. What I can't quite see is how this method would be called. It is not part of the servlet spec, so the web application won't be calling it. So I assume that the server calls it, but how does the server know when to write the buffer out? Any information would be appreciated. Paul Hunnisett -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_socket.c
What about doing something like this: #ifdef SOLARIS2 == 8 #define BSD_COMP #endif The problem is that the BSD_COMP flag is only needed for ONE of the native source files for each connector type (JK, JK2). I don't know, haven't investigated if turning this on activates any other conditional includes which may change the behavior of the connectors... Paul : -Original Message- : From: jean-frederic clere : [mailto:jfrederic.clere;fujitsu-siemens.com] : Sent: Thursday, November 07, 2002 10:51 AM : To: Tomcat Developers List : Subject: Re: cvs commit: : jakarta-tomcat-connectors/jk/native2/common jk_channel_socket.c : : : Mladen Turk wrote: : Personally don't like hardcoded defines. : Could that be guessed or forced in makefiles? : : It must be guessed in the configure... : : : : : +/* affects include files on Solaris (for FIONBIO on : Solaris 8) */ : +#define BSD_COMP : : : MT. : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: : mailto:tomcat-dev-help;jakarta.apache.org : : : : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:tomcat-dev-help;jakarta.apache.org : -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: [JK2] RedHat 8.0 JNI totaly bogus
*PLEASE* Post your results!!! -- mailto:Paul.Brzezinski;EDS.com Enterprise Distributed Capabilities EDS Corporation 248-265-8283 : -Original Message- : From: Mladen Turk [mailto:mturk;mappingsoft.com] : Sent: Wednesday, October 23, 2002 2:01 PM : To: 'Tomcat Developers List' : Subject: RE: [JK2] RedHat 8.0 JNI totaly bogus : : : : : From: Costin Manolache : : Using JNI on RH8 using either original 2.0.40, Henri's : 2.0.43-1.7.2 or : build from sources (either prefork or worker). Even tried : 2.0.1 rpm, : but on all config when trying to use the [vm:] I'm having constant : child_init, with cpu at 99%. ErrorLog is growing and seems : that entire : thing faults at vm_init (vm_default at 445 is the last : thing logged). : Nothing is passed after the loading of jvm, like the : child process : exits, but pool cleanup doesn't report that. After : stopping httpd, a : few childs are reported as 'still : did not exit'. : : I've put some extra ap_logs and the child pids are growing : even when : set StartServers to 1. The Java is 1.4.0_01 : : I think they just released 1.4.1 - and I remember reading in : the release notes about a jni fix that seems related. : : I had few other problems with 1.4.0 and jni - for example I : wasn't able to load the libjk.so ( java loading the C lib, : not the reverse ). It did work after I removed the 'endorsed' : libs flags - I have no ideea why. : : Right now 1.3 is much more stable for JNI stuff ( IMO ) - I : hope 1.4.1 will solve those problems. : : : Will try both. : : MT. : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:tomcat-dev-help;jakarta.apache.org : -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
[5]: ant native for Connectors fails:
Trying to build Jakarta Tomcat Connectors from 5.0.0 source: In jakarta-tomcat-connectors/jk Ant native complains about cc not being found, on Solaris 8, I have gcc in /em/opt/bin/gcc. I have no idea how to tell ant that it should use gcc or /em/opt/bin/gcc instead of cc, and no idea how to configure the args to libtool that it should gcc instead of cc. I'd like to figure this out, but need assistance. Assuming this isn't a known bug, is this something that should be reported as a bug using bugzilla? Paul -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Possible mod_jk patch with ap_get_server_name
Hi, I am a new subscriber and have a potential patch to mod_jk. It uses the apache api to get the s-servername value. This has a benefit in that is pays attention to the UseCanonicalName setting within apache. So if a site has lots of ServerAlias entries only 1 entry in server.xml is needed if UseCanonicalName is on for that VirtualHost. The patch was against the jakarta-tomcat-connectors-4.1.12 source I downloaded and I have tested it with Apache/1.3.26 and Tomcat 3.2.3 in a virtual hosted situation with some vhosts enabled via UseCanonicalName and some not. Comments welcome, it seems to work fine. --- mod_jk.c.orig Thu Oct 17 18:06:21 2002 +++ mod_jk.cThu Oct 17 18:07:06 2002 -466,7 +466,7 s-remote_host = NULL_FOR_EMPTY(s-remote_host); s-remote_addr = NULL_FOR_EMPTY(r-connection-remote_ip); -s-server_name = (char *)(r-hostname ? r-hostname : r-server- server_hostname); +s-server_name = ap_get_server_name(r); s-server_port = htons( r-connection-local_addr.sin_port ); s-server_software = (char *)ap_get_server_version(); -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Vote results + Security Audit redirection
[reposting from my subscribed account] For what it's worth, I'm not disagreeing that there needs to be another list. Clearly, really serious security issues should at least be delayed from being made public. However, I think there needs to be a bit more paranoia about how this list manifests itself. Any behind closed doors discussions have the potential for alienating the non-committer community. Determining what conversations are appropriate for this other list is a very slippery slope. It's already been proposed that votes for new committers be discussed there first. What's next? And if the other list starts being used for determining what should be discussed on the other list, it's all over. Sort of like the U.S. congress being in charge of their own pay raises. As a non-committer but long-time subscriber to this list, my opinion is that _all_ messages on the other list must absolutely show up here eventually, at some delay. Otherwise, there is no longer any transparency. (This is also the biggest reason it's better than CCed e-mails; because the messages will always be public at some point.) Anyway, just my non-binding $0.02, -Paul Ignacio J. Ortega wrote: From: Paul Speed [mailto:pspeed;progeeks.com] Sent: Thursday, October 17, 2002 4:15 PM The nice thing about your current way of dicussing security issues (CC e-mail threads) is that it's a real pain in the butt. In other words, likely only to be used in the cases of necessity. Not really, CC'ed threads are easy to manage simply reply to all and things goes smoothly, the problem the new mail list tries to solve, is much more simple, Are those how can fix and are interested in the problem, informed quickly? are those interested not forgotten in some part of the eamil theread? are part of the thread more private than intended only because some people unadvertely forgotten some other fellow email in the CC?.. all of that can be alleviated if not solved simply by using a closed maillist.. Fixes are ever public, and CVs comments are more than sufficient to see the problem and the fix being done.. so the open end of all threads in the new list is guaranteed now.. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Vote results + Security Audit redirection
[reposting from my subscribed account] For what it's worth, I'm not disagreeing that there needs to be another list. Clearly, really serious security issues should at least be delayed from being made public. However, I think there needs to be a bit more paranoia about how this list manifests itself. Any behind closed doors discussions have the potential for alienating the non-committer community. Determining what conversations are appropriate for this other list is a very slippery slope. It's already been proposed that votes for new committers be discussed there first. What's next? And if the other list starts being used for determining what should be discussed on the other list, it's all over. Sort of like the U.S. congress being in charge of their own pay raises. As a non-committer but long-time subscriber to this list, my opinion is that _all_ messages on the other list must absolutely show up here eventually, at some delay. Otherwise, there is no longer any transparency. (This is also the biggest reason it's better than CCed e-mails; because the messages will always be public at some point.) Anyway, just my non-binding $0.02, -Paul Ignacio J. Ortega wrote: From: Paul Speed [mailto:pspeed;progeeks.com] Sent: Thursday, October 17, 2002 4:15 PM The nice thing about your current way of dicussing security issues (CC e-mail threads) is that it's a real pain in the butt. In other words, likely only to be used in the cases of necessity. Not really, CC'ed threads are easy to manage simply reply to all and things goes smoothly, the problem the new mail list tries to solve, is much more simple, Are those how can fix and are interested in the problem, informed quickly? are those interested not forgotten in some part of the eamil theread? are part of the thread more private than intended only because some people unadvertely forgotten some other fellow email in the CC?.. all of that can be alleviated if not solved simply by using a closed maillist.. Fixes are ever public, and CVs comments are more than sufficient to see the problem and the fix being done.. so the open end of all threads in the new list is guaranteed now.. Saludos, Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Vote results + Security Audit redirection
Sorry about the double post. It looked like the other one went out with the original non-subscriber address. -Paul Paul Speed wrote: [reposting from my subscribed account] [snip] -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Vote results + Security Audit redirection
Costin Manolache wrote: Paul Speed wrote: Any behind closed doors discussions have the potential for alienating the non-committer community. Determining what conversations are appropriate for this other list is a very slippery slope. It's :-) Yes, I think I know what you mean. Trust me, you're not the only one who things that, and 'closed doors' is the last thing I want. I see it more like an 'open doors' situation ( private Cc: - a larger group ). Phew. I feel better already. Seriously. already been proposed that votes for new committers be discussed there first. What's next? And if the other list starts being used for No, I just sugested that it would be nice to avoid some of the incidents that happened in the past. I admit - in most cases I do send a private mail to the person and few private mails to some other commiters to ask their opinions. Jumping directly and making the proposal is not the best strategy IMO, and at least I never did that without at least a second opinion. So the only thing that will change is having this 'do you think it's a good idea' sent to everyone. And avoid 'no, I don't think so because ...' in the public list. Yeah, I see where you're coming from, but some of that should end up public. Fine line. For example, let me paint a (hopefully) brief picture. I'm probably one of your more avid non-committers: I still read (and to some extent participate) even though I haven't used tomcat professionally in over two years. I've been on the list for maybe three years... lost count. During a period of unemployment a year ago, my itch was to bring the SSI stuff up to spec and so I mostly rewrote the SSI servlet and associated classes. These were accepted and committed to head. All was well and even kept up on recommending people stay away from the older version when issues would crop up in bugzilla. Eventually I got a job and spent a few months off the list. During that time someone else also found the old SSI code lacking and rewrote it again without ever noticing that there was alreay a newer better version. Unfortunately, the committers didn't notice either and all of my work was blown away. Sad, but such is life sometimes. Anyway, long story short, this person was made committer shorlty after that, persumably just to maintain the SSI code. There was some controversy on this list at the time about whether or not this was appropriate since there hadn't been many other contributions from said person. If I hadn't witnessed this conversation, it really would have added insult to injury when they were made committer. Instead, it was no big deal at all other than a little disappointment. So, that's probably why your earlier committer vote proposal comment grabbed my interest in this thread. Ok, so not brief. Oh well, -Paul As a non-committer but long-time subscriber to this list, my opinion is that _all_ messages on the other list must absolutely show up here eventually, at some delay. Otherwise, there is no longer any transparency. (This is also the biggest reason it's better than CCed e-mails; because the messages will always be public at some point.) I agree for most part. And I think that an all-commiter list is better than Cc: chains with few people, it's more inclusive and better for everyone. Regarding all-messages to the list - I agree, all information should get to tomcat-dev, ( unless whoever posts it wants to keep it private ). One of the reasons Cc: is used is because some people don't want certain issues to become public ( for example me asking Remy really dumb questions on JNDI :-). I think it would be better if most of the Cc: will go to the commiters list, and most of the commiters list will go to tomcat-dev. Both are improvements over current situation IMO. And besides - if someone really wants to be on the commiters list, there is a way to do it, and we are all happy to get more people involved ( and on the list ) :-) Costin -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Possible mod_jk patch with ap_get_server_name
* Mladen Turk ([EMAIL PROTECTED]) wrote : Hi, Beter use the following: s-server_name = ap_get_server_name(r); s-server_port = ap_get_server_port(r); Ack, if only I had read that a few days ago! ;-) Paul -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
RE: [5] ClassLoader hell. Again.
Is this the cause of the error? I see that org/apache/commons/logging/LogFactory is used in a couple places, but in my case it consistently throws the exception in AprImpl.class. Details for my config, if they're relevant: OS: Solaris 8 UltraSPARC Java: J2SDK1.4.1 Jakarta-Tomcat: 5.0.0 Apache: 2.0.40 jniModeSo: inprocess Catalina.out contents: Oct 18, 2002 1:43:36 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 18, 2002 1:43:36 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 18, 2002 1:43:37 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 18, 2002 1:43:38 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Oct 18, 2002 1:43:38 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8082 Starting service Tomcat-Standalone Apache Tomcat/5.0 Oct 18, 2002 1:43:40 PM org.apache.catalina.startup.ContextConfig authenticatorConfig INFO: Configured an authenticator for method BASIC Oct 18, 2002 1:43:42 PM org.apache.catalina.startup.ContextConfig tldScan INFO: Processed tld jar /WEB-INF/lib/struts.jar 457 Oct 18, 2002 1:43:42 PM org.apache.catalina.startup.ContextConfig authenticatorConfig INFO: Configured an authenticator for method FORM Oct 18, 2002 1:43:49 PM org.apache.catalina.startup.ContextConfig authenticatorConfig INFO: Configured an authenticator for method FORM Oct 18, 2002 1:43:50 PM org.apache.catalina.startup.ContextConfig authenticatorConfig INFO: Configured an authenticator for method FORM Oct 18, 2002 1:43:50 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 18, 2002 1:43:50 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:514) at org.apache.jk.server.JkMain.start(JkMain.java:336) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:164) at org.apache.coyote.tomcat5.CoyoteConnector.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) [Snip] -- mailto:Paul.Brzezinski;EDS.com Enterprise Distributed Capabilities EDS Corporation 248-265-8283 : -Original Message- : From: Costin Manolache [mailto:cmanolache;yahoo.com] : Sent: Wednesday, October 16, 2002 11:21 PM : To: [EMAIL PROTECTED] : Subject: Re: [5] ClassLoader hell. Again. : : : Answering my own mail, it seems Log is loaded twice, once : during init ( and it may be related with my setup, as I have : few log uses in the startup code ), and then it is loaded : again from the webapp loader, but this time it's a different : instance ( due to reverse order ). And somehow the check for : assignment happens with the original Log instance. : : If this is correct - we can either make commons-logging(-api) a : special case, or make sure it is not used in any code from : the common loader ( the use from the container loader should : be ok ). : : I love ClassLoaders :-) : : Costin : : : Costin Manolache wrote: : : This time I have problems with commons-logging. It seems : : org.apache.commons.logging.LogConfigurationException: Class : org.apache.commons.logging.impl.Log4JCategoryLog does not : implement Log : at : : org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct : or(LogFactoryImpl.java:435) : : It seems Log is loaded by the common loader, : Log4JCategoryLog by the : webapp loader. And they don't match. : : Same thing works fine in 4.1.12. : : I can fix this by moving commons-logging and log4j at top : level, but : that's just a workaround. : : Remy - any idea of what changed ? : : Costin : : -- : Costin : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:tomcat-dev-help;jakarta.apache.org : -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands,
RE: [5]: ant native for Connectors fails: (more)
Excellent, that fixed the problem of ant spawning libtool w/cc. There are two other issues that popped up now: 1. in the file jk_channel_socket.c in directory jakarta-tomcat-5.0.0-src/jakarta-tomcat-connectors/jk/native2/common must be compiled with -DBSD_COMP on Solaris 8. 2. when building the native (as opposed to the native2) connectors, jni_md.h isn't found presumably because the -I${java.home}/../include/solaris isn't set in build.xml. I did try to search bugzilla to see if these two issues are already being tracked, but didn't find anything, which could just be about me not knowing how to search the bug database... Comments, advice, feedback encouraged... Paul -- mailto:Paul.Brzezinski;EDS.com Enterprise Distributed Capabilities EDS Corporation 248-265-8283 : -Original Message- : From: Henri Gomez [mailto:hgomez;apache.org] : Sent: Friday, October 18, 2002 4:16 AM : To: Tomcat Developers List : Subject: Re: [5]: ant native for Connectors fails: : : : Brzezinski, Paul J wrote: : Trying to build Jakarta Tomcat Connectors from 5.0.0 source: : : In jakarta-tomcat-connectors/jk : : Ant native complains about cc not being found, on Solaris 8, I have : gcc in /em/opt/bin/gcc. I have no idea how to tell ant : that it should : use gcc or /em/opt/bin/gcc instead of cc, and no idea how : to configure : the args to libtool that it should gcc instead of cc. : : I'd like to figure this out, but need assistance. : : Assuming this isn't a known bug, is this something that should be : reported as a bug using bugzilla? : : You could put /em/opt/bin/ in PATH before compiling ? : : export PATH=/em/opt/bin:$PATH : : Or set the ant project property : : : buid.native.cc=/em/opt/bin/gcc : : : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:tomcat-dev-help;jakarta.apache.org : -- To unsubscribe, e-mail: mailto:tomcat-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org
Re: Vote results + Security Audit redirection
Costin Manolache wrote: IAS wrote: I got a little bit curious about why finding bugs relevant to security and fixing them should be not open. I don't doubt that there are both merit and demerit of discussing those critical issues with full disclosure. Absolutely there may be some peril that some (bad) people can misuse the opened information purely exposed to help tomcat community to collaborate against security problems. Regardless of such understanding, I feel sorry about loss of the potential that more openness can give more people chances to figure out the shared troubles and remind them of importance of security at an early stage. The problem is when the bad people find out about the security problems before they are fixed. I'm not saying that anyone subscribe to tomcat-dev is 'bad', but the list is archived and google searchable and has a lot of subscribers. All information will become public - it's just that I think it is better ( at least for the bugs we discover ) to first have a fix. You probably noticed most of the announcements on security issues from apache and many other organizations include a fix or at least workaround. It is a common practice to have the security issues forwarded first to some commiters, and then made public. And I think this should be true not only for bugs found from outside, but also from inside. There was also some comment about other special issues, which has not been clear to me yet. It's not clear to me either :-) Maybe short notices like I want to propose X as a commiter, does anyone has any objection ? - to avoid some of the unpleasant things we had in the past. That's the only example I can think of. Except, this is exactly the kind of thing I think should stay on this list. A slippery slope indeed. Maybe all tomcat-dev traffic should be vetted through this other list first and posted here at a 1 to 2 week delay, just in case something is mentioned that might turn out with analysis to be a security risk. The more security through obscurity the better, right? ;) The nice thing about your current way of dicussing security issues (CC e-mail threads) is that it's a real pain in the butt. In other words, likely only to be used in the cases of necessity. I think the only way you can keep the new list from feeling like a double secret exclusive club is to forward _all_ traffic at some delay and keep that traffic to a minimum. Otherwise, it's going to start feeling an awful lot like some of you felt when working for Sun were having extended offline discussions that eventually just popped up here as a pre-resolved proposal/issue. Wish I could site a specific case, but it was a while ago. It will be as frustrating as waiting for a JSR public draft. Sorry, I didn't mean to go on so long originally. There's just something about all this that worries me a bit. Perhaps because noone else seems particularly concerned. Oh well, what do I know. -Paul Basically, I hope every discussion among Apache Jakarta Project developers would be as open and transparent as possible. Same for me. My main goal was to get all active commiters involved in future security issues. We are all equally responsible. Costin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 5.0: primary development platform
What's the primary platform used for development of Tomcat 5.0 (or 4.1.x)? Having some issues getting things like the Channel Unix socket to work on Solaris and want to get involved if this is something that isn't being looked at because it's not an available platform to develop/test on. Comments, suggestions welcome, anyone? Paul -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 Paul J. Brzezinski ([EMAIL PROTECTED]).vcf Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[5.0]: build issues on Solaris 8?
I've built 5.0 on Solaris 8 (SPARC). I have installed Java 2 SDK 1.4.1, Apache 2.0.40 (64-bit SPARC binary built using gcc-3.1). Getting an error with the following jk2.properties file: shm.file=${jkHome}/work/jk2.shm handler.list=apr,request,channelUnix channelJni.disabled = 0 apr.jniModeSo=inprocess channelUnix.file=${jkHome}/work/jk2.socket Oct 15, 2002 3:32:49 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 15, 2002 3:32:49 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 15, 2002 3:32:50 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 15, 2002 3:32:52 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/5.0 Oct 15, 2002 3:32:54 PM org.apache.catalina.startup.ContextConfig authenticatorC onfig INFO: Configured an authenticator for method BASIC Oct 15, 2002 3:32:55 PM org.apache.catalina.startup.ContextConfig tldScan INFO: Processed tld /WEB-INF/struts-logic.tld 217 Oct 15, 2002 3:32:56 PM org.apache.catalina.startup.ContextConfig tldScan INFO: Processed tld jar /WEB-INF/lib/struts.jar 413 Oct 15, 2002 3:32:56 PM org.apache.catalina.startup.ContextConfig authenticatorC onfig INFO: Configured an authenticator for method FORM Oct 15, 2002 3:33:03 PM org.apache.catalina.startup.ContextConfig authenticatorC onfig INFO: Configured an authenticator for method FORM Oct 15, 2002 3:33:04 PM org.apache.catalina.startup.ContextConfig authenticatorC onfig INFO: Configured an authenticator for method FORM Oct 15, 2002 3:33:04 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 15, 2002 3:33:04 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:514) at org.apache.jk.server.JkMain.start(JkMain.java:336) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:164) at org.apache.coyote.tomcat5.CoyoteConnector.start(Unknown Source) at org.apache.catalina.core.StandardService.start(Unknown Source) at org.apache.catalina.core.StandardServer.start(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) This is similar to the error that I receive using Tomcat-4.1.12. Does the apr stuff just *NOT* work on Solaris 8? -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
List Archive: Follow-up - jk2 jni doesn't work
Jean-Frederic, Bill, Mladen Turk, List, I found this in the archive -- was this resolved? The code snippet OPT=-Djava.class.path=${TOMCAT_HOME}\bin\tomcat-jni.jar;${TOMCAT_HOME}\serve r\lib\commons-logging.jar What file did this get added to? I'm having *THIS* exact problem -- and haven't been able to resolve it, I've built the connectors and jakarta-tomcat-4.1.12 from src with no errors/problems but can't get the APR to init because of the java.lang.NoClassDefFoundError in AprImpl.java. I would like to get this working -- work-around is what I'm looking for, please help. Paul From the archive: Re: [BUG] jk2 jni doesn't work From: jean-frederic clere Subject: Re: [BUG] jk2 jni doesn't work Date: Wed, 18 Sep 2002 23:41:39 -0700 Mladen Turk wrote: This is the classloader problem. Think that Bill Baker is solving this, but until then add the commons-logging.jar to the loaded classes when started inprocess: OPT=-Djava.class.path=${TOMCAT_HOME}\bin\tomcat-jni.jar;${TOMCAT_HOME}\s erver\lib\commons-logging.jar I do not like this work-around: we will have end with a huge classpath. Adding commons-logging to the classpath solves the JNI problem. Bill, when can ve expect this will get solved? java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:348) java.lang.NoClassDefFoundError MT. -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 Paul J. Brzezinski ([EMAIL PROTECTED]).vcf Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: List Archive: Follow-up - jk2 jni doesn't work
List, MT - Added the extra OPT stuff to workers2.properties and apache 2.0 starts up OK. Still having errors though when I start Tomcat: Oct 10, 2002 2:52:54 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 10, 2002 2:52:54 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 10, 2002 2:52:57 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 10, 2002 2:53:03 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12-LE-jdk14 Oct 10, 2002 2:53:30 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 10, 2002 2:53:30 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) . . . . Any ideas? -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 : -Original Message- : From: Mladen Turk [mailto:[EMAIL PROTECTED]] : Sent: Thursday, October 10, 2002 1:42 PM : To: 'Tomcat Developers List' : Subject: RE: List Archive: Follow-up - jk2 jni doesn't work : : : : : -Original Message- : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] : Sent: Thursday, October 10, 2002 6:25 PM : To: [EMAIL PROTECTED] : Subject: List Archive: Follow-up - jk2 jni doesn't work : : : Jean-Frederic, Bill, Mladen Turk, List, : : I found this in the archive -- was this resolved? The code snippet : : : Think not. : : OPT=-Djava.class.path=${TOMCAT_HOME}\bin\tomcat-jni.jar;${TOMC : AT_HOME}\serve : r\lib\commons-logging.jar : : What file did this get added to? : : workers2.properties : : I'm having *THIS* exact : problem -- and haven't been able to resolve it, I've built : the connectors and jakarta-tomcat-4.1.12 from src with no : errors/problems but can't get the APR to init because of the : java.lang.NoClassDefFoundError in AprImpl.java. : : I would like to get this working -- work-around is what I'm : looking for, please help. : : : You will also need the : handler.list=apr,request,container,channelJni : apr.jniModeSo=inprocess : : In the jk2.properties. : : Paul : : From the archive: : : Re: [BUG] jk2 jni doesn't work : : -- : -- : : : From: jean-frederic clere : Subject: Re: [BUG] jk2 jni doesn't work : Date: Wed, 18 Sep 2002 23:41:39 -0700 : : -- : -- : : : Mladen Turk wrote: : This is the classloader problem. : : Think that Bill Baker is solving this, but until then add the : commons-logging.jar to the loaded classes when started inprocess: : : : : OPT=-Djava.class.path=${TOMCAT_HOME}\bin\tomcat-jni.jar;${TOMCAT_HOME} : \s : erver\lib\commons-logging.jar : : I do not like this work-around: we will have end with a huge : classpath. : : : Adding commons-logging to the classpath solves the JNI problem. : : Bill, when can ve expect this will get solved? : : : : : java.lang.NoClassDefFoundError: : org/apache/commons/logging/LogFactory :at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:348) : java.lang.NoClassDefFoundError : : : : : MT. : : : : : : -- : mailto:[EMAIL PROTECTED] : Enterprise Distributed Capabilities : EDS Corporation : 248-265-8283 : : : : : : -- : To unsubscribe, e-mail: : mailto:tomcat-dev-: [EMAIL PROTECTED] : For : additional commands, : e-mail: mailto:[EMAIL PROTECTED] : -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JK2+Apache2: LogFactory java Error: NoClassDefFoundError
Getting an error message when I start Tomcat 4.1.12 on Solaris 8 SPARC: 15750 [main] ERROR server.JkMain - Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) I'm using the Apache Tomcat/4.1.12-LE-jdk14. FYI: CLASSPATH set to: /server/lib/commons-logging.jar:/em/opt/j2sdk1.4.0_02/lib/tools.jar:.:/em/op t/j2sdk1.4.0_02/lib/jta.jar:/em/opt/jaf-1.0.2/activation.jar:/em/opt/javamai l-1.3/mail.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar Anyone else run into this? Know how to solve it? Is it a CLASSPATH env var problem? -- mailto:[EMAIL PROTECTED] Enterprise Distributed Capabilities EDS Corporation 248-265-8283 Paul J. Brzezinski ([EMAIL PROTECTED]).vcf Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
+ return java.net.URLEncoder.encode(\\ + + v + ); I know I'm being pedantic, but it's a small pet peeve of mine. :) How about: return java.net.URLEncoder.encode( String.valueOf(v) ); Should do the same thing without all the behind-the-scenes StringBuffer stuff. -Paul Speed [EMAIL PROTECTED] wrote: remm2002/09/05 04:27:20 Modified:jasper2/src/share/org/apache/jasper/compiler Generator.java Log: - Force the convesion of the value to a string. - Note: I am not convinced this is a compliance issue (and it looks like bad design to pass an object or null); this just reverts back the old behavior. Revision ChangesPath 1.90 +4 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java Index: Generator.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v retrieving revision 1.89 retrieving revision 1.90 diff -u -r1.89 -r1.90 --- Generator.java4 Sep 2002 23:45:29 - 1.89 +++ Generator.java5 Sep 2002 11:27:19 - 1.90 @@ -749,7 +749,7 @@ _jspx_fnmap ); } if (encode) { - return java.net.URLEncoder.encode( + v + ); + return java.net.URLEncoder.encode(\\ + + v + ); } return v; } else if( attr.isNamedAttribute() ) { -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
Paul Speed wrote: + return java.net.URLEncoder.encode(\\ + + v + ); I know I'm being pedantic, but it's a small pet peeve of mine. :) How about: return java.net.URLEncoder.encode( String.valueOf(v) ); So much for attention to details... return java.net.URLEncoder.encode( String.valueOf( + v + ) ); -Paul Should do the same thing without all the behind-the-scenes StringBuffer stuff. -Paul Speed [EMAIL PROTECTED] wrote: remm2002/09/05 04:27:20 Modified:jasper2/src/share/org/apache/jasper/compiler Generator.java Log: - Force the convesion of the value to a string. - Note: I am not convinced this is a compliance issue (and it looks like bad design to pass an object or null); this just reverts back the old behavior. Revision ChangesPath 1.90 +4 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java Index: Generator.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v retrieving revision 1.89 retrieving revision 1.90 diff -u -r1.89 -r1.90 --- Generator.java4 Sep 2002 23:45:29 - 1.89 +++ Generator.java5 Sep 2002 11:27:19 - 1.90 @@ -749,7 +749,7 @@ _jspx_fnmap ); } if (encode) { - return java.net.URLEncoder.encode( + v + ); + return java.net.URLEncoder.encode(\\ + + v + ); } return v; } else if( attr.isNamedAttribute() ) { -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [PATCH] Re: SSI Servlet has big problems
(Resending from my older address in hopes that it will help avoid some confusion.) Hmmm... This is what I get for ignoring the list for a while. ;) Note: I completely rewrote the SSI support in 4.x HEAD and had Bip apply the patches (Amy also did some patching) for exactly the same reasons you originally mention. I did this around Oct/Nov 2001. On most of the 4.0 bug reports for SSI (which I agree was a bad implementation on that branch) I commented that my changes should probably have been back-ported from head. I even had test cases for all of the SSI commands, including the conditionals which I added support for. My only guess is that you were looking at an older version when finding the problem. My rewrite solved all of these problems and was completely compatible with all mod_include commands except for the regex stuff. Of course, now it seems that my version has been completely blown away. Which is unfortunate since that means we lose conditionals... and possibly some of the more esoteric nesting behavior that I copied from Apache (I haven't tested this yet.) It's too bad that SSI on head was blown away for changes to an older version. Any chance we can nicely merge the two good versions into one more good version? -Paul Speed Dan Sandberg wrote: Hi everyone. Here are more changes to the SSI code. I have a test case ( comparing SSI behavior to Apache by using .shtml files in different tomcat webapps / apache directories ) which I have not included because I'm not sure where to put manual test cases like this. If there is an apprioriate place for these kinds of things, please let me know. I also have not yet updated package.html in the o.a.c.ssi directory. I will do this when I come back from a weekend trip. Here are the instructions for installing the new code, using the jakarta-tomcat-4.0 dir as the base dir. delete files in ( and dir ) : catalina/src/share/org/apache/catalina/util/ssi delete file: catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java unjar the jar -this puts SSIServlet.java into catalina/src/share/org/apache/catalina/servlets -this puts the rest of the files in catalina/src/share/org/apache/catalina/ssi Since the name of the SSI servlet class changes, and since I added some notes to it, patch web.xml according to the included patch. Since I'm planning on maintaining this for a while, commit access might be a good idea, as it makes things easier for everyone. Thanks have a great weekend! -Dan Index: web.xml === RCS file: /home/cvspublic/jakarta-tomcat-4.0/catalina/src/conf/web.xml,v retrieving revision 1.34 diff -r1.34 web.xml 150d149 157a157 !-- This will generally SLOW-DOWN processing. -- 169c169,170 !-- the server root? (0=false, 1=true) [0]-- --- !-- the server root? See note below. -- !-- (0=false, 1=true) [0] -- 171,174c172,177 !-- ignoreUnsupportedDirective -- !-- Should unknown or misspelled Ssi directives-- !-- be ignored and no errors shown?-- !-- (0=false, 1=true) [1] -- --- !-- NOTE : If you set isVirtualWebappRelative to 1 (true), -- !--you probably want to set crossContext=true on the -- !--context that contains the server-side include files -- !--because otherwise the default security will prevent -- !--access to other contexts. The file to change is -- !-- server.xml. -- 181,207c184,204 servlet servlet-namessi/servlet-name servlet-class org.apache.catalina.servlets.SsiInvokerServlet /servlet-class init-param param-namebuffered/param-name param-value1/param-value /init-param init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-nameexpires/param-name param-value666/param-value /init-param init-param param-nameisVirtualWebappRelative/param-name param-value0/param-value /init-param init-param param-nameignoreUnsupportedDirective/param-name param-value1/param-value /init-param load-on-startup4/load-on-startup /servlet --- servlet servlet-namessi/servlet-name servlet-classorg.apache.catalina.servlets.SSIServlet/servlet-class init-param param-namebuffered
Re: [PATCH] Re: SSI Servlet has big problems
Dan Sandberg wrote: Yes, let's merge them together. How do I get to the code that you fixed? Were the test cases in CVS? It's all in CVS. If you checkout the source code from some time in December you should get it all back in util and util/ssi. It looks like my last check-in was on November 29th or so. I too made some pretty significant changes. It looks like my final test.xml never made it in, but I'm attaching it here. (Only the SSI parts are relevant of course.) All of the golden files look like they're still there. I'd say lets get all the test cases setup, and see where my code fails your tests. Then we can use your code wherever functionality is missing. The motivation for my original changes was to fix the nesting of .shtml files (ie: a .shtml file including another .shtml file) and to add support for set, variable substitution, conditionals, etc.. When I looked at the original version and saw it was such a mess, I did pertty much a complete rewrite. Some of my changes are similar to yours, but I got rid of classes like SsiMediator and such. All of this included fixing how variables were kept for includes and such, as well as parsing fixes and the addition of some new commands. It's all pretty significant and may not naturally fit some of your refactoring. To be honest, it might be easier to redo your changes against my stuff than it would be to graft my stuff onto yours. Even though I know that's probably a real pain in the a**. In it's current state, I think the current fixed version has much less functionality than the previous fixed version. Hopefully we can work something out. I thought I had checked out the head revision. Did I make a mistake with the cvs check out command? Must have. The fact that you even have an SsiMediator means you were changing an older version. Unfortunately, Bill didn't notice this when he committed your stuff and probably just whole-sale nuked the older files. Don't feel too bad about that, though. My original rewrite did something similar. Only in my case, it was only a small bug fix that was reverted. Still a little disconcerting from my point of view. Probably my own fault for taking a two-month break from the lists. And I had no idea I could have parlayed those patches into committer access. :) -Paul -Dan Paul Speed wrote: (Resending from my older address in hopes that it will help avoid some confusion.) Hmmm... This is what I get for ignoring the list for a while. ;) Note: I completely rewrote the SSI support in 4.x HEAD and had Bip apply the patches (Amy also did some patching) for exactly the same reasons you originally mention. I did this around Oct/Nov 2001. On most of the 4.0 bug reports for SSI (which I agree was a bad implementation on that branch) I commented that my changes should probably have been back-ported from head. I even had test cases for all of the SSI commands, including the conditionals which I added support for. My only guess is that you were looking at an older version when finding the problem. My rewrite solved all of these problems and was completely compatible with all mod_include commands except for the regex stuff. Of course, now it seems that my version has been completely blown away. Which is unfortunate since that means we lose conditionals... and possibly some of the more esoteric nesting behavior that I copied from Apache (I haven't tested this yet.) It's too bad that SSI on head was blown away for changes to an older version. Any chance we can nicely merge the two good versions into one more good version? -Paul Speed Dan Sandberg wrote: Hi everyone. Here are more changes to the SSI code. I have a test case ( comparing SSI behavior to Apache by using .shtml files in different tomcat webapps / apache directories ) which I have not included because I'm not sure where to put manual test cases like this. If there is an apprioriate place for these kinds of things, please let me know. I also have not yet updated package.html in the o.a.c.ssi directory. I will do this when I come back from a weekend trip. Here are the instructions for installing the new code, using the jakarta-tomcat-4.0 dir as the base dir. delete files in ( and dir ) : catalina/src/share/org/apache/catalina/util/ssi delete file: catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java unjar the jar -this puts SSIServlet.java into catalina/src/share/org/apache/catalina/servlets -this puts the rest of the files in catalina/src/share/org/apache/catalina/ssi Since the name of the SSI servlet class changes, and since I added some notes to it, patch web.xml according to the included patch. Since I'm planning on maintaining this for a while, commit access might be a good idea, as it makes things easier for everyone. Thanks have a great weekend! -Dan Index: web.xml
Re: [PATCH] Re: SSI Servlet has big problems
(resending from my progeeks.com address to avoid being filtered/delayed by moderation.) Don't know... have you tried an absolute date or is 4 months ago just an example for the list's benefit. Any date in feb/april should be sufficiently late enough. Hope it works, -Paul Dan Sandberg wrote: I'm trying to checkout an old version of tomcat with the following command: [dan@oogie tmp]$ cvs co -D 4 months ago jakarta-tomcat-4.0 And I'm getting the following error: Core dumped; preserving /tmp/cvs-serv41751 on server. CVS locks may need cleaning up. My version is (on Linux): [dan@oogie tmp]$ cvs --version Concurrent Versions System (CVS) 1.11.1p1 (client/server) I tried the same thing on Solaris, and had the same problem. Any idea? Am I doing something stupid? -Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [PATCH] Re: SSI Servlet has big problems
(resending from my progeeks.com address to avoid being filtered/delayed by moderation.) Dan Sandberg wrote: Ugh this is painful. I'll checkout your stuff within the next few days. If the architecture looks good and does have significantly greater functionality I will merge my changes into your code. I also fixed the included variable problem and the nested include problems. The conditional stuff was the only thing I thought I was missing. Hmmm... maybe it isn't as bad as I thought? I don't know. I know there were some parsing problems that kept variable substituation from working correctly. I'm curious: How could I have checked out an older version accidently? Wouldn't I have had to explicitly specify a date or tag or something? Well, if you started working from a tarball of the source, that might have done it. I think that's what happened in my case originally. I can't remember exactly, but the tarball I had might have even had CVS directories in it with sticky tags already set... ie: keeping me from easily getting the latest without checking out the whole source tree from scratch. ... This is all quite depressing ... Indeed. Thanks for being so gracious about all of this. I really felt quite sick when I saw what I missed. That'll teach me to ignore my inbox. :) -Paul -Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
var retrieval from checkbox (with single name)
Hi, I wish to retrieve / store values of multiple checkboxes checked in the previous page. The problem here is I dont know how many boxes (a dynamic amount of them is output), and the checkboxes must have the same name. I wish to do something similar to Hotmail where I check an amount of checkboxes, then manipulate the values in the next page. The reason they all must be name the same - chkboxarray - is to allow a Hotmail style 'check-all', 'uncheck all' facility (below). The reason for this being that the check boxes checked contain email recipient ID's (JSP) where I am concatonating email address as a String value to add to a BCC field. I have tried retrieving and storing in an array but all I get is the value for the first checkbox. Any ideas how I can achieve what I'm trying to do while retrieveing the values with a single checkbox name, or maybe there's someone with a better solution out there?! Perhaps I need to assign the checkboxes different names, and edit the JS? (I dont know how to do this)! Thanks for all input Paul. script language= JavaScript function modify_boxes(to_be_checked,total_boxes){ for ( i=0 ; i total_boxes ; i++ ) { if (to_be_checked) { document.forms[0].chkboxarray[i].checked=true; } else { document.forms[0].chkboxarray[i].checked=false; } } } /script -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
NoClassDefFoundError
Hi, I'm using Apache Tomcat 4.0.3 (OS - Win2000). I've encountered the problem of - java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver I can successfully compile the java file which is basically for DB utility and the way I'm loading the oracle driver is mentioned below - (Line no. 25) DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); But while running the application through the tomcat it's throwing the exception and pointing towards the line 25 of the java file. I've already included the classes12.zip classes111.zip file under the classpath (jdk1.3.1). Any suggestion? - Samit THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat in industry
Hello, I don't know where I heard it, or if indeed I heard it all, but can someone clarify if Tomcat can be used in industrial strength web applications? That is, is it able to handle for example, traffic of 100 hits p/s? Must it be integrated with the Apache web server to make it so? Where may I find such information regarding this please? Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Pandora's box / can of worms etc.
What is MinTC? Where can I get information on it? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Synchronous Tomcat and Apache
Hi, I would like to use Tomcat to run my JSP, with Apache serving the HTML output. How may I configure Tomcat and Apache to acheive this please? Perhaps I may be directed toward / emailed an appropriate document where I can find out how to do this. Currently, I have Tomcat 4.0, Apache 1.3.? on Linux Redhat 7.0 and have been developing / testing my JSP on the Tomcat server on port 8080, while Apache is running on port 80. Thanks for your help Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where can I find the spec to implement SSI on Jakarta Tomcat 4.0?
Amy Roh wrote: Mike Jette wrote: Where can I find the spec to implement Server-Side Include (SSI) on Jakarta Tomcat 4.0? Note: I'm pretty sure that Catalina 4.0.x only has a minimal support for SSI. I rewrote it all to include everything that Apache mod_include does (except the some perl or regex stuff, don't quite remember) but I'm pretty sure those changes only exist in the HEAD branch, ie: 4.x. As far as I know, that stuff was never back-ported and so is only available when using a nightly build or building from source. Also note: The older SSI can only serve one request at a time or it will possibly mix output to the different clients. This was actually my original reasons for fixing the SSI servlet in Catalina since it messes up nested includes too. The other reason was that I needed conditionals. -Paul Speed There isn't an actual spec for SSI feature for Tomcat 4.0. It follows the NCSA SSI rules same as the Apache documentation. You need to uncomment SSI Servlet in web.xml. And to use the SSI servlet, you also need to rename the $CATALINA_HOME/server/lib/servlets-ssi.renametojar file to $CATALINA_HOME/server/lib/servlets-ssi.jar Amy If you can point me at a link I would really appreciate your help. Is it that same as the Apache documentation? Thanks you. -- Michael E. Jette Technology Partners, Inc. 636-519-1221 ext. 104 1-877-636-1331 ext. 104 (toll free) www.tech-partners.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ResultSet
Hi, For the brave, can anyone guess why with this rather unsociable code: if ((res.getString(3) == null) || (res.getString(3) == )) { out.println(tda href=takeDetails.jsp?timeSlot= + res.getString(2) + myDate= + myDate + + res.getString(2) + /a/td); } if ((res.getString(3) != null) || (res.getString(3) != )) { out.println(td + res.getString(3)+ + res.getString(2) + /td); } the first condition is NEVER satisfied, even though out.println of res.getString(3) does not display anything! Ie res.getString(3) IS null, empty or whatever, but the condition is never satisifed. Quickly again, this is executed: if ((res.getString(3) != null) || (res.getString(3) != )) { out.println(td + res.getString(3)+ + res.getString(2) + /td); } even though - out.println(td + res.getString(3)+ - shows it is empty (no output)! Thanks Paul. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]