Jake, I have checked all the config files and I must just be missing something. Any help you could give me would be deeply appreciated. The issue I have is that alone, both Apache and Tomcat work fine, but when I try to run one of the Tomcat examples from Apache I get an Internal Server Error (http://localhost/examples/jsp.date.jsp), but nothing gets written to the logs to show that Tomcat is even being contacted by Apache. Here is all the info: I am running apache2.0.44, tomcat4.1.18, and mod_jk-2.0.43.dll on a windows 2000 box. I have set up the config files as follows: http.conf -- added the following lines to the end of the file # Including Tomcat to the Apache server LoadModule jk_module modules/mod_jk-2.0.43.dll JkWorkersFile "C:/apps/Tomcat4.1/conf/jk/workers.properties" JkLogFile "C:/apps/Tomcat4.1/logs/mod_jk.log" Include "C:/apps/Tomcat4.1/conf/auto/mod_jk.conf" server.xml <Server port="8005" shutdown="SHUTDOWN" debug="0"> <!-- Auto Generator for mod_jk.conf --> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="C:/Program Files/Apache Group/Apache2/modules/mod_jk-2.0.43.dll" workersConfig="C:/apps/Tomcat4.1/conf/jk/workers.properties" jkLog="C:/apps/Tomcat4.1/logs/mod_jk.log" jkDebug="info"/> <!-- Uncomment these entries to enable JMX MBeans support --> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/> <!-- Global JNDI resources --> <GlobalNamingResources> <!-- Test entry for demonstration purposes --> <Environment name="simpleValue" type="java.lang.Integer" value="30"/> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved"> </Resource> <ResourceParams name="UserDatabase"> <parameter> <name>factory</name> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams> </GlobalNamingResources> <!-- Define the Tomcat Stand-Alone Service --> <Service name="Tomcat-Standalone"> <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" useURIValidationHack="false" disableUploadTimeout="true" /> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8009" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000" useURIValidationHack="false" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> <!-- Define an AJP 1.3 Connector on port 8009 --> <!-- <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0"/> --> <!-- Define the top level container in our container hierarchy --> <Engine name="Standalone" defaultHost="localhost" debug="0"> <!-- Global logger unless overridden at lower levels --> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/> <!-- Define the default virtual host --> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false" modJk="C:/Program Files/Apache Group/Apache2/modules/mod_jk-2.0.43.dll" /> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/> <!-- Tomcat Examples Context --> <Context path="/examples" docBase="examples" debug="0" reloadable="true" crossContext="true"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_examples_log." suffix=".txt" timestamp="true"/> <Ejb name="ejb/EmplRecord" type="Entity" home="com.wombat.empl.EmployeeRecordHome" remote="com.wombat.empl.EmployeeRecord"/> <Environment name="maxExemptions" type="java.lang.Integer" value="15"/> <Parameter name="context.param.name" value="context.param.value" override="false"/> <Resource name="jdbc/EmployeeAppDb" auth="SERVLET" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/EmployeeAppDb"> <parameter><name>user</name><value>sa</value></parameter> <parameter><name>password</name><value></value></parameter> <parameter><name>driverClassName</name> <value>org.hsql.jdbcDriver</value></parameter> <parameter><name>driverName</name> <value>jdbc:HypersonicSQL:database</value></parameter> </ResourceParams> <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/> <ResourceParams name="mail/Session"> <parameter> <name>mail.smtp.host</name> <value>localhost</value> </parameter> </ResourceParams> <ResourceLink name="linkToGlobalResource" global="simpleValue" type="java.lang.Integer"/> </Context> </Host> </Engine> </Service> </Server> mod_jk.conf ########## Auto generated on Tue Mar 04 16:31:21 EST 2003########## <IfModule !mod_jk.c> LoadModule jk_module "C:/Program Files/Apache Group/Apache2/modules/mod_jk-2.0.43.dll" </IfModule> JkWorkersFile "C:/apps/Tomcat4.1/conf/jk/workers.properties" JkLogFile "C:/apps/Tomcat4.1/logs/mod_jk.log" JkLogLevel info <VirtualHost localhost> ServerName localhost #################### localhost:/examples #################### # Static files Alias /examples "C:/apps/Tomcat4.1/webapps/examples" <Directory "C:/apps/Tomcat4.1/webapps/examples"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/examples/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/examples/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/apps/Tomcat4.1/webapps/examples/WEB-INF/"> AllowOverride None deny from all </Directory> <Directory "C:/apps/Tomcat4.1/webapps/examples/META-INF/"> AllowOverride None deny from all </Directory> JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13 </VirtualHost> workers.properties # Setting Tomcat & Java home workers.tomcat_home="C:\apps\Tomcat4.1" workers.java_home="C:\j2sdk1.4.1_02" ps=\ workers.list=ajp13 # Setting for ajp13 worker worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Thanks, Harry -----Original Message----- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tue 3/4/2003 4:27 PM To: Tomcat Users List Cc: Subject: RE: Tomcat error The CoyoteConnector is compatible with both mod_jk and jk2. And if you are using mod_jk, then you should have mod_jk.dll in apache's modules directory, not the jk2 dll. Since I can't see your mod_jk configuration, you will have to double check that everything is ok there. Jake At 03:34 PM 3/4/2003 -0500, you wrote: >Can I ask a follow on question to this, if you use mod_jk.dll do you have >to use the Ajp13Connector, and the Coyote connector should only be used >for mod_jk2.dll? > >Because I have installed Apache 2.0.44 and Tomcat 4.1.18 and when I use >mod_jk-2.0.43.dll, Apache starts fine, but if I use mod_jk2-2.0.43.dll, I >get the following error and Apache does not start: > >Syntax error on line 990 of C:/Program Files/Apache >Group/Apache2/conf/httpd.conf: >Can't locate API module structure `jk_module' in file C:/Program >Files/Apache Group/Apache2/modules/mod_jk2-2.0.43.dll: No error > >My really issue here is that I cannot get a .jsp file to work through >Apache. I get an Internal Server Error everytime I hit a .jsp file, but >the same file works fine if I hit it directly from Tomcat. > >Harry > > > > -----Original Message----- > From: Jacob Kjome [mailto:[EMAIL PROTECTED] > Sent: Tue 3/4/2003 3:26 PM > To: Tomcat Users List > Cc: > Subject: Re: Tomcat error > > > > > Either use the Coyote connector for AJP (the one configured for > port 8009) > and comment out the Ajp13Connector config or keep using the > Ajp13Connector > config and comment out the <mbean> stuff near the top of > server.xml. Either will solve the problem. Or, you can just > ignore the error. > > Jake > > At 12:31 PM 3/4/2003 -0500, you wrote: > >Has anyone seen this error before and know what it means? > > > > thanks > >Adam > > > >INFO: Initializing Coyote HTTP/1.1 on port 8080 > >ServerLifecycleListener: createMBeans: MBeanException > >java.lang.Exception: ManagedBean is not found with Ajp13Connector > > at > > >org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) > > at > > >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy > >cleListe > >ner.java:369) > > at > > >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy > >cleListe > >ner.java:777) > > at > > >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy > >cleListe > >ner.java:751) > > at > > >org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy > >cleListe > >ner.java:339) > > at > > >org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife > >cycleLis > >tener.java:206) > > at > > >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor > >t.java:1 > >66) > > at > > >org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) > > at > org.apache.catalina.startup.Catalina.start(Catalina.java:512) > > at > org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > at > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > > at > > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > >) > > at > > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > >.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > >Starting service Tomcat-Standalone > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]