it looks like you're doing everything right so far.
but
if you're expecting your browser to be able to talk to domain.com:8080, wrong. it's not http, rather ajp12/13. you must talk to it through apache, with directives in httpd.conf to a servlet, jsp, OR html with JKMoutnts.
at least that's my understanding.
-----Original Message-----
From: J. Patrick Lanigan [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 8:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Still trying to configure mod_jk
Thanks to everyone who has offered up advice. I'm still hacking away at it.
I've gotten a little further, but I'm not there yet.
I built apache with the following:
#
./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE --enable-mo
dule=so
# make; make install
> Problem #1 - There's something wrong with your mod_jk build. Can
> you outline
> the exact steps you took? This problem comes up pretty often in
> this list, but
> I don't recall encountering it myself. But then again, I usually
> build apache
> from source...
This is what I did to build mod_jk:
# cp Makefile.linux makefile
# vi makefile
...set the JAVA_HOME=/usr/local/java/jdk1.3
# make
# chmod 755 mod_jk.so
# cp mod_jk.so /usr/local/apache/libexec/
...then I added the tomcat.conf include to httpd.conf and tried to start
apache. No luck. I've tried starting tomcat now that I used 'ps ax', found
the offending process, and killed its pid. Now that tomcat is up, I still
can't start apache with the include in httpd.conf.
> Problem #2 - This means that you still have a running instance of
> Tomcat. How
> many times did you start up Tomcat? Check if any are running with ps ax.
This worked! I got tomcat running by killing a rogue process ;-) But, now
that I have it running without err, I try to hit domain:8080 to test tomcat
without apache running, and I get the following error:
2001-05-04 07:39:15 - ContextManager: Error reading request, ignored -
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(System.java:native)
at java.io.BufferedInputStream.read(BufferedInputStream.java:118)
at java.io.BufferedInputStream.read(BufferedInputStream.java:69)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.
java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInpu
tStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputS
tream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpReques
tAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:195)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:325)
> Regards,
> Noel Lecaros
>
> "J. Patrick Lanigan" wrote:
>
> > Line 127 of what file?
> >
> > I am running RH7/Apache1.3.17. The build goes fine for me(of
> mod_jk), but I
> > am having a couple problems.
> >
> > Problem #1----------------------------------------------------
> > I also get the following error when trying to start apache:
> >
> > [root@domain]# /usr/local/apache/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?
> > /usr/local/apache/bin/apachectl start: httpd could not be started
> >
> > Problem #2----------------------------------------------------
> > I don't have a test directory, but I am also getting the following error
> > when trying to start Tomcat:
> >
> > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /examples )
> > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /admin )
> > Starting tomcat. Check logs/tomcat.log for error messages
> > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( )
> > 2001-05-03 09:24:04 - ContextManager: Adding context Ctx( /test )
> > FATAL:java.io.IOException: Address already in use
> > java.io.IOException: Address already in use
> > at
> java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:native)
> > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:43)
> > at java.net.ServerSocket.<init>(ServerSocket.java:53)
> > at java.net.ServerSocket.<init>(ServerSocket.java:30)
> > at
> >
> org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Defa
> ultServerS
> > ocketFactory.java:97)
> > at
> >
> org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEnd
> point.java
> > :239)
> > at
> >
> org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.
> java:188)
> > at
> > org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> > at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> > at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> > ----------------------------------------------
> > Any ideas?
> > Thanks,
> > Patrick
> >
> > > Noel E. Lecaros wrote:
> > > Hi, Laurence
> > >
> > > If you're using GNU make, try putting a tab at the start of line 127.
> > >
> > > Hope this helps.
> > >
> > > Regards,
> > > Noel Lecaros
