tag:blogger.com,1999:blog-9854403.post8877558292758280210..comments2022-11-09T04:48:08.095-06:00Comments on lo-fi: Leopard for the Web Developer - installing mod_jkErichttp://www.blogger.com/profile/10808654379002826497noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-9854403.post-90477171444730854772010-09-29T14:10:59.950-05:002010-09-29T14:10:59.950-05:00same issue...
Expected in: flat namespace\n in /us...same issue...<br />Expected in: flat namespace\n in /usr/local/apache2/modules/mod_jk.soAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-81960067037909305882010-08-16T16:02:25.539-05:002010-08-16T16:02:25.539-05:00this is an error i got. i have snow leopard, and i...this is an error i got. i have snow leopard, and i have been pulling my hair out, because of this problem.<br /><br />httpd: Syntax error on line 467 of /etc/httpd/httpd.conf: Syntax error on line 4 of /usr/local/Tomcat/tomcat6/conf/auto/mod_jk.conf: Cannot load /usr/libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): Symbol not found: _apr_stat$INODE64\n Referenced from: /usr/libexec/apache2/mod_jk.so\n Expected in: flat namespace\n in /usr/libexec/apache2/mod_jk.soUnknownhttps://www.blogger.com/profile/13831510901450291986noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-34455028326959472172010-08-09T16:40:49.001-05:002010-08-09T16:40:49.001-05:00Thanks for the blog, very helpful information!Thanks for the blog, very helpful information!macbook 13http://www.macbook13.com/noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-1596726072369289612009-12-21T14:24:10.758-06:002009-12-21T14:24:10.758-06:00Eric,
I have my apache2 built and installed in /u...Eric,<br /><br />I have my apache2 built and installed in /usr/local/apache2. After I build the mod_jk, I got the following error starting hpptd:<br /><br />API module structure 'jk_module' in file /usr/local/apache2/modules/mod_jk.so is garbled - expected signature 41503230 but saw 41503232 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?<br /><br />I noticed that the build is using -I/usr/include/apache2 instead -I/usr/local/apache2/include even I had APACHE_HOME setup. <br /><br />Is this the root cause for my problem? Any idea how to fix it?<br /><br />Thanks,<br /><br />CliffordAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-77985109907781317722009-04-06T10:15:00.000-05:002009-04-06T10:15:00.000-05:00Eric,I had difficulty configuring Apache with Tomc...Eric,<BR/><BR/>I had difficulty configuring Apache with Tomcat on OSX Leopard myself and mentioned your post here:<BR/><BR/>http://happyworm.com/blog/2009/04/06/configuring-apache-with-tomcat-on-osx-leopard/<BR/><BR/>Cheers<BR/><BR/>MarkBMarkBhttp://happyworm.comnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-60810217953129130052008-12-28T08:23:00.000-06:002008-12-28T08:23:00.000-06:00Many thanks for the post. billo's post was basical...Many thanks for the post. billo's post was basically right, but he skipped over some details that were obvious to him.asac.cathttps://www.blogger.com/profile/04554160063798499763noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-55751759003313736902008-12-11T16:05:00.000-06:002008-12-11T16:05:00.000-06:00I have followed the above instructions exactly. U...I have followed the above instructions exactly. Unfortunately, I am still getting:<BR/><BR/>httpd: Syntax error on line 488 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture<BR/><BR/>Has anybody else had similar problem even after making the above changes to the Makefile?Anonymoushttps://www.blogger.com/profile/01863850587853745155noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-67973767516432087182008-05-01T11:00:00.000-05:002008-05-01T11:00:00.000-05:00@anonymous Looks like you have the module built an...@anonymous <BR/><BR/>Looks like you have the module built and in the right place. However, the error your getting is what you get when the module is not built correctly. The instructions above should be good. I've checked them a couple times. Here are some details that might have slipped under the radar<BR/><BR/>1. Make sure to cd into the "native" directory when you do your configure and make. The build will seem like it goes ok if you're not in the "native" directory, but you get the error you mentioned<BR/><BR/>2. When editing the the Makefile.apxs.in file, make sure there's a tab at the beginning of the $(APXS) line<BR/><BR/>All of these details are outlined in the instructions above. So, basically, try starting over and following closely :-) Let me know how it goes.Erichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-33390987310620444332008-05-01T10:44:00.000-05:002008-05-01T10:44:00.000-05:00Ignore my previous comment. Resolved by rebuildin...Ignore my previous comment. Resolved by rebuilding one more time.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-4329635885884209762008-05-01T10:31:00.000-05:002008-05-01T10:31:00.000-05:00Getting this error, though the file, mod_jk.so is ...Getting this error, though the file, mod_jk.so is in the correct place ...<BR/><BR/>5/1/08 11:30:22 AM org.apache.httpd[44862] httpd: Syntax error on line 501 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture <BR/><BR/>It mentions wrong Architecture.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-24935523115931856402008-04-30T22:59:00.000-05:002008-04-30T22:59:00.000-05:00@Anonymous It sounds like it could be a couple thi...@Anonymous It sounds like it could be a couple things. The first thing to do is to open /Applications/Utilities/Console.app and see what kind of messages you get when you restart apache. I'm thinking that it could be a couple things.<BR/><BR/>1. The original problem -- bad architecture error. To fix, follow the source code modification instructions<BR/><BR/>2. Maybe your log file for mod_jk doesn't exist. Make sure to create the log file that you specify. An empty text file will do.<BR/><BR/>3. Check the syntax of your workers.properties fileErichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-90412329879184913822008-04-30T21:39:00.000-05:002008-04-30T21:39:00.000-05:00I was successful in everything and then when I add...I was successful in everything and then when I added this to the httd.conf apache no longer started and there were no errors. Any ideas?<BR/><BR/>LoadModule jk_module /usr/libexec/apache2/mod_jk.so<BR/>JkWorkersFile /etc/apache2/workers.properties<BR/>JkShmFile /var/log/apache2/mod_jk.shm<BR/>JkLogFile /var/log/apache2/mod_jk.logAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-57794690130316985992008-01-20T10:36:00.000-06:002008-01-20T10:36:00.000-06:00Thanks a bunch for this nugget. I just got a MacB...Thanks a bunch for this nugget. I just got a MacBook Pro, and after using the binary lib from Apache unsuccessfully, a quick Google search brought me here.<BR/><BR/>20 minutes later - I'm back in business!!<BR/><BR/>Thanks again :)<BR/><BR/>Russ<BR/>Ontario, CanadaRusshttps://www.blogger.com/profile/09149441272652356626noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-84455422041581410112008-01-17T18:51:00.000-06:002008-01-17T18:51:00.000-06:00It looks like I must have gotten rid of the source...It looks like I must have gotten rid of the source I had when I built 1.2.25. I don't have the time to provide a link to the binary at the moment, but I tried building version 1.2.26, and it worked. <BR/><BR/>The important part is making sure you're in the right directory (tomcat-connectors-1.2.26-src/native/apache-2.0), and building with the Makefile.apxs<BR/><BR/>make -f Makefile.apxs<BR/><BR/>Invoking make from the native/ directory caused the same architecture problem for me as you mention.Erichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-21906996848297765512008-01-17T16:56:00.000-06:002008-01-17T16:56:00.000-06:00Many thanks.However the link to download the .25 v...Many thanks.<BR/><BR/>However the link to download the .25 version is broken<BR/><BR/>http://tomcat.apache.org/connectors-doc/<BR/><BR/>can you publish your src and binary module please?Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-9889868532628506782008-01-17T16:28:00.000-06:002008-01-17T16:28:00.000-06:00I'm at a loss. However, here are some things that ...I'm at a loss. <BR/><BR/>However, here are some things that I might check out.<BR/><BR/>1. The steps here are for version 1.2.25. The latest is 1.2.26. I wonder if this fix doesn't work for the latest version?<BR/><BR/>2. Check permissions. Whenever things don't work when they should for me, half the time it's a permissions issue.<BR/><BR/>3. I've had problems with the module when I neglected to specify a log file for mod_jk, or if the log file doesn't exist.<BR/><BR/>I have a feeling that the above suggestions may not help though. Let me know what you find out when you get it to work!Erichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-78556593833793407612008-01-17T13:02:00.000-06:002008-01-17T13:02:00.000-06:00mhh..I rebuilt everithing and I copied your shema,...mhh..I rebuilt everithing and I copied your shema, but it is still returning BAD ARCHITECTURE<BR/><BR/>Jan 17 19:00:08 f org.apache.httpd[28621]: httpd: Syntax error on line 520 of /private/etc/apache2/httpd.conf: Syntax error on line 5 of /private/etc/apache2/other/jk.conf: Cannot load /usr/libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_jk.so: mach-o, but wrong architecture<BR/><BR/>Any Idea?Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-63075418469184143682008-01-17T12:24:00.000-06:002008-01-17T12:24:00.000-06:00It looks like you have a syntax error on your http...It looks like you have a syntax error on your httpd.conf file where you are trying to load the new module. What I did is this.<BR/><BR/>1. Instead of editing the httpd.conf, I added an included conf file in /etc/apache2/other/ named "jk.conf". That file looks like:<BR/><BR/>######################<BR/># jk configuration<BR/>######################<BR/><BR/>LoadModule jk_module libexec/apache2/mod_jk.so<BR/>JkWorkersFile /etc/apache2/other/jk-workers.properties<BR/>JkShmFile /var/log/apache2/mod_jk.shm<BR/>JkLogFile /var/log/apache2/mod_jk.log<BR/>JkLogLevel debug<BR/><BR/><BR/>Make sure to create the log file that you specify. An empty text file will do.<BR/><BR/>2. My simple workers file (/etc/apache2/other/jk-workers.properties) looks like:<BR/><BR/>worker.list=tomcat<BR/><BR/># Define the worker for tomcat running on the computer<BR/>worker.tomcat.port=8009<BR/>worker.tomcat.host=127.0.0.1<BR/>worker.tomcat.type=ajp13<BR/><BR/>3. Make sure to add the relevant connection info to your conf - I use a virtualhost for this.<BR/><BR/># Deny access to WEB-INF and META-INF<BR/><Location "/WEB-INF/*"><BR/>Deny from all<BR/></Location><BR/><BR/><Location "/META-INF/*"><BR/>Deny from all<BR/></Location><BR/><BR/># connect .jsp to the mod_jk worker for tomcat to handle<BR/>#the worker should be the one named in the workers file. "tomcat" in this case<BR/>JkMount /*.jsp tomcatErichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-32350553267066011412008-01-17T11:52:00.000-06:002008-01-17T11:52:00.000-06:00I've got make and the other tools working but the ...I've got make and the other tools working but the module is still not working<BR/><BR/>Jan 17 17:50:10 f com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds<BR/>Jan 17 17:50:20 f org.apache.httpd[28225]: httpd: Syntax error on line 116 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_jk.so into server: dlopen(/usr/libexec/apache2/mod_jk.so, 10): image not found<BR/>Jan 17 17:50:20 f com.apple.launchd[1] (org.apache.httpd[28225]): Exited with exit code: 1<BR/>Jan 17 17:50:20 f com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds<BR/><BR/><BR/>Do you have any idea?Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-46378257687298055682008-01-17T11:11:00.000-06:002008-01-17T11:11:00.000-06:00Ok I've reinstalled xcode 3.0 and now are there. B...Ok I've reinstalled xcode 3.0 and now are there. <BR/><BR/>Before I had 2.5.<BR/><BR/>Now I try to see if the connector works.<BR/><BR/>Thanks for everything your blog is very useful and nice.Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-89471975563880493582008-01-17T11:08:00.000-06:002008-01-17T11:08:00.000-06:00I downloaded and reinstalle XCode 3.0 but they are...I downloaded and reinstalle XCode 3.0 but they are still not there<BR/><BR/>if I go do /usr/bin/ make is non there and neither the c compiler<BR/><BR/>any idea?Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-70124285796199522742008-01-17T09:13:00.000-06:002008-01-17T09:13:00.000-06:00I think your problem might have to do with the nee...I think your problem might have to do with the need to install the developer tools that comes with Leopard.<BR/><BR/>Once you have the Developer Tools installed, make will be installed and you should be able to commence building the module.Erichttps://www.blogger.com/profile/10808654379002826497noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-51540637624896246722008-01-17T07:47:00.000-06:002008-01-17T07:47:00.000-06:00Hi Eric,I'm trying to follow your instruction but ...Hi Eric,<BR/>I'm trying to follow your instruction but I have one problem:<BR/><BR/>It seems that the "make()" commands in doesn't exists.<BR/><BR/>filippo@f:/var/log $ make<BR/>-bash: make: command not found<BR/><BR/>Do you have any idea?Filippo di Pisahttps://www.blogger.com/profile/00936121922860070753noreply@blogger.comtag:blogger.com,1999:blog-9854403.post-68932447655554643722007-11-04T18:34:00.000-06:002007-11-04T18:34:00.000-06:00Eric, you're blog saved my weekend. I was struggl...Eric, <BR/>you're blog saved my weekend. I was struggling with restoring my web development environment after upgrading to Leopard. I use Java/JSP/Apache with a tunnel to our databases on a MacBook Pro. Even our "experts" didn't have a solution for me. <BR/><BR/>I can't thank you enough. Hey...I saw your other post on Social Networks. It was very insightful. I have been working on a social network for itunes users. www.sonicswap.com....send me email over there to dan at sonicswapDotCom. I would love to get in touch. It is good to hang with web developers who "get it"<BR/>Best regards,<BR/>DanAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9854403.post-48626721259876974772007-11-02T00:48:00.000-05:002007-11-02T00:48:00.000-05:00You could also pass the arch with the CFLAGS optio...You could also pass the arch with the CFLAGS option when you configure (./configure CFLAGS="-arch x86_64" ...)<BR/><BR/>Thanks for the post though, I was trying to compile with -arch i368 per http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_compiling/chapter_2_section_7.htmlAnonymousnoreply@blogger.com