Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
mod_jk.so not building :(

mod_jk.so not building :(

2003-10-16       - By James Snelling

 Back
Reply:     1     2  

Okay - I'm on a MAC OSX machine and I've got apache and tomcat-5 (See http://cat-5.ora-code.com).0.12
both installed and working standalone.

Apache was from source, tomcat from a binary.

I'm now trying to build the mod_jk.so so that apache can speak to
tomcat.
I've been following the instructions at
http://www.geektimes.com/macintosh/os/x/10_0/and/tomcat_install.html
But using the latest versions of software - (with the exception of
dlcompat)

Anyone got any ideas?

Is a Mac OSX binary version of mod_webapp that I can use to do the same
job? (this is mentioned for version tomcat-4 (See http://cat-4.ora-code.com).0.1 in a
developer.apple.com article at
http://developer.apple.com/internet/java/tomcat1.html )

Anyway - here's what is happening:

** FIRST I CHECK THE JAVA_HOME AND OTHER VARIABLES  **
% env
JAVA_HOME=/Library/Java/Home
CC�
CPPFLAGS=-traditional-cpp

** THEN I GET THE DL-COMPAT STUFF FROM SOURCEFORGE **
% wget http://download.sourceforge.net/fink/dlcompat-20010123 (See http://pat-20010123.ora-code.com).tar.gz

** UNZIP AND UNTAR **
% gnutar zxf dlcompat-20010123 (See http://pat-20010123.ora-code.com).tar.gz

** SET A ENV TO MAKE LIFE EASY **
% setenv MOD_JK_DIR
jakarta-tomcat-5 (See http://cat-5.ora-code.com).0.12-src/src/jakarta-tomcat-connectors/jk/native/apache
-1.3/

** CHUCK THE REQUIRED FILES TO THE RIGHT PLACE **
% cp dlcompat-20010123 (See http://pat-20010123.ora-code.com)/{dlfcn.h,dlopen.c} $MOD_JK_DIR

** CHANGE TO THE CORRECT DIRECTORY **
% cd $MOD_JK_DIR

** COMPILE THE MODULE **
% apxs -o mod_jk.so -I. -I$JAVA_HOME/Headers -I../jk -DFREEBSD -c *.c
../jk/*.c
cc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite
-DSHARED_MODULE -I/usr/include/httpd -I. -I/Library/Java/Home/Headers
-I../jk -DFREEBSD  -c dlopen.c
dlopen.c:84: return type is an incomplete type
dlopen.c: In function `NSMakePrivateModulePublic':
dlopen.c:95: warning: `return' with a value, in function returning void
dlopen.c:97: invalid use of undefined type `enum bool'
dlopen.c:97: warning: `return' with a value, in function returning void
dlopen.c: In function `dlopen':
dlopen.c:255: void value not ignored as it ought to be
dlopen.c:337: void value not ignored as it ought to be
apxs:Break: Command failed with rc=1

BUMMER!!!!


James Snelling

James.Snelling@(protected)

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
----

The views expressed here are not those of the Students' Association nor can
they be assumed to be those of the writer. No liability is accepted for the
accuracy or the veracity of the contents. You are held to accept this and any
use to which you put any contents of this communication are entirely your
responsibility.

DISCLAIMER: This e-mail is intended solely for the above-mentioned recipient
and it may contain confidential or privileged information. If you have received
it in error, please notify us immediately and delete the e-mail. You must not
copy, distribute, disclose or take any action in reliance on it. This e-mail
message and any attached files have been scanned for the presence of computer
viruses, however, you are advised that you open any attachments at your own
risk.

Nothing in this email shall be construed as constituting an order for goods or
services

www.upsa.org.uk



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- --



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.