There's no need to build the connectors with ant. AFAIK, the ant method builds the "tomcat" side of the connectors, which is redundant if you're using a binary install of Tomcat as they are included.
To build the "Apache" side, you can use the ./configure method, which, in my mind, is much easier to work with and debug. I got a little crazy with my Delete key, so I don't have this whole thread to reference, but if you want to post/re-post your OS, versions, etc., start clean and step through it on the list, let me know. John > -----Original Message----- > From: John Bullock [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 12:24 PM > To: 'Tomcat Users List' > Subject: RE: mod_jk tomcat/apache connector issue > > > Thanks Adrian... I commented out the JK2 connector in server.xml and > uncommented the JK connector... still got the 'syntax error > on line 4' error > message when attempting to start apache. > > I also followed the instructions for trying to build > coyote/JK2 on the URL > you posted before I gave up and tried to do mod_jk instead... > the mod_jk2 > problems I had were in step 8 where you run 'ant native'... > the 'ant' in the > root gave me jtc.jar with no problems, but when I did 'ant > native' in the > /jk directory, the build failed with the following: > > [so] StdErr: > [so] ld: warning: option -o appears more than once, > first setting > taken > [so] ld: fatal: file mod_jk.so: cannot open file: No > such file or > directory > [so] ld: fatal: File processing errors. No output written to > .libs/mod_jk.so > [so] collect2: ld returned 1 exit status > > Tried rebuilding from scratch and all sorts of things before > throwing in the > towel and following John Turner's how-to, but I can't seem to > get that one > to work either... I must be missing something because I know > it can't be > this hard to get it to work. :( > > [ j o h n ] > > > > The reason I asked was the default connector on 8009 is for > JK2 , right > > below it commented > > out is the jk connector, I had to make the change recently for an > > Apache2 config. > > Also for building mod_jk, check out > > http://www.pubbitch.org/jboss/mod_jk2.html, > > may give a little insight. > > > -----Original Message----- > From: adrian [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 5:56 PM > To: Tomcat Users List > Subject: Re: mod_jk tomcat/apache connector issue > > > John Bullock wrote: > > >I'll try to explain.. :) > > > >For a long time, I've tried to build mod_jk with the 4.1.18 > connectors > >package to no avail... it wouldn't give any errors, but I'd > wind up with a > >mod_jk.la file (617 bytes) and no .so file whatsoever. > > > >Using a link from John Turner's how-to, I downloaded a > pre-compiled binary > >of mod_jk and followed the configuration steps. > > > >Just in case: > >http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html > > > >[ j o h n ] > > > >-----Original Message----- > >From: adrian [mailto:[EMAIL PROTECTED]] > >Sent: Monday, January 06, 2003 5:38 PM > >To: Tomcat Users List > >Subject: Re: mod_jk tomcat/apache connector issue > > > > > >John Bullock wrote: > > > > > > > >>Haven't seen this anywhere, but when I try to start apache > (2.0.43) with > >> > >> > >the > > > > > >>mod_jk module enabled, I get: > >> > >>#apachectl start > >>Syntax error on line 4 of /usr/local/tomcat/conf/auto/mod_jk.conf: > >>Can't locate API module structure `jk_module' in file > >>/usr/local/apache2/modules/mod_jk.so: ld.so.1: > >> > >> > >/usr/local/apache2/bin/httpd: > > > > > >>fatal: jk_module: can't find symbol > >># > >> > >>Tomcat starts up correctly with working examples, however. > I think this > is > >>a library issue, though it seems like it'd happen more > often and be in the > >>FAQ? > >> > >>using: > >>Tomcat 4.1.18 > >>Apache 2.0.43 > >>Java 1.4.1_01-b01 > >> > >>[ j o h n ] > >> > >> > >>-- > >>To unsubscribe, e-mail: > >> > >> > ><mailto:[EMAIL PROTECTED]> > > > > > >>For additional commands, e-mail: > >> > >> > ><mailto:[EMAIL PROTECTED]> > > > > > >> > >> > >> > >> > >> > >Are you using mod_jk or mod_jk2 ? Tomcat 4.1.18 is setup for jk2 by > default. > > > > > > > >-- > >To unsubscribe, e-mail: > ><mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > ><mailto:[EMAIL PROTECTED]> > > > > > >-- > >To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > The reason I asked was the default connector on 8009 is for > JK2 , right > below it commented > out is the jk connector, I had to make the change recently for an > Apache2 config. > Also for building mod_jk, check out > http://www.pubbitch.org/jboss/mod_jk2.html, > may give a little insight. > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
