Re: Manager webapp and virtual hosts

2005-09-28 Thread Dan Baggott
Mikolaj,

Hi.  Sorry to bother you but I saw this posting on the Tomcat list and
was wondering if you were able to successfully set up what you
describe?

I have mod_jk working fine and I'm now trying to do exactly what you mentioned:

my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2

So far I haven't had much success.  If you've gained any insights that
you can share with me, I'd be very grateful.

Cheers,

Dan

On 8/25/05, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:
 Hello,

 My configuration is very simple: tomcat listens on localhost with
 various apps in their contexts. Now I'd like to setup a virtual host for
 another one. Will it be possible to deploy/reload such application using
 manager webapp running on localhost? In other words: do I have to
 install separate manager webapp for each virtual host?

 And the second question is: is it possible to connect apache with
 virtual host + mod_jk + tomcat with webapp in it's context? I.e.:

 my1.domain.com (apache + mod_jk) ===   tomcat.domain.com/webapp1
 my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2

 ?

 --
 Mikolaj Rydzewski  [EMAIL PROTECTED]
 Becomo S.A.
 tel. (12) 2927104



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



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



Building connector JK-1.2.11

2005-05-02 Thread Dan Baggott
Hi,

I'm attempting to build JK-1.2.11 on Solaris 2.8 (sparc) for use with
Apache 1.3.  The build crashes out when it gets to the apache-1.3
Makefile.  Here's the relevant output from running make (I included
the complete output from make as well as the output from running
configure at the bottom).

[...]
Making all in apache-1.3
make: Fatal error in reader: Makefile, line 23: Unexpected end of line seen
Current working directory
/dna1/baggott2/install/WORKING/jakarta-tomcat-connectors-1.2.11-src/jk/native/apache-1.3
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

The contents of the apache-1.3 Makefile are below.

For what it's worth, I get the same error message when trying to build
version 1.2.10.

Any suggestions would be greatly appreciated,

Dan

Here's the contents of the Makefile:
bash-2.03$ cat -n apache-1.3/Makefile
 1
 2  ## configure should make the Makefile out of this file.
 3
 4  srcdir=.
 5  top_srcdir=..
 6
 7  APXS=/apache/bin/apxs
 8  OS=
 9  JAVA_HOME=
10  CP=/usr/bin/cp
11  APACHE_DIR=/usr/apache
12  MKDIR=/usr/bin/mkdir
13  DESTDIR=/usr/apache
14  LIBTOOL=$(SHELL) $(top_builddir)/libtool
15  CP=/usr/bin/cp
16  CC=gcc
17
18  top_builddir=..
19
20  OEXT=.lo
21  libexecdir=${APACHE_DIR}/libexec
22  JK_DIR := ..
23  BUILD_DIR = ${JK_DIR}/../build/jk/apache13
24
25  APACHE_FILES = Makefile.tmpl Makefile.libdir libjk.module
26
27  JK=../common/
28  JK_INCL=-DUSE_APACHE_MD5 -I ${top_srcdir}/common
29  JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
30  JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
31  APACHE_CFLAGS=-I/usr/apache/include -DEAPI -DMOD_PERL
-DUSE_EXPAT -O -DJK_PREFORK -g -O2 -DEAPI  -I${top_srcdir}/common
32
33  # Compile commands
34  JK_CFLAGS  = $(JK_INCL) $(JAVA_INCL) $(APACHE_CFLAGS)
35  COMPILE= $(CC)
36  SH_COMPILE = $(LIBTOOL) --mode=compile $(COMPILE) $(JK_CFLAGS)
37  MOD_LINK   = $(LIBTOOL) --mode=link $(CC)
38
39  include ../common/list.mk
40
41  all: mod_jk.so
42
43  #
44  # install part
45  #
46  install: install_dynamic
47
48  install_static: mod_jk.a
49  @echo 
50  @echo Copying files to Apache Modules Directory...
51  -${MKDIR} ${APACHE_DIR}/src/modules/jk
52  ${LIBTOOL} --mode=install ${CP} $
${APACHE_DIR}/src/modules/jk/mod_jk.a
53  -${CP} Makefile.tmpl ${APACHE_DIR}/src/modules/jk
54  -${CP} Makefile.libdir ${APACHE_DIR}/src/modules/jk
55  -${CP} mod_jk.c ${APACHE_DIR}/src/modules/jk
56  -${MKDIR} ${APACHE_DIR}/src/modules/jk/include
57  -${CP} ../common/*.h ${APACHE_DIR}/src/modules/jk/include
58  @echo 
59  @echo Please be sure to re-compile Apache...
60  @echo 
61  @echo cd ${APACHE_DIR}
62  @echo ./config.status
--activate-module=src/modules/jk/libjk.a \\
63  @echo --enable-module=dir \\
64  @echo --disable-shared=dir
65  @echo make
66  @echo 
67  install_dynamic: mod_jk.la
68  @echo 
69  @echo Copying files to Apache libexec Directory...
70  ${LIBTOOL} --mode=install ${CP} $ ${libexecdir}/mod_jk.so
71
72  #
73  # Clean part.
74  #
75  clean:
76  rm -rf *.lo *.la *.a
77  rm -rf *.o .libs *.so
78
79  #
80  # Compile part.
81  #
82  mod_jk.la: mod_jk.lo $(APACHE_OBJECTS)
83   ${MOD_LINK} -o $@ -module -rpath ${libexecdir} $^
84  mod_jk.a: mod_jk.lo $(APACHE_OBJECTS)
85   ${MOD_LINK} -o $@ $^
86
87  mod_jk.so: mod_jk.la
88  $(LIBTOOL) --mode=install cp $ `pwd`/$@
89
90  #
91  # Common part.
92  #
93  mod_jk.lo: mod_jk.c
94  ${SH_COMPILE} -c $ -o $@
95
96  .c.lo:
97  ${SH_COMPILE} -c $ -o $@



And here's the complete output from configure and make:

./configure --with-apxs=/apache/bin/apxs --enable-EAPI
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking for a BSD-compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed