<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-303</id>
	<title>Nabble - Tomcat</title>
	<updated>2008-07-23T21:14:45Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Tomcat-f303.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Tomcat-f303.html" />
	<subtitle type="html">Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. Tomcat home is &lt;a href=&quot;http://jakarta.apache.org/tomcat/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-18625167</id>
	<title>Re: Can I pass values to application configuration file on command line</title>
	<published>2008-07-23T21:14:45Z</published>
	<updated>2008-07-23T21:14:45Z</updated>
	<author>
		<name>Bill Barker-2</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Jim Cant&amp;quot; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cant_jim@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;BAY110-DAV1156815676349F47F494AAE6840@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Is there a way I can use replaceable parameters in an application's xml
&lt;br&gt;&amp;gt; configuration file and pass a value in on the Tomcat command line. &amp;nbsp;In
&lt;br&gt;&amp;gt; particular, I would like to set the value of docBase so that I can launch
&lt;br&gt;&amp;gt; tomcat and have it find my app in different locations without having to 
&lt;br&gt;&amp;gt; edit
&lt;br&gt;&amp;gt; the xml config file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example, in the application config file
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; (say, $TOMCAT_HOME/conf/Catalina/localhost/myAppConfig.xml)
&lt;br&gt;&amp;gt; put something like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;Context path=&amp;quot;/theAppPath&amp;quot; &amp;nbsp; &amp;nbsp;docBase=&amp;quot;${APP_PATH}&amp;quot; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; so that ${APP_PATH} (or whatever the correct syntax is) gets replaced when
&lt;br&gt;&amp;gt; Tomcat is started with something like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$TOMCAT_HOME/bin/startup &amp;nbsp;... -DAPP_PATH=/my/app/lives/here ...
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;This won't work, but (assuming that you have a reasonably receint Tomcat) if 
&lt;br&gt;you create a setenv.sh in the $CATALINA_HOME/bin directory that includes:
&lt;br&gt;&amp;nbsp; CATALINA_OPTS=&amp;quot;-DAPP_PATH=/my/app/lives/here&amp;quot;
&lt;br&gt;&amp;nbsp; export CATALINA_OPTS
&lt;br&gt;then Tomcat will perform the variable replacement when parsing the 
&lt;br&gt;context.xml file.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; and have the value for the variable replace the placeholder in the config
&lt;br&gt;&amp;gt; file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks a lot,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jim Cant
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18625167&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Can-I-pass-values-to-application-configuration-file-on-command-line-tp18612557p18625167.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18624167</id>
	<title>Auto Session Creation and memory usage</title>
	<published>2008-07-23T19:06:47Z</published>
	<updated>2008-07-23T19:06:47Z</updated>
	<author>
		<name>Jacob Rhoden-4</name>
	</author>
	<content type="html">Hi Guys,
&lt;br&gt;&lt;br&gt;I am working on creating some more scalable tomcat applications. I have
&lt;br&gt;addedd a SessionListener and it seems that hitting a jsp page triggers a
&lt;br&gt;session to be created.
&lt;br&gt;&lt;br&gt;If there are 1000 users and only 10 are signed in, I dont think 1000
&lt;br&gt;sessions need to be created yes. How do I turn off auto session 
&lt;br&gt;creation, or is this impossible.
&lt;br&gt;&lt;br&gt;(Google has not been my friend in this regard, do people not think about
&lt;br&gt;this sort of thing?)
&lt;br&gt;&lt;br&gt;-jacob
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18624167&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18624167&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18624167&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Auto-Session-Creation-and-memory-usage-tp18624167p18624167.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18623652</id>
	<title>RE: Memory question</title>
	<published>2008-07-23T18:00:56Z</published>
	<updated>2008-07-23T18:00:56Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: David Smith [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18623652&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dns4@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: Re: Memory question
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I believe the startup script accepts extra parameters and just
&lt;br&gt;&amp;gt; passes them on to the JVM for startup. &amp;nbsp;You should be able to do:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; startup.sh -Xmx512m
&lt;br&gt;&lt;br&gt;Unfortunately not, although it certainly would be convenient. &amp;nbsp;The extra parameters are passed to Tomcat's Bootstrap class, not the JVM. &amp;nbsp;You really do have to use CATALINA_OPTS or JAVA_OPTS.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18623652&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18623652&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18623652&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-question-tp18620531p18623652.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622879</id>
	<title>Re: Memory question</title>
	<published>2008-07-23T16:36:39Z</published>
	<updated>2008-07-23T16:36:39Z</updated>
	<author>
		<name>David Smith-2</name>
	</author>
	<content type="html">If you login to tomcat's manager webapp, you can see the memory settings 
&lt;br&gt;and usage on the running system. &amp;nbsp;Regarding setting the memory, etc., 
&lt;br&gt;... I believe the startup script accepts extra parameters and just 
&lt;br&gt;passes them on to the JVM for startup. &amp;nbsp;You should be able to do:
&lt;br&gt;&lt;br&gt;startup.sh -Xmx512m
&lt;br&gt;&lt;br&gt;Then you don't end up giving every java program running on the system 
&lt;br&gt;half your system memory, killing hard drives on page swaps.
&lt;br&gt;&lt;br&gt;--David
&lt;br&gt;&lt;br&gt;Matt Burkhardt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Okay - I've gone ahead, uninstalled the distro from Ubuntu, installed
&lt;br&gt;&amp;gt; Tomcat 6.0.16 and I'm having problems running out of memory. &amp;nbsp;My
&lt;br&gt;&amp;gt; catalina.out file contains the lines
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
&lt;br&gt;&amp;gt; Caused by: java.lang.OutOfMemoryError: Java heap space
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; and the application says it needs 512MB, I have 1GB on the server and it
&lt;br&gt;&amp;gt; says that you can use up to 70% of the memory before it gets starved.
&lt;br&gt;&amp;gt; So I edited the /etc/environment contents and ended up with this
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; more /etc/environment
&lt;br&gt;&amp;gt; PATH=&amp;quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games&amp;quot;
&lt;br&gt;&amp;gt; ANT_HOME=&amp;quot;/usr/share/ant&amp;quot;
&lt;br&gt;&amp;gt; JAVA_HOME=&amp;quot;/usr/lib/jvm/java-6-sun&amp;quot;
&lt;br&gt;&amp;gt; JAVA_OPTS=&amp;quot;${JAVA_OPTS} -Djava.awt.headless=true -Xms512M -Xmx512M
&lt;br&gt;&amp;gt; -XX:PermSize=256M -XX:MaxPermSize=256M
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and I rebooted the machine, but I'm still getting the error. &amp;nbsp;I don't
&lt;br&gt;&amp;gt; know how to check and see if it took the arguments correctly, but when I
&lt;br&gt;&amp;gt; look at &lt;a href=&quot;http://myserver:8080/manager/status&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://myserver:8080/manager/status&lt;/a&gt;&amp;nbsp;I see
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JVM
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Free memory: 23.34 MB Total memory: 63.56 MB Max memory: 63.56 MB
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What am I doing wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Matt Burkhardt, MSTM
&lt;br&gt;&amp;gt; President
&lt;br&gt;&amp;gt; Impari Systems, Inc.
&lt;br&gt;&amp;gt; ﻿401 Rosemont Avenue
&lt;br&gt;&amp;gt; Frederick, MD &amp;nbsp;21701
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622879&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mlb@...&lt;/a&gt;
&lt;br&gt;&amp;gt; www.imparisystems.com
&lt;br&gt;&amp;gt; (301) 644-3911
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622879&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622879&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622879&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-question-tp18620531p18622879.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622757</id>
	<title>Re: one webapp, many apache virtualhosts</title>
	<published>2008-07-23T16:30:47Z</published>
	<updated>2008-07-23T16:30:47Z</updated>
	<author>
		<name>Gabe Wong</name>
	</author>
	<content type="html">Jordan Michaels wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Gabe,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hmm... you mean add the following outside the VirtualHost directives:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ProxyPass / &lt;a href=&quot;http://mydomain.com:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mydomain.com:8080/&lt;/a&gt;&lt;br&gt;&amp;gt; ProxyPassreverse / &lt;a href=&quot;http://mydomain.com:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mydomain.com:8080/&lt;/a&gt;&lt;br&gt;&amp;gt; HostnameLookups Off
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Wouldn't that just serve up the JSP files that are located in the ROOT
&lt;br&gt;&amp;gt; webapp? Maybe I'm confused. Maybe I'm asking the wrong question? I'm not
&lt;br&gt;&amp;gt; sure. =P
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there any way that I can have tomcat serve up the JSP files that are
&lt;br&gt;&amp;gt; in each user's public_html directory without having to add &amp;lt;host&amp;gt; and
&lt;br&gt;&amp;gt; &amp;lt;context&amp;gt; tags to the server.xml file each time? That way, all the end
&lt;br&gt;&amp;gt; user has to do is add new &amp;lt;VirtualHost&amp;gt;'s to Apache and not have to
&lt;br&gt;&amp;gt; worry about Tomcat configs?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;I see what you are trying to achieve.
&lt;br&gt;Yes you will have to edit the server.xml as you are trying to specify 
&lt;br&gt;contexts off of Tomcat's default directory.
&lt;br&gt;&lt;br&gt;First of all I do not recommend putting Java code in the same 
&lt;br&gt;public_html directory used for processing other resources by Apache.
&lt;br&gt;Apart from being less than elegant, there are some inherent security 
&lt;br&gt;risks involved with this approach.
&lt;br&gt;I am assuming it is a single instance of &amp;nbsp;Tomcat shared by multiple 
&lt;br&gt;users? That too is probably a security issue
&lt;br&gt;depending on how the SecurityManager is configured.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks again for the patient reply. I really appreciate it!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Jordan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gabe Wong wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi Jordan,
&lt;br&gt;&amp;gt;&amp;gt; You just need to put the proxy directive outside the virtualhost once.
&lt;br&gt;&amp;gt;&amp;gt; So it would be globally available
&lt;br&gt;&amp;gt;&amp;gt; in the Apache config.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Jordan Michaels wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have a situation where I want all jsp files on a particular system to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; be served up by one context (webapp) in tomcat.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; So in apache, I have a virtualhost who's files are stored in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; /home/user1/public_html, and another apache virtualhost who's files are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; stored in /home/user2/public_html. Is there a way that I can get the jsp
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; files in both apache VirtualHosts to get processed by the same tomcat
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; context WITHOUT having to make new &amp;lt;host&amp;gt; entries for each new site?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Basically, the customer wants the freedom to create new web sites using
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the control panel software and just have tomcat process the JSP files as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; necessary for each site. It would be ideal if they didn't have to modify
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; tomcat every time they added a new site to their server.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This is probably just my ignorance shining though, but could someone
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; point me in the right direction on how to set up tomcat to perform in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this way? I'm happy to read documentation &amp;nbsp;but it looks like there's a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; lot that tomcat can do that just isn't necessary here. If I could get
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; just a little bit of direction on this, I would be in your debt.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thank you for your help!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -Jordan
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Gabe Wong
&lt;br&gt;NGASI AppServer Manager
&lt;br&gt;JAVA AUTOMATION and SaaS Enablement for Cloud Computing
&lt;br&gt;&lt;a href=&quot;http://www.ngasi.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ngasi.com&lt;/a&gt;&lt;br&gt;NEW! FREE Developer account for Hosted version on Amazon EC2
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622757&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/one-webapp%2C-many-apache-virtualhosts-tp18618142p18622757.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622618</id>
	<title>Re: Multiple websites in tomcat</title>
	<published>2008-07-23T16:14:57Z</published>
	<updated>2008-07-23T16:14:57Z</updated>
	<author>
		<name>awarnier</name>
	</author>
	<content type="html">Final message for today/tonight :
&lt;br&gt;&lt;br&gt;I think there is a conflict between the
&lt;br&gt;worker.list=..
&lt;br&gt;and the
&lt;br&gt;balance_workers=..
&lt;br&gt;&lt;br&gt;and if the same worker name appears in both, then somehow different 
&lt;br&gt;parallel conflicting instances are started.
&lt;br&gt;&lt;br&gt;See
&lt;br&gt;&lt;a href=&quot;http://tomcat.apache.org/connectors-doc/reference/workers.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/connectors-doc/reference/workers.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;André
&lt;br&gt;&lt;br&gt;&lt;br&gt;------- before ---
&lt;br&gt;&lt;br&gt;Ravi Sharma wrote:
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; i dont know why JK.log is saying *no URI mapping found* when we are giving
&lt;br&gt;&amp;gt; JkMount option.
&lt;br&gt;&amp;gt; I have refreshed the logs on log.html page
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;You know, somehow I still have the impression that we are talking about
&lt;br&gt;different hosts, or at least that the one mod_jk which is reading the
&lt;br&gt;JkMount and apparently configuring the URI map correctly, is not the
&lt;br&gt;same as the one who processes the requests.
&lt;br&gt;&lt;br&gt;I know it sounds crazy, but are you sure that you do not have two
&lt;br&gt;Apache's running and writing to the same logfiles ?
&lt;br&gt;&lt;br&gt;For instance, in your jk.log logfile, there are messages like :
&lt;br&gt;[Tue Jul 22 16:08:13.755 2008] [28280:3079427792] [debug]
&lt;br&gt;do_shm_open::jk_shm.c (471): Reseting the shared memory for child 3
&lt;br&gt;[Tue Jul 22 16:08:13.755 2008] [28280:3079427792] [debug]
&lt;br&gt;do_shm_open_lock::jk_shm.c (262): Duplicated shared memory lock
&lt;br&gt;/etc/httpd/logs/jk-runtime-status.19565.lock
&lt;br&gt;&lt;br&gt;I don't have such messages at all in my logfile.
&lt;br&gt;&lt;br&gt;and also, in those messages, this part : [28280:3079427792] seems to
&lt;br&gt;show various numbers before the &amp;quot;:&amp;quot;, which are very separated from one
&lt;br&gt;another. &amp;nbsp;I don't really know what they are, but they look like some
&lt;br&gt;kind of process-id.
&lt;br&gt;On my system (currently very lightly loaded), those numbers are very
&lt;br&gt;close, like 31013, 31014, 31015, etc.. &amp;nbsp;On yours they look like 19565,
&lt;br&gt;27912, 28280,..
&lt;br&gt;Maybe it is just because your system is very busy, and generates a lot
&lt;br&gt;of processes in-between the Apache/mod_jk instances.
&lt;br&gt;&lt;br&gt;But the combination of all of that, plus the problem you have and I do
&lt;br&gt;not, sound very suspicious.
&lt;br&gt;&lt;br&gt;I have one more suspicion related to the &amp;quot;load-balancing&amp;quot; worker.
&lt;br&gt;Can you re-post the copy of the workers.properties file that you are
&lt;br&gt;really using right now ?
&lt;br&gt;&lt;br&gt;André
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622618&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Multiple-websites-in-tomcat-tp18544589p18622618.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622429</id>
	<title>Re: Multiple websites in tomcat</title>
	<published>2008-07-23T16:02:07Z</published>
	<updated>2008-07-23T16:02:07Z</updated>
	<author>
		<name>awarnier</name>
	</author>
	<content type="html">Ravi Sharma wrote:
&lt;br&gt;[...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; i dont know why JK.log is saying *no URI mapping found* when we are giving
&lt;br&gt;&amp;gt; JkMount option.
&lt;br&gt;&amp;gt; I have refreshed the logs on log.html page
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;You know, somehow I still have the impression that we are talking about 
&lt;br&gt;different hosts, or at least that the one mod_jk which is reading the 
&lt;br&gt;JkMount and apparently configuring the URI map correctly, is not the 
&lt;br&gt;same as the one who processes the requests.
&lt;br&gt;&lt;br&gt;I know it sounds crazy, but are you sure that you do not have two 
&lt;br&gt;Apache's running and writing to the same logfiles ?
&lt;br&gt;&lt;br&gt;For instance, in your jk.log logfile, there are messages like :
&lt;br&gt;[Tue Jul 22 16:08:13.755 2008] [28280:3079427792] [debug] 
&lt;br&gt;do_shm_open::jk_shm.c (471): Reseting the shared memory for child 3
&lt;br&gt;[Tue Jul 22 16:08:13.755 2008] [28280:3079427792] [debug] 
&lt;br&gt;do_shm_open_lock::jk_shm.c (262): Duplicated shared memory lock 
&lt;br&gt;/etc/httpd/logs/jk-runtime-status.19565.lock
&lt;br&gt;&lt;br&gt;I don't have such messages at all in my logfile.
&lt;br&gt;&lt;br&gt;and also, in those messages, this part : [28280:3079427792] seems to 
&lt;br&gt;show various numbers before the &amp;quot;:&amp;quot;, which are very separated from one 
&lt;br&gt;another. &amp;nbsp;I don't really know what they are, but they look like some 
&lt;br&gt;kind of process-id.
&lt;br&gt;On my system (currently very lightly loaded), those numbers are very 
&lt;br&gt;close, like 31013, 31014, 31015, etc.. &amp;nbsp;On yours they look like 19565, 
&lt;br&gt;27912, 28280,..
&lt;br&gt;Maybe it is just because your system is very busy, and generates a lot 
&lt;br&gt;of processes in-between the Apache/mod_jk instances.
&lt;br&gt;&lt;br&gt;But the combination of all of that, plus the problem you have and I do 
&lt;br&gt;not, sound very suspicious.
&lt;br&gt;&lt;br&gt;I have one more suspicion related to the &amp;quot;load-balancing&amp;quot; worker.
&lt;br&gt;Can you re-post the copy of the workers.properties file that you are 
&lt;br&gt;really using right now ?
&lt;br&gt;&lt;br&gt;André
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622429&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622429&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622429&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Multiple-websites-in-tomcat-tp18544589p18622429.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622623</id>
	<title>Re: one webapp, many apache virtualhosts</title>
	<published>2008-07-23T15:59:41Z</published>
	<updated>2008-07-23T15:59:41Z</updated>
	<author>
		<name>Jordan Michaels</name>
	</author>
	<content type="html">Hi Gabe,
&lt;br&gt;&lt;br&gt;Hmm... you mean add the following outside the VirtualHost directives:
&lt;br&gt;&lt;br&gt;ProxyPass / &lt;a href=&quot;http://mydomain.com:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mydomain.com:8080/&lt;/a&gt;&lt;br&gt;ProxyPassreverse / &lt;a href=&quot;http://mydomain.com:8080/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mydomain.com:8080/&lt;/a&gt;&lt;br&gt;HostnameLookups Off
&lt;br&gt;&lt;br&gt;Wouldn't that just serve up the JSP files that are located in the ROOT
&lt;br&gt;webapp? Maybe I'm confused. Maybe I'm asking the wrong question? I'm not
&lt;br&gt;sure. =P
&lt;br&gt;&lt;br&gt;Is there any way that I can have tomcat serve up the JSP files that are
&lt;br&gt;in each user's public_html directory without having to add &amp;lt;host&amp;gt; and
&lt;br&gt;&amp;lt;context&amp;gt; tags to the server.xml file each time? That way, all the end
&lt;br&gt;user has to do is add new &amp;lt;VirtualHost&amp;gt;'s to Apache and not have to
&lt;br&gt;worry about Tomcat configs?
&lt;br&gt;&lt;br&gt;Thanks again for the patient reply. I really appreciate it!
&lt;br&gt;&lt;br&gt;-Jordan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Gabe Wong wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jordan,
&lt;br&gt;&amp;gt; You just need to put the proxy directive outside the virtualhost once.
&lt;br&gt;&amp;gt; So it would be globally available
&lt;br&gt;&amp;gt; in the Apache config.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jordan Michaels wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have a situation where I want all jsp files on a particular system to
&lt;br&gt;&amp;gt;&amp;gt; be served up by one context (webapp) in tomcat.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So in apache, I have a virtualhost who's files are stored in
&lt;br&gt;&amp;gt;&amp;gt; /home/user1/public_html, and another apache virtualhost who's files are
&lt;br&gt;&amp;gt;&amp;gt; stored in /home/user2/public_html. Is there a way that I can get the jsp
&lt;br&gt;&amp;gt;&amp;gt; files in both apache VirtualHosts to get processed by the same tomcat
&lt;br&gt;&amp;gt;&amp;gt; context WITHOUT having to make new &amp;lt;host&amp;gt; entries for each new site?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Basically, the customer wants the freedom to create new web sites using
&lt;br&gt;&amp;gt;&amp;gt; the control panel software and just have tomcat process the JSP files as
&lt;br&gt;&amp;gt;&amp;gt; necessary for each site. It would be ideal if they didn't have to modify
&lt;br&gt;&amp;gt;&amp;gt; tomcat every time they added a new site to their server.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This is probably just my ignorance shining though, but could someone
&lt;br&gt;&amp;gt;&amp;gt; point me in the right direction on how to set up tomcat to perform in
&lt;br&gt;&amp;gt;&amp;gt; this way? I'm happy to read documentation &amp;nbsp;but it looks like there's a
&lt;br&gt;&amp;gt;&amp;gt; lot that tomcat can do that just isn't necessary here. If I could get
&lt;br&gt;&amp;gt;&amp;gt; just a little bit of direction on this, I would be in your debt.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thank you for your help!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Jordan
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622623&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/one-webapp%2C-many-apache-virtualhosts-tp18618142p18622623.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622248</id>
	<title>goodbye</title>
	<published>2008-07-23T15:47:48Z</published>
	<updated>2008-07-23T15:47:48Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/goodbye-tp18622248p18622248.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18622152</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T15:40:42Z</published>
	<updated>2008-07-23T15:40:42Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">Well then let's just drop it.
&lt;br&gt;&lt;br&gt;Thanks anyway.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Caldarale, Charles R [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chuck.Caldarale@...&lt;/a&gt;]
&lt;br&gt;Sent: Wed 7/23/2008 4:39 PM
&lt;br&gt;To: Tomcat Users List
&lt;br&gt;Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; From: Jeffrey R. Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jaas.config is a typo should be jaas.conf has the same contents as
&lt;br&gt;&amp;gt; auth.conf on the dev server.
&lt;br&gt;&lt;br&gt;Let's stop confusing the issue and instead stick to just one system; once that one's sorted, you can work on the other.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18622152&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18622152.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621819</id>
	<title>Re: Multiple websites in tomcat</title>
	<published>2008-07-23T15:12:10Z</published>
	<updated>2008-07-23T15:12:10Z</updated>
	<author>
		<name>awarnier</name>
	</author>
	<content type="html">Let's go.
&lt;br&gt;&lt;br&gt;Here is the link to my system, which works fine :
&lt;br&gt;&lt;a href=&quot;http://dev.dev.wissensbank.com/servlets-examples&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.dev.wissensbank.com/servlets-examples&lt;/a&gt;&lt;br&gt;&lt;br&gt;It goes through Apache, mod_jk, and tomcat5.5.
&lt;br&gt;&lt;br&gt;This is my workers.properties :
&lt;br&gt;workers.tomcat_home=/usr/share/tomcat5.5
&lt;br&gt;workers.java_home=/usr/lib/jvm/java-1.5.0-sun
&lt;br&gt;ps=/
&lt;br&gt;worker.list=ajp13
&lt;br&gt;worker.ajp13.port=8010
&lt;br&gt;worker.ajp13.host=localhost
&lt;br&gt;worker.ajp13.type=ajp13
&lt;br&gt;worker.ajp13.lbfactor=1
&lt;br&gt;worker.loadbalancer.type=lb
&lt;br&gt;worker.loadbalancer.balanced_workers=ajp13
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here are the relevant lines from httpd.conf :
&lt;br&gt;&lt;br&gt;&amp;lt;IfModule mod_jk.c&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;JkMount /servlets-examples ajp13
&lt;br&gt;&amp;nbsp; &amp;nbsp;JkMount /servlets-examples/* ajp13
&lt;br&gt;&amp;lt;/IfModule&amp;gt;
&lt;br&gt;&lt;br&gt;There is also this file (jk.conf), included in httpd.conf when starting :
&lt;br&gt;JkWorkersFile /etc/apache2/workers.properties
&lt;br&gt;JkLogFile /var/log/apache2/mod_jk.log
&lt;br&gt;JkLogLevel debug
&lt;br&gt;JkLogStampFormat &amp;quot;[%a %b %d %H:%M:%S %Y] &amp;quot;
&lt;br&gt;JkRequestLogFormat &amp;quot;%w %V %T&amp;quot;
&lt;br&gt;&lt;br&gt;All that looks very similar to what you have.
&lt;br&gt;One difference is that my version of mod_jk is 1.2.18.
&lt;br&gt;&lt;br&gt;But when I run this, I get quite different information in my mod_jk.log.
&lt;br&gt;You can see it at this address :
&lt;br&gt;&lt;a href=&quot;http://dev.dev.wissensbank.com/download/mod_jk.log&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.dev.wissensbank.com/download/mod_jk.log&lt;/a&gt;&lt;br&gt;&lt;br&gt;It's a log file of just now, after accessing the examples page with the 
&lt;br&gt;link I give at the top.
&lt;br&gt;The difference is, in my case it works.
&lt;br&gt;&lt;br&gt;André
&lt;br&gt;&lt;br&gt;P.S. There are some differences on my system, because I have multiple 
&lt;br&gt;VirtualHosts and more different JkMount that I did not mention above.
&lt;br&gt;But I don't think that it explains why your system is not working, and 
&lt;br&gt;mine is.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621819&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621819&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621819&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Multiple-websites-in-tomcat-tp18544589p18621819.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621502</id>
	<title>Re: mod_jk for apache2-2.2.8 and tomcat4.1.30 from HP-UX server</title>
	<published>2008-07-23T14:53:43Z</published>
	<updated>2008-07-23T14:53:43Z</updated>
	<author>
		<name>Rainer Jung-3</name>
	</author>
	<content type="html">Bomfim, Marcio schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Does anybody know where to find the mod_jk for apache2-2.2.8 and tomcat4.1.30? (HP-UX machine)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've downloaded from &lt;a href=&quot;http://tomcat.apache.org/connectors-doc/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/connectors-doc/&lt;/a&gt;&amp;nbsp;(JK 1.2.26 release sources)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and ran the commands:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; CFLAGS=&amp;quot;$CPPFLAGS -DHPUX11GCC -DHPUX11&amp;quot; \
&lt;br&gt;&amp;gt; ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache2
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; got the error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; configure: error: You must specify a valid --with-apxs path
&lt;/div&gt;&lt;br&gt;What's the result of
&lt;br&gt;&lt;br&gt;/usr/local/apache2/bin/apxs -q PREFIX
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Rainer
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621502&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621502&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621502&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Context-or-Mapping-problems-Apache-2.2-%2Bmod_JK%2B-Tomcat-5.5-tp18619305p18621502.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621307</id>
	<title>Re: Multiple websites in tomcat</title>
	<published>2008-07-23T14:43:13Z</published>
	<updated>2008-07-23T14:43:13Z</updated>
	<author>
		<name>awarnier</name>
	</author>
	<content type="html">Hi.
&lt;br&gt;&lt;br&gt;Yes, it is very strange.
&lt;br&gt;But I am sure that when we will find the solution, it will seem very 
&lt;br&gt;evident..
&lt;br&gt;&lt;br&gt;First, adding a VirtualHost at this point would make it even more 
&lt;br&gt;complicated. &amp;nbsp;Now we have one Apache, and one Tomcat, and one mod_jk 
&lt;br&gt;worker between them that does not want to work.
&lt;br&gt;Let's not add more elements before we find a solution to the problem we 
&lt;br&gt;have.
&lt;br&gt;&lt;br&gt;It is very strange that you get these messages about a missing URI map, 
&lt;br&gt;because in the jk.log file, starting from the end, I find a couple of 
&lt;br&gt;messages like :
&lt;br&gt;&lt;br&gt;[Tue Jul 22 16:07:32.999 2008] [19565:3079427792] [debug] 
&lt;br&gt;uri_worker_map_open::jk_uri_worker_map.c (427): rule map size is 2
&lt;br&gt;&lt;br&gt;[Tue Jul 22 16:07:32.999 2008] [19565:3079427792] [debug] 
&lt;br&gt;uri_worker_map_add::jk_uri_worker_map.c (387): exact rule 
&lt;br&gt;'/servlets-examples=ajp13w' source 'JkMount' was added
&lt;br&gt;&lt;br&gt;[Tue Jul 22 16:07:32.999 2008] [19565:3079427792] [debug] 
&lt;br&gt;uri_worker_map_add::jk_uri_worker_map.c (379): wildchar rule 
&lt;br&gt;'/servlets-examples/*=ajp13w' source 'JkMount' was added
&lt;br&gt;&lt;br&gt;So, it seems that he found the 2 JkMount, understood them correctly, and 
&lt;br&gt;stored them in his configuration.
&lt;br&gt;But later, he says he does not have them.. mmmm.
&lt;br&gt;&lt;br&gt;I have about the same system here (Linux + Apache 2 + Tomcat 5.5 + 
&lt;br&gt;mod_jk + examples), and it works fine.
&lt;br&gt;Let me set my JkLogLevel to Debug and get back to you.
&lt;br&gt;&lt;br&gt;It's a bit late now here in Europe, but now I am hooked.
&lt;br&gt;&lt;br&gt;André
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Ravi Sharma wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; changed the worker.properties and restarted..... but didnt work :(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; also tried editing the file c:\windows\system32\drivers\
&lt;br&gt;&amp;gt;&amp;gt; etc\hosts and the accessed the url but didnt work.... &amp;nbsp;and it is accessing
&lt;br&gt;&amp;gt;&amp;gt; the right server
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; i dont know why JK.log is saying *no URI mapping found* when we are giving
&lt;br&gt;&amp;gt; JkMount option.
&lt;br&gt;&amp;gt; I have refreshed the logs on log.html page
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can we do the same with VirtualHost thing in httpd file.?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please help.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wed, Jul 23, 2008 at 12:00 AM, André Warnier &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; For some reason, this thing does not seem to want to let you go through
&lt;br&gt;&amp;gt;&amp;gt; port 8009 (or 8010), or it refuses to redirect these URLs.
&lt;br&gt;&amp;gt;&amp;gt; Could you &amp;quot;refresh&amp;quot; the copy of jk.log accessible through the web page, and
&lt;br&gt;&amp;gt;&amp;gt; your new httpd.conf ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; By the way, I can see your Tomcat examples pages also when I connect to
&lt;br&gt;&amp;gt;&amp;gt; port 9080, and I also see the &amp;quot;Not Found&amp;quot; when I try with port 80.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Make one more change to workers.properties :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; #worker.list=wlb,jkstatus
&lt;br&gt;&amp;gt;&amp;gt; worker.list=ajp13w
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Restart Apache and try again.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If that does not work, I have one more thing to try :
&lt;br&gt;&amp;gt;&amp;gt; I assume you are accessing this server from a Windows workstation.
&lt;br&gt;&amp;gt;&amp;gt; If yes, then do the following :
&lt;br&gt;&amp;gt;&amp;gt; - in a command window, do
&lt;br&gt;&amp;gt;&amp;gt; ping www.jaatmusic.com
&lt;br&gt;&amp;gt;&amp;gt; and note the IP address.
&lt;br&gt;&amp;gt;&amp;gt; - edit the file c:\windows\system32\drivers\etc\hosts and add the following
&lt;br&gt;&amp;gt;&amp;gt; line :
&lt;br&gt;&amp;gt;&amp;gt; xxx.xxx.xxx.xxx &amp;nbsp;jaatmusic
&lt;br&gt;&amp;gt;&amp;gt; (where xxx.xxx.xxx.xxx is the IP address you noted earlier)
&lt;br&gt;&amp;gt;&amp;gt; - save the hosts file
&lt;br&gt;&amp;gt;&amp;gt; - close and re-open your browser (important, to force it to re-read the
&lt;br&gt;&amp;gt;&amp;gt; hosts file)
&lt;br&gt;&amp;gt;&amp;gt; - try the following URL :
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://jaatmusic/servlets-examples&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaatmusic/servlets-examples&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Do you still get the &amp;quot;Not Found&amp;quot; ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (By the above, I am trying to see if we are really accessing the server we
&lt;br&gt;&amp;gt;&amp;gt; think we are accessing).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ravi Sharma wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;STEP 1 :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621307&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Multiple-websites-in-tomcat-tp18544589p18621307.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621292</id>
	<title>RE: Memory question</title>
	<published>2008-07-23T14:42:18Z</published>
	<updated>2008-07-23T14:42:18Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Matt Burkhardt [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mlb@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: Memory question
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; JAVA_OPTS=&amp;quot;${JAVA_OPTS} -Djava.awt.headless=true -Xms512M -Xmx512M
&lt;br&gt;&amp;gt; -XX:PermSize=256M -XX:MaxPermSize=256M
&lt;br&gt;&lt;br&gt;It's a bad idea to set JAVA_OPTS globally, since you have no idea who's going to be looking at it. &amp;nbsp;Also, you're missing the closing quote.
&lt;br&gt;&lt;br&gt;&amp;gt; Free memory: 23.34 MB Total memory: 63.56 MB Max memory: 63.56 MB
&lt;br&gt;&lt;br&gt;Obviously, the JAVA_OPTS didn't make it into the Tomcat process. &amp;nbsp;Do you see the JAVA_OPTS variable from a regular terminal session? &amp;nbsp;Why not set JAVA_OPTS in just the process that kicks off the Tomcat startup script?
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621292&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621292&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621292&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-question-tp18620531p18621292.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621241</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:39:50Z</published>
	<updated>2008-07-23T14:39:50Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeffrey R. Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621241&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jaas.config is a typo should be jaas.conf has the same contents as
&lt;br&gt;&amp;gt; auth.conf on the dev server.
&lt;br&gt;&lt;br&gt;Let's stop confusing the issue and instead stick to just one system; once that one's sorted, you can work on the other.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621241&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621241&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621241&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621241.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621221</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:38:24Z</published>
	<updated>2008-07-23T14:38:24Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeffrey R. Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621221&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Won't they be passed in the Map options on the Init?
&lt;br&gt;&lt;br&gt;I have no idea what you're asking there.
&lt;br&gt;&lt;br&gt;&amp;gt; I thought that's what the
&lt;br&gt;&amp;gt; JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==
&lt;br&gt;&amp;gt; /opt/tomcat/conf/jaas.config did?
&lt;br&gt;&lt;br&gt;Except you made changes in /usr/local/apache-tomcat-6.0.16/auth.conf; make up your mind where you're going to put the login config file.
&lt;br&gt;&lt;br&gt;Also, the JAVA_OPTS=-DJAVA_OPTS=-D&amp;lt;etc.&amp;gt; is non-sensical. &amp;nbsp;Not quite sure what you're trying to achieve there. &amp;nbsp;It's easiest just to set the JAVA_OPTS variable to whatever you need in Tomcat startup script or the process that runs the script.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621221&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621221&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621221&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621221.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621158</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:34:52Z</published>
	<updated>2008-07-23T14:34:52Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">Jaas.config is a typo should be jaas.conf has the same contents as
&lt;br&gt;auth.conf on the dev server.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Caldarale, Charles R [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chuck.Caldarale@...&lt;/a&gt;] 
&lt;br&gt;Sent: Wednesday, July 23, 2008 4:32 PM
&lt;br&gt;To: Tomcat Users List
&lt;br&gt;Subject: RE: context.xml and custom realm
&lt;br&gt;&lt;br&gt;&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Context path=&amp;quot;/dropInv&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Remove the path attribute - it's not allowed.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;Realm className=&amp;quot;org.apache.catalina.realm.JAASRealm&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; appName=&amp;quot;dropInv&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userClassNames=&amp;quot;com.ips.security.UdUser&amp;quot;
&lt;br&gt;&amp;gt; roleClassNames=&amp;quot;com.ips.security.UdRoles&amp;quot;
&lt;br&gt;&amp;gt; useContextClassLoader=&amp;quot;true&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/Context&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I just added the appName for testing and it didn't help.
&lt;br&gt;&lt;br&gt;It's required so JAAS can locate the proper entry in the login config
&lt;br&gt;file.
&lt;br&gt;&lt;br&gt;&amp;gt; JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==
&lt;br&gt;&amp;gt; /opt/tomcat/conf/jaas.config
&lt;br&gt;&lt;br&gt;What's in jaas.config?
&lt;br&gt;&lt;br&gt;&amp;gt; /usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;&amp;gt; dropInv {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&lt;br&gt;What are the things after the LoginModule line? &amp;nbsp;Only LoginModule class
&lt;br&gt;names are allowed here.
&lt;br&gt;&lt;br&gt;&amp;gt; java.security:
&lt;br&gt;&lt;br&gt;Don't change java.security unless you really, really want what's in
&lt;br&gt;there to apply to *every* Java program run on that system.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
&lt;br&gt;MATERIAL and is thus for use only by the intended recipient. If you
&lt;br&gt;received this in error, please contact the sender and delete the e-mail
&lt;br&gt;and its attachments from all computers.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621158&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621158.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621113</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:32:31Z</published>
	<updated>2008-07-23T14:32:31Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">Won't they be passed in the Map options on the Init?
&lt;br&gt;&lt;br&gt;How do I &amp;quot;java.security.auth.login.config just for Tomcat&amp;quot; ?
&lt;br&gt;&lt;br&gt;I thought that's what the
&lt;br&gt;JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==/opt/tomcat/con
&lt;br&gt;f/jaas.config did?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Caldarale, Charles R [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chuck.Caldarale@...&lt;/a&gt;] 
&lt;br&gt;Sent: Wednesday, July 23, 2008 4:27 PM
&lt;br&gt;To: Tomcat Users List
&lt;br&gt;Subject: RE: context.xml and custom realm
&lt;br&gt;&lt;br&gt;&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I created a auth.conf file in my $CATALINA_HOME/conf and
&lt;br&gt;&amp;gt; pointed the JVM to it.
&lt;br&gt;&lt;br&gt;How? &amp;nbsp;You should be setting the system property
&lt;br&gt;java.security.auth.login.config just for Tomcat rather than changing the
&lt;br&gt;global configuration, which affects every JVM execution on the system.
&lt;br&gt;&lt;br&gt;&amp;gt; /usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;&amp;gt; dropInv {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&lt;br&gt;What do you expect JAAS to do with things above that aren't LoginModule
&lt;br&gt;class names? &amp;nbsp;LoginModules are the only things allowed here.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
&lt;br&gt;MATERIAL and is thus for use only by the intended recipient. If you
&lt;br&gt;received this in error, please contact the sender and delete the e-mail
&lt;br&gt;and its attachments from all computers.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621113&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621113.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621100</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:31:46Z</published>
	<updated>2008-07-23T14:31:46Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621100&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;Context path=&amp;quot;/dropInv&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;Remove the path attribute - it's not allowed.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;Realm className=&amp;quot;org.apache.catalina.realm.JAASRealm&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; appName=&amp;quot;dropInv&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userClassNames=&amp;quot;com.ips.security.UdUser&amp;quot;
&lt;br&gt;&amp;gt; roleClassNames=&amp;quot;com.ips.security.UdRoles&amp;quot;
&lt;br&gt;&amp;gt; useContextClassLoader=&amp;quot;true&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/Context&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I just added the appName for testing and it didn't help.
&lt;br&gt;&lt;br&gt;It's required so JAAS can locate the proper entry in the login config file.
&lt;br&gt;&lt;br&gt;&amp;gt; JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==
&lt;br&gt;&amp;gt; /opt/tomcat/conf/jaas.config
&lt;br&gt;&lt;br&gt;What's in jaas.config?
&lt;br&gt;&lt;br&gt;&amp;gt; /usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;&amp;gt; dropInv {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&lt;br&gt;What are the things after the LoginModule line? &amp;nbsp;Only LoginModule class names are allowed here.
&lt;br&gt;&lt;br&gt;&amp;gt; java.security:
&lt;br&gt;&lt;br&gt;Don't change java.security unless you really, really want what's in there to apply to *every* Java program run on that system.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621100&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621100&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621100&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621100.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18621037</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:27:08Z</published>
	<updated>2008-07-23T14:27:08Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621037&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I created a auth.conf file in my $CATALINA_HOME/conf and
&lt;br&gt;&amp;gt; pointed the JVM to it.
&lt;br&gt;&lt;br&gt;How? &amp;nbsp;You should be setting the system property java.security.auth.login.config just for Tomcat rather than changing the global configuration, which affects every JVM execution on the system.
&lt;br&gt;&lt;br&gt;&amp;gt; /usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;&amp;gt; dropInv {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;&amp;gt; };
&lt;br&gt;&lt;br&gt;What do you expect JAAS to do with things above that aren't LoginModule class names? &amp;nbsp;LoginModules are the only things allowed here.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621037&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621037&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18621037&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18621037.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620963</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:23:20Z</published>
	<updated>2008-07-23T14:23:20Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;Context path=&amp;quot;/dropInv&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Realm className=&amp;quot;org.apache.catalina.realm.JAASRealm&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	appName=&amp;quot;dropInv&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userClassNames=&amp;quot;com.ips.security.UdUser&amp;quot;
&lt;br&gt;roleClassNames=&amp;quot;com.ips.security.UdRoles&amp;quot;
&lt;br&gt;useContextClassLoader=&amp;quot;true&amp;quot; /&amp;gt;
&lt;br&gt;&amp;lt;/Context&amp;gt;
&lt;br&gt;&lt;br&gt;I just added the appName for testing and it didn't help.
&lt;br&gt;&lt;br&gt;com.ips.security.* is in the project .war file.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Production server :
&lt;br&gt;JAVA_OPTS=-DJAVA_OPTS=-Djava.security.auth.login.config==/opt/tomcat/conf/jaas.config
&lt;br&gt;as well as the JVM settings similar to those on the dev server.
&lt;br&gt;&lt;br&gt;Development Server:
&lt;br&gt;&lt;br&gt;/usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;dropInv {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;java.security:
&lt;br&gt;#
&lt;br&gt;# Default login configuration file
&lt;br&gt;#
&lt;br&gt;#login.config.url.1=file:${user.home}/.java.login.config
&lt;br&gt;login.config.url.3=file:///usr/local/apache-tomcat-6.0.16/auth.conf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620963&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18620963.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620863</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:16:40Z</published>
	<updated>2008-07-23T14:16:40Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; java.lang.SecurityException: Unable to locate a login configuration
&lt;br&gt;&lt;br&gt;What do you have as the value of the system property java.security.auth.login.config? &amp;nbsp;That has to be set to point to the login config (JAAS requirement).
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620863&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620863&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620863&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18620863.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620800</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:13:41Z</published>
	<updated>2008-07-23T14:13:41Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Jeff Powell [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620800&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jpowell@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: RE: context.xml and custom realm
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Deploy dropInv.war on 6.0.13 production server and I get this again.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is JAAS broken?
&lt;br&gt;&lt;br&gt;No, you just haven't put the stated class in a usable location. &amp;nbsp;What's in your &amp;lt;Realm&amp;gt;? &amp;nbsp;What's in your &amp;lt;Context&amp;gt;?
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620800&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620800&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620800&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18620800.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620553</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T14:01:59Z</published>
	<updated>2008-07-23T14:01:59Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">Deploy dropInv.war on 6.0.13 production server and I get this again.
&lt;br&gt;&lt;br&gt;Is JAAS broken?
&lt;br&gt;&lt;br&gt;&lt;br&gt;INFO: Deploying web application archive dropInv.war
&lt;br&gt;Jul 23, 2008 3:59:19 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.UdUser not found! Class not added.
&lt;br&gt;Jul 23, 2008 3:59:19 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.UdRoles not found! Class not added.
&lt;br&gt;Jul 23, 2008 3:59:19 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;setUseContextClassLoader
&lt;br&gt;INFO: Setting useContextClassLoader = true
&lt;br&gt;Jul 23, 2008 3:59:19 PM org.apache.catalina.realm.JAASRealm setContainer
&lt;br&gt;INFO: Set JAAS app name dropInv
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620553&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620553&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620553&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18620553.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620531</id>
	<title>Memory question</title>
	<published>2008-07-23T14:00:54Z</published>
	<updated>2008-07-23T14:00:54Z</updated>
	<author>
		<name>Matt Burkhardt</name>
	</author>
	<content type="html">Okay - I've gone ahead, uninstalled the distro from Ubuntu, installed
&lt;br&gt;Tomcat 6.0.16 and I'm having problems running out of memory. &amp;nbsp;My
&lt;br&gt;catalina.out file contains the lines
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
&lt;br&gt;Caused by: java.lang.OutOfMemoryError: Java heap space
&lt;br&gt;&amp;nbsp;
&lt;br&gt;and the application says it needs 512MB, I have 1GB on the server and it
&lt;br&gt;says that you can use up to 70% of the memory before it gets starved.
&lt;br&gt;So I edited the /etc/environment contents and ended up with this
&lt;br&gt;&lt;br&gt;more /etc/environment
&lt;br&gt;PATH=&amp;quot;/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games&amp;quot;
&lt;br&gt;ANT_HOME=&amp;quot;/usr/share/ant&amp;quot;
&lt;br&gt;JAVA_HOME=&amp;quot;/usr/lib/jvm/java-6-sun&amp;quot;
&lt;br&gt;JAVA_OPTS=&amp;quot;${JAVA_OPTS} -Djava.awt.headless=true -Xms512M -Xmx512M
&lt;br&gt;-XX:PermSize=256M -XX:MaxPermSize=256M
&lt;br&gt;&lt;br&gt;and I rebooted the machine, but I'm still getting the error. &amp;nbsp;I don't
&lt;br&gt;know how to check and see if it took the arguments correctly, but when I
&lt;br&gt;look at &lt;a href=&quot;http://myserver:8080/manager/status&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://myserver:8080/manager/status&lt;/a&gt;&amp;nbsp;I see
&lt;br&gt;&lt;br&gt;JVM
&lt;br&gt;&lt;br&gt;Free memory: 23.34 MB Total memory: 63.56 MB Max memory: 63.56 MB
&lt;br&gt;&lt;br&gt;What am I doing wrong?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Matt Burkhardt, MSTM
&lt;br&gt;President
&lt;br&gt;Impari Systems, Inc.
&lt;br&gt;﻿401 Rosemont Avenue
&lt;br&gt;Frederick, MD &amp;nbsp;21701
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mlb@...&lt;/a&gt;
&lt;br&gt;www.imparisystems.com
&lt;br&gt;(301) 644-3911
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Memory-question-tp18620531p18620531.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620345</id>
	<title>retrieving tomcat info from within a war</title>
	<published>2008-07-23T13:51:12Z</published>
	<updated>2008-07-23T13:51:12Z</updated>
	<author>
		<name>Johngara</name>
	</author>
	<content type="html">Is there a way to retrieve tomcat version/info from within a War file? I
&lt;br&gt;actually would prefer this to be web container agnostic, but I'm working
&lt;br&gt;with Tomcat, so that's where I will start.
&lt;br&gt;&lt;br&gt;I know that the manager does almost exactly what I want when going to:
&lt;br&gt;&lt;a href=&quot;http://localhost:8080/manager/serverinfo&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8080/manager/serverinfo&lt;/a&gt;&lt;br&gt;&lt;br&gt;but for the life of me, I can't seem to find it in the src.
&lt;br&gt;&lt;br&gt;Any help would be greatly appreciated.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Junos
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/retrieving-tomcat-info-from-within-a-war-tp18620345p18620345.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620260</id>
	<title>RE: appbase and docbase</title>
	<published>2008-07-23T13:47:15Z</published>
	<updated>2008-07-23T13:47:15Z</updated>
	<author>
		<name>Caldarale, Charles R</name>
	</author>
	<content type="html">&amp;gt; From: Michael Clovis [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620260&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ms.clovis@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Subject: Re: appbase and docbase
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The context.xml within the META-INF directory for foo.war
&lt;br&gt;&amp;gt; is currently &amp;lt;Context debug=&amp;quot;0&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;resource &amp;nbsp;... values for resources...
&lt;br&gt;&lt;br&gt;That better be &amp;lt;Resource&amp;gt;, not &amp;lt;resource&amp;gt;; case matters.
&lt;br&gt;&lt;br&gt;&amp;gt; after clearing out the work directory and restarting the error is the
&lt;br&gt;&amp;gt; same as before..
&lt;br&gt;&lt;br&gt;Look for a foo.xml file in conf/Catalina/[host]; it's usually copied there from the .war, and needs to be removed manually if you change the .war file without properly redeploying the webapp.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- Chuck
&lt;br&gt;&lt;br&gt;&lt;br&gt;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.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620260&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620260&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620260&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/appbase-and-docbase-tp18616249p18620260.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620232</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T13:45:22Z</published>
	<updated>2008-07-23T13:45:22Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">Typo in the context.xml 
&lt;br&gt;&amp;gt; SEVERE: Class com.ips.security.User not found! Class not added.
&lt;br&gt;&amp;gt; Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;&amp;gt; parseClassNames
&lt;br&gt;&amp;gt; SEVERE: Class com.ips.security.Roles not found! Class not added.
&lt;br&gt;&amp;gt; Jul 23, 2008 2:54:44 PM org.apache.catalina.core.StandardContext start
&lt;br&gt;&lt;br&gt;Now i get this
&lt;br&gt;&lt;br&gt;Jul 23, 2008 3:23:51 PM org.apache.catalina.realm.JAASRealm authenticate
&lt;br&gt;SEVERE: Unexpected error
&lt;br&gt;java.lang.SecurityException: Unable to locate a login configuration
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.sun.security.auth.login.ConfigFile.&amp;lt;init&amp;gt;(ConfigFile.java:93)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
&lt;br&gt;Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;java.lang.reflect.Constructor.newInstance(Constructor.java:513)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.newInstance0(Class.java:355)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.newInstance(Class.java:308)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.security.auth.login.Configuration
&lt;br&gt;$3.run(Configuration.java:246)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;javax.security.auth.login.Configuration.getConfiguration(Configuration.java:241)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at javax.security.auth.login.LoginContext
&lt;br&gt;$1.run(LoginContext.java:237)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;javax.security.auth.login.LoginContext.init(LoginContext.java:234)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;javax.security.auth.login.LoginContext.&amp;lt;init&amp;gt;(LoginContext.java:403)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:345)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.coyote.http11.Http11Protocol
&lt;br&gt;$Http11ConnectionHandler.process(Http11Protocol.java:583)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.tomcat.util.net.JIoEndpoint
&lt;br&gt;$Worker.run(JIoEndpoint.java:447)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Thread.run(Thread.java:619)
&lt;br&gt;Caused by: java.io.IOException: Unable to locate a login configuration
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;com.sun.security.auth.login.ConfigFile.&amp;lt;init&amp;gt;(ConfigFile.java:91)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 24 more
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620232&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620232&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18620232.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18620153</id>
	<title>Re: appbase and docbase</title>
	<published>2008-07-23T13:43:11Z</published>
	<updated>2008-07-23T13:43:11Z</updated>
	<author>
		<name>Michael Clovis</name>
	</author>
	<content type="html">Chuck,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thanks for the quick response..
&lt;br&gt;&amp;nbsp; &amp;nbsp;I am set up to test the issue on tomcat 5.5 and 6 and am currently 
&lt;br&gt;testing on 6.
&lt;br&gt;The context.xml within the META-INF directory for foo.war
&lt;br&gt;is currently &amp;lt;Context debug=&amp;quot;0&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;resource &amp;nbsp;... values for resources...
&lt;br&gt;/&amp;gt;
&lt;br&gt;&amp;lt;/Context&amp;gt;
&lt;br&gt;&lt;br&gt;after clearing out the work directory and restarting the error is the 
&lt;br&gt;same as before..
&lt;br&gt;ie.
&lt;br&gt;&lt;br&gt;SEVERE: Error starting static Resources
&lt;br&gt;java.lang.IllegalArgumentException: Document base /roller does not exist 
&lt;br&gt;or is not a readabl$
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3957)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
&lt;br&gt;&lt;br&gt;Still a little confused..
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Caldarale, Charles R wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; From: Michael Clovis [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ms.clovis@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Subject: appbase and docbase
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For an application let's call it foo and it is in a war and
&lt;br&gt;&amp;gt;&amp;gt; meant to be &amp;quot;executed&amp;quot; as such.. so foo.war is placed within
&lt;br&gt;&amp;gt;&amp;gt; the webapps directory.
&lt;br&gt;&amp;gt;&amp;gt; Within the META-INF directory of the foo war is a context.xml that
&lt;br&gt;&amp;gt;&amp;gt; states the path=&amp;quot;/foo&amp;quot; and the docBase=&amp;quot;roller.war&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Assuming you're running on a reasonably modern version of Tomcat (which you didn't bother to tell us), the path and docBase attributes are not allowed for a &amp;lt;Context&amp;gt; element in META-INF/context.xml; remove them, and try it again.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;- Chuck
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 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.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18620153&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/appbase-and-docbase-tp18616249p18620153.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18619909</id>
	<title>Re: one webapp, many apache virtualhosts</title>
	<published>2008-07-23T13:29:58Z</published>
	<updated>2008-07-23T13:29:58Z</updated>
	<author>
		<name>Gabe Wong</name>
	</author>
	<content type="html">Hi Jordan,
&lt;br&gt;You just need to put the proxy directive outside the virtualhost once. 
&lt;br&gt;So it would be globally available
&lt;br&gt;in the Apache config.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Jordan Michaels wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a situation where I want all jsp files on a particular system to
&lt;br&gt;&amp;gt; be served up by one context (webapp) in tomcat.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So in apache, I have a virtualhost who's files are stored in
&lt;br&gt;&amp;gt; /home/user1/public_html, and another apache virtualhost who's files are
&lt;br&gt;&amp;gt; stored in /home/user2/public_html. Is there a way that I can get the jsp
&lt;br&gt;&amp;gt; files in both apache VirtualHosts to get processed by the same tomcat
&lt;br&gt;&amp;gt; context WITHOUT having to make new &amp;lt;host&amp;gt; entries for each new site?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Basically, the customer wants the freedom to create new web sites using
&lt;br&gt;&amp;gt; the control panel software and just have tomcat process the JSP files as
&lt;br&gt;&amp;gt; necessary for each site. It would be ideal if they didn't have to modify
&lt;br&gt;&amp;gt; tomcat every time they added a new site to their server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is probably just my ignorance shining though, but could someone
&lt;br&gt;&amp;gt; point me in the right direction on how to set up tomcat to perform in
&lt;br&gt;&amp;gt; this way? I'm happy to read documentation &amp;nbsp;but it looks like there's a
&lt;br&gt;&amp;gt; lot that tomcat can do that just isn't necessary here. If I could get
&lt;br&gt;&amp;gt; just a little bit of direction on this, I would be in your debt.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you for your help!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Jordan
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Gabe Wong
&lt;br&gt;NGASI AppServer Manager
&lt;br&gt;JAVA AUTOMATION and SaaS Enablement for Cloud Computing
&lt;br&gt;&lt;a href=&quot;http://www.ngasi.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ngasi.com&lt;/a&gt;&lt;br&gt;NEW! FREE Developer account for Hosted version on Amazon EC2
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619909&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/one-webapp%2C-many-apache-virtualhosts-tp18618142p18619909.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18619821</id>
	<title>Re: Multiple websites in tomcat</title>
	<published>2008-07-23T13:28:22Z</published>
	<updated>2008-07-23T13:28:22Z</updated>
	<author>
		<name>Ravi Sharma</name>
	</author>
	<content type="html">changed the worker.properties and restarted..... but didnt work :(
&lt;br&gt;&lt;br&gt;also tried editing the file c:\windows\system32\drivers\
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; etc\hosts and the accessed the url but didnt work.... &amp;nbsp;and it is accessing
&lt;br&gt;&amp;gt; the right server
&lt;br&gt;&lt;br&gt;&lt;br&gt;i dont know why JK.log is saying *no URI mapping found* when we are giving
&lt;br&gt;JkMount option.
&lt;br&gt;I have refreshed the logs on log.html page
&lt;br&gt;&lt;br&gt;Can we do the same with VirtualHost thing in httpd file.?
&lt;br&gt;&lt;br&gt;Please help.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Wed, Jul 23, 2008 at 12:00 AM, André Warnier &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619821&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; For some reason, this thing does not seem to want to let you go through
&lt;br&gt;&amp;gt; port 8009 (or 8010), or it refuses to redirect these URLs.
&lt;br&gt;&amp;gt; Could you &amp;quot;refresh&amp;quot; the copy of jk.log accessible through the web page, and
&lt;br&gt;&amp;gt; your new httpd.conf ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; By the way, I can see your Tomcat examples pages also when I connect to
&lt;br&gt;&amp;gt; port 9080, and I also see the &amp;quot;Not Found&amp;quot; when I try with port 80.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Make one more change to workers.properties :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #worker.list=wlb,jkstatus
&lt;br&gt;&amp;gt; worker.list=ajp13w
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Restart Apache and try again.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If that does not work, I have one more thing to try :
&lt;br&gt;&amp;gt; I assume you are accessing this server from a Windows workstation.
&lt;br&gt;&amp;gt; If yes, then do the following :
&lt;br&gt;&amp;gt; - in a command window, do
&lt;br&gt;&amp;gt; ping www.jaatmusic.com
&lt;br&gt;&amp;gt; and note the IP address.
&lt;br&gt;&amp;gt; - edit the file c:\windows\system32\drivers\etc\hosts and add the following
&lt;br&gt;&amp;gt; line :
&lt;br&gt;&amp;gt; xxx.xxx.xxx.xxx &amp;nbsp;jaatmusic
&lt;br&gt;&amp;gt; (where xxx.xxx.xxx.xxx is the IP address you noted earlier)
&lt;br&gt;&amp;gt; - save the hosts file
&lt;br&gt;&amp;gt; - close and re-open your browser (important, to force it to re-read the
&lt;br&gt;&amp;gt; hosts file)
&lt;br&gt;&amp;gt; - try the following URL :
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jaatmusic/servlets-examples&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jaatmusic/servlets-examples&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you still get the &amp;quot;Not Found&amp;quot; ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (By the above, I am trying to see if we are really accessing the server we
&lt;br&gt;&amp;gt; think we are accessing).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ravi Sharma wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;STEP 1 :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619821&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619821&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619821&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-Multiple-websites-in-tomcat-tp18544589p18619821.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18619728</id>
	<title>mod_jk for apache2-2.2.8 and tomcat4.1.30 from HP-UX server</title>
	<published>2008-07-23T13:21:41Z</published>
	<updated>2008-07-23T13:21:41Z</updated>
	<author>
		<name>Bomfim, Marcio</name>
	</author>
	<content type="html">Does anybody know where to find the mod_jk for apache2-2.2.8 and tomcat4.1.30? (HP-UX machine)
&lt;br&gt;&lt;br&gt;I've downloaded from &lt;a href=&quot;http://tomcat.apache.org/connectors-doc/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tomcat.apache.org/connectors-doc/&lt;/a&gt;&amp;nbsp;(JK 1.2.26 release sources)
&lt;br&gt;&lt;br&gt;and ran the commands:
&lt;br&gt;&lt;br&gt;CFLAGS=&amp;quot;$CPPFLAGS -DHPUX11GCC -DHPUX11&amp;quot; \
&lt;br&gt;./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache2
&lt;br&gt;&lt;br&gt;got the error
&lt;br&gt;&lt;br&gt;configure: error: You must specify a valid --with-apxs path
&lt;br&gt;&lt;br&gt;and when I ran:
&lt;br&gt;&lt;br&gt;CFLAGS=&amp;quot;$CPPFLAGS -DHPUX11GCC -DHPUX11&amp;quot; \
&lt;br&gt;./configure --with-apache=/usr/local/apache2
&lt;br&gt;&lt;br&gt;I could go on, so
&lt;br&gt;&lt;br&gt;make
&lt;br&gt;&lt;br&gt;and got the error
&lt;br&gt;&lt;br&gt;/usr/local/apache2/include/apr.h:130:20: error: stdint.h: No such file or directory
&lt;br&gt;*** Error exit code 1
&lt;br&gt;&lt;br&gt;&lt;br&gt;I can't build it, so if anyone can help me I will apreciate.
&lt;br&gt;&lt;br&gt;Thank You,
&lt;br&gt;Marcio Bomfim
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To start a new topic, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619728&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users@...&lt;/a&gt;
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619728&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=18619728&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Context-or-Mapping-problems-Apache-2.2-%2Bmod_JK%2B-Tomcat-5.5-tp18619305p18619728.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18619438</id>
	<title>RE: context.xml and custom realm</title>
	<published>2008-07-23T13:11:39Z</published>
	<updated>2008-07-23T13:11:39Z</updated>
	<author>
		<name>zx5000</name>
	</author>
	<content type="html">I created a auth.conf file in my $CATALINA_HOME/conf and pointed the JVM
&lt;br&gt;to it.
&lt;br&gt;&lt;br&gt;/usr/local/apache-tomcat-6.0.16/auth.conf:
&lt;br&gt;dropInv {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.ips.security.UdLoginModule required;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginFile=&amp;quot;VALIDATION&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; loginKey=&amp;quot;100!IPS.DROP.AUTH&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userAttr=&amp;quot;3&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; credAttr=&amp;quot;4&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roleAttr=&amp;quot;5&amp;quot;;
&lt;br&gt;};
&lt;br&gt;&lt;br&gt;java.security:
&lt;br&gt;#
&lt;br&gt;# Default login configuration file
&lt;br&gt;#
&lt;br&gt;#login.config.url.1=file:${user.home}/.java.login.config
&lt;br&gt;login.config.url.3=file:///usr/local/apache-tomcat-6.0.16/auth.conf
&lt;br&gt;&lt;br&gt;Re-deployed my application
&lt;br&gt;Re-started tomcat to pickup the changes and ...
&lt;br&gt;&lt;br&gt;Jul 23, 2008 2:54:38 PM org.apache.catalina.core.AprLifecycleListener
&lt;br&gt;init
&lt;br&gt;INFO: The APR based Apache Tomcat Native library which allows optimal
&lt;br&gt;performance in production environments was not found on the
&lt;br&gt;java.library.path: /usr/java/jdk1.6.0_03/jre/lib/i386/client:/usr/java/jdk1.6.0_03/jre/lib/i386:/usr/java/jdk1.6.0_03/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.coyote.http11.Http11Protocol init
&lt;br&gt;INFO: Initializing Coyote HTTP/1.1 on http-8080
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.startup.Catalina load
&lt;br&gt;INFO: Initialization processed in 1246 ms
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.core.StandardService start
&lt;br&gt;INFO: Starting service Catalina
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.core.StandardEngine start
&lt;br&gt;INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;setUseContextClassLoader
&lt;br&gt;INFO: Setting useContextClassLoader = true
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.realm.JAASRealm setContainer
&lt;br&gt;INFO: Set JAAS app name dropInv
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.User not found! Class not added.
&lt;br&gt;Jul 23, 2008 2:54:39 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.Roles not found! Class not added.
&lt;br&gt;Jul 23, 2008 2:54:40 PM org.apache.catalina.core.StandardContext
&lt;br&gt;addApplicationListener
&lt;br&gt;INFO: The listener
&lt;br&gt;&amp;quot;com.sun.xml.ws.transport.http.servlet.WSServletContextListener&amp;quot; is
&lt;br&gt;already configured for this context. The duplicate definition has been
&lt;br&gt;ignored.
&lt;br&gt;Jul 23, 2008 2:54:40 PM
&lt;br&gt;com.sun.xml.ws.transport.http.servlet.WSServletContextListener
&lt;br&gt;contextInitialized
&lt;br&gt;INFO: WSSERVLET12: JAX-WS context listener initializing
&lt;br&gt;Jul 23, 2008 2:54:42 PM
&lt;br&gt;com.sun.xml.ws.transport.http.servlet.WSServletDelegate &amp;lt;init&amp;gt;
&lt;br&gt;INFO: WSSERVLET14: JAX-WS servlet initializing
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.coyote.http11.Http11Protocol start
&lt;br&gt;INFO: Starting Coyote HTTP/1.1 on http-8080
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.jk.common.ChannelSocket init
&lt;br&gt;INFO: JK: ajp13 listening on /0.0.0.0:8009
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.jk.server.JkMain start
&lt;br&gt;INFO: Jk running ID=0 time=0/137 &amp;nbsp;config=null
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.startup.Catalina start
&lt;br&gt;INFO: Server startup in 4534 ms
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.startup.HostConfig
&lt;br&gt;checkResources
&lt;br&gt;INFO: Undeploying context [/dropInv]
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;setUseContextClassLoader
&lt;br&gt;INFO: Setting useContextClassLoader = true
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm setContainer
&lt;br&gt;INFO: Set JAAS app name dropInv
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.User not found! Class not added.
&lt;br&gt;Jul 23, 2008 2:54:43 PM org.apache.catalina.realm.JAASRealm
&lt;br&gt;parseClassNames
&lt;br&gt;SEVERE: Class com.ips.security.Roles not found! Class not added.
&lt;br&gt;Jul 23, 2008 2:54:44 PM org.apache.catalina.core.StandardContext start
&lt;br&gt;INFO: Container
&lt;br&gt;org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dropInv]
&lt;br&gt;has already been started
&lt;br&gt;&lt;br&gt;What am I missing?
&lt;br&gt;&lt;br&gt;TIA
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/Tomcat---User-f342.html&quot; embed=&quot;fixTarget[342]&quot; target=&quot;_top&quot; &gt;Tomcat - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/context.xml-and-custom-realm-tp18383722p18619438.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-18619305</id>
	<title>Context or Mapping problems Apache 2.2 +mod_JK+ Tomcat 5.5</title>
	<published>2008-07-23T13:05:15Z</published>
	<updated>2008-07-23T13:05:15Z</updated>
	<author>
		<name>kohanm</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I set up the &amp;nbsp;Apache 2.2 +mod_jk +Tomcat 5.5 works fine.
&lt;br&gt;&lt;br&gt;I have mapping problem between &amp;nbsp;webapplication &amp;nbsp;on URL and the directory
&lt;br&gt;name under webapps.
&lt;br&gt;&lt;br&gt;How can I configure the &amp;nbsp;content of &amp;nbsp;context file &amp;nbsp;Tomcat5.5/conf/localhost/
&lt;br&gt;*webapplication.xml* &amp;nbsp; and httpd.conf file
&lt;br&gt;&amp;nbsp;to map between (*webapplication*) &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://localhost/*webapplication*&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/*webapplication*&lt;/a&gt;&lt;br&gt;/welcome.do &amp;lt;&lt;a href=&quot;http://localhost/webapplication/welcome.do&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/webapplication/welcome.do&lt;/a&gt;&amp;gt;
&lt;br&gt;and &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tomcat5.5/webapps/*booking* directory.
&lt;br&gt;&lt;br&gt;&amp;nbsp;If I change the directory name &amp;nbsp;Tomcat5.5/webapps/*booking* &amp;nbsp;to the &amp;nbsp;*
&lt;br&gt;webapplication,* the server works fine.
&lt;br&gt;&lt;br&gt;&lt;br&gt;The content of context xml file on &amp;nbsp; Tomcat5.5/conf/localhost/*
&lt;br&gt;webapplication.xml*:
&lt;br&gt;&lt;br&gt;&amp;lt;Context &amp;nbsp;path=&amp;quot;/*webapplication*&amp;quot; docBase=&amp;quot;*booking*&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug=&amp;quot;5&amp;quot; reloadable=&amp;quot;true&amp;quot; crossContext=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp;..............
&lt;br&gt;&amp;lt;/Context&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;*and httpd.conf file*:(short desc)
&lt;br&gt;**
&lt;br&gt;&lt;br&gt;LoadModule jk_module modules/mod_jk-apache-2.2.4.so
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;IfModule mod_jk.c&amp;gt;
&lt;br&gt;&amp;nbsp; JkWorkersFile conf/workers.properties
&lt;br&gt;&amp;nbsp; &amp;nbsp; JkLogFile logs/mod_jk.log
&lt;br&gt;&amp;nbsp; &amp;nbsp; JkLogLevel error
&lt;br&gt;&amp;nbsp; &amp;nbsp; JkLogStampFormat &amp;quot;[%a %b %d %H:%M:%S %Y] &amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
&lt;br&gt;&amp;nbsp; &amp;nbsp; JkRequestLogFormat &amp;quot;%w %V %T&amp;quot;
&lt;br&gt;&lt;br&gt;Alias /*webapplication * &amp;quot;C:/www/tomcat5/webapps/booking/&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Directory &amp;quot;C:/www/tomcat5/webapps/booking/&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Options Indexes +FollowSymLinks
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 