Cannot see external css file
I'm Kanai in Japan. I am trying to integrate Tomcat 4.1.30 and Apache 2.0.49 with jk2 connector(ver 2.0.4) on Windows XP SP1 PC, but cannot see external css file. When I see html file referring css file on tomcat directly, tomcat can find css file. But when I see html file through Apache, apache cannot find css file. I find below error message in the error.log of apache. [Sun Sep 12 19:05:37 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/examples/style/atomic.css I put atomic.css on above folder, but apache cannnot find css file. I attached test program and setting files. testcss.html --- please put on %TOMCAT_HOME%webapps\examples atomic.css --- please put on %TOMCAT_HOME%webapps\examples\style workers2.properties --- This is jk2 setting file. If you access http://localhost:8080/examples/testcss.html, you can see web page that backgroud color is blue. But if you http://localhost/examples/testcss.html, you can see web page with white background. Please let me know how to setup tomcat and apache in order to see external css file. testcss.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=ja head meta http-equiv=content-type content=text/html meta http-equiv=content-style-type content=text/css titleStyle Sheet Test/title link rel=stylesheet href=./style/atomic.css type=text/css media=screen /head body pThis is Style Sheet Test./p /body /html style/atomic.css body { padding: 1em 5%; background: #ccf } p { margin: 0.5em 0; padding: 1em; text-indent: 1em; line-height: 1.5; background: #eef; font-size:20pt } workers2.properties # log file [logger.file:0] level=ERROR file=${serverRoot}/logs/jk2.log # shared memory [shm:] disabled=1 #info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. #file=anon # Defines a load balancer named lb. Use even if you only have one machine. #[lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] #port=8009 #host=127.0.0.1 # define the worker #[ajp13:localhost:8009] #channel=channel.socket:localhost:8009 #group=lb [channel.socket:localhost:8009] info=Ajp13 forwarding over socket ## host=localhost ## port=8009 ## group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the Tomcat examples #group=lb [uri:/tomcat-docs/*] info=Map the Tomcat Docs [uri:/scarab/style/*.css] info=Map the Scarab CSS files [uri:/scarab/*] info=Map the Scarab #[status:] #info=Status worker, displays runtime information [status:] [uri:/jkstatus/*] group=status: #[uri:/jkstatus/*] #info=The Tomcat /jkstatus handler #group=status: -- Yan Kanai ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OFF-TOPIC: Axis encoding problem
Hi, Can anyone help me with an JWS problem in Axis. I have a .jws document, and axis installed, and I need to be able to use UTF-16 encoding as I need to be able to transport special language characters. The documentation says I should be able to set axis.encoding parameter either in my web.xml or in the server-config.wsdd. I've tried both, but I cannot get it to do anything for me, all responses are UTF-8. thanx, -reynir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error: duplicate local variable
You already had declared another List named values just a few lines above, as shown in the edited version below: On Sat, 11 Sep 2004 19:47:46 -0700, Jack Lauman [EMAIL PROTECTED] wrote: I have the following piece of code that changes a password. Eclipse gives the following error message for line 11: duplicate local variable 'values' List values = new ArrayList(); if(res != null res.getRowCount() 0) { List values = new ArrayList(); Error duplicate local variable 'values' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot see external css file
Can you post your workers2.properties as it looks like you haven't mapped the style sheets. -Original Message- From: Yan Kanai [mailto:[EMAIL PROTECTED] Sent: 12 September 2004 11:46 To: [EMAIL PROTECTED] Subject: Cannot see external css file I'm Kanai in Japan. I am trying to integrate Tomcat 4.1.30 and Apache 2.0.49 with jk2 connector(ver 2.0.4) on Windows XP SP1 PC, but cannot see external css file. When I see html file referring css file on tomcat directly, tomcat can find css file. But when I see html file through Apache, apache cannot find css file. I find below error message in the error.log of apache. [Sun Sep 12 19:05:37 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/examples/style/atomic.css I put atomic.css on above folder, but apache cannnot find css file. I attached test program and setting files. testcss.html --- please put on %TOMCAT_HOME%webapps\examples atomic.css --- please put on %TOMCAT_HOME%webapps\examples\style workers2.properties --- This is jk2 setting file. If you access http://localhost:8080/examples/testcss.html, you can see web page that backgroud color is blue. But if you http://localhost/examples/testcss.html, you can see web page with white background. Please let me know how to setup tomcat and apache in order to see external css file. testcss.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=ja head meta http-equiv=content-type content=text/html meta http-equiv=content-style-type content=text/css titleStyle Sheet Test/title link rel=stylesheet href=./style/atomic.css type=text/css media=screen /head body pThis is Style Sheet Test./p /body /html style/atomic.css body { padding: 1em 5%; background: #ccf } p { margin: 0.5em 0; padding: 1em; text-indent: 1em; line-height: 1.5; background: #eef; font-size:20pt } workers2.properties # log file [logger.file:0] level=ERROR file=${serverRoot}/logs/jk2.log # shared memory [shm:] disabled=1 #info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. #file=anon # Defines a load balancer named lb. Use even if you only have one machine. #[lb:lb] # Example socket channel, override port and host. [channel.socket:localhost:8009] #port=8009 #host=127.0.0.1 # define the worker #[ajp13:localhost:8009] #channel=channel.socket:localhost:8009 #group=lb [channel.socket:localhost:8009] info=Ajp13 forwarding over socket ## host=localhost ## port=8009 ## group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the Tomcat examples #group=lb [uri:/tomcat-docs/*] info=Map the Tomcat Docs [uri:/scarab/style/*.css] info=Map the Scarab CSS files [uri:/scarab/*] info=Map the Scarab #[status:] #info=Status worker, displays runtime information [status:] [uri:/jkstatus/*] group=status: #[uri:/jkstatus/*] #info=The Tomcat /jkstatus handler #group=status: -- Yan Kanai ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: error: duplicate local variable
Hi You already had declared another List named values just a few lines above, as shown in the edited version below: Though it should work, since the second values is in another scope. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.io.InterruptedIOException
I don't know. It appears, the error is in vendor code, not tomcat code. (Or a configuration problem with respect to the vendor code) -Tim avi arora wrote: Hi, But is there a way to correct it. The same library when used within another context of same installation of tomcat doesnot give this exception and works correctly (I just copied those libraries from that context to this new context and I started getting this exception. Infact I was not getting this exception few days back in this new context as well, but I started getting it when I restarted my machine). Thanks. Avi On Sat, 11 Sep 2004 10:20:40 -0400, Tim Funk [EMAIL PROTECTED] wrote: It looks like custom vendor code making an HTTP connection as part of its processing. at org.vovida.prov.psLib.HttpPSConnection.sendRequest(HttpPSConnection.java:175) -Tim avi arora wrote: Hi, I am using tomcat 4.0.5. I am getting the java.io.InterruptedIOException in one of the context of my web application. I am having the similar jsp file in another context which uses the same libraries in that context. But there it works fine. Can some one please suggest, some solution to this problem. I am attaching the exception message below-- Thanks-- java.io.InterruptedIOException: Read timed out at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:85) at java.net.SocketInputStream.read(SocketInputStream.java:63) at java.io.InputStreamReader.fill(InputStreamReader.java:168) at java.io.InputStreamReader.read(InputStreamReader.java:244) at java.io.BufferedReader.fill(BufferedReader.java:134) at java.io.BufferedReader.readLine(BufferedReader.java:294) at java.io.BufferedReader.readLine(BufferedReader.java:357) at org.vovida.prov.psLib.HttpPSConnection.sendRequest(HttpPSConnection.java:175) at org.vovida.prov.psLib.HostInterface.sendRequest(HostInterface.java:73) at org.vovida.prov.psLib.PSInterface.sendRequest(PSInterface.java:77) at org.vovida.prov.psLib.SocketProvisioningInterface.getFieldsInDomain(SocketProvisioningInterface.java:194) at org.vovida.prov.util.ProvisioningServerWrapper.hasFeatures(ProvisioningServerWrapper.java:825) at org.vovida.prov.util.ProvisioningServerWrapper.describeUser(ProvisioningServerWrapper.java:157) at org.telverse.tollsaver.userutil.showuser(userutil.java:38) at org.apache.jsp.addUserResult$jsp._jspService(addUserResult$jsp.java:395) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot see external css file
Hi, I added below entry in the workers2.properties, but phenomenon is same as before. [uri:/examples/style/*.css] info=Map the CSS files Best Regards, Kanai On Sun, 12 Sep 2004 13:48:20 +0100 Dale, Matt [EMAIL PROTECTED] wrote: Can you post your workers2.properties as it looks like you haven't mapped the style sheets. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: error: duplicate local variable
SH Solutions wrote: Hi You already had declared another List named values just a few lines above, as shown in the edited version below: Though it should work, since the second values is in another scope. Regards, Steffen It is correct behaviour to display a warning, since your first values variable can't be used in the nested block. As such it is not an error, and thus can be shut down in eclipse (and javac/jikes/JDT or whatever compiler you are using). Regards, Sjoerd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem again: ajp13.service() ajpGetReply recoverable error 3
Hi, What are these errors in the apache's error log? Back in 6 months ago, I asked the kind same question in the tomcat-user list, but no one seemed to have a solution. I was forced to switch back to Tomcat3.3. Now, I am doing another integration attempt with newer version of tomcat5 and jk2 connectors, but the problem still exist. My setup: Apache2.0.46 Tocmat5.0.27 (tar.gz binary version) mod_jk2.0.4 (rpm from redhat enterprise) --- the httpd error_log [Sun Sep 12 13:33:35 2004] [error] jk2_init() Can't find child 4780 in none of the 256 scoreboard slots [Sun Sep 12 13:33:35 2004] [error] jk2_init() Can't find child 4781 in none of the 256 scoreboard slots [Sun Sep 12 13:33:35 2004] [error] jk2_init() Can't find child 4782 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4783 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4784 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4785 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4786 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4787 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4788 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4789 in none of the 256 scoreboard slots [Sun Sep 12 13:33:36 2004] [error] jk2_init() Can't find child 4790 in none of the 256 scoreboard slots [Sun Sep 12 13:35:06 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:35:06 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:35:06 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Sun Sep 12 13:35:06 2004] [error] mod_jk.handler() Error connecting to tomcat 3 [Sun Sep 12 13:36:18 2004] [error] jk2_init() Can't find child 4792 in none of the 256 scoreboard slots [Sun Sep 12 13:36:20 2004] [error] jk2_init() Can't find child 4793 in none of the 256 scoreboard slots [Sun Sep 12 13:36:21 2004] [error] jk2_init() Can't find child 4794 in none of the 256 scoreboard slots [Sun Sep 12 13:36:21 2004] [error] jk2_init() Can't find child 4795 in none of the 256 scoreboard slots [Sun Sep 12 13:36:33 2004] [error] jk2_init() Can't find child 4796 in none of the 256 scoreboard slots [Sun Sep 12 13:36:35 2004] [error] jk2_init() Can't find child 4797 in none of the 256 scoreboard slots [Sun Sep 12 13:36:36 2004] [error] jk2_init() Can't find child 4798 in none of the 256 scoreboard slots [Sun Sep 12 13:36:36 2004] [error] jk2_init() Can't find child 4799 in none of the 256 scoreboard slots [Sun Sep 12 13:37:33 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:37:33 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:37:33 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Sun Sep 12 13:37:33 2004] [error] mod_jk.handler() Error connecting to tomcat 3 [Sun Sep 12 13:38:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:38:51 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:38:51 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Sun Sep 12 13:38:51 2004] [error] mod_jk.handler() Error connecting to tomcat 3 [Sun Sep 12 13:48:30 2004] [error] jk2_init() Can't find child 4856 in none of the 256 scoreboard slots [Sun Sep 12 13:48:33 2004] [error] jk2_init() Can't find child 4857 in none of the 256 scoreboard slots [Sun Sep 12 13:48:34 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:48:34 2004] [error] ajp13.service() ajpGetReply recoverable error 3 [Sun Sep 12 13:48:34 2004] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Sun Sep 12 13:48:34 2004] [error] mod_jk.handler() Error connecting to tomcat 3 [Sun Sep 12 13:48:40 2004] [error] jk2_init() Can't find child 4858 in none of the 256 scoreboard slots [Sun Sep 12 13:48:41 2004] [error] jk2_init() Can't find child 4859 in none of the 256 scoreboard slots [Sun Sep 12 13:48:41 2004] [error] jk2_init() Can't find child 4860 in none of the 256 scoreboard slots Thanks! - Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping.
Tomcat-Apache and SSL- Re-Post
Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings
AW: Tomcat-Apache and SSL- Re-Post
Hi ... that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Are you sure, you are talking about source ports? Since you need to contact tomcat on the same port every time and your target and source ips are always the same too, there would be no way for the tcp/ip stack to associate packets with connection... Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: error: duplicate local variable
On 9/12/2004 6:28 AM, SH Solutions wrote: Hi You already had declared another List named values just a few lines above, as shown in the edited version below: Though it should work, since the second values is in another scope. It's not in another scope, but in a nested scope, which is not allowed to have duplicate variables with the enclosing scope. -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: error: duplicate local variable
On 9/12/2004 9:38 AM, Sjoerd van Leent wrote: SH Solutions wrote: Hi You already had declared another List named values just a few lines above, as shown in the edited version below: Though it should work, since the second values is in another scope. Regards, Steffen It is correct behaviour to display a warning, since your first values variable can't be used in the nested block. As such it is not an error, and thus can be shut down in eclipse (and javac/jikes/JDT or whatever compiler you are using). From A Programmer's Guide to Java Certification (I used it mainly for reference) 1st edition page 114: A local variable, already declared in an enclosing block and therefore visible in a nested block, cannot be redeclared in the nested block. So, eclipse's behavior is correct. -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create/run a Java Service on UNIX
Daxin, Give the Java Service Wrapper a try. http://wrapper.tanukisoftware.org/ Tomcat is one of the examples used in the integration documentation: http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-nix.html Cheers, Leif Daxin Zuo wrote: I neeed to create a service on UNIX.( The program is in Java. this service will serves an offline application and an online application running with Tomcat.) Could you please tell me how to do. Thanks. - 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]
Changing the server name in response headers
I'm sure this is simple, I just can't figure out how to do it. I want to change the name (type) of the server that gets returned in the HTTP response header. Currently it is returning Apache-Coyote XX, but I'd rather it return something more meaningful for me. How do I do this? I grepped through the Tomcat source code, and found that it calls response.addHeader(Server, Apache- Coyote); I tried adding my own similar header, but that didn't work. I guess Tomcat gets to it last and probably wins because of that. I couldn't see any other way of overcoming this. Anyone have any ideas?? Maybe there's some configuration option, or preferably some programmatic way to do this. Sander Smith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat-Apache and SSL- Re-Post
If 8000 is the Apache port, then use request.getLocalPort(). If 8000 is the AJP port, it can't be done. Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the server name in response headers
This has been fixed quite recently. The fix is in 5.5.0 branch. Having checked CVS, I forgot to back port the patch to the 4.1.x/5.0.x branch. I'll do this now. Mark -Original Message- From: Sander Smith [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 9:02 PM To: [EMAIL PROTECTED] Subject: Changing the server name in response headers I'm sure this is simple, I just can't figure out how to do it. I want to change the name (type) of the server that gets returned in the HTTP response header. Currently it is returning Apache-Coyote XX, but I'd rather it return something more meaningful for me. How do I do this? I grepped through the Tomcat source code, and found that it calls response.addHeader(Server, Apache- Coyote); I tried adding my own similar header, but that didn't work. I guess Tomcat gets to it last and probably wins because of that. I couldn't see any other way of overcoming this. Anyone have any ideas?? Maybe there's some configuration option, or preferably some programmatic way to do this. Sander Smith - 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]
Problably a simple problem - two instances of tomcat running at the same time
This is probably a simple question to answer, but as I haven't found very much material on setting up and running two separate instances of tomcat on one machine, I thought I'd put it to the list. We are running Apache 2.0.48 mod-jk2, and Tomcat 5.0.28 on Red Hat 9. We'd like to set up two instances of tomcat 5.0 running simultaneously on one computer, so that we have separate environments to work with. I followed some instructions on setting up tomcat 4.0 so it could run two instances simultaneously, setting the $CATALINA_BASE variable and creating two startup scripts and splitting up the directory tree. However, when I start up one instance of tomcat and then attempted to start the second instance, it would appear to start and then shut down silently. This indicates to me that there is something going on, like tomcat is attempting to lock on to a unix socket or port thats already in use by the first tomcat instance, or using files that the first tomcat instance is using. I've gone throught the server.xml files and the worker2.properties files to make sure that the two tomcat instances are not using the same port to communicate with the apache server. I don't know if I have everything configured correctly however, especially in the workers2.properties file yet. I'm wondering if anyone else has succesfully set up two simultaneous instances of tomcat 5.0 and if the workers2.properties file would look almost the same as one for tomcat 4. Any help will be apreciated, and I will post my current configuration files on request. Patricia
RE: Changing the server name in response headers
Hi Mark, Thanks for your answer, although you really didn't answer my question. To get this functionality do I just need to set the header and it should work? Was that the bug that you fixed, that you were overriding something that was previously set? I am using Tomcat 5.0.24. Sander At 09:27 PM 9/12/2004 +0100, you wrote: This has been fixed quite recently. The fix is in 5.5.0 branch. Having checked CVS, I forgot to back port the patch to the 4.1.x/5.0.x branch. I'll do this now. Mark -Original Message- From: Sander Smith [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 9:02 PM To: [EMAIL PROTECTED] Subject: Changing the server name in response headers I'm sure this is simple, I just can't figure out how to do it. I want to change the name (type) of the server that gets returned in the HTTP response header. Currently it is returning Apache-Coyote XX, but I'd rather it return something more meaningful for me. How do I do this? I grepped through the Tomcat source code, and found that it calls response.addHeader(Server, Apache- Coyote); I tried adding my own similar header, but that didn't work. I guess Tomcat gets to it last and probably wins because of that. I couldn't see any other way of overcoming this. Anyone have any ideas?? Maybe there's some configuration option, or preferably some programmatic way to do this. Sander Smith - 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: Changing the server name in response headers
From: Sander Smith [mailto:[EMAIL PROTECTED] Thanks for your answer, although you really didn't answer my question. To get this functionality do I just need to set the header and it should work? Yes Was that the bug that you fixed, that you were overriding something that was previously set? I am using Tomcat 5.0.24. Sort of. What was happening was that two server headers were being sent. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problably a simple problem - two instances of tomcat running at the same time
On Sun, 12 Sep 2004 14:53:43 -0600, Patricia Swarbrick [EMAIL PROTECTED] wrote: I've gone throught the server.xml files and the worker2.properties files to make sure that the two tomcat instances are not using the same port to communicate with the apache server. I think you're on the right track regarding ports. You need to also make sure that the 2 server.xml files aren't specifiying duplicate ports anywhere else - not just for communicating to Apache. An out-of-the-box Tomcat server.xml specifies a number of ports besides the jk2 connector. Especially make sure all the http connectors are different (or commented out or deleted, since you shouldn't need them). It's very common to run multiple Tomcat instances on 1 server. An easy way to tell whether a port conflict is causing your problem is to shut down the one that's working and then start up the failing one by itself. If it now works, you can be pretty sure it's a port conflict. There should be an error message somewhere - if not in a log file then in stdout or stderr. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MS Outlook 2003 Mail listing
Hai all I just saw MS Outlook 2003 in this application the mail are sorted in date and given names like Today Yesterday Last Week Two Weeks Ago ... Can anybody give me algorithm to get date in this string version . Thank you, Rajesh