Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Calling a JSP from a virtual host

Calling a JSP from a virtual host

2004-01-15       - By Dolores Garc�a-Izquierdo Ja�n

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hi,

Thank you guys for your answers.
Oscar, I followed the instructions in your HOWTO but it didn't work.
I'm not sure if I made myself clear yesterday explaining my problem. What I
want to do is to have, for each virtual host in Apache, its respective web
application in Tomcat so as I can isolate the JSP code for every Apache
domain inside its own Tomcat application.
Right now I can only access the JSP pages from one of the virtual hosts, the
first one, the default one. If I want to access from any other virtual host
(let's say from www.anyVirtualHost.com) I must use
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of
http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp

Any help would be appreciated. Thanks again,
Dolores

-- --Original Message-- --
From: Oscar Carrillo [mailto:tomcat@(protected)]
Sent: Wednesday, 14 January, 2004 22:50
To: Tomcat Users List
Subject: Re: Calling a JSP from a virtual host


Hi,

I believe you need to do the jkmounts in each <VirtualHost> config in
httpd.conf.

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html

Eventhough, I reference Linux, Tomcat and Apache configuration should be
the same, I presume.

Oscar

On Wed, 14 Jan 2004, Dolores Garc�a-Izquierdo Ja�n wrote:

>  Hi everyone.
>
> I have the next configuration in my server:
> - Windows 2000 - sorry, no chance to use Linux :-(
> - Apache 2, with some virtual hosts
> - Tomcat 1.4, with some JSP webapps
> - mod_jk, to communicate Apache and Tomcat.
>
>
> I have the whole static code in Apache, and the JSP code in Tomcat.
> Everything works fine, but I think there is something that it's not going
as
> it should. I'll explain it:
>
> Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
one,
> the "default" one), myvirtualhost2 and myvirtualhost3, and a copy of
> index.html and index.jsp pages is inside each of those applications.
> http://www.myvirtualhost1.com/index.html --> shows ok
> http://www.myvirtualhost2.com/index.html --> shows ok
> http://www.myvirtualhost3.com/index.html --> shows ok
>
> And I have 1 webapp defined in Tomcat, myWebapp:
> http://www.myvirtualhost1.com/myWebapp/index.jsp --> shows ok
>
> The problem comes here, as I can only call a JSP page through the
"default"
> website in Apache:
> http://www.myvirtualhost2.com/myWebapp/index.jsp or
> http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
the
> page). The only thing that works is
> http://www.myvirtualhost1.com/myWebapp/index.jsp
>
> Is it possible to make this work? How can I call any JSP page in Tomcat
from
> any of my virtual hosts in Apache?
>
> I've looked for information all over the Internet and the archives of this
> mailing list, but I couldn't find any solution (found one but it's only
> valid for mod_jk2 - it didn't work for mod_jk)
>
> Thanks in advance
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.