Re: Is mod_jk.so corrupt?
John, Your error sounds exactly like the one I have seen, you need to compile this file from source. I've had to compile the mod_jk.so file from source for tomcat every time I've installed. Good luck, Sam At 4/23/2001 05:50 PM, you wrote: I believe that the file http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i386/mod_jk.so might be corrupt. I didn't think so at first and suspected that it was something I was doing wrong, but I've downloaded the file a few times and would only get the error: [root@webserver bin]# ./apachectl start Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: API module structure `jk_module' in file /usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO? ./apachectl start: httpd could not be started I saw Henri Gomez's announcement about the Tomcat v3.2.2-beta-3 version being available as well as the http://jakarta.apache.org/builds/tomcat/release/v3.2.2-beta-3/bin/linux/i386/mod_jk-stdapi.so, so I tried that instead and httpd started. Has anybody else had problems getting http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i386/mod_jk.so to work? -- John Hebert System Engineer http://www.vedalabs.com Changing your state of mind through sound.
Re: ClassNotFoundException
Michael, I had a problem similar to this tonight. After a little searching I found out that it was related to classpath. Make sure your classes folder is in your classpath. Good luck, Sam At 3/26/2001 10:17 PM, you wrote: I've new to servlets and jsp and have just installed Tomcat so forgive me if I'm missing something really simple here. I've searched the archives and not found any answers. I've created a new webapp as detailed in the instructions that I downloaded. The servlets and html files work fine but when I try to load a jsp the browser diplays a 404 error and I get a ClassNotFoundException in the command window. I'm running Tommcat 3.2.1 with Linux/Apache. Can anyone help me out. he directory structure is /usr/local/jakarta-tomcat/myapp/WEB-INF/classes. I'm placing the jsp and html files in myapp and the servlets in classes. I have defined a context for myapp in server.xml. In the browser I type http://myserver/myapp/index.jsp. Michael Garthwaite
Re: Problems while configuring Apache-Tomcat on Linux
Kavita, I had a problem with mod_jserv.so at first as well. I had to compile mod_jserv my self. Once I did everything worked perfectly. Good luck, Sam At 3/26/2001 09:15 PM, you wrote: For configuring Apache-Tomcat to work together on Linux, I downloaded the file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and placed it in the /usr/local/apache/libexec/ directory. The tomcat-apache.conf that was generated on starting tomcat was also renamed to tomcat.conf and the same was included in the apache's httpd.conf. I had to update this tomcat.conf file to change the first line to "LoadModule jserv_module libexec/mod_jserv_tomcat.so" instead of "LoadModule jserv_module libexec/mod_jserv.so" On restarting tomcat, it works fine. When we restart Apache, it gives the following error - [root@linuxwd libexec]# /usr/local/apache/bin/apachectl start Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf: API module structure `jserv_module' in file /usr/local/apache/libexec/mod_jserv_tomcat.so is garbled - perhaps this is not an Apache module DSO? /usr/local/apache/bin/apachectl start: httpd could not be started