Re: Trouble accessing content in webapps/ROOT

2010-04-16 Thread Pid *
HTTPD is serving them rather than Tomcat.

Configure a separate document root for HTTPD and the we can fix your
connector config.


p

On 15 Apr 2010, at 18:31, laredotornado laredotorn...@gmail.com wrote:


 What specifically is wrong?  Why are the pages being served
 without being
 compiled?

 Thanks, - Dave



 Konstantin Kolinko wrote:

 2010/4/15 laredotornado laredotorn...@gmail.com:

 Hi,

 I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3.  I want to
 use
 http://localhost/ to access content in my $CATALINA_HOME/webapps/
 ROOT/
 directory.  However, when I visit http://localhost/index.jsp, I
 just get
 the
 raw page with all the uncompiled, JSP code.  Below is the
 directive I'm
 using in my httpd.conf file.  Any thoughts?


 Yes, your configuration is wrong.

 Have you read the manuals,  I mean the proper ones at
 http://tomcat.apache.org/ ?

 There should be a warning somewhere, that you must not point Apache
 to
 your Tomcat appbase. (Pointing it to your ROOT application is a
 lesser
 crime, but still similar to the original one).


  DocumentRoot /Library/Tomcat/Home/webapps/ROOT
  Directory /Library/Tomcat/Home/webapps/ROOT
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
  /Directory
  JkMount (...)

 I am successfully able to access JSP content in other webapps
 directories
 other than ROOT.  Thanks, - Dave


 Best regards,
 Konstantin Kolinko

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




 --
 View this message in context: 
 http://old.nabble.com/Trouble-accessing-content-in-webapps-ROOT-tp28256603p28258290.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Trouble accessing content in webapps/ROOT

2010-04-15 Thread laredotornado

Hi,

I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3.  I want to use
http://localhost/ to access content in my $CATALINA_HOME/webapps/ROOT/
directory.  However, when I visit http://localhost/index.jsp, I just get the
raw page with all the uncompiled, JSP code.  Below is the directive I'm
using in my httpd.conf file.  Any thoughts?


VirtualHost *:80
  ServerName lvcva
  DocumentRoot /Library/Tomcat/Home/webapps/ROOT
  Directory /Library/Tomcat/Home/webapps/ROOT
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
  /Directory
  JkMount /* ajp13_worker
  JkMount /leadtracker ajp13_worker
  JkMount /campaigns ajp13_worker
  JkMount /tracking/leads ajp13_worker
  JkUnMount /myco/* ajp13_worker
  JkUnMount /ltourism/* ajp13_worker
  JkUnMount /mtourism/* ajp13_worker
  JkUnMount /images/* ajp13_worker
  JkUnMount /error-pages/*.html ajp13_worker
  JkUnMount /*.swf ajp13_worker
  # Administer mount implied my wildcard mount above
  JkMount /administer/* ajp13_worker
  JkMount /search/* ajp13_worker
  JkMount /contentSyndication ajp13_worker
  ErrorDocument 404 /error-pages/404.html
  ErrorDocument 500 /error-pages/500.html
  ErrorDocument 503 /error-pages/503.html
/VirtualHost


I am successfully able to access JSP content in other webapps directories
other than ROOT.  Thanks, - Dave


-- 
View this message in context: 
http://old.nabble.com/Trouble-accessing-content-in-webapps-ROOT-tp28256603p28256603.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Trouble accessing content in webapps/ROOT

2010-04-15 Thread Konstantin Kolinko
2010/4/15 laredotornado laredotorn...@gmail.com:

 Hi,

 I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3.  I want to use
 http://localhost/ to access content in my $CATALINA_HOME/webapps/ROOT/
 directory.  However, when I visit http://localhost/index.jsp, I just get the
 raw page with all the uncompiled, JSP code.  Below is the directive I'm
 using in my httpd.conf file.  Any thoughts?


Yes, your configuration is wrong.

Have you read the manuals,  I mean the proper ones at
http://tomcat.apache.org/ ?

There should be a warning somewhere, that you must not point Apache to
your Tomcat appbase. (Pointing it to your ROOT application is a lesser
crime, but still similar to the original one).


  DocumentRoot /Library/Tomcat/Home/webapps/ROOT
  Directory /Library/Tomcat/Home/webapps/ROOT
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  /Directory
  JkMount (...)

 I am successfully able to access JSP content in other webapps directories
 other than ROOT.  Thanks, - Dave


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Trouble accessing content in webapps/ROOT

2010-04-15 Thread laredotornado

What specifically is wrong?  Why are the pages being served without being
compiled?

Thanks, - Dave



Konstantin Kolinko wrote:
 
 2010/4/15 laredotornado laredotorn...@gmail.com:

 Hi,

 I'm using Tomcat 6.0.26 with Apache 2.2 on Mac 10.6.3.  I want to use
 http://localhost/ to access content in my $CATALINA_HOME/webapps/ROOT/
 directory.  However, when I visit http://localhost/index.jsp, I just get
 the
 raw page with all the uncompiled, JSP code.  Below is the directive I'm
 using in my httpd.conf file.  Any thoughts?

 
 Yes, your configuration is wrong.
 
 Have you read the manuals,  I mean the proper ones at
 http://tomcat.apache.org/ ?
 
 There should be a warning somewhere, that you must not point Apache to
 your Tomcat appbase. (Pointing it to your ROOT application is a lesser
 crime, but still similar to the original one).
 

  DocumentRoot /Library/Tomcat/Home/webapps/ROOT
  Directory /Library/Tomcat/Home/webapps/ROOT
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  /Directory
  JkMount (...)

 I am successfully able to access JSP content in other webapps directories
 other than ROOT.  Thanks, - Dave

 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Trouble-accessing-content-in-webapps-ROOT-tp28256603p28258290.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org