On Wed, 26 Sep 2007 18:39:21 -0000 Dancing Fingers <[EMAIL PROTECTED]> wrote:
> On Sep 21, 2:00 pm, Dancing Fingers <[EMAIL PROTECTED]> wrote: > > Thanks. This helps a lot. I also tried > > chown -R www-data /usr/share/tomcat5.5-webapps > > without much luck. > > > > Cchris > > On Sep 21, 1:10 pm, Nyizsnyik Ferenc <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Fri, 21 Sep 2007 07:42:59 -0700 > > > > > Dancing Fingers <[EMAIL PROTECTED]> wrote: > > > > Hi guys, > > > > I finally got Tomcat5.5 going on Etch AMD and I start > > > > studying the JSP developers guide but I get stuck in the > > > > beginning. The book says to create a new directory under > > > > ROOT but I don't have permission in my default account. The > > > > last install I did a chgrp / > > > > user/share/tomcat5.5-webapps/ROOT www-data but I screwed the > > > > package up so bad that I re-installed the system. Could > > > > anyone tell me how the is typically done? Thanks. > > > > Chris > > > > > I use the "user web applications", I think it is a better > > > approach for learning stuff. I put the following > > > in /etc/tomcat5.5/server.xml, in the <host> section: > > > > > <Listener className="org.apache.catalina.startup.UserConfig" > > > directoryName="public_html" > > > userClass="org.apache.catalina.startup.PasswdUserDatabase"/> > > > > > <Context path="/~nyizsa/jsp" > > > docBase="/home/nyizsa/public_html/jsp" debug="0"> </Context> > > > > > My pages can be reached ashttp://localhost:8180/~nyizsa/jsp/, and > > > they are actually located in /home/nyizsa/public_html/jsp. > > > > > You may find more useful information > > > athttp://localhost:8180/tomcat-docs/ > > > > > -- > > > Szia: > > > Nyizsa. > > > > > ---------------------------------------------------------------------- > > > Get a free email address with REAL anti-spam > > > protection.http://www.bluebottle.com/tag/1 > > > > > -- > > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > > with a subject of "unsubscribe". Trouble? Contact > > > [EMAIL PROTECTED] > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > > [EMAIL PROTECTED] > > I tried > > > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" > xmlNamespaceAware="false"> > > <Listener > className="org.apache.catalina.startup.UserConfig" > directoryName="public_html" > userClass="org.apache.catalina.startup.PasswdUserDatabase"/> <Context > path="/batymahn/chapter1" ------------^ Here a ~ seems to be missing. Also, did you create the chapter1 directory in your public_html? > docBase="/home/batymahn/public_html/chapter1" debug="0"> </ > Context> > </Host> > > Without luck. i also tried > > <Host name="mi-garage" appBase="file:/var/www/mi-garage" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" > xmlNamespaceAware="false"> <context path="mi-garage" > docBase="file:/var/www/mi-garage" debug="0" reloadable="true"/>--> > <!--<alias>mi-garage.zapto.org</alias>--> > <!--<valve > className="org.apache.catalina.valves.AccessLogValve" > directory="/var/log/tomcat5.5/mi-garage" prefix="access_log." > suffix=".txt" pattern="common" resolveHosts="false"/> > > </Host> No idea about these settings. > Still can't get it... Do I need to use the manager tool? My admin > tool doesn't work although apt-get says that it's installed. > It doesn't even seem to log so can't trouble shoot. RTFM: http://localhost:8180/tomcat-docs/manager-howto.html Look for $CATALINA_HOME/conf/tomcat-users.xml and do what it says, and also add "admin" to the roles. > Thanks. > Chris > > And I must ask the obvious: did you restart tomcat5.5 after making the changes? -- Szia: Nyizsa. ---------------------------------------------------------------------- Find out how you can get spam free email. http://www.bluebottle.com/tag/3 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]