File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes apache2/tomcat5/mod_jk2 problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache2/tomcat5/mod_jk2 problem" Watch "apache2/tomcat5/mod_jk2 problem" New topic

apache2/tomcat5/mod_jk2 problem

rudal tomcat

Joined: Aug 04, 2004
Posts: 1

Information: Apache/2.0.50 (Unix) mod_ssl/2.0.50 OpenSSL/0.9.7d mod_jk2/2.0.4 PHP/4.3.8 Server and jakarta-tomcat-5.0.27

mod_jk2 = for Fedora Core2 (but my OS is RH9.0)

JSP is working fine but the classes are not visible at all. I got an error from the Apache but not from the tomcat itself. Error said 404. I thought it was from the Apache itself but it's not so I need some advice or some pointers.
Another thing, hmm when I activated AJP connector, the tomcat standalone is inaccessible (http://SERVER_NAME:8080/) but if I de-activated the Ajp connector, the tomcat standalone is accessible.
Thank you so much for any help.

my server.xml:
the default that comes with tomcat5 and addition is below:
<Engine name="Apache" defaultHost="localhost" debug="0">

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

<Host name="hostnameA" debug="0"
unpackWARs="true" autoDeploy="true">

<Context path="" docBase="" debug="1"/>

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="hostnameA_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>


# only at beginnin. In production uncomment it out


# Example socket channel, override port and host.

# define the worker
I agree. Here's the link:
subject: apache2/tomcat5/mod_jk2 problem
Similar Threads
Apache 1.3 / Tomcat 4.0 Configuration Problem
Weird result of server.xml for Virtual Host
Tomcat warnings
tomcat6 and apache
Enable Logging in Tomcat