Hello, GN> It looks like you have mod_jk 1.2 installed in Apache but have GN> JK2 configured in Tomcat. These two are not compatible.
GN> Posting your apache mod_jk config and the connector portion of your GN> tomcat server.xml would make it much easier to answer your question. GN> I would also recommend upgrading apache to the latest 1.3.27 release. GN> This won't solve your problem but their have been security patches GN> to apache since 1.3.22. GN> Regards, GN> Glenn GN> Scherbinko Timur wrote: >> Hi, >> >> I have installed >> - Apache/1.3.22 (Unix) >> - mod_jk-ap13-1.2.0-1 >> - tomcat4-4.1.12 >> >> >> >> >> At start Tomcat4 gives out a mistake >> >> Starting service Tomcat-Standalone >> Nov 26, 2002 7:52:31 PM org.apache.jk.common.ChannelSocket init >> INFO: JK2: ajp13 listening on tcp port 8009 >> Nov 26, 2002 7:52:31 PM org.apache.jk.server.JkMain start >> INFO: Jk running ID=0 time=20/295 config=/var/tomcat4/conf/jk2.properties >> StandardServer.await: Invalid command '' received >> Nov 26, 2002 7:53:09 PM org.apache.jk.common.ChannelSocket processConnection >> WARNING: server has closed the current connection (-1) >> >> How to solve this problem? >> >> Thanks! >> >> >> >> -- >> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> server.xml:: <Server port="8005" shutdown="SHUTDOWN" debug="0"> <!-- 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"> <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"> <!-- <Valve className="org.apache.catalina.valves.RequestDumperValve"/> --> <!-- Global logger unless overridden at lower levels --> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <!-- Because this Realm is here, an instance will be shared globally --> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/> <!-- Comment out the old realm but leave here for now in case we need to go back quickly --> <!-- <Realm className="org.apache.catalina.realm.MemoryRealm" /> --> <!-- Replace the above Realm with one of the following to get a Realm stored in a database and accessed via JDBC --> <!-- <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /> --> <!-- <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /> --> <!-- <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="sun.jdbc.odbc.JdbcOdbcDriver" connectionURL="jdbc:odbc:CATALINA" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" /> --> <Host name="java" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="java_log." suffix=".txt" timestamp="true"/> <Context path="" docBase="/www/java/" debug="0"/> </Host> </Engine> </Service> </Server> mod_jk:: JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info httpd.conf ... <IfDefine HAVE_JK> LoadModule jk_module modules/mod_jk.so AddModule mod_jk.c Include /etc/httpd/conf/mod_jk.conf </IfDefine> <VirtualHost 192.168.0.1> ServerName java ServerAdmin tim JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 DocumentRoot /www/java/ <Directory "/www/java/"> Options Indexes FollowSymLinks </Directory> ErrorLog logs/java-error_log CustomLog logs/java-access_log combined </VirtualHost> I applied all changes that you recommended and it got Apache-Tomcat to work! But when I try to request http://java/index.jsp I get the error 404. Thanks -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
