MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread Suneel
Hi 
since runing mod_jk is throwing me only jsp source instead of jsp..i am trying 
mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the 
correct version. So i got the source and compiled it using buildconf.sh and configure, 
but in my native2/server/apache2 there is no mod_jk2.so  my config is rh9,tomcat 
4.1.29  apache 2.0.48. At this point i want to take a shotgun and blow my comp. What 
is wrong here?

regards
suneel


Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread George Shafik
Yep,

without going into too much detail IT DOESN'T WORK ITS REALLY BROKE.

Over the past 4 weeks I've made 8 REAL attempts, spent around 30 hours of my time and 
short of writing the whole thing myself I went with mod_webapp.so, tomcat-warp.jar for 
Apache 1.3.29 Tomcat 4.1.29. The build is stuffed and its not the version of libtool 
or anything else something is broke when you try to build on RH9 exactly what is up to 
the many lib, builds scripts between Ant and Make - if I have enough time over the 
next decade I may be able to solve it however apache 1.3.29 can talk to Tomcat 4.1.29 
for now through webapp connector, 

Now if through some miracle someone out there has managed to REALLY build this on 
current vanilla install of RH9 (not enterprise) I want a copy of mod_jk2.so file,  
httpd.conf, serer.xml, copy of the SOURCE jakarta-tomcat -connector used, a README 
file with exactly what you did and the best part for last I want a dump of your system 
output from the build of the mod_jk2.so in order to make me a believer. Keep in mind I 
want to build from source no binaries and Apache 2.0.48 connecting to Tomcat 4.1.29 
through mod_jk2.so - all built from source just in case you mist my point. 

Greatest apologies but like many out there I'm very frustrate when stuff that I really 
don't want to know much about stops working because of compromises in testing on the 
various platforms or the Readme files aren't updated along side the respective release 
even though this is after all open source.

Cheers,
George


Excellence is not an act, but a habit.
- Aristotle -







- Original Message - 
From: Suneel [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 02, 2004 6:24 PM
Subject: MOD_JK2 also Fails [EMAIL PROTECTED]


Hi 
since runing mod_jk is throwing me only jsp source instead of jsp..i am trying 
mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the 
correct version. So i got the source and compiled it using buildconf.sh and configure, 
but in my native2/server/apache2 there is no mod_jk2.so  my config is rh9,tomcat 
4.1.29  apache 2.0.48. At this point i want to take a shotgun and blow my comp. What 
is wrong here?

regards
suneel


Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread Oscar Carrillo
I've done mod_jk many times on RH9, but not mod_jk2.

My first suggestion would be to apply all updates before trying to compile 
anything, in particular:

glibc and all other related glibc packages
nptl-devel

I don't know why you would have gone with mod_webapp before going to 
mod_jk.

Check my page if you haven't already:
http://daydream.stanford.edu/tomcat/install_web_services.html

Oscar

On Sat, 3 Jan 2004, George Shafik wrote:

 Yep,
 
 without going into too much detail IT DOESN'T WORK ITS REALLY BROKE.
 
 Over the past 4 weeks I've made 8 REAL attempts, spent around 30 hours
 of my time and short of writing the whole thing myself I went with
 mod_webapp.so, tomcat-warp.jar for Apache 1.3.29 Tomcat 4.1.29. The
 build is stuffed and its not the version of libtool or anything else
 something is broke when you try to build on RH9 exactly what is up to
 the many lib, builds scripts between Ant and Make - if I have enough
 time over the next decade I may be able to solve it however apache
 1.3.29 can talk to Tomcat 4.1.29 for now through webapp connector,
 
 Now if through some miracle someone out there has managed to REALLY
 build this on current vanilla install of RH9 (not enterprise) I want a
 copy of mod_jk2.so file, httpd.conf, serer.xml, copy of the SOURCE
 jakarta-tomcat -connector used, a README file with exactly what you did
 and the best part for last I want a dump of your system output from the
 build of the mod_jk2.so in order to make me a believer. Keep in mind I
 want to build from source no binaries and Apache 2.0.48 connecting to
 Tomcat 4.1.29 through mod_jk2.so - all built from source just in case
 you mist my point.
 
 Greatest apologies but like many out there I'm very frustrate when stuff
 that I really don't want to know much about stops working because of
 compromises in testing on the various platforms or the Readme files
 aren't updated along side the respective release even though this is
 after all open source.
 
 Cheers,
 George
 
 
 Excellence is not an act, but a habit.
 - Aristotle -
 
 
 
 
 
 
 
 - Original Message - 
 From: Suneel [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, January 02, 2004 6:24 PM
 Subject: MOD_JK2 also Fails [EMAIL PROTECTED]
 
 
 Hi 
 since runing mod_jk is throwing me only jsp source instead of jsp..i am trying 
 mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the 
 correct version. So i got the source and compiled it using buildconf.sh and 
 configure, but in my native2/server/apache2 there is no mod_jk2.so  my config is 
 rh9,tomcat 4.1.29  apache 2.0.48. At this point i want to take a shotgun and blow 
 my comp. What is wrong here?
 
 regards
 suneel
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread Mark Eggers
George,

This has been discussed on the list before.  While you
can use a vanilla RedHat 9 install, some of the
libraries (apr, apr-util) are not quite where the make
file thinks they should be.

There are several solutions.

1. Build apache 2.0.48 from source.

a) Note that on RedHat, the SSL libraries and includes
are not where the configure file expects.

export LDFLAGS=-L/usr/kerberos/lib

should solve that problem.

b) After building and installing Apache from source,
you then will need to install Tomcat - the binaries
will do fine.

c) Finally, download
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

d) Uncompress it and extract the tar file.

e) cd to
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

f) chmod u+x configure

g) Run configure with:

./configure
  --with-apxs2=apache-root-directory/bin/apxs \
  --with-tomcat41=tomcat-root-directory \
  --with-java-home=java-root-directory \
  --with-jni \
  --with-pcre

For example:

./configure --with-apxs2=/home/apache/bin/apxs \
  --with-tomcat41=/home/tomcat \
  --with-java-home=/usr/java \
  --with-jni \
  --with-pcre

h) Run make

i) The two .so files (mod_jk2.so and jkjni.so) will be
in:

jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2

j) Copy those to files to
apache-root-directory/modules with the proper
permissions.

k) Configure and restart

If you're using the default RedHat 9 installation, you
will probably have to tell configure where to find the
libraries.  Add the following to the ./configure
command.

--with-apr-lib=directory
--with-apr-include=directory

Please check the syntax by typing

./configure --help

2. If you do not want to approach this from source,
check out www.jpackage.org for RPMs of mod_jk and
mod_jk2.  I've not used these, so caveat emptor.

Once you get a connector built and installed, there
are several good resources for getting Apache and
Tomcat configured.

http://jakarta.apache.org/tomcat/faq/connectors.html
http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb

HTH
/mde/
just my two cents . . . .

__
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread George Shafik
Yep - didn't get past first base - no make file generated!

In professional circles we classify this as CRAP - Can't Release Application
into Production  Config log file is below this e-mail.

In the case of a previous e-mail mod_jk works only on each second HTTP
request as the session is LOOPING in the connector. I have consistently
reproduced this on 3 separate builds.

Again I'm sticking with what works - my request remains as STATED below -
nothing more or less EXACTLY as stated. A bit like HOW README  FILES SHOULD
work in the real world.

AS STATED


Now if through some miracle someone out there has managed to REALLY build
this on current vanilla install of RH9 (not enterprise) I want a copy of
mod_jk2.so file,  httpd.conf, serer.xml, copy of the SOURCE
jakarta-tomcat -connector used, a README file with exactly what you did and
the best part for last I want a dump of your system output from the build of
the mod_jk2.so in order to make me a believer. Keep in mind I want to build
from source no binaries and Apache 2.0.48 connecting to Tomcat 4.1.29
through mod_jk2.so - all built from source just in case you mist my point.



WARNING: PLEASE DO NOT GIVE ME A ONE LINE RESPONSE

***

Real APOLOGIES to those of you who really get the message


George



***
This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was

generated by GNU Autoconf 2.57. Invocation command line was

$
./configure --with-apx2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/loc
al/jakarta-tomcat-4.1.29 --with-java-home=/usr/local/j2sdk1.4.1_02 --with-jn
i --with-pcre

## - ##

## Platform. ##

## - ##

hostname = sslaptop.gsss.net

uname -m = i686

uname -r = 2.4.20-8

uname -s = Linux

uname -v = #1 Thu Mar 13 17:54:28 EST 2003

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

/bin/arch = i686

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

PATH: /usr/kerberos/sbin

PATH: /usr/kerberos/bin

PATH: /usr/local/j2sdk1.4.1_02/bin

PATH: /usr/local/jakarta-tomcat-4.1.29/server/lib

PATH: /usr/local/apache/bin

PATH: /usr/local/apache2/bin

PATH: /usr/local/jakarta-ant-1.5.1/bootstrap/bin

PATH: /usr/X11R6/bin

PATH: /usr/local/sbin

PATH: /usr/local/bin

PATH: /sbin

PATH: /bin

PATH: /usr/sbin

PATH: /usr/bin

PATH: /usr/X11R6/bin

PATH: /root/bin



## --- ##

## Core tests. ##

## --- ##

configure:1507: checking for a BSD-compatible install

configure:1561: result: /usr/bin/install -c

configure:1572: checking whether build environment is sane

configure:1615: result: yes

configure:1648: checking for gawk

configure:1664: found /bin/gawk

configure:1674: result: gawk

configure:1684: checking whether make sets $(MAKE)

configure:1704: result: yes

configure:1896: checking for gcc

configure:1912: found /usr/bin/gcc

configure:1922: result: gcc

configure:2166: checking for C compiler version

configure:2169: gcc --version /dev/null 5

gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Copyright (C) 2002 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2172: $? = 0

configure:2174: gcc -v /dev/null 5

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs

Configured with:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --enable-shared --enable-threads=posix --disable-checking --with-system-zli
b --enable-__cxa_atexit --host=i386-redhat-linux

Thread model: posix

gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

configure:2177: $? = 0

configure:2179: gcc -V /dev/null 5

gcc: argument to `-V' is missing

configure:2182: $? = 1

configure:2206: checking for C compiler default output

configure:2209: gcc -L/usr/kerberos/lib conftest.c 5

configure:2212: $? = 0

configure:2258: result: a.out

configure:2263: checking whether the C compiler works

configure:2269: ./a.out

configure:2272: $? = 0

configure:2289: result: yes

configure:2296: checking whether we are cross compiling

configure:2298: result: no

configure:2301: checking for suffix of executables

configure:2303: gcc -o conftest -L/usr/kerberos/lib conftest.c 5

configure:2306: $? = 0

configure:2331: result:

configure:2337: checking for suffix of object files

configure:2359: gcc -c conftest.c 5

configure:2362: $? = 0

configure:2384: result: o

configure:2388: checking whether we are using the GNU C compiler

configure:2413: gcc -c conftest.c 5

configure:2416: $? = 0

configure:2419: test -s conftest.o

configure:2422: $? = 0


Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread Giuliano Gavazzi
At 1:36 pm +1100 2004/01/03, George Shafik wrote:
Yep - didn't get past first base - no make file generated!

look, also on MacOSX (BSD based then) it seems impossible to make the 
build process work. What I did, following the same step as a couple 
years back, is to use apxs directly. On MacOSX one also needs some 
extra files (dlcompat) that I don't think are required on Linux. If 
you like you could get the compilation scripts from my page 
http://www.humph.com/docs/mod_jk.html and see how I called apxs.

I think the options passed to the compiler and linker will have to be 
changed, they are  -Wc,-bundle -undefined suppress -flat_namespace 
-Wl,-bind_at_load for MacOSX. They should not be different from 
those required to compile any other apache module I guess! Also the 
path to the Java includes will be different, but that's easy.

Giuliano
--
H U M P H
   || |||
 software
Java  C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread Mark Eggers
George,

I am sending you the config.log and a script of
exactly what I did since it is rather large.

Here is my environment.  I realize that it is more
recent than yours.  However, I performed the exact
same operations on all previous versions of RedHat 9
with the same results.

[EMAIL PROTECTED] apache-system]$ uname -a
Linux phoenix 2.4.22-1.2135.nptl #1 Mon Dec 15
15:55:18 EST 2003 i686 i686 i386 GNU/Linux

[EMAIL PROTECTED] apache-system]$ gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

[EMAIL PROTECTED] apache-system]$ libtool --version
ltmain.sh (GNU libtool) 1.5 (1.1220.2.1 2003/04/14
22:48:00)

[EMAIL PROTECTED] apache-system]$ ld --version
GNU ld version 2.14.90.0.6 20030820

[EMAIL PROTECTED] apache-system]$ make --version
GNU Make version 3.79.1, by Richard Stallman and
Roland McGrath.

[EMAIL PROTECTED] native2]$ java -version
java version 1.4.2_02
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed
mode)

[EMAIL PROTECTED] native2]$ rpm -qa | grep gcc
gcc-objc-3.3.2-1
compat-gcc-7.3-2.96.118
gcc-c++-3.3.2-1
gcc-g77-3.3.2-1
gcc-java-3.3.2-1
gcc32-3.2.3-6
libgcc-3.3.2-1
gcc-gnat-3.3.2-1
gcc-3.3.2-1
compat-gcc-c++-7.3-2.96.118

I noticed that you appear to be compiling this as
root.  In general, this is a bad idea as root has
special paths, and in Fedora Core 1, uses an older
compiler to build the kernel.

In general, building this software as a generic user,
and then su'ing to root is a more productive approach.

Also, make sure that when you built the Apache web
server that you enabled shared modules.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]