<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with tomcat</title>
      <link>http://ask.metafilter.com/tags/tomcat</link>
      <description>Questions tagged with 'tomcat' at Ask MetaFilter.</description>
	  <pubDate>Mon, 08 Jun 2009 16:19:08 -0800</pubDate> <lastBuildDate>Mon, 08 Jun 2009 16:19:08 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Cruisecontrol and Tomcat on port 80?</title>
	<link>http://ask.metafilter.com/124245/Cruisecontrol%2Dand%2DTomcat%2Don%2Dport%2D80</link>	
	<description>Server filter: How can I get Cruisecontrol and Tomcat on the same port? (Port 80?) By default, CruiseControl and Tomcat need to use different ports to run on the same computer. However, the way things are set up for my server, they don&apos;t need to run at the same time. So, is it possible to have them both on the same port, but only activated when the user types in a certain link? For example:&lt;br&gt;
&lt;br&gt;
http://localhost --&amp;gt; Would lead to Tomcat&lt;br&gt;
http://localhost/cruisecontrol --&amp;gt; Leads to the CruiseControl dashboard. &lt;br&gt;
&lt;br&gt;
When CruiseControl is accessed, Tomcat wouldn&apos;t be active.&lt;br&gt;
&lt;br&gt;
My goal is to get them both running on the same port, but switching off when needed. I was told that this is possible and that it had been done before, but I wasn&apos;t given any details. Does anyone have any insight or possible alternatives?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124245</guid>
	<pubDate>Mon, 08 Jun 2009 16:19:08 -0800</pubDate>
	<category>cruisecontrol</category>
	<category>port80</category>
	<category>server</category>
	<category>tomcat</category>
	<dc:creator>nikkorizz</dc:creator>
	</item>
	<item>
	<title>The future of client/server deployment?</title>
	<link>http://ask.metafilter.com/108266/The%2Dfuture%2Dof%2Dclientserver%2Ddeployment</link>	
	<description>How are people deploying web applications with client/server interaction these days? After a failed attempt at getting a Java servlet up using Apache Tomcat, I&apos;m looking to see what else is out there. Ideally, I&apos;d like to stick with JAVA, but I suppose it&apos;s also in my best interest to pick up other popular languages if that&apos;s seems to be where the flow is going.&lt;br&gt;
&lt;br&gt;
Tomcat was useful, but documentation on it was sparse and outdated, and troubleshooting &lt;strong&gt;just to get the thing &lt;em&gt;working&lt;/em&gt;&lt;/strong&gt; was a pretty hairy experience. What&apos;s a good alternative?&lt;br&gt;
&lt;br&gt;
Bonus points to employees that actually use said alternative for their own job. I&apos;m not too worried about ease or interface, just as long as it&apos;s a technology that is &lt;em&gt;well documented&lt;/em&gt;, meaning more than 100 articles/posts made about it within the past year!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.108266</guid>
	<pubDate>Tue, 02 Dec 2008 18:35:23 -0800</pubDate>
	<category>apache</category>
	<category>client</category>
	<category>java</category>
	<category>server</category>
	<category>servlet</category>
	<category>tomcat</category>
	<category>webapplication</category>
	<dc:creator>nikkorizz</dc:creator>
	</item>
	<item>
	<title>How do I pass a PHP session authenticated in IIS across to Jetty or Tomcat?</title>
	<link>http://ask.metafilter.com/100914/How%2Ddo%2DI%2Dpass%2Da%2DPHP%2Dsession%2Dauthenticated%2Din%2DIIS%2Dacross%2Dto%2DJetty%2Dor%2DTomcat</link>	
	<description>I have users logging into XOOPS running on IIS, and have an instance of the Jetty JSP webserver configured to serve up Eclipse&apos;s Infocenter system. How can I set up security so that no users can view the Jetty-served content without being authenticated first in a XOOPS session off of IIS? I&apos;m trying to tie certain web-based applications together here and I&apos;m wondering if there&apos;s an easy way to achieve something.&lt;br&gt;
&lt;br&gt;
At my company, we run IIS, PHP and MySQL which all serves up a XOOPS-driven website. One of our teams has provided the Eclipse Help system (&quot;Infocenter&quot;) containing a stack of product documentation, all packaged up with the Jetty webserver. The way we received it from another team in our company, you run a batch file which installs Jetty as a Windows service, and when you run that service Jetty fires up and starts listening on a port that you can pre-choose in a properties file prior to creating the service. Going to your URL/port in a browser will connect to Jetty, which in turn serves up the Eclipse Infocenter content.&lt;br&gt;
&lt;br&gt;
That&apos;s all well and good if you&apos;re happy to just send your browser to the Jetty/Infocenter URL but there&apos;s another dimension to this. I need to be able to secure access to the Jetty port so that only users who have pre-authenticated to XOOPS, hosted in IIS, will be allowed into the Infocenter/Jetty instance. And therein lies the rub: once authenticated to XOOPS the user has a golden key in the form of an authenticated session, but as soon as the browser is passed to Jetty, how can we set it up so that the user is forbidden from accessing any Jetty-served pages without the XOOPS golden key?&lt;br&gt;
&lt;br&gt;
It&apos;s a convoluted situation here but let&apos;s just say that another non-IT team came up with this Infocenter idea - someone who &quot;did this at his previous job&quot; has suggested the idea, plenty of non-IT but senior-management people bought into it, he wrapped up everything in Jetty and gave it to us, and now he&apos;s on his way out of the company (probably so he can eventually leave a poo in the middle of some &lt;em&gt;other&lt;/em&gt; company&apos;s carpet the size of the Pyramid of Giza for someone else to clean up) and doesn&apos;t have the time to work with us to fulfil the mess of other requirements we now have in taking this technology to the next level.&lt;br&gt;
&lt;br&gt;
We have Tomcat serving other JSP content as well, which is doubly annoying in the scheme of things since, of course, it should be able to replace Jetty as the JSP serving system. Right now we&apos;re taking on a problem another team has created, and investigating how to make a WAR-file version of the Infocenter to be hosted under Tomcat, but our deadline for getting all of this resolved and implemented is the end of this month (9/2008). So, either in Jetty or in Tomcat, is there a way of securing these technologies so that only a user that has a valid PHP session generated within XOOPS and IIS is able to be passed thru to either a Tomcat or Jetty server containing the Eclipse Infocenter system? Our other Tomcat-hosted solution is our own code, provided to us by someone who&apos;s no longer with our company, so we can get our fingers dirty with that to an extent (and that&apos;s not something I&apos;m asking to be solved here), but we think the solution to this Infocenter dilemma lies in some sort of custom thing we need to write which allows Jetty or Tomcat to act as a doorman, checking some sort of passed credential and disallowing browser access to content if that credential is not somehow &quot;present&quot; as the browser comes across. Like the concept of a referrer, but not as easily spoofable/hackable. Make sense? (frustratedly sips coffee)&lt;br&gt;
&lt;br&gt;
None of those in my team are majorly experienced web programmers so we&apos;re running madly around the Internet trying to find solutions. Figured the hive mind could help. (crosses fingers and sips more coffee)&lt;br&gt;
&lt;br&gt;
Oh, and to answer what might be everyone&apos;s next question - we aren&apos;t using Apache to serve XOOPS because IIS was on the machine we originally put it on and we felt there was no reason to since XOOPS runs perfectly fine under IIS.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100914</guid>
	<pubDate>Thu, 04 Sep 2008 13:37:34 -0800</pubDate>
	<category>iis</category>
	<category>jetty</category>
	<category>jsp</category>
	<category>php</category>
	<category>security</category>
	<category>tomcat</category>
	<category>xoops</category>
	<dc:creator>tra</dc:creator>
	</item>
	<item>
	<title>Quoth the server, 404.</title>
	<link>http://ask.metafilter.com/98057/Quoth%2Dthe%2Dserver%2D404</link>	
	<description>Apache and Tomcat strangeness... a page in my app throws a 404... but only when using SSL on a single server. I am having a very strange problem with one of my applications.&lt;br&gt;
&lt;br&gt;
The skinny:&lt;br&gt;
&lt;br&gt;
- The app is a Java JSP servlet web app running on a proprietary framework and tag library. It&apos;s something like a primitive and wonky version of Struts.&lt;br&gt;
&lt;br&gt;
- The problem is that going to a certain page in the app gets a 404 but... ONLY on the test server and ONLY when SSL is used.&lt;br&gt;
&lt;br&gt;
- It works fine on my machine locally, on another windows machine running tomcat, on our staging server which is solaris (just like the test box), and on the test box if I go to the HTTP address instead of HTTPS.&lt;br&gt;
&lt;br&gt;
- Tomcat&apos;s catalina log give nothing strange.&lt;br&gt;
&lt;br&gt;
- Apache&apos;s error log gives entries like the following:&lt;br&gt;
&lt;br&gt;
[Thu Jul 31 10:37:53 2008] [error] [client 10.140.225.162] File does not exist: /usr/local/jakarta-tomcat-4.1.30/webapps/myapp/services, referer: https://mytestserver.ca/myapp/services/services.jsp?selServices=MyServices_f2&lt;br&gt;
&lt;br&gt;
response when trying from Firefox:&lt;br&gt;
&lt;br&gt;
Not Found&lt;br&gt;
&lt;br&gt;
The requested URL /sao/services/changeRequestType was not found on this server.&lt;br&gt;
&lt;br&gt;
Apache/2.0.49 (Unix) mod_jk/1.2.5 mod_ssl/2.0.49 OpenSSL/0.9.7d PHP/5.0.4 Server at mytestserver.ca Port 443&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
It looks to me like it is trying to find a /myapp/services/ folder? This folder of course does not exist. That URL ( /services/*) is mapped in my web.xml and has worked fine until now.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I do not  have direct access to the servers in question, as I am only the developer. My knowledge of apache and tomcat configuration is very limited.&lt;br&gt;
&lt;br&gt;
To my mind, the key question is why does it work on port 80, but not 443? Surely this must be a server config issue?&lt;br&gt;
&lt;br&gt;
Any assistance is greatly appreciated and will save me from wasting more time spinning my wheels on this. I have googled to the best of my fu and have turned up nothing.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.98057</guid>
	<pubDate>Fri, 01 Aug 2008 07:37:22 -0800</pubDate>
	<category>404</category>
	<category>apache</category>
	<category>java</category>
	<category>jsp</category>
	<category>resolved</category>
	<category>ssl</category>
	<category>tomcat</category>
	<dc:creator>utsutsu</dc:creator>
	</item>
	<item>
	<title>Splunking files on Windows boxes</title>
	<link>http://ask.metafilter.com/74441/Splunking%2Dfiles%2Don%2DWindows%2Dboxes</link>	
	<description>Getting Splunk running on Solaris 5.8, with log files on Windows boxes. So I&apos;ve installed Splunk on a Solaris 5.8 box, and now I need to get some data into it. We have a large amount of Windows servers, among other things, with Tomcat logs that I&apos;d love to get into Splunk. People currently remote desktop onto the servers and peruse the logs in Notepad.... ugh!&lt;br&gt;
&lt;br&gt;
How best to do this?&lt;br&gt;
&lt;br&gt;
It seems that the most obvious way is to mount the Windows drives using SaMBa so Splunk considers them to be locally hosted files (albeit from another server).&lt;br&gt;
&lt;br&gt;
Any other way? The less painful, the better.&lt;br&gt;
&lt;br&gt;
Let&apos;s assume disk space and network bandwidth aren&apos;t an issue. I&apos;m just new to Splunk and not too sure of my options. I did RTFM but can&apos;t see much specifically about this. I&apos;m sure it&apos;s there, somewhere painfully obvious.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.74441</guid>
	<pubDate>Tue, 23 Oct 2007 06:04:21 -0800</pubDate>
	<category>data</category>
	<category>logging</category>
	<category>samba</category>
	<category>search</category>
	<category>smb</category>
	<category>solaris</category>
	<category>splunk</category>
	<category>tomcat</category>
	<category>windows</category>
	<dc:creator>ajp</dc:creator>
	</item>
	<item>
	<title>Stupid computers.....do what I want!</title>
	<link>http://ask.metafilter.com/59584/Stupid%2Dcomputersdo%2Dwhat%2DI%2Dwant</link>	
	<description>I asked an earlier question about using Apache to redirect a request to a Tomcat server running Jython. With your help I&apos;ve gotten that running, but now I have a new problem. I need the hostname of the computer making the request to be available to the Jython scripts that are running, but the mod_rewrite changes REMOTE_ADDR to be name of the Apache server, not the hostname of the user. Is there some other way I can get this information?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.59584</guid>
	<pubDate>Thu, 29 Mar 2007 12:17:22 -0800</pubDate>
	<category>Apache</category>
	<category>Jython</category>
	<category>mod_rewrite</category>
	<category>Tomcat</category>
	<dc:creator>emptybowl</dc:creator>
	</item>
	<item>
	<title>How do I force HTTPS in Tomcat (through Apache and mod_jk)?</title>
	<link>http://ask.metafilter.com/53101/How%2Ddo%2DI%2Dforce%2DHTTPS%2Din%2DTomcat%2Dthrough%2DApache%2Dand%2Dmodjk</link>	
	<description>I&apos;m at my wit&apos;s end. I&apos;ve been trying to configure tomcat (through apache 2 using mod_jk) to automatically re-direct all traffic to HTTPS from HTTP. More boring technical details to follow. Specifically, I&apos;m trying to get &lt;a href=&quot;http://www.ja-sig.org/products/cas/&quot;&gt;CAS&lt;/a&gt; working. Tomcat is successfully serving-up the pages over HTTP and HTTPS and the application is working as expected. However, since this particular servlet handles user authentication I would like Tomcat to force HTTPS for all requests.&lt;br&gt;
&lt;br&gt;
I have tried using isSecure() through JSP to redirect users but it simply puts the requests into an endless loop. I have tried the &lt;a href=&quot;http://www.jguru.com/faq/view.jsp?EID=748030&quot;&gt;following configuration&lt;/a&gt; in the web.xml file (see Lukas Bradleys&apos; answer) and it does force a redirect, but it uses the server hostname as the URL and not the proxied URL to the server (which means it doesn&apos;t work externally).&lt;br&gt;
&lt;br&gt;
I&apos;ve tried changing the hostname on the server but it continues to use the initial hostname which leads me to believe that this value is somewhere in the Tomcat configuration, but I cannot locate it.&lt;br&gt;
&lt;br&gt;
So, is there an easier way to do this? Or, does anyone know where to look to modify that hostname to use the URL for the proxied site? Any assistance would be appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.53101</guid>
	<pubDate>Wed, 13 Dec 2006 15:56:41 -0800</pubDate>
	<category>CAS</category>
	<category>https</category>
	<category>java</category>
	<category>security</category>
	<category>servlet</category>
	<category>tomcat</category>
	<category>web</category>
	<dc:creator>purephase</dc:creator>
	</item>
	<item>
	<title>Enabling Default Document for Tomcat / IIS (ISAPI Redirector) connector</title>
	<link>http://ask.metafilter.com/24790/Enabling%2DDefault%2DDocument%2Dfor%2DTomcat%2DIIS%2DISAPI%2DRedirector%2Dconnector</link>	
	<description>How can I configure index.jsp to be a default document in Tomcat using the IIS connector (ISAPI Redirector)? I&apos;ve got the ISAPI redirector installed and working - for the most part. Specifiying the exact file (http://site/app/index.jsp) via the ISAPI redirector works. Going directly to Tomcat (http://site:8080/app/) works too. However, if I try:&lt;br&gt;
&lt;br&gt;
http://site/app/ &lt;br&gt;
&lt;br&gt;
It does not work. Where do I fix this? I&apos;m mostly a WebSphere guy and this stuff is pretty simple to fix with that in the WS plugin file... How about Tomcat?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.24790</guid>
	<pubDate>Fri, 30 Sep 2005 06:42:41 -0800</pubDate>
	<category>iis</category>
	<category>isapi</category>
	<category>redirector</category>
	<category>tomcat</category>
	<dc:creator>kuperman</dc:creator>
	</item>
	<item>
	<title>What&apos;s the best Linux distribution for Tomcat?</title>
	<link>http://ask.metafilter.com/21975/Whats%2Dthe%2Dbest%2DLinux%2Ddistribution%2Dfor%2DTomcat</link>	
	<description>What&apos;s the best Linux distribution for deploying Tomcat applications? I&apos;m part of a small company, and we have two x86 towers on which we would like to install a Linux distribution and Tomcat.&lt;br&gt;
&lt;br&gt;
My first choice for that Linux distribution was &lt;a href=&quot;http://fedora.redhat.com/&quot;&gt;Fedora Core&lt;/a&gt;, because of its relatively recent package versions and good GUI administration tools. Unfortunately, Fedora now seems to ship with &lt;a href=&quot;http://gcc.gnu.org/java/&quot;&gt;gcj&lt;/a&gt;, which means we end up with a mess of packages compiled for gcj (from Fedora) and ones ready to rock on Sun&apos;s JVM (from everywhere else). To boot, the &lt;a href=&quot;http://www.jpackage.org/&quot;&gt;JPackage&lt;/a&gt; version of Tomcat isn&apos;t terribly up-to-date.&lt;br&gt;
&lt;br&gt;
So, should we slog through the Fortress of Fedora, or is there a distribution out there that will make it easier and faster (and less frustrating) to get Sun&apos;s JDK + Tomcat up-and-running?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.21975</guid>
	<pubDate>Mon, 01 Aug 2005 06:16:27 -0800</pubDate>
	<category>java</category>
	<category>linux</category>
	<category>linuxdistributions</category>
	<category>tomcat</category>
	<dc:creator>esd</dc:creator>
	</item>
	<item>
	<title>How to block IPs in Apache Tomcat?</title>
	<link>http://ask.metafilter.com/18978/How%2Dto%2Dblock%2DIPs%2Din%2DApache%2DTomcat</link>	
	<description>Recently a wiki that I host has been defaced pretty badly by some Asian group.  I&apos;d like to block an ip address or a range of addresses from my web server.  I&apos;m running Jakarta Tomcat on a Windows XP Pro box but Google hasn&apos;t been able to tell me how to do this.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.18978</guid>
	<pubDate>Sat, 21 May 2005 12:31:24 -0800</pubDate>
	<category>apache</category>
	<category>domain</category>
	<category>ipAddress</category>
	<category>jakarta</category>
	<category>tomcat</category>
	<category>windowsXP</category>
	<dc:creator>furtive</dc:creator>
	</item>
	<item>
	<title>Listless Cat</title>
	<link>http://ask.metafilter.com/8912/Listless%2DCat</link>	
	<description>More Cat Filter. I Was recently adopted by a small black tom cat. I had him neutered two days ago and he seems listless. More inside. Kitty was neutered, had his shots (rabies, fvr-cp-c, leukemia) and treated with Revolution for fleas. He is eating and pooping and his eyes are bright and clear and his coat is shiny and smooth but he just has no interest in anything but being held like a baby and sleeping. Is he just getting over the treatment? All Google tells me is that they recover quickly. I really do not want to subject him to another visit to the vet if it&#8217;s not needed, but how long is it until a neutered cat is back to his old self?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.8912</guid>
	<pubDate>Thu, 22 Jul 2004 21:52:50 -0800</pubDate>
	<category>cat</category>
	<category>kitten</category>
	<category>listless</category>
	<category>lowenergy</category>
	<category>tomcat</category>
	<dc:creator>arse_hat</dc:creator>
	</item>
	
	</channel>
</rss>

