• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

apache2/tomcat5/mod_jk2 problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

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)

problem:
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"
timestamp="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

<Host name="hostnameA" debug="0"
appBase="/home/httpd/html/opticmedia"
unpackWARs="true" autoDeploy="true">
<Alias>hostnameA</Alias>
<Alias>IP_ADDRESS_1</Alias>


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

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


</Engine>
....

my worker2.properties:
# only at beginnin. In production uncomment it out
#[logger.apache2]
level=DEBUG

[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
 
reply
    Bookmark Topic Watch Topic
  • New Topic