Tomcat 5.5.10 jasper2 fails in deployer build.xml
I think I found a problem with the jakarta-tomcat-5.5.10-deployer package. When I run the compile task I get the following error: BUILD FAILED C:\jakarta-tomcat-5.5.10-deployer\build.xml:49: Could not create task or type of type: jasper2. Ant could not find the task or a class this task relies upon. Is this a known bug? I did not find it in Bugzilla, but the search interface is a bit strange to me. I looked in the c:\jakarta-tomcat-5.5.10-deployer\lib\catalina-ant.jar file and discovered that the catalina.tasks file is missing a definition for the jasper2 task like is found in c:\jakarta-tomcat-5.5.9-deployer\lib\catalina-ant.jar. Here are the contents of the 5.5.10 catalina.tasks file: # Pure catalina tasks deploy=org.apache.catalina.ant.DeployTask list=org.apache.catalina.ant.ListTask reload=org.apache.catalina.ant.ReloadTask sessions=org.apache.catalina.ant.SessionsTask resources=org.apache.catalina.ant.ResourcesTask roles=org.apache.catalina.ant.RolesTask start=org.apache.catalina.ant.StartTask stop=org.apache.catalina.ant.StopTask undeploy=org.apache.catalina.ant.UndeployTask validator=org.apache.catalina.ant.ValidatorTask #Jk Task jkstatus=org.apache.catalina.ant.JKStatusUpdateTask # Manager JMX jmxManagerSet=org.apache.catalina.ant.JMXSetTask jmxManagerGet=org.apache.catalina.ant.JMXGetTask jmxManagerQuery=org.apache.catalina.ant.JMXQueryTask Here are the contents of the 5.5.9 catalina.tasks file: # Pure catalina tasks deploy=org.apache.catalina.ant.DeployTask list=org.apache.catalina.ant.ListTask reload=org.apache.catalina.ant.ReloadTask resources=org.apache.catalina.ant.ResourcesTask roles=org.apache.catalina.ant.RolesTask start=org.apache.catalina.ant.StartTask stop=org.apache.catalina.ant.StopTask undeploy=org.apache.catalina.ant.UndeployTask validator=org.apache.catalina.ant.ValidatorTask jkstatus=org.apache.catalina.ant.JKStatusUpdateTask # Jasper tasks jasper2=org.apache.jasper.JspC I added the jasper2=org.apache.jasper.JspC line and its seems to work fine. Thank you - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: suppress directory listing
Many thanks to Tim, Arup, Stephen and Aaron for three different solutions (per-directory, per-application and per-Tomcat), *all* of which I reckon oughta be in the FAQ :) cheers Paul Singleton My JSP app has a /images folder and Tomcat 5.5.9 happily serves up a directory listing of this: how can I suppress this? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jboss-tomcat bind issue
No firewall turned on for this test. root:/etc/init.d $./iptables status Firewall is stopped. Shouldn't Tomcat either be binding to 0.0.0.0 or 127.0.0.1? tcp0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 17487/java Why is netstat showing three colons (':') instead of the localhost IP address (see netstat output below)? --- Wade Chandler wrote: Got a firewall turned on? Wade --- Michael Tria [EMAIL PROTECTED] wrote: Please let me know if you think this e-mail belongs on a JBoss list instead of this one... Problem === JBoss 4.0 bundled with Tomcat 5.5, out of the box, will not bind to port 8080 for all interfaces. i.e. I can telnet to the port from the localhost, but not from outside. Please let me know how to bind to this port properly. On local machine... telnet 127.0.0.1 8080 Trying 127.0.0.1... Connected to 127.0.0.1. On remote machine... (IP address masked slightly) telnet 208.100.x.x Trying 208.100.x.x... - this will eventually time out Running a netstat -anp | grep 8080 shows this: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 :::8080 :::* LISTEN 17487/java From the above, I can see that java (jboss) has a server socket listening on port 8080, but the local address looks off. System == OS:Linux, Fedora Core 2 JBoss: 4.0.2 w/ Tomcat 5.5 (out of the box) Java: 1.4.2_09 server.xml == Here is the relevant sections of the server.xml (out of the box) Engine name=jboss.web defaultHost=localhost ... Host name=localhost autoDeploy=false deployOnStartup=false deployXML=false ... I really appreciate the help. Thanks, Mike [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]
Tomcat Basic Security
I have been setting up BASIC security realms to limit partial site access to authorised users. The security/privacy is not too great, I just want to stop casual browser access. All works fine, with normal browser access causing the pop-up window requesting user name and password. However, accessing the same URL using a WAP browser or PDA microbrowser seems to go straight in without the request for password. Any comments or way forward here? Steve This e-mail is intended for the recipient only. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely upon this e-mail. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. Recipients should note that all e-mail traffic on MOD systems is subject to monitoring and auditing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat 5.5.9 - 8443
I can open http://localhost:8080 but, can't open https://localhost:8443 Any idea why? Of course I did uncomment at 8443 area in server.xml and set up by using keytool. Nothing happened. (__[TomCigar]___~~~
Re: Security Questions Regarding Tomcat
Hmmm. Well take a look at this entry from the server.xml file: !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? Roberto David Smith [EMAIL PROTECTED] 08/12/2005 11:40 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat This sounds really fishy. Tomcat does not by default have any connectors configured for port 80. There must be another service or you've modified your server.xml somehow. --David Robert V. Coward/CTR/OSAGWI wrote: Having a similar issue to this with Tomcat 5. Apparently T5 comes with a port 80 proxy server a special servlet container or something. Basically I have ipfilter running and only allow access to port 8080, but if you send a request to 80 tTomcat picks up and does some sort of internal redirect to port 8080. According to a netstat -a only port 808 is litening, but when I run nmap against it it show 80 and 8080. I'd like to have ipfileter take block all connections and redirect packets bound for port 80 to 8080. Inother words I want to do what the T5 server seems to be doing already. Anyone have any ideas? My network admin is giving me much grief about allowing port 8080 access to the web. Thanks Paul Singleton [EMAIL PROTECTED] 08/12/2005 10:08 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Alon Belman [EMAIL PROTECTED] Subject Re: Security Questions Regarding Tomcat Harrell, Ralph wrote: I would like to be able to start TOMCAT as a non-root user but am unable to as we are running SSL and use port 443 and non-root users do not have the permission to use ports under 1000. ...not in Linux and some (all?) Unix variants, anyway. (FWIW I think this root-only-below-1000 rule is an ill considered security kludge which has probably caused more trouble than it has circumvented) You could redirect port 443 to 8443 (and 80 to 8080) either in an external firewall/router or in iptables within your server, then start Tomcat as e.g. tomcat on its usual ports. Paul Singleton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat 5.5.9 - 8443
Tom Spence wrote: I can open http://localhost:8080 but, can't open https://localhost:8443 Any idea why? Of course I did uncomment at 8443 area in server.xml and set up by using keytool. Nothing happened. What kind of nothing? Connection refused? Failed to connect after timeout? Page not found? Do the startup msgs claim that e.g. 09-Aug-2005 15:29:04 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 09-Aug-2005 15:29:09 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
But it's also commented out and not active. It's there as an example of a proxied port if you happen to be using Apache and mod_rewrite as a front end to tomcat. --David Robert V. Coward/CTR/OSAGWI wrote: Hmmm. Well take a look at this entry from the server.xml file: !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? Roberto David Smith [EMAIL PROTECTED] 08/12/2005 11:40 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat This sounds really fishy. Tomcat does not by default have any connectors configured for port 80. There must be another service or you've modified your server.xml somehow. --David Robert V. Coward/CTR/OSAGWI wrote: Having a similar issue to this with Tomcat 5. Apparently T5 comes with a port 80 proxy server a special servlet container or something. Basically I have ipfilter running and only allow access to port 8080, but if you send a request to 80 tTomcat picks up and does some sort of internal redirect to port 8080. According to a netstat -a only port 808 is litening, but when I run nmap against it it show 80 and 8080. I'd like to have ipfileter take block all connections and redirect packets bound for port 80 to 8080. Inother words I want to do what the T5 server seems to be doing already. Anyone have any ideas? My network admin is giving me much grief about allowing port 8080 access to the web. Thanks Paul Singleton [EMAIL PROTECTED] 08/12/2005 10:08 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Alon Belman [EMAIL PROTECTED] Subject Re: Security Questions Regarding Tomcat Harrell, Ralph wrote: I would like to be able to start TOMCAT as a non-root user but am unable to as we are running SSL and use port 443 and non-root users do not have the permission to use ports under 1000. ...not in Linux and some (all?) Unix variants, anyway. (FWIW I think this root-only-below-1000 rule is an ill considered security kludge which has probably caused more trouble than it has circumvented) You could redirect port 443 to 8443 (and 80 to 8080) either in an external firewall/router or in iptables within your server, then start Tomcat as e.g. tomcat on its usual ports. Paul Singleton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat 5.5.9 - 8443
Here what I got... Aug 15, 2005 8:38:24 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Aug 15, 2005 8:38:24 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 Aug 15, 2005 8:38:24 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3008 ms Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.9 Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Aug 15, 2005 8:38:30 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 15, 2005 8:38:30 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Aug 15, 2005 8:38:30 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Aug 15, 2005 8:38:31 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 7101 ms I opened https://localhost:8443 and wait for loading for forever... Paul Singleton [EMAIL PROTECTED] wrote: Tom Spence wrote: I can open http://localhost:8080 but, can't open https://localhost:8443 Any idea why? Of course I did uncomment at 8443 area in server.xml and set up by using keytool. Nothing happened. What kind of nothing? Connection refused? Failed to connect after timeout? Page not found? Do the startup msgs claim that e.g. 09-Aug-2005 15:29:04 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 09-Aug-2005 15:29:09 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] (__[TomCigar]___~~~
Re: Security Questions Regarding Tomcat
Duh. Thanks. I should have seen that. But I still do not understand how this is all working. Basically I want the to run a default deny ipfilter firewall on the host. Only allowing port 8080 and 8443 (or 4443 there seems to be some confusion with my apps guys on which one is ther real SSL proxy port) connections from internal. I then want to NAT (rdr) to redirect all incominf 80 and 443 connections to that 8080 and 8443 (or 4443) port internal. I suppose it is my lack of familiarity on ipfilter (this is so much easier to do using OBSD'd PF). I'd really like to see some other folks ipnat.conf and ipf.conf files if this is being done already. I'll do some more research and keep the group appraised of my progress. Thanks. Roberto David Smith [EMAIL PROTECTED] 08/15/2005 08:29 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat But it's also commented out and not active. It's there as an example of a proxied port if you happen to be using Apache and mod_rewrite as a front end to tomcat. --David Robert V. Coward/CTR/OSAGWI wrote: Hmmm. Well take a look at this entry from the server.xml file: !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? Roberto David Smith [EMAIL PROTECTED] 08/12/2005 11:40 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat This sounds really fishy. Tomcat does not by default have any connectors configured for port 80. There must be another service or you've modified your server.xml somehow. --David Robert V. Coward/CTR/OSAGWI wrote: Having a similar issue to this with Tomcat 5. Apparently T5 comes with a port 80 proxy server a special servlet container or something. Basically I have ipfilter running and only allow access to port 8080, but if you send a request to 80 tTomcat picks up and does some sort of internal redirect to port 8080. According to a netstat -a only port 808 is litening, but when I run nmap against it it show 80 and 8080. I'd like to have ipfileter take block all connections and redirect packets bound for port 80 to 8080. Inother words I want to do what the T5 server seems to be doing already. Anyone have any ideas? My network admin is giving me much grief about allowing port 8080 access to the web. Thanks Paul Singleton [EMAIL PROTECTED] 08/12/2005 10:08 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Alon Belman [EMAIL PROTECTED] Subject Re: Security Questions Regarding Tomcat Harrell, Ralph wrote: I would like to be able to start TOMCAT as a non-root user but am unable to as we are running SSL and use port 443 and non-root users do not have the permission to use ports under 1000. ...not in Linux and some (all?) Unix variants, anyway. (FWIW I think this root-only-below-1000 rule is an ill considered security kludge which has probably caused more trouble than it has circumvented) You could redirect port 443 to 8443 (and 80 to 8080) either in an external firewall/router or in iptables within your server, then start Tomcat as e.g. tomcat on its usual ports. Paul Singleton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
Robert V. Coward/CTR/OSAGWI wrote: Hmmm. Well take a look at this entry from the server.xml file: !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? About what? This is in the Fine Manual -- see the Connector documentation under tomcat-docs/config/: --- Proxy Support The proxyName and proxyPort attributes can be used when Tomcat is run behind a proxy server. These attributes modify the values returned to web applications that call the request.getServerName() and request.getServerPort() methods, which are often used to construct absolute URLs for redirects. Without configuring these attributes, the values returned would reflect the server name and port on which the connection from the proxy server was received, rather than the server name and port to whom the client directed the original request. For more information, see the Proxy Support HOW-TO. --- Though this isn't particularly relevant to your situation, since as are many of the *examples* in the default server.xml, this entry is *commented out*. HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat + Mod_JK + SSL How to?
Hi, I've been following this thread for a bit and can offer some of my painfully gained insights. I have Apache, tomcat 5.0.28, mod_jk and SSL. This is not a real fix, just my workarounds. It drove me nuts forever until I figured out that Apache webserver does not successful apply rewrite rules to the JkMount directive. In my httpd.conf: #tomcat worker JkWorkersFile conf/workers.properties JkLogFile logs/jk.log JkLogLevel info JkMount /*.jsp jkworker Under my virtual host port 80 I tested a few rewrite rules(the first was to the 'admin' directory, the second was for all requests): RewriteRule ^/admin/(.*)$ https://server.name.com/$1 [R] RewriteRule ^.*$ https://server.name.com%{REQUEST_URI} [R] The rewrite would work for non JkMount items, but the behavior seemed to show apache just handing off the transaction to tomcat via the mount BEFORE applying the rewrite. (please check this for yourself, if you use a rewrite rule to a non JkMount directory Apache should redirect it successfully) Tomcat would not bounce it to port 443 because the rewrite rule was not in the tomcat layer. Our java programer ended up writing a custom jsp that redirected the transaction to a SSL port. I then made the redirect directory forbidden under non-SSL. I suspect there maybe a more graceful way to do this please let me know if you find it. -Kiarna
RE: virtual host memory usage
You are correct. My suggestion was that you in one case had a file in the common/lib directory, while in another you had it in the WEB-INF/lib directory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Sunday, August 14, 2005 7:39 PM To: Tomcat Users List Subject: Re: virtual host memory usage I am sorry, what do you mean by host class loader? From what I understand there are 3 ways to load classes, /common/lib (used by tomcat), shared/lib (used by all applications), webapp/web-inf/lib used by this one application. Thank you Oleg On 8/13/05, George Sexton [EMAIL PROTECTED] wrote: The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - 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: Security Questions Regarding Tomcat
Understood. But I do not want to use Tomcat proxying services. I just want to host 8080 locally and let my ipfilter firewall block and proxy for me. Roberto Hassan Schroeder [EMAIL PROTECTED] 08/15/2005 08:41 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat Robert V. Coward/CTR/OSAGWI wrote: Hmmm. Well take a look at this entry from the server.xml file: !-- Define a Proxied HTTP/1.1 Connector on port 8082 -- !-- See proxy documentation for more information about using this. -- !-- Connector port=8082 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false acceptCount=100 connectionTimeout=2 proxyPort=80 disableUploadTimeout=true / -- I did not add this and from what I can tell this comes with the default config. Any info? About what? This is in the Fine Manual -- see the Connector documentation under tomcat-docs/config/: --- Proxy Support The proxyName and proxyPort attributes can be used when Tomcat is run behind a proxy server. These attributes modify the values returned to web applications that call the request.getServerName() and request.getServerPort() methods, which are often used to construct absolute URLs for redirects. Without configuring these attributes, the values returned would reflect the server name and port on which the connection from the proxy server was received, rather than the server name and port to whom the client directed the original request. For more information, see the Proxy Support HOW-TO. --- Though this isn't particularly relevant to your situation, since as are many of the *examples* in the default server.xml, this entry is *commented out*. HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
Robert V. Coward/CTR/OSAGWI wrote: Understood. But I do not want to use Tomcat proxying services. I just want to host 8080 locally and let my ipfilter firewall block and proxy for me. Then the default Tomcat configuration of listening on port 8080 is just what you need. I highly recommend making a copy of the original server.xml and then stripping out the examples before doing anything else; greatly improves readability. :-) If you're still uncertain about Tomcat's configuration, i.e., what port(s) it's listening on, you could run netstat and/or nmap before and after starting it, and compare the results. FWIW! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
64 Bit Machines and Tomcat
I tried to install Tomcat, and got the following: ./configure *** Current host *** checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Java compilation tools *** checking for javac... /usr/local/java/jdk1.5.0_04/bin/javac checking wether the Java compiler (/usr/local/java/jdk1.5.0_04/bin/javac) works... yes checking for jar... /usr/local/java/jdk1.5.0_04/bin/jar *** Host support *** checking C flags dependant on host system type... failed configure: error: Unsupported CPU architecture x86_64 How do I fix? Is there files out there to fix that? JR Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
Got it. I've done that, and i figured out that i can not use ipfilter as a reflector. That is it is not very easy to use rdr to map packets from 192.168.0.20 port 80 - 192.168.0.20 port 8080. That is precisely what I wanted to do.force NAT to rewrite packets coming in on one port to another port and have tomcat answer normally. I got confused when I saw the proxying info inside the server.xml file. Looks like I'll have to get a real proxy server. Thanks. Roberto Hassan Schroeder [EMAIL PROTECTED] 08/15/2005 10:30 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat Robert V. Coward/CTR/OSAGWI wrote: Understood. But I do not want to use Tomcat proxying services. I just want to host 8080 locally and let my ipfilter firewall block and proxy for me. Then the default Tomcat configuration of listening on port 8080 is just what you need. I highly recommend making a copy of the original server.xml and then stripping out the examples before doing anything else; greatly improves readability. :-) If you're still uncertain about Tomcat's configuration, i.e., what port(s) it's listening on, you could run netstat and/or nmap before and after starting it, and compare the results. FWIW! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat 5.5.9 - 8443
It sounds like you need to set up an SSL certificate for Java. Here's a site that outlines how to do this: http://jasigch.princeton.edu:9000/display/CAS/Solving+SSL+issues To use this example, make sure you have your JAVA_HOME environment variable set properly (or replace it in the example with the appropriate value). Also, the example references %FILE_NAME%. Don't use this - in all the other places in the example, it uses server.crt - use that instead of the FILE_NAME variable. And finally, it will still pop up and ask you for the keystore pass code. Just enter changeit. And don't change it - until you've gotten down the road and figure out how all that works. I tried it once, and things got reallys screwed up. But once, you get that up and running, you should be gold! --PK On 8/15/2005, Tom Spence [EMAIL PROTECTED] wrote: I can open http://localhost:8080 but, can't open https://localhost:8443 Any idea why? Of course I did uncomment at 8443 area in server.xml and set up by using keytool. Nothing happened. (__[TomCigar]___~~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
Regardless of what you put up in front of tomcat to act as the proxy host, you'll most likely need the proxyPort and proxyName attributes in your connector so tomcat can write urls correctly as needed (like in sending external redirects). I do this setup myself on some stuff when I'm using mod_rewrite to map servlet material into an Apache site. --David Robert V. Coward/CTR/OSAGWI wrote: Got it. I've done that, and i figured out that i can not use ipfilter as a reflector. That is it is not very easy to use rdr to map packets from 192.168.0.20 port 80 - 192.168.0.20 port 8080. That is precisely what I wanted to do.force NAT to rewrite packets coming in on one port to another port and have tomcat answer normally. I got confused when I saw the proxying info inside the server.xml file. Looks like I'll have to get a real proxy server. Thanks. Roberto Hassan Schroeder [EMAIL PROTECTED] 08/15/2005 10:30 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat Robert V. Coward/CTR/OSAGWI wrote: Understood. But I do not want to use Tomcat proxying services. I just want to host 8080 locally and let my ipfilter firewall block and proxy for me. Then the default Tomcat configuration of listening on port 8080 is just what you need. I highly recommend making a copy of the original server.xml and then stripping out the examples before doing anything else; greatly improves readability. :-) If you're still uncertain about Tomcat's configuration, i.e., what port(s) it's listening on, you could run netstat and/or nmap before and after starting it, and compare the results. FWIW! -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Security Questions Regarding Tomcat
Okay great. I'll check the docs on that once I get the server side stuff running right. Thanks for all the hel. Roberto David Smith [EMAIL PROTECTED] 08/15/2005 10:59 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat Regardless of what you put up in front of tomcat to act as the proxy host, you'll most likely need the proxyPort and proxyName attributes in your connector so tomcat can write urls correctly as needed (like in sending external redirects). I do this setup myself on some stuff when I'm using mod_rewrite to map servlet material into an Apache site. --David Robert V. Coward/CTR/OSAGWI wrote: Got it. I've done that, and i figured out that i can not use ipfilter as a reflector. That is it is not very easy to use rdr to map packets from 192.168.0.20 port 80 - 192.168.0.20 port 8080. That is precisely what I wanted to do.force NAT to rewrite packets coming in on one port to another port and have tomcat answer normally. I got confused when I saw the proxying info inside the server.xml file. Looks like I'll have to get a real proxy server. Thanks. Roberto Hassan Schroeder [EMAIL PROTECTED] 08/15/2005 10:30 AM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Security Questions Regarding Tomcat Robert V. Coward/CTR/OSAGWI wrote: Understood. But I do not want to use Tomcat proxying services. I just want to host 8080 locally and let my ipfilter firewall block and proxy for me. Then the default Tomcat configuration of listening on port 8080 is just what you need. I highly recommend making a copy of the original server.xml and then stripping out the examples before doing anything else; greatly improves readability. :-) If you're still uncertain about Tomcat's configuration, i.e., what port(s) it's listening on, you could run netstat and/or nmap before and after starting it, and compare the results. FWIW! -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loadbalancer in Tomcat 5.5
Peter, Thank you. Can you please tell me if the Tomcat load balance supports SSL? If yes, do I need to setup certificate in the apache as well? Thank you. On 8/14/05, Peter Rossbach [EMAIL PROTECTED] wrote: Mark your session with jvmRoute parameter. Engine jvmRoute=tomcat1 ... see.http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html Why you can't used balancer demo app? Read http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html peter samuel cheung schrieb: Hi, Can I use the LoadBalancer webapp to load balance requests to a number of tomcat server in round-robin fashion? I know there is an example of the Loadbalancer in the documentation, but that is different from what I want. And how can the load balancer make sure the same session (based on the session id) handles by the SAME tomcat server? Thank you. Sam - 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: Loadbalancer in Tomcat 5.5
Why you don't use apache with mod_jk? Then you can used directly the mod_jk loadbalancer features and apache/ssl support? peter samuel cheung schrieb: Peter, Thank you. Can you please tell me if the Tomcat load balance supports SSL? If yes, do I need to setup certificate in the apache as well? Thank you. On 8/14/05, Peter Rossbach [EMAIL PROTECTED] wrote: Mark your session with jvmRoute parameter. Engine jvmRoute=tomcat1 ... see.http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html Why you can't used balancer demo app? Read http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html peter samuel cheung schrieb: Hi, Can I use the LoadBalancer webapp to load balance requests to a number of tomcat server in round-robin fashion? I know there is an example of the Loadbalancer in the documentation, but that is different from what I want. And how can the load balancer make sure the same session (based on the session id) handles by the SAME tomcat server? Thank you. Sam - 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]
Context-specific System.properties
I've got some 3rd-party dependencies that rely on System.Properties for part of their configuration. I'd like to use these same dependencies in multiple Contexts in a single Tomcat deployment. However, I'll want each Context to have different values for those System.Properties. Is there any way to pull this off? Thanks -Lorrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Context-specific System.properties
Not by the looks of the javadocs..fwiw, what 3rd-party dependency is this, so I know to steer clear of it? Larry On 8/15/05, Nelson, Lorrin [EMAIL PROTECTED] wrote: I've got some 3rd-party dependencies that rely on System.Properties for part of their configuration. I'd like to use these same dependencies in multiple Contexts in a single Tomcat deployment. However, I'll want each Context to have different values for those System.Properties. Is there any way to pull this off? Thanks -Lorrin - 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: Loadbalancer in Tomcat 5.5
Peter, Thanks. I guess I am confussed by the mod_jk module and the loadbalancer webapp comes with tomcat. When should I use each one? Thank you. Sam On 8/15/05, Peter Rossbach [EMAIL PROTECTED] wrote: Why you don't use apache with mod_jk? Then you can used directly the mod_jk loadbalancer features and apache/ssl support? peter samuel cheung schrieb: Peter, Thank you. Can you please tell me if the Tomcat load balance supports SSL? If yes, do I need to setup certificate in the apache as well? Thank you. On 8/14/05, Peter Rossbach [EMAIL PROTECTED] wrote: Mark your session with jvmRoute parameter. Engine jvmRoute=tomcat1 ... see.http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html Why you can't used balancer demo app? Read http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html peter samuel cheung schrieb: Hi, Can I use the LoadBalancer webapp to load balance requests to a number of tomcat server in round-robin fashion? I know there is an example of the Loadbalancer in the documentation, but that is different from what I want. And how can the load balancer make sure the same session (based on the session id) handles by the SAME tomcat server? Thank you. Sam - 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]
Webapp suddenly not available
Hi, I'm a relative Tomcat newbie. I have built an application with ant and was using it under Tomcat 5.5.9 for several weeks, and then it suddenly broke. All request to JSP pages now display the 404 error (the requested resource is not available). I was making only very minor changes to the Java code. The HTML pages still work. There are no errors in catalina.out and localhost.log. I've tried to configure log4j logging by placing the log4j.properties file into common/classes (and the commons-logging and log4j jars into common/lib, but the log file I specified there is not even created. Finally, I was never able to make my application work with the web.xml file generated by ant. It only worked after I delete the file. The file is pretty basic, but I attach it in case there is an obvious error there. I'll be grateful for any suggestions. Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- General description of your web application -- display-nameMy Web Application/display-name description This is version X.X of an application to perform a wild and wonderful task, based on servlets and JSP pages. It was written by Dave Developer ([EMAIL PROTECTED]), who should be contacted for more information. /description !-- Context initialization parameters that define shared String constants used within your application, which can be customized by the system administrator who is installing your application. The values actually assigned to these parameters can be retrieved in a servlet or JSP page by calling: String value = getServletContext().getInitParameter(name); where name matches the param-name element of one of these initialization parameters. You can define any number of context initialization parameters, including zero. -- context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value description The EMAIL address of the administrator to whom questions and comments about this application should be addressed. /description /context-param !-- Servlet definitions for the servlets that make up your web application, including initialization parameters. With Tomcat, you can also send requests to servlets not listed here with a request like this: http://localhost:8080/{context-path}/servlet/{classname} but this usage is not guaranteed to be portable. It also makes relative references to images and other resources required by your servlet more complicated, so defining all of your servlets (and defining a mapping to them with a servlet-mapping element) is recommended. Servlet initialization parameters can be retrieved in a servlet or JSP page by calling: String value = getServletConfig().getInitParameter(name); where name matches the param-name element of one of these initialization parameters. You can define any number of servlets, including zero. -- servlet servlet-namecontroller/servlet-name description This servlet plays the controller role in the MVC architecture used in this application. It is generally mapped to the .do filename extension with a servlet-mapping element, and all form submits in the app will be submitted to a request URI like saveCustomer.do, which will therefore be mapped to this servlet. The initialization parameter namess for this servlet are the servlet path that will be received by this servlet (after the filename extension is removed). The corresponding value is the name of the action class that will be used to process this request. /description servlet-classcom.mycompany.mypackage.ControllerServlet/servlet-class init-param param-namelistOrders/param-name param-valuecom.mycompany.myactions.ListOrdersAction/param-value /init-param init-param param-namesaveCustomer/param-name param-valuecom.mycompany.myactions.SaveCustomerAction/param-value /init-param !-- Load this servlet at server startup time -- load-on-startup5/load-on-startup /servlet servlet servlet-namegraph/servlet-name description This servlet produces GIF images that are dynamically
Re: Webapp suddenly not available
--- Vsevolod (Simon) Ilyushchenko [EMAIL PROTECTED] wrote: [snip] I'll be grateful for any suggestions. Why all the JSPC entries in this web.xml ? Remove them as the Tomcat defaults should be just OK. The controller entry and the .do mapping seem to be OK. Thanks, Simon -- -- Sriram Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Diagnosing Tomcat Hang
Thanks for the suggestion. That does not seem to be the problem, unfortunately. So I'm still looking for a way to deal with this problem. Again, I'm thinking about acquiring/buying software that will tell me more about what is going on, though I wish in the short term I had a better idea, because I support students who are unable to register for classes because of this. Thanks. Ken . -Original Message- From: Lintang JP [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 11:53 PM To: Tomcat Users List Subject: Re: Diagnosing Tomcat Hang have U check your Connector settings, maxAcceptConnection part ? this settings describe maximum connection will be accepted by tomcat, if it's reached, then tomcat will put the rest connection request in hold, waiting for other connection untill they finished. By that time, the tomcat looks hang. hope it helps. On 8/13/05, Kenneth Litwak [EMAIL PROTECTED] wrote: I have a Java web app running on tomcat on Linux Red hat on an Intel box with 2 GR of RAM. We're having trouble because the application intermittently hangs. The threads never go anywhere near the max. The CPU usage never goes above 2%. The memory does not get used up. Nevertheless, the tomcat server hangs. Obviously this could be a deadlock. Or, it could be connected to the fact that the application uses a third-party tool, which requires a JDBC connection to a middleware network program on the database server, called Omnidex. What I need to know is how I can go about figuring out what's going wrong. In the short term if there's something I can do in tomcat logging or tracing, I'd like to know. Also, I'm interested in suggestions for software to purchase that can do a better job of analyzing what is going on in the JVM to track down what is going on. The problem appears and then goes way and then reappears. It is clearly linked to number of users, but the problem appears with only 18 users at a time. So I know that none of you can tell me what's wrong. I'm looking for where to start doing diagnostics. I have a whole book on Tomcat development and it has not a single section on tomcat problem solving. Thanks. Ken -- --- http://www.psychotazkia.or.id - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp suddenly not available
Sriram, I've taken them out, as well as the controller entry (which was a sample line that I don't need). No good. Thanks, Simon Sriram N wrote on 08/15/2005 12:39 PM: --- Vsevolod (Simon) Ilyushchenko [EMAIL PROTECTED] wrote: [snip] I'll be grateful for any suggestions. Why all the JSPC entries in this web.xml ? Remove them as the Tomcat defaults should be just OK. The controller entry and the .do mapping seem to be OK. Thanks, Simon -- -- Sriram Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat connect to IIs - Upload problem
Hi all, I have tomcat connected to IIs and working fine. But I can't upload files 50Kb, anyone knows what I need to change to permit upload files 50Kb ?? If I upload directly with tomcat works fine. Regards, Paulo -- -- Paulo Jorge Zagalo das Neves Linux User # 61096 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp suddenly not available
--- Vsevolod (Simon) Ilyushchenko [EMAIL PROTECTED] wrote: Sriram, I've taken them out, as well as the controller entry (which was a sample line that I don't need). No good. Hmm... what _do_ you require in this file, if not the controller entry ? Does the sample web application work ? Try installing Tomcat again, and then running this web app. Maybe you've messed with some config files by mistake. Thanks, Simon -- Sriram __ Yahoo! Mail for Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitor Tomcat with SNMP (MRTG etc)?
Dave Morrow wrote: Thanks Seth. I have been reading the documentation on it and it looks like it will give me what I am seeking. One question though, to save time, you wouldn't happen to know where I might find a list of OID's which I could point MRTG at? Just search for JVM MIB on google, you'll find it. Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session problems: www.blahblah.com versus blahblah.com
Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Webapp suddenly not available
Hmm... what _do_ you require in this file, if not the controller entry ? Those JSPs entries. :) Does the sample web application work ? Yes, it does. Try installing Tomcat again, and then running this web app. Maybe you've messed with some config files by mistake. I definitely have not touched any config files for tomcat - it's probably something in my application. Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session problems: www.blahblah.com versus blahblah.com
Hmm, I thing a host alias at for your tomcat configuration was helpfull :-) Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host Peter Michael Teter schrieb: Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - 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 5.5.9 - 8443
Something I forgot to mention. When you are generating your certificate, it will ask for your first and last name. Enter the name of the server your appliation will be running on. In the case of development - this is usally localhost. Otherwise, the certificate will be rejected when your website loads. --PK On 8/15/2005, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It sounds like you need to set up an SSL certificate for Java. Here's a site that outlines how to do this: http://jasigch.princeton.edu:9000/display/CAS/Solving+SSL+issues To use this example, make sure you have your JAVA_HOME environment variable set properly (or replace it in the example with the appropriate value). Also, the example references %FILE_NAME%. Don't use this - in all the other places in the example, it uses server.crt - use that instead of the FILE_NAME variable. And finally, it will still pop up and ask you for the keystore pass code. Just enter changeit. And don't change it - until you've gotten down the road and figure out how all that works. I tried it once, and things got reallys screwed up. But once, you get that up and running, you should be gold! --PK On 8/15/2005, Tom Spence [EMAIL PROTECTED] wrote: I can open http://localhost:8080 but, can't open https://localhost:8443 Any idea why? Of course I did uncomment at 8443 area in server.xml and set up by using keytool. Nothing happened. (__[TomCigar]___~~~ - 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]
How to gracefully handle requests for Microsoft Discussions files
Hello to the group - I just noticed some suspicious-looking requests in my http access logs: /MSOffice/cltreq.asp?UL=1ACT=4BUILD=2614STRMVER=4CAPREQ=0 /_vti_bin/owssvr.dll?UL=1ACT=4BUILD=3124STRMVER=4CAPREQ=0 I understand that these requests are just from visitors who are using the Microsoft Discussions feature of IE, but because of some custom 404 handling I've added to my site, these requests break the visitor's sessions on my site. I've heard a few possible solutions but I figure the best place to inquire is here, since we're all Tomcat users, we're not likely to have the above files on our machines! Thanks in advance for any help MitchellT Tomcat 5.0.19 on Windows2000 + JDK 1.4.2_03 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session problems: www.blahblah.com versus blahblah.com
I tried that, but it's not working. I tried: Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host and I also tried: Host name=www.blahblah.com Aliasblahblah.com/Alias /Host Both ways, I still got a session cookie associated with the name the user entered as the address. If the user then changed the address to www., it created a new session and session cookie (with the new name). On 8/15/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hmm, I thing a host alias at for your tomcat configuration was helpfull :-) Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host Peter Michael Teter schrieb: Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - 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]
LDAP Authentication Fail Over
Does anyone know if there's a way to specify multiple LDAP servers for authentication? In case one LDAP server is down, I want tomcat to switch over to the other one. Is it possible? Thanks -- Bhupinder - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session problems: www.blahblah.com versus blahblah.com
I'm not sure if there is a technical way to do this or not as it's the browser that saves the cookie based on the current URL. The way I would do this is to not allow the user to create a session in one of them in the first place. ie, if they browse to blahblah.com then just redirect them to www.blahblah.com so that whenever they are interacting with the webapp. Ta Matt -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED] Sent: 15 August 2005 21:05 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: session problems: www.blahblah.com versus blahblah.com I tried that, but it's not working. I tried: Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host and I also tried: Host name=www.blahblah.com Aliasblahblah.com/Alias /Host Both ways, I still got a session cookie associated with the name the user entered as the address. If the user then changed the address to www., it created a new session and session cookie (with the new name). On 8/15/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hmm, I thing a host alias at for your tomcat configuration was helpfull :-) Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host Peter Michael Teter schrieb: Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - 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: 64 Bit Machines and Tomcat
J R wrote: I tried to install Tomcat, and got the following: ./configure [...] configure: error: Unsupported CPU architecture x86_64 How do I fix? Is there files out there to fix that? Is there any particular reason you need to build Tomcat? Why not just go with a prebuilt binary Tomcat installation? I assume you're using the AMD64 JDK? -ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat connect to IIs - Upload problem
Hi, What is the error that you receive when uploading 50kb? I know there was previously a bug with earlier versions of the now unsupported JK2 connector. If that's what you are using then you should upgrade to the latest JK 1.2.x connector. Allistair. -Original Message- From: Paulo Neves [mailto:[EMAIL PROTECTED] Sent: Mon 15/08/2005 18:30 To: tomcat-user@jakarta.apache.org Cc: Subject: tomcat connect to IIs - Upload problem Hi all, I have tomcat connected to IIs and working fine. But I can't upload files 50Kb, anyone knows what I need to change to permit upload files 50Kb ?? If I upload directly with tomcat works fine. Regards, Paulo -- -- Paulo Jorge Zagalo das Neves Linux User # 61096 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session problems: www.blahblah.com versus blahblah.com
Great. I don't mean to be a bonehead, but what's the right way to redirect based on name? I'm not using Apache on the front, so I don't have the mod_rewrite (nor do I understand how to use it... yet). On 8/15/05, Dale, Matt [EMAIL PROTECTED] wrote: I'm not sure if there is a technical way to do this or not as it's the browser that saves the cookie based on the current URL. The way I would do this is to not allow the user to create a session in one of them in the first place. ie, if they browse to blahblah.com then just redirect them to www.blahblah.com so that whenever they are interacting with the webapp. Ta Matt -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED] Sent: 15 August 2005 21:05 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: session problems: www.blahblah.com versus blahblah.com I tried that, but it's not working. I tried: Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host and I also tried: Host name=www.blahblah.com Aliasblahblah.com/Alias /Host Both ways, I still got a session cookie associated with the name the user entered as the address. If the user then changed the address to www., it created a new session and session cookie (with the new name). On 8/15/05, Peter Rossbach [EMAIL PROTECTED] wrote: Hmm, I thing a host alias at for your tomcat configuration was helpfull :-) Host name=blahblah.com Aliaswww.blahblah.com/Alias /Host Peter Michael Teter schrieb: Howdy. I'm having some problems with sessions. If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. What's the right thing to do to solve this? Thanks much. - 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]
JspC compile exception in tomcat-deployer 5.5.10
Hello, I am using the jakarta-tomcat-5.5.10-deployer to deploy my customized war file to tomcat. When I have it do the "compile" target so it pre-compiles the JSP's I get theexception below (its sort of long). I've got the source and can see that it is happening as it processes the JSPs. But it givesno clue as to which JSP is causing the problem. Is there a way to turn on a trace that would list each file as it is processed? I've also looked in the output directory - but there are not class files at all. And the generated_web.xml is completely empty at this point. Here is how I've got the jasper2 task defined in my build.xml: jasper2 validateXml="false" uriroot="${webapp.path}" webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml" addWebXmlMappings="true" outputDir="${webapp.path}/WEB-INF/classes" / Notice that I turned validateXml to false - otherwise I get the following message: [jasper2] org.xml.sax.SAXParseException: Document is invalid: no grammar found. I have compared and compared my web.xml to the spec and it seems to be OK. It complains about position 9 in the 3rd line. Line 3 follows, position 9 is the start of the "xmlns=" attribute: web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"... which appears to be fine. Any ideas or help is appreciated. I have tried this a few months back in 5.5.7 but got the same results (worked fine in 5.0.19). I imagine its a problem either in one of my JSPs or in the web.xml - but cannot figure it out. Thanks in advance for any ideas. - Richard Exception from running "ant compile": Loaded from C:\jakarta-tomcat-5.5.10-deployer\lib\jasper-compiler.jar org/apache/jasper/compiler/AntCompiler.classClass org.apache.jasper.compiler.AntCompiler loaded from ant loader (parentFirst)Class org.apache.tools.ant.BuildListener loaded from parent loader (parentFirst)Couldn't load Resource commons-logging.propertiesCouldn't load Resource META-INF/services/org.apache.commons.logging.LogFactoryFinding class org.apache.log4j.LoggerFinding class org.apache.log4j.CategoryFinding class org.apache.log4j.spi.AppenderAttachableFinding class org.apache.commons.logging.impl.Log4JLoggerLoaded from C:\jakarta-tomcat-5.5.10-deployer\lib\commons-logging.jar org/apache/commons/logging/impl/Log4JLogger.classClass org.apache.commons.logging.impl.Log4JLogger loaded from ant loader (parentFirst)Finding class org.apache.log4j.CategoryFinding class org.apache.log4j.Category [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220) [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:913) [jasper2] at org.apache.jasper.JspC.execute(JspC.java:1061) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [jasper2] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [jasper2] at java.lang.reflect.Method.invoke(Method.java:585) [jasper2] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123) [jasper2] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364) [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341) [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jasper2] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [jasper2] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [jasper2] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [jasper2] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:668) [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:187) [jasper2] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [jasper2] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) [jasper2] Error in class org.apache.jasper.JspC BUILD FAILEDC:\jakarta-tomcat-5.5.10-deployer\build.xml:49: org.apache.jasper.JasperException at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at
Re: virtual host memory usage
Oh I see, well actually what I do, since all users with virtual hosts running identical applications, I place all application related libraries in shared/lib and WEB-INF/lib has only one jar which is application itself and its not in shared or common, common/lib only has Tomcat5 libraries plus database driver jar since I am using JNDI. Does that sound about right? Thanks Oleg On 8/15/05, George Sexton [EMAIL PROTECTED] wrote: You are correct. My suggestion was that you in one case had a file in the common/lib directory, while in another you had it in the WEB-INF/lib directory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Sunday, August 14, 2005 7:39 PM To: Tomcat Users List Subject: Re: virtual host memory usage I am sorry, what do you mean by host class loader? From what I understand there are 3 ways to load classes, /common/lib (used by tomcat), shared/lib (used by all applications), webapp/web-inf/lib used by this one application. Thank you Oleg On 8/13/05, George Sexton [EMAIL PROTECTED] wrote: The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - 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]
tomcat 5.0.19 randomly stops taking http requests
Tomcat 5.0.19 is actually still running, but stops taking http requests randomly. It will run just fine for one or two weeks, then in the middles of the night, or over the weekend when no one is using tomcat at all, it stops taking requests (I know when it happens because I have a standalone application that tries retrieving a webpage from Tomcat every half hour to check if it's still up). The catalina.out log file doesn't show anything unusual, it's actually still running, so is the Tomcat process. But trying to reach a web page will show a timeout error on any browser. And sometimes trying to shutdown tomcat after it's hung doesn't work, I have to manually kill the tomcat process. I am using JVM 1.4.2_02. Any help would be appreciated, Thanks. ps. I am new to using this mailing list, and have a question, is it required to subscribe to the tomcat-user list in order to ask questions? or can I just send emails to the list and replies will get sent back directly to my email address? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.19 randomly stops taking http requests
I am seeing some thing very similar with tomcat 5.0.25. I have 2 connectors configured and one will mysterious stop handling requests in the same way you mentioned below. Any help would be greatly appreciated. On 8/15/05, Tim Lam [EMAIL PROTECTED] wrote: Tomcat 5.0.19 is actually still running, but stops taking http requests randomly. It will run just fine for one or two weeks, then in the middles of the night, or over the weekend when no one is using tomcat at all, it stops taking requests (I know when it happens because I have a standalone application that tries retrieving a webpage from Tomcat every half hour to check if it's still up). The catalina.out log file doesn't show anything unusual, it's actually still running, so is the Tomcat process. But trying to reach a web page will show a timeout error on any browser. And sometimes trying to shutdown tomcat after it's hung doesn't work, I have to manually kill the tomcat process. I am using JVM 1.4.2_02. Any help would be appreciated, Thanks. ps. I am new to using this mailing list, and have a question, is it required to subscribe to the tomcat-user list in order to ask questions? or can I just send emails to the list and replies will get sent back directly to my email address? - 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: session problems: www.blahblah.com versus blahblah.com
Michael Teter wrote: If my users come to blahblah.com, then go away, then return, they get a new session id (for www.blahblah.com). But if they come to www.blahblah.com, leave, and return (via link from external site), they keep the same session. I finally discovered that the browser (Firefox in this case) ends up with two different session cookies - one for www.blahblah.com and one for blahblah.com. this behaviour seems reasonable to me... What's the right thing to do to solve this? it doesn't need solving, just accepting :-) but assuming you want www.blahblah.com and blahblah.com to behave (session-wise) like one domain, which they aren't, you could redirect (client-side) from www.blahblah.com (which IMHO is the redundant/obsolete/legacy domain) to blahblah.com, which allocates sessions and dishes out cookies. i.e. www.blahblah.com is a static site which just serves e.g. html head title%= a.appTitle %: redirection page/title meta http-equiv=refresh content=0;url=http://blahblah.com; / /head body onLoad=window.location.replace('http://blahblah.com') !-- optional if you are not redirected... blurb -- /body html NB I haven't actually *tried* this :-) Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/Aug/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 64 Bit Machines and Tomcat
Are there 64 bit counterparts? If not, would the 32 bit ones definitely work? These machines are Intel Zeon processors (dual) JR --- J. Ryan Earl [EMAIL PROTECTED] wrote: J R wrote: I tried to install Tomcat, and got the following: ./configure [...] configure: error: Unsupported CPU architecture x86_64 How do I fix? Is there files out there to fix that? Is there any particular reason you need to build Tomcat? Why not just go with a prebuilt binary Tomcat installation? I assume you're using the AMD64 JDK? -ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance proxy_ajp vs. mod_jk when TOMCAT integration with Apache
Hi, From performance point, which connector will be used for TOMCAT intergration with Apache? proxy_ajp or mod_jk? I read some docs which said mod_jk should have better performance than proxying. While proxy_ajp in Apache2.1 is an addition to the mod_proxy and uses Tomcat's AJP protocol stack. So I ask the upper question. Thx, Xuekun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deployment related question
Hi, I installed tomcat 5.0 (on XP)in default dir (program files/Apache../tomcat5.0). Only JSP 1.2 Examples are working. Also I have not been able to deploy any servlet, jsp... My question is, do we need to update web.xml for every simple deployment. I put all the file in appropriate dir(under webapp) but getting message not found. please help. Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deployment related question
Hi Aftab, In my experiance JSP 2.0 examples were working properly. But for the servlet deployment to be successful u shud give the servlet and servlet-mapping elements in the appln's web.xml file for all the servlet in the appln. But if u are using linux all works fine without web.xml also. With Regards, Litty Preeth --- Aftab Anwar [EMAIL PROTECTED] wrote: Hi, I installed tomcat 5.0 (on XP)in default dir (program files/Apache../tomcat5.0). Only JSP 1.2 Examples are working. Also I have not been able to deploy any servlet, jsp... My question is, do we need to update web.xml for every simple deployment. I put all the file in appropriate dir(under webapp) but getting message not found. please help. Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
400 No Host matches server name BLAH
With Jakatra/5.5.9 I'm having trouble settings up a Host that has its appBase= setup outside of the usual $CATALINA_BASE directory tree. Tomcat is running as userid jakarta, file permissions are all fine and my web application auto-deploys sucessfully from a WAR within the alternate appBase= directory tree. But when I do HTTP request to my simple /index.jsp file I get the HTTP error 400 No Host matches server name test.foobar.com If I try and access my page as /MyROOT/index.jsp that works, but the META-INF/context.xml has a configuration that tries to setup this application as the default context (path=). I believe I'm doing all the correct things to make this work. I would also like to alias two (or more) contexts to the same web-app. The default (path=) being just one of them. I would like this to be possible from within the WAR file, but it appears only one Context is allowed inside META-INF/context.xml as its the outer document tag for that file. What do others thing, if it would be useful for TC to implement a TC specific extension that simply searched for META-INF/tomcat-context.xml that would facilitate the multiple Context creation from WAR deployment. Your help appreciated. # telnet localhost 8080 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. GET /index.jsp HTTP/1.0 User-Agent: Wget/1.9.1 Host: test.foobar.com Accept: */* Connection: Keep-Alive Pragma: no-cache HTTP/1.1 400 No Host matches server name test.foobar.com Server: Apache-Coyote/1.1 Date: Tue, 16 Aug 2005 03:45:20 GMT Connection: close Connection closed by foreign host. Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=test.foobar.com appBase=/opt/test.foobar.com/tomcat/webapps workDir=/opt/test.foobar.com/tomcat/work unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine # cat /opt/jakarta-tomcat-5.5.9/conf/Catalina/test.foobar.com/MyROOT.xml ?xml version=1.0 encoding=UTF-8? Context path= docBase=MyROOT reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_MyROOT_log. suffix=.txt timestamp=true/ /Context # cd /opt/test.foobar.com find tomcat tomcat tomcat/webapps tomcat/webapps/MyROOT tomcat/webapps/MyROOT/index.jsp tomcat/webapps/MyROOT/WEB-INF tomcat/webapps/MyROOT/WEB-INF/web.xml tomcat/webapps/MyROOT/WEB-INF/classes tomcat/webapps/MyROOT/WEB-INF/classes/test tomcat/webapps/MyROOT/WEB-INF/classes/test/Klass.java tomcat/webapps/MyROOT/WEB-INF/classes/test/Klass.class tomcat/webapps/MyROOT/META-INF tomcat/webapps/MyROOT/META-INF/context.xml tomcat/webapps/MyROOT/META-INF/MANIFEST.MF tomcat/webapps/MyROOT.war tomcat/work tomcat/work/MyROOT tomcat/work/MyROOT/tldCache.ser # ls -lad tomcat tomcat/webapps tomcat/work tomcat/webapps/MyROOT.war drwxrwxr-x 4 jakartajakarta 4096 Aug 3 12:31 tomcat drwxrwxr-x 3 ftpuserjakarta 4096 Aug 16 04:39 tomcat/webapps -rw-rw-r-- 1 ftpuserjakarta 2251 Aug 16 04:39 tomcat/webapps/MyROOT.war drwxrwxr-x 3 jakartajakarta 4096 Aug 16 04:39 tomcat/work # ps uax | grep jsvc root 22427 0.0 0.0 1600 536 ?Ss Aug08 0:00 jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start jakarta 22428 0.0 1.1 2353532 86788 ? Sl Aug08 3:05 jsvc.exec -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -pidfile ./logs/jsvc.pid -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 64 Bit Machines and Tomcat
From: J R [mailto:[EMAIL PROTECTED] Subject: Re: 64 Bit Machines and Tomcat Are there 64 bit counterparts? If not, would the 32 bit ones definitely work? I think you're missing the point. You don't need to build Tomcat, since it's pure Java. Just download the binary distribution, unzip, and run the appropriate startup script for your OS. You do need to have a 64-bit JRE installed, of course, if you want the Java code to run in 64-bit mode. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Hosting with WAR files
Hi I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files namely flie1.war, file2.war and file3.war. To deploy, I just put them in the deploy folder and access then using the urls: http://foo.com/file1 http://foo.com/file2 http://foo.com/file3 This works perfectly for me. I want to change this to simple urls as follows: http://file1.foo.com http://file2.foo.com http://file3.foo.com I have also read the notes on Virtual hosting: http://jakarta.apache.org/tomcat/connectors-doc- archive/jk2/jk2/vhosthowto.html Even though I am not able to configure Tomcat to connect to the war files as requested. How do I configure tomcat to connect to the correct war file as requested? Any help will be appreciated. Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance proxy_ajp vs. mod_jk when TOMCAT integration with Apache
Xuekun Hu wrote: Hi, From performance point, which connector will be used for TOMCAT intergration with Apache? proxy_ajp or mod_jk? I read some docs which said mod_jk should have better performance than proxying. While proxy_ajp in Apache2.1 is an addition to the mod_proxy and uses Tomcat's AJP protocol stack. So I ask the upper question. Right, both mod_jk and proxy_ajp have almost the same performance, and they are up to twice as fast compared with http mostly because of constant connection pool. AJP protocol gives it's share too by transferring less data across the wire. If you are using Apache 2.1+ there is no need to use mod_jk and maintain additional module. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: serving japanese file problem
thanks Mark,Hiroshi but how do i specify this in tomcat configuration. in which config file i need to change. what are the changes to be done to achive this. pls help. im newbie arun On 8/12/05, Mark Thomas [EMAIL PROTECTED] wrote: Arun Prasad R wrote: i have a ウェブ.jpg (japanese filename) in images directory. while requesting that file url encode to %E3%82%A6%E3%82%A7%E3%83%96.jpg but tomcat doesn't serve ウェブ.jpg instead it says file not found. my question is how to make tomcat to decode %E3%82%A6%E3%82%A7%E3%83%96.jpg as ウェブ.jpg You should set the URIEncoding paramter of the connector to UTF-8. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]