Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
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
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: Apache + Tomcat Integration

Subject: Re: Apache + Tomcat Integration

2007-11-01       - By Sierra

 Back

Hi,

I have made the integration work.

I did changes to the indexpage of apache (i.e. I included frameset and
called my tomcat page)

I have removed virtual host from http file and made it simple by inlusind
only location..

<Location "/AjaxSample">
JkUriSet worker ajp13:127.0.0.1:8009
</Location>

Its redirecting to my tomcat.

TIll now its okei, but for displaying static pages I have included the files
in httpd doc, and its working fine but I want to make it in another location
so that I can put my files in a different location. How can I do?

~Kranthi






Sierra wrote:
>
> Hi Filip,
>
> I have done with mod_jk2 and I have included the following in httpd.conf
>
> NameVirtualHost 192.168.139.202:80
>
> <VirtualHost 192.168.139.202:80>
>     ServerAdmin IntranetTeam@(protected)
>    DocumentRoot /usr/Images
> <Directory "/home/oracle/tomcat/webapps/AjaxSample">
> AllowOverride AuthConfig
> </Directory>
> ServerName  warriors
> ServerAlias 192.168.139.202:80
> ErrorLog /home/error.log
> CustomLog /home/access.log combined
> <Location "/AjaxSample">
> JkUriSet worker ajp13:localhost:8009
> </Location>
> <Location "/AjaxSample/*">
> JkUriSet worker ajp13:localhost:8009
> </Location>
> </VirtualHost>
>
> I am getting a tree structure(Index of/ and listing the files) of my
> document root instead of web appln.
>
> -Kranthi
>
> Filip Hanik - Dev Lists wrote:
>>
>> ouch, JK2 has been deprecated for almost three years now,
>>
>> use mod_jk, it's being maintained and patches kept up to date or use
>> mod_proxy for http proxying
>>
>> Filip
>>
>> Sierra wrote:
>>> Hi All,
>>>
>>> I am very bew to Linux and I have been given a task to integrate Apache
>>> and
>>> Tomcat.
>>>
>>> I got a document and integrated but the output I am getting is [B]It
>>> works[/B].
>>> I want to get my home page with my IP. but If I give Ip followed by
>>> 7080(full URL)  I am able to see the home page.
>>>
>>> I used jakarta-tomcat-connectors-jk2-2.0.4-src.tar.tar and
>>> libtool-1 (See http://ool-1.ora-code.com).5.8.tar.tar.
>>>
>>>
>>> jk2.properties:
>>> [CODE]
>>> channelSocket.port=8009
>>> channelSocket.address=127.0.0.1
>>> channelSocket.maxThreads=300[/CODE]
>>>
>>> httpd.conf
>>> I have added these lines..
>>>
>>> [CODE]LoadModule jk2_module libexec/mod_jk2.so
>>>
>>> <Location "/AjaxSample">
>>> JkUriSet worker ajp13:127.0.0.1:8009
>>> </Location>
>>> <Location "/AjaxSample/*">
>>> JkUriSet worker ajp13:127.0.0.1:8009
>>> </Location>[/CODE]
>>>
>>> workers2.properties
>>>
>>> [CODE][shm]
>>> file=/usr/local/apache2/logs/shm.file
>>> size=1048576
>>>
>>> # socket channel
>>> [channel.socket:localhost:8009]
>>> port=8009
>>> host=127.0.0.1
>>>
>>> # worker for the connector
>>> [ajp13:localhost:8009]
>>> channel=channel.socket:localhost:8009[/CODE]
>>>
>>>
>>>
>>> server.xml
>>>
>>> [CODE]<Host name="192.168.139.202:7080">
>>>   <Context path="/AjaxSample"
>>>   docBase=" /home/oracle/apache-tomcat-5 (See http://cat-5.ora-code.com).5.20/webapps/AjaxSample "
>>> debug="0"
>>> reloadable="true" crossContext="true"/>
>>>   </Host>[/CODE]
>>>
>>> Is there any configuration I missed, please help me out.
>>>
>>> Regards,
>>> Kranthi Kiran
>>>  
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To start a new topic, e-mail: users@(protected)
>> To unsubscribe, e-mail: users-unsubscribe@(protected)
>> For additional commands, e-mail: users-help@(protected)
>>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Apache-%2B-Tomcat
-Integration-tf4719336.html#a13528609
Sent from the Tomcat - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


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