Re: How To Build mod_jk?????

2003-08-16 Thread Eric J. Pinnell
Hi,

I don't use ant.  I use make.  It appears that you are trying to build
JK2.

In the native2 directory:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

-e

On Sat, 16 Aug 2003, Bongrip wrote:

>
> I have been trying to build mod_jk and it seems the documentation is
> lacking and the instructions do not work.
>
> First my system:
>
> Solaris 8 64-bit with latest patch cluster
> gcc 3.3 AND Sun's Forte Dev 7 compiler
> Tomcat 4.1.27 (installed and running fine)
> Apache 2.0.47 (installed and running fine)
> j2sdk1.4.1_04
> Ant 1.5.4
>
> I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it.
>
> I then renamed build.properties.sample to build.properties and edited
> all the paths.
>
> The documentation says to run 'ant', here is the output:
> Buildfile: build.xml
>
> detect:
>   [echo]  jakarta-tomcat-connectors 
>
> prepare:
>
> BUILD FAILED
> file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
> Warning: Could not find file
> /root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
>
> Total time: 3 seconds
>
>
> I then changed to this directory:
> jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
>
> % CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom
> cat41=/usr/local/jakarta-tomcat-4.1.27
> --with-java-home=/usr/j2sdk1.4.1_04 --with-jni
>
> % make
>
> Make completes and I then get these 2 files in /usr/local/apache2/modules:
> -rw-r--r--   1 root other 945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root other663 Aug 16 16:50 mod_jk.la
>
> At then end of the make it also says this:
> libtool: install: warning: remember to run `libtool --finish
> /usr/local/apache2/modules'
>
> So, if I do that:
> hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool
> --finish /usr/local/apache2/modules
> --
> Libraries have been installed in:
> /usr/local/apache2/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>   during execution
> - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> --
>
> Now when I look in /usr/local/apache2/modules:
>
> -rw-r--r--   1 root other 945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root other663 Aug 16 16:50 mod_jk.la
>
> What am I missing or what is the problem?
>
> Thanks,
> Chuck
>
>
> -
> 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]



Re: port 8009 security (ajp13)

2003-08-16 Thread Eric J. Pinnell
Hi,

Firewalls.  In a single box setup you would have a firewall that would
only allow access to port 80.  Apache would get the request and forward it
back to itself on port 8009.  This would be "behind" the firewall so you
couldn't access port 8009 directly.

In a N-tier setup there would be a firewall between the apache server and
the tomcat server.  You can control access to port 8009 from the firewall.

-e

On Sat, 16 Aug 2003, yo wrote:

> Hi, everyone
>
> I have a question about port 8009.
>
> I'm using Tomcat 4.1.27, Apache 2.0.47, mod_jk2/2.0.3-dev on Solaris 9.
> When Tomcat starts, Tomcat says,
> "INFO: JK2: ajp13 listening on /0.0.0.0:8009".
> (This message is in catalina.out)
>
> I guess I have to do something for the Tomcat security...
> but can't find any configurations about that in server.xml.
> How do you guys control access to port 8009 ?
>
> Any help is highly appreciated.
>
> Thanks and Regards.
>
> --
> yo
>
> -
> 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]



How To Build mod_jk?????

2003-08-16 Thread Bongrip
I have been trying to build mod_jk and it seems the documentation is 
lacking and the instructions do not work.

First my system:

Solaris 8 64-bit with latest patch cluster
gcc 3.3 AND Sun's Forte Dev 7 compiler
Tomcat 4.1.27 (installed and running fine)
Apache 2.0.47 (installed and running fine)
j2sdk1.4.1_04
Ant 1.5.4
I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it.

I then renamed build.properties.sample to build.properties and edited 
all the paths.

The documentation says to run 'ant', here is the output:
Buildfile: build.xml
detect:
 [echo]  jakarta-tomcat-connectors 
prepare:

BUILD FAILED
file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: 
Warning: Could not find file 
/root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar 
to copy.

Total time: 3 seconds

I then changed to this directory: 
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

% CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom
cat41=/usr/local/jakarta-tomcat-4.1.27 
--with-java-home=/usr/j2sdk1.4.1_04 --with-jni

% make

Make completes and I then get these 2 files in /usr/local/apache2/modules:
-rw-r--r--   1 root other 945542 Aug 16 16:50 mod_jk.a
-rw-r--r--   1 root other663 Aug 16 16:50 mod_jk.la
At then end of the make it also says this:
libtool: install: warning: remember to run `libtool --finish 
/usr/local/apache2/modules'

So, if I do that:
hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool 
--finish /usr/local/apache2/modules
--
Libraries have been installed in:
   /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
 during execution
   - use the `-RLIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
--
Now when I look in /usr/local/apache2/modules:

-rw-r--r--   1 root other 945542 Aug 16 16:50 mod_jk.a
-rw-r--r--   1 root other663 Aug 16 16:50 mod_jk.la
What am I missing or what is the problem?

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


RE: where is JSESSIONID?

2003-08-16 Thread Craig Berry
As that's a session-scope cookie, it doesn't get persisted as a file.

-Original Message- 
From: Billy Ng [mailto:[EMAIL PROTECTED] 
Sent: Fri 8/15/2003 6:41 PM 
To: Tomcat Users List 
Cc: 
Subject: where is JSESSIONID?



Hi folks;

Anybody knows where is the JSESSIONID cookie is?  I search the whole Cookies 
folder, I can't find it.

Billy Ng



This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com




port 8009 security (ajp13)

2003-08-16 Thread yo
Hi, everyone

I have a question about port 8009.

I'm using Tomcat 4.1.27, Apache 2.0.47, mod_jk2/2.0.3-dev on Solaris 9.
When Tomcat starts, Tomcat says,
"INFO: JK2: ajp13 listening on /0.0.0.0:8009".
(This message is in catalina.out)

I guess I have to do something for the Tomcat security...
but can't find any configurations about that in server.xml.
How do you guys control access to port 8009 ?

Any help is highly appreciated.

Thanks and Regards.

--
yo

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



compile error

2003-08-16 Thread Aulia Yusuf
Hi, my name is Aulia. I have a weird problem here. When I try to run JSP and if the 
page has some errors. It displayed error messages. But, right now...when I compile it, 
and if it has a compilation error, it does not display any message of error 
specification but does display a page saying "Sorry, no web site results were 
found"...I dont know what have I done. But this problem did not occur when I just 
installed Tomcat. Could anybody explain me why this happens ? Thanks.
 
Regards,
 
Aulia


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: two way trust

2003-08-16 Thread Steve Kwong
Thanks Bill.

Upon using keytool's self sign cert I was able to get two-way trust working.
Previously I was using certificates generated from BouncyCastle, and it
didn't work (it could be my BC code that was generating incorrect/incomplete
certs, but with one way trust - the client needing to verify tomcat, it did
work).  Did anyone else experience problems when using BouncyCastle certs,
and if so, was there a remedy to the situation, other than using keytool?

Steve
- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 9:19 PM
Subject: Re: two way trust


> There have been very many client-cert changes since 4.1.12.  For using
Sun's
> JVM (which you seem to be using), you probably need to upgrade to at least
> 4.1.24.  For other vendors, you need to upgrade to 4.1.27.  In particular,
> 4.1.12 uses JSSE 1.0.x, so you need to upgrade to take advantage of JSSE
> 1.1.x.
>
> As of 4.1.27, client-cert works fine by itself.  It isn't feature-complete
> in the sense that most of the Realms that ship with Tomcat can't handle
> client-cert authorization.
>
>
> "Steve Kwong" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Does Tomcat support two way trust (HTTPS) between the client and itself,
> > where the server requests for a X509 certificate from the client
> connecting
> > to it?  I read somewhere that this feature isn't complete in the 4.1.x
> > version of Tomcat.
> >
> > I've tried setting the config file as follows (I'm running Jboss
> > 3.0.4/Tomcat 4.1.12 on Win2K server):
> >
> > > port="443" minProcessors="5" maxProcessors="75"
> > enableLookups="false"
> >   acceptCount="100" debug="0" scheme="https" secure="true"
> > useURIValidationHack="false"
disableUploadTimeout="true">
> >   > className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
> >   keystoreFile="E:\\jboss-3.0.4_tomcat-4.1.12\\bin\\TOMCAT.KS"
> > keystorePass="TOMCAT"
> >  clientAuth="true" protocol="TLS" />
> >   
> >
> >
> > I am able to connect to Tomcat using a simple java-based ssl program
when
> > clientAuth="false", but it fails when I set it to true.  I've specified
a
> > trust store (and trust store password) containing all the valid CA certs
,
> > in an environment variable: CATALINA_OPTS.
> >
> > The trace of the execution is as follows:
> >
> > Client write key:
> > : 82 17 82 46 A4 94 00 54   A8 13 D7 88 B0 92 17 C1
...F...T
> > Server write key:
> > : E0 C4 6E A4 D8 0F 78 23   B7 B0 6A 97 98 46 AD 40
..n...x#..j..F.@
> > ... no IV for cipher
> > JsseJCE: Using JSSE internal implementation for cipher
> RSA/ECB/PKCS1Padding
> > *** CertificateVerify
> > main, WRITE: TLSv1 Handshake, length = 134
> > main, WRITE: TLSv1 Change Cipher Spec, length = 1
> > JsseJCE: Using JSSE internal implementation for cipher RC4
> > *** Finished
> > verify_data:  { 195, 128, 75, 187, 144, 183, 187, 156, 108, 255, 102,
85 }
> > ***
> > main, WRITE: TLSv1 Handshake, length = 32
> > main, READ: TLSv1 Alert, length = 2
> > main, RECV TLSv1 ALERT:  fatal, bad_certificate
> > main, called closeSocket()
> > main, handling exception: javax.net.ssl.SSLHandshakeException: Received
> > fatal al
> > ert: bad_certificate
> > javax.net.ssl.SSLHandshakeException: Received fatal alert:
bad_certificate
> > at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
> > at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275)
> > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
> > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
> > at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
> >
> >
> > Any ideas?
> >
> > Steve
>
>
>
>
> -
> 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]



RE: How to trigger events from tomcat?

2003-08-16 Thread Sjoerd van Leent
It seems the best way to do it is in a process or a thread, running
aside the regular web-application. This indeed uses an infinite loop to
check on times. You should be able to set this process as a low-priority
process, so it doesn't consume too much processor time.

I don't know if there is anything like a Timer in Java which you could
use, where it triggers on a timer interrupt. This should make it even
more lightweight.

Regards,
Sjoerd

-Original Message-
From: Prince [mailto:[EMAIL PROTECTED] 
Sent: donderdag 25 juli 2002 16:41
To: Tomcat Users List
Subject: How to trigger events from tomcat?

hi,

I am developing a web based appointment sheduler. the data is stored in
xml format.  i am using tomcat/jsp/servlet

for example if i added a new appointment , the program will ask for  a
reminder time. I am giving 08/08/2003 10:30
 so at 08/08/2003 10:30 an email should be sent to me saying that u have
an appointment.

how can i trigger for appointments. ie some method should be ther to
check if the appointment time is due on each second. Can i put an
infinite loop some how?

thanks n  regds
Prince



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



How to trigger events from tomcat?

2003-08-16 Thread Prince
hi,

I am developing a web based appointment sheduler. the data is stored in xml format.  i 
am using tomcat/jsp/servlet

for example if i added a new appointment , the program will ask for  a reminder time. 
I am giving 08/08/2003 10:30
 so at 08/08/2003 10:30 an email should be sent to me saying that u have an 
appointment.

how can i trigger for appointments. ie some method should be ther to check if the 
appointment time is due on each second. Can i put an infinite loop some how?

thanks n  regds
Prince