tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blaxton <blaxx...@yahoo.com>
Subject Re: MVC or Model2 with Tomcat
Date Sun, 04 Dec 2011 16:16:47 GMT




________________________________
 From: André Warnier <aw@ice-sa.com>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Sunday, December 4, 2011 6:51:58 PM
Subject: Re: MVC or Model2 with Tomcat
 
Blaxton wrote:
> I have created ROOT directory and placed index.jsp in ROOT directory
> the same as your example:
> /path/to/appbase/ROOT/index.jsp    -> myhost.com/index.jsp
> 
> but that didn't work. 
> 
> I followed following instructions but those didn't work either.
> 
> http://www.jguru.com/faq/view.jsp?EID=91006
> 
> http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application.3F
> 
> is there any thing else I should do to work this out?
> 

I wrote that second faq, but I don't see what it has to do with your problem.

You haven't answered Pid's question :

> Why do you need to do that to implement MVC?

Nor his second question :

> Without more information about your config, e.g. workers.properties it's
> impossible to tell why this didn't work.

And please, do not top-post.  It is very hard to follow a discussion when you have to jump
up and down in the mesage to understand what each phrase relates to.

Also, thank you for providing the versions of Apache httpd and Tomcat up-front.
But "mod_jk version 2", that does not exist.

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


My bad, the subject should have been "serving .jsp files from apache document root"
I just want to access my website as follow:
www.mydomain.com/index.jsp

the same as the solustion you wrote, but that solustion didn't work for me.
maybe because in that solution you were talking about 
CATALINA_BASE/webapps/ROOT directory
and I created CATALINA_BASE/webapps/myapplication/ROOT directory.

can we have ROOT directory for each application ?
like:

CATALINA_BASE/webapps/ROOT
CATALINA_BASE/webapps/firstapp/ROOT
CATALINA_BASE/webapps/secondapp/ROOT
.
.
.


anyway, here is the out put of the package query on my FreeBSD box:
ap22-mod_jk-ap2-1.2.30_1 Apache2 JK module for connecting to Tomcat using AJP1X


Thanks
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message