Re: Why is 5.5.12 alpha?
Am Donnerstag, 6. Oktober 2005 11:00 schrieb Ronald Klop: I searched the mail archives for the voting of 5.5.12 alpha to see the reason why it is marked as alpha but I couldn't find the mails. Can somebody tell me why it is alpha? It contains some bugfixes which might help me in my clustered application, but I'm afraid of other known bugs, because it is called alpha. On the Tomcat Developers list there is at the moment a voting in progress wether 5.5.12 should be considered stable. All the votes I've seen were stable - no major issues. So chances are 5.5.12 will become the official stable release of the 5.5.x branch in the next few days. BTW: I have found 5.5.12 pretty stable myself. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Perl script from tomcat ( no apache ) on windows
Am Mittwoch, 28. September 2005 16:34 schrieb alebu: Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Deployer 5.5.11 NullPointerException
Am Donnerstag, 25. August 2005 17:03 schrieb Allistair Crossley: Well that's really unexpected. The only other 2 differences are perhaps that I am on Windows, and that I did this with the 5.5.11-alpha download from the site. I can't think of anything else if you say that copying the JDT jar should work. It simply doesn't here and I have tested this with pure downloads with no interference or funny business. I also tried it on Windows, also using the 5.5.11-alpha deployer downloaded from the jakarta site. It works OOTB. So, if Rémy thinks there's something funny with your setup, I guess he's propably right. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Deployer 5.5.11 NullPointerException
Am Donnerstag, 25. August 2005 17:57 schrieb Allistair Crossley: Thanks, that's good to know, it must be something to do with my environment. Are you saying then that you did not have to copy any JDT jars into your deployer? No, I didn't have to copy any jars since ant uses sun's javac from tools.jar in JAVA_HOME by default. If it doesn't for you, then there's something wrong. How have you setup Ant? In any specific manner? I extracted the zip, set ANT_HOME accordingly and added %ANT_HOME%\bin to PATH. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Deployer 5.5.11 NullPointerException
Am Donnerstag, 25. August 2005 18:30 schrieb Remy Maucherat: On 8/25/05, Markus Schönhaber [EMAIL PROTECTED] wrote: Am Donnerstag, 25. August 2005 17:57 schrieb Allistair Crossley: Thanks, that's good to know, it must be something to do with my environment. Are you saying then that you did not have to copy any JDT jars into your deployer? No, I didn't have to copy any jars since ant uses sun's javac from tools.jar in JAVA_HOME by default. If it doesn't for you, then there's something wrong. Yes, if you set JAVA_HOME correctly, then Ant should find javac, and you don't need to add the other compiler. How have you setup Ant? In any specific manner? I extracted the zip, set ANT_HOME accordingly and added %ANT_HOME%\bin to PATH. I'm on Windows too. Maybe the space in the path for JAVA_HOME is causing problems (mine is c:\java\jdk1.5.0), but overall the Ant script is hack free, and there's no .bat to introduce bad behavior (except the Ant one, but hopefully it is properly done). I don't think it's the space. I just copied my Java SDK-dir to a location with a space in the path and set JAVA_HOME to point to the copy. It still worked. Another wild guess: Maybe Allistair has CLASSPATH set somehow and it f up the whole thing. Or maybe his JDK installation is broken somehow. Or his ant installation. Or... OK, I don't have a clue. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error launching catalina.sh
Am Donnerstag, 25. August 2005 18:45 schrieb Hugo Osorio: Hello everybody i am running Version: Apache Tomcat/5.0.29 on FreeBSD i have been working with apache forrest, but i haven't do anything to Tomcat configuration all of a sudden i've got this message, and catalina.sh begins to start, but it launch error messages, i cannot see anything at localhost:8080 this is the message, any help?: thank you zulu# ./catalina.sh run [1] 1530 zulu# Using CATALINA_BASE: /usr/local/jakarta-tomcat5.0 Using CATALINA_HOME: /usr/local/jakarta-tomcat5.0 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat5.0/temp Using JAVA_HOME: /usr/local/jdk1.4.2 Aug 25, 2005 4:48:03 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 458 column 9: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. [...] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424) Catalina.start using conf/server.xml: org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. org.xml.sax.SAXParseException: The element type Context must be terminated by the matching end-tag /Context. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [...] Your server.xml is broken (it's not well-formed XML). Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use port 443 as non-ssl
Am Montag, 22. August 2005 17:54 schrieb Jason Bainbridge: On 8/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I need to use the tomcat with a non - ssl connector on port 443. Up to now, no success. Is there a way to use the 443 in a non-ssl? Im not using the ssl (it is between !-- --). I don't think browsers will let you do that, Why shouldn't they? In fact, they do. it would be a bit of a security risk to say the least... Could you please explain that? Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use port 443 as non-ssl
Am Montag, 22. August 2005 17:43 schrieb Sean Rowe: I don't think so. The operating system (i think) encrypts that port as a standard. Where did you get that information? To the OS, a port is a port - regardless of it's number. The only magic regarding port numbers is that Unix-like system only let applications running in the superuser's context bind to ports with numbers lower than 1024. Regards mks
Re: Hi...
Am Mittwoch, 3. August 2005 17:39 schrieb Tom Spence: Hello I am rookie... I plan to download the source but it can't open by using tar command while I am using AIX 5.2. Should I download binary file? I apprecaite your help... If you can't unpack the source you'll might get the same problem with the binaries, I guess. Don't know anything about AIX but i think gunzip -c jakarta-tomcat-5.5.9.tar.gz | tar -x should be worth a try. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi...
Am Mittwoch, 3. August 2005 17:51 schrieb Markus Schönhaber: gunzip -c jakarta-tomcat-5.5.9.tar.gz | tar -x Exchange jakarta-tomcat-5.5.9.tar.gz to the actual name of the file you want to unpack. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi...
Am Mittwoch, 3. August 2005 17:58 schrieb Tom Spence: What about jakarta-tomcat-5.5.10.tar.gz? Or I should use 5.5.9? Yes, since 5.5.10 isn't yet considered stable. But your original question is about something completely different. Did you succeed in unpacking the archive (wichever that may be)? Markus Schönhaber [EMAIL PROTECTED] wrote: Am Mittwoch, 3. August 2005 17:51 schrieb Markus Schönhaber: gunzip -c jakarta-tomcat-5.5.9.tar.gz | tar -x Exchange jakarta-tomcat-5.5.9.tar.gz to the actual name of the file you want to unpack. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.10: APR-SSL generates wrong 302 response
Hello! I've configured Tomcat 5.5.10 to use APR. The HTTP-Connector listens on port 80, the HTTPS-Connector listens on port 443. A request for https://www/tomcat-docs generates the following response: GET /tomcat-docs HTTP/1.1 Host: www User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.8b4) Gecko/20050721 Firefox/1.0+ Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive HTTP/1.x 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: https://www:80/tomcat-docs/ Transfer-Encoding: chunked Date: Mon, 25 Jul 2005 11:57:39 GMT Obviously this doesn't work since since the redirection response tells the browser to connect to the HTTP port using HTTPS. This problem does *not* occur if: - The request is for https://www/tomcat-docs/ (no surprise since no redirect response is generated in this case). - The HTTPS-Connector is configured to listen on port 8443 (or propably any other non-standard HTTPS-port - but I haven't tried). - APR isn't used at all. BTW: tomcat-docs is just an example. With other web-apps thre's the same problem. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.10: APR-SSL generates wrong 302 response
Am Montag, 25. Juli 2005 17:39 schrieb Remy Maucherat: There's indeed a cut paste error (the default ports for HTTP and HTTPS are inverted), so you need to add an extra '!': Index: Http11AprProcessor.java === RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http1 1/Http11AprProcessor.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- Http11AprProcessor.java 13 Jul 2005 13:03:51 - 1.25 +++ Http11AprProcessor.java 25 Jul 2005 15:32:48 - 1.26 @@ -1422,8 +1422,8 @@ } if (colonPos 0) { -if (ssl) { -// 80 - Default HTTTP port +if (!ssl) { +// 80 - Default HTTP port request.setServerPort(80); } else { // 443 - Default HTTPS port Using proxyPort=443 should be a decent workaround. Great! Thanks for the quick response. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem compiling JSPs with Tomcat as Windows Service
Am Freitag, 1. Juli 2005 22:30 schrieb Trevor Quinn: When I deploy a web application to a Windows 2K server running Tomcat 5.0.28 and JDK 1.5, I see Unable to compile JSP errors on every JSP page, but only when Tomcat is running as a Windows service. When I run Tomcat from the console window, all pages compile and display correctly. I had read in another posting that this might have something to do with permissions. It said to make sure JAVA_HOME, TOMCAT_HOME, and PATH were defined as system variables, not user variables. This is the case, and I'm still seeing problems. Another posting recommended moving the Java lib/tools.jar file to the common/lib folder in Tomcat. That didn't seem to help either. Does anyone have any other ideas? Thanks! Make sure that the account your tomcat service runs under (propably SYSTEM) has the appropriate permissions on the tomcat installation directories. Especially it must be granted writing permissions to the directories where tomcat puts the files created during JSP compilation (i. e. %CATALINA_BASE%\work by default). Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting a binary by calling a servlet
Am Freitag, 17. Juni 2005 14:56 schrieb Christian Stalp: Please don't CC me. I'm reading the list and have set the Reply-To for a reason. Thanks. Im now back again. Now I have time to fix the tomcat-problem. But first I have another problem: I cannot start tomcat!!! I got this from my latest logfile: catalina_2005-06-17.log This is of course only a small part of it. Is this caused by a mistaken entry in the catalina.policy? [quote] Using Security Manager Created MBeanServer with ID: 4aa0ce:10489ba2bdb:-8000:gandalf:1 Jun 17, 2005 11:56:17 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 Jun 17, 2005 11:56:17 AM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.apache.xerces.u. [/quote] I doubt this has anything to do with catalina.policy. This seems to be an error thrown by the XML parser - but catalina.polica is plain-text file. Check the XML config files and context descriptors. Maybe there's something wrong with them - for example byte order marks at the beginning of the file (i. e. before the ?xml version... line). But the weired thing is, my own entry into the catalina.policy is gone, is erased!!! And this happens everytime I reboot my system. Each time I edit the cataline.policy I cannot restart tomcat again. So I choose the windows(tm) solution and reboot the whole system! But when the system is up and running again. Tomcat cannot start at all. AND my entry in the catalina.policy is gone Can't help you with that. Your system seems to behave a bit - hm - strange. I doubt that tomcat is removing entries from catalina.policy. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting a binary by calling a servlet
Am Dienstag, 14. Juni 2005 14:27 schrieb Christian Stalp: Ein grant-Eintrag im Policy-File könnte dann so aussehen: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.io.FilePermission Pfad zum aszuführenden Programm, execute; }; And the /my_exec/-, is that the context-path? Yes. That means I can call my Servlet whatever I want, but I have to put it into a package called my_exec.WAR ? Is that correct? Well, kind of. The trailing - in the path specification above means: grant that right to all files in this directory and all subdirectories thereof. So, as a result, the name of your servlet really doesn't matter, since it resides somewhere in (a subdirectoy of) the webapp-directory. But better to see it just the other way round: you don't adopt your webapp to match the configuration parameter but the configuration parameter to match the webapp. Example: the servlet that shall be able to execute an external binary is contained a webapp named My1stWebApp which is placed at the default location (i. e. the location tomcat's default configuration specifies). The path to your webapp's directory will therefore be ${catalina.home}/webapps/My1stWebApp and the configuration parameter grant codeBase file:${catalina.home}/webapps/My1stWebApp/- ... If you have for example placed your webapp in /some/strange/dir/mywebapps/My1stWebApp the entry in catalina.policy should the read grant codeBase file:/some/strange/dir/mywebapps/My1stWebApp/- ... Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting a binary by calling a servlet
Am Dienstag, 14. Juni 2005 14:52 schrieb Christian Stalp: I did it. I made this entry in catalina-policy: // Mein Eintrag zum ausführen eines Prozesses: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.io.FilePermission /home/chris/c/file-test,execute; }; Is the path really correct? Is the webapp's directory really named my_exec? Try to use the absolute pathname of your webapp's directory, i. e. something like grant codeBase file:/opt/tomcat-4.1/webapps/my_exec_or_whatever/- ... Is the file really executable for the account tomcat runs under? Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting a binary by calling a servlet
Am Montag, 13. Juni 2005 16:01 schrieb Christian Stalp: But at the Moment I get an error that this is not allowed for a Servlet which seems logical to me. So I have to change the catalina.policy. The question is now: how? What I have to do, to enable my servlet to start binarys on my host? Have you even tried to use the policy-entries I posted as an answer to the very same question you asked on pug-talk? If so, what went wrong? ---snip--- Ein grant-Eintrag im Policy-File könnte dann so aussehen: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.io.FilePermission Pfad zum aszuführenden Programm, execute; }; Oder wenn Du Deiner WebApp vertraust: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.security.AllPermission; }; ---snap--- Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting a binary by calling a servlet
Am Montag, 13. Juni 2005 16:01 schrieb Christian Stalp: But at the Moment I get an error that this is not allowed for a Servlet which seems logical to me. So I have to change the catalina.policy. The question is now: how? What I have to do, to enable my servlet to start binarys on my host? Have you even tried to use the policy-entries I posted as an answer to the very same question you asked on pug-talk? If so, what went wrong? ---snip--- Ein grant-Eintrag im Policy-File könnte dann so aussehen: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.io.FilePermission Pfad zum aszuführenden Programm, execute; }; Oder wenn Du Deiner WebApp vertraust: grant codeBase file:${catalina.home}/webapps/my_exec/- { permission java.security.AllPermission; }; ---snap--- Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: default IP address connector binding?
Am Mittwoch, 8. Juni 2005 16:04 schrieb Paul Singleton: My Linux server's eth0 supports ten IP addresses. What happens (in 5.5.9) if my HTTP Connector doesn't specify an address = 216.119.217.240 attribute? Does it use the first one? all of them? (it's working but I need to know exactly what it's doing) If you don't specify an address, tomcat will bind to 0.0.0.0 (resp. to ::0 on IPv6) which effectively means it binds to all available addresses. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging the HTTP headers
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi: Hello all Is there any posibility of logging the HTTP headers ? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging the HTTP headers
Am Freitag, 3. Juni 2005 11:46 schrieb Anto Paul: On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote: Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi: Hello all Is there any posibility of logging the HTTP headers ? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request %20Dumper%20Valve What about a Filter ? Yeah, what about it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tiger in jsp
Am Freitag, 20. Mai 2005 16:11 schrieb Julien Martin: I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced for loop in my jsp. I am having problems: Tomcat seems to be expecting jdk1.4 syntax. Can anyone help please? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Configuration Set the compiler init-param so that javac from jdk5 is used. Also set the compilerSourceVM and compilerTargetVM appropriately. Alternatively, you could try to replace the Eclipse compiler bundled with Tomcat with a more recent release from the Eclipse 3.1 builds. Don't know wether this is easily achieved, though. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Tiger in jsp
Am Freitag, 20. Mai 2005 18:32 schrieb Markus Schönhaber: Am Freitag, 20. Mai 2005 16:11 schrieb Julien Martin: I use Tomcat 5.5 and I would like to use jdk5.0 features such as enhanced for loop in my jsp. I am having problems: Tomcat seems to be expecting jdk1.4 syntax. Can anyone help please? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Configura tion Set the compiler init-param so that javac from jdk5 is used. Also set the compilerSourceVM and compilerTargetVM appropriately. Did remember slightly wrong: Leave the compiler init-param alone. Just set compilerSourceVM and compilerTargetVM to 1.5. Then move jasper-compiler-jdt.jar out of $CATALINA_HOME/common/lib and move in ant.jar instead. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Am Donnerstag, 5. Mai 2005 20:30 schrieb Mário Gamito: I've just installed Tomcat 5.5 for Linux and so far so good, except... that i've installed also Tomcat Administration module (not the Manager one) and it asks me for a login and a password and i can't find how to define it. I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost saying to uncoment the valve and another two files, but i don't know how to set the login and the password. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs with Java 5 ?
Am Dienstag, 5. April 2005 16:09 schrieb Milo Grains: When will Java 5 features be available in Jasper/Tcat5.5.x to compile JSPs??? They are available. But you will have to either configure tomcat to use javac from tools.jar to compile JSPs or replace the Eclipse JDT coming with the tomcat distibution with a more recent version. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: launching windowed program with Runtime#exec() under Tomcat 5.0
Am Freitag, 25. März 2005 18:51 schrieb Steve Butcher: Then I build that into a class: public class Launcher { public static main( String[] args) throws Exception { new Launcher().play(); } public void play() throws Exception { String command = \C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\ --extraintf=rc --rc-host=127.0.0.1:9066 --rc-quiet \rtsp://192.168.0.66/\; :sout=#duplicate{dst=display}; Runtime.getRuntime().exec( command); } } and invoked it from the command line: java Launcher and *that* works fine (VLC launches and the stream plays) which leads me to believe that there is nothing wrong with using Runtime#exec() in this particular instance AND the command is fine. HOWEVER, if I call the very same code in main() above from a JSP: % new Launcher().play(); % VLC launches but hangs with an End Program dialog. IF I replace the command string with: command = notepad.exe; Notepad launches just fine, directly from the code AND from a JSP which leads me to believe it is not a permission problem under Tomcat. Does vlc produce any output on stdout/stderr? If it does, it may stop when the output-buffer fills up. So you have to read Process#getOutputStream() to make it continue. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple instances
On 02.03.2005 16:13, Caldarale, Charles R wrote: From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Subject: Multiple instances Please don't hijack existing e-mail threads; if you have a new question, start a new message. I don't see that the OP has hijacked any existing thread (which seems to be the exeption, not the rule, lately). Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very Straneg problem with MySQL-Connector
monkiboy wrote: Hello, Thank you for the answer but it's look like the parameter skip-networking is not present. I am really getting hard time. Here's my my.cnf : Are Tomcat and MySQL running on the same machine? If not, you'll have to change the bind-address: # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of Bug 24970
Rob Tomlin wrote: http://issues.apache.org/bugzilla/show_bug.cgi?id=24970 I've looked at the source for Response.java and the commit comments seem to suggest this bug keeps being fixed and reintroduced. I'm a little confused about which version I can expect this bug to actually be fixed in...or if is fixed at all...or if it will be fixed... Well, the bug status is marked as RESOLVED with the resolution WONTFIX. 1. Can someone confirm which version of Tomcat this bug is fixed in. If its shown in the bug page I can't see it... 2. Is there a work around other than patching a jar? As I understand the bugzilla comments it boils down to: don't use a JSP, use a servlet, and don't use a Writer in this servlet but an OutputStream. http://issues.apache.org/bugzilla/show_bug.cgi?id=24970#c25 Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of Bug 24970
Markus Schönhaber wrote: As I understand the bugzilla comments it boils down to: don't use a JSP, use a servlet, and don't use a Writer in this servlet but an OutputStream. http://issues.apache.org/bugzilla/show_bug.cgi?id=24970#c25 Well, writing a filter that removes the ;charset=... part from Content-type: application/pdf header might work as a quick hack. But I wouldn't call this a solution. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logging remote IP address
Mark wrote: I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. If your local an your external (NATed) IP addresses are both displayed by a webpage you access, you are almost certainly accessing this site via a proxy that set the X-Forwarded-For HTTP-header-field to contain your local IP (the IP the proxy itself was accessed from). But that's nothing you can rely on. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5
Punit Duggal wrote: What language is this ?? Dutch. It would really be nice if those bounce-messages could get filtered out. I received 40 of them since Jan 24. which is about 15% of the overall traffic on the list since then. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Defining application Global properties.
haim wrote: I would like to set up some application global properties. I would like those properties to be available application width, and should be loaded as soon as the application loads no mater witch page was visit. I guess I have few options for that , which one do you think is the best practice? 1. Using the init-param , but those are servelt related and not application related ? 2. Using java properties file , but now I need some one to load then at server startup ? 3. Any other good Idea that you may think of? Maybe context-param is what you are looking for. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server Component....What IP does the shutdown service listen to?
Troy Simpson wrote: OS: Sun Solaris 8 Tomcat: 5.5.4 Documentation: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/server.html According to the documentation, the server component has attributes for className, port, and shutdown, but not bindIPAddress. What IP address is the server listening to for the shutdown command? If my server.xml file contains this: Server port=8005 shutdown=SHUTDOWN debug=0.../Server ...is the server waiting for the shutdown command, SHUTDOWN, on 127.0.0.1:8005? or ...is the server waiting for the shutdown command, SHUTDOWN, on *:8005 (All IP addresses assigned to the server)? I run netstat -a and I get the following for port 8005: Local Address Remote Address State --- localhost.8005 *.*0 0 24576 0 LISTEN I'm not much of a sysadmin, but this suggest that something (tomcat) is listening for the shutdown command on 127.0.0.1:8005. Am I correct? Yes. As netstat -an should have told you (or doesn't Solaris' netstat understand the -n switch?). Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page exception-type
François Richard wrote: I have a beginning of answer, the guilty could be Internet Explorer 6.0 ... The redirection works fine with Firefox and mozilla. Anyone no why ? Anyone have this working on IE6 ? Does redirection really not happen or is the error page simply not shown by IE? IE ignores the page content sent by the server and display it's own error page, if the HTTP status-code isn't 2xx and Internet Settings / Advanced / Show short HTTP error messages is selected (I'm not sure whether the name of the option is exactly right, since I don't use an English windows - but you'll get the point, I hope). Streve 1) In my case the problem is the same with the redirection error-code, like : error-page error-code404/error-code location/pagesErreur/404.jsp/location /error-page 2) yes, same problem ... Steve Kirk wrote: I've had similar problems myself (not fully answered yet). Here's a couple of issues that I found: 1. Check the exception messages / stack traces in your browser and logfiles carefully to make sure that droit.jsp is not itself throwing a second exception when trying to display the DroitsException that called it. 2. does droits.jsp contain this line? [EMAIL PROTECTED] isErrorPage=true% -Original Message- From: François Richard [mailto:[EMAIL PROTECTED] Sent: Monday 04 October 2004 13:53 To: [EMAIL PROTECTED] Subject: error-page exception-type Hi, I'm blocked since this morning with an annoying problem on Tomcat (5.27 and 5.28). Impossible to redirect users with the error-page tag on jsp and html files. I'm using that on the web.xml : error-page exception-typecom.sofice.commun.securite.DroitsException/exception-type location/pagesError/droits.jsp/location /error-page The jsp are well-compiled but the broswer display an error message (HTTP 500). The start of the DroitsException (jsp, servlet ...) is unimportant the problem is the same. Notice that the redirection works fine with servlet and 'directory listing' : error-page exception-typecom.sofice.commun.securite.DroitsException/exception-type location/servlet/test/location /error-page error-page exception-typecom.sofice.commun.securite.DroitsException/exception-type location/pagesError//location /error-page Many thanks for your answer. - 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]