Trouble building mod_webapp for tomcat 4 apache 2 and OS X

2002-08-01 Thread Aaron

When I try to build mod_webapp from the  
jakarta-tomcat-connectors-4.0.2-01-src for apache2 I get this message  
at the end of the output from the make command.  What does it mean?

*** Warning: This library needs some functionality provided by  
/usr/local/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/ 
libwebapp.la.
*** I have the capability to make that library automatically link in  
when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Therefore, libtool will create a static module, that should work
*** as long as the dlopening application is linked with the -dlopen  
flag.
make[1]: Exiting directory "apache-2.0"


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error compiling mod_jk

2002-08-09 Thread Aaron

Hi-

I'm trying to build mod_jk on Mac OS X.  I am using libtool-1.4.2 and I  
see the -arch_only option in the documentation.  Does anyone know how  
to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED -  used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp_common.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_connect.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_context.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_jni_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/bui

error building mod_jk

2002-08-09 Thread Aaron

From: Aaron <[EMAIL PROTECTED]>
Date: Fri Aug 9, 2002  1:12:36  PM US/Central
To: [EMAIL PROTECTED]
Subject: error compiling mod_jk

Hi-

I'm trying to build mod_jk on Mac OS X.  The build fails with this at  
the end:

[so] StdErr:
[so] libtool: unrecognized option `-arch_only'
[so] Try `libtool --help' for more information.

BUILD FAILED
file:/usr/local/jakarta-tomcat-connectors/jk/native/build.xml:134: Link  
failed mod_jk

I am using libtool-1.4.2 and I see the -arch_only option in the  
documentation.  Does anyone know how to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED -  used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

SOCKS and Tomcat

2002-08-13 Thread Rutledge, Aaron

Sorry list, I'm trying this again.  It got quickly buried last time, and
I just KNOW someone out there has run into this configuration problem
before.  Plus, I really have nowhere else to look--I've checked every
other resource I can think of.

I am trying to use Tomcat behind a SOCKS firewall.  I have a servlet
that is trying to access information outside the application context and
I am getting the following exceptions

java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
...and so on


I found on a really old post that I need to set TOMCAT_OPTS =
-DsocksProxyHost= -DsocksProxyPort=1080
I have set an environmental variable (I am using W2K), but I am still
having problems.  Is there something more I need to do?  I can't find
any documentation on this.  Any help GREATLY appreciated!  

Best regards, Aaron
  

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




How can i set tomcat to auto reload the servlet?

2002-08-17 Thread Aaron Chan

Hi,
 
May I know how can I make tomcat to auto reload every time I make a
changes to the classes I placed in ROOT/WEB-INF/classes ?
I am running on Tomcat 4.0. Thank you.
 
[EMAIL PROTECTED]
 
 



Enable HTTP method PUT

2002-08-20 Thread Aaron Gerlich

USING Tomcat4.0 under Redhat Linux 7.3

I am receiving an Error when directly requesting to Tomcat (i.e not
using a connector from a web server)

HTTP/1.1 405 HTTP method PUT is not supported by this URL

I definately have correctly implemented this doPut method on the
servlet (it works currently under JRun and IPlanet).

I cannot seem to find any place to turn on this Method!  I am not
using a realm... interested in turning this on for ALL USERS for the
entire web-site.  Just the easiest way works for me (this is our new
test server)

Thanks in Advance,
Aaron Gerlich
Salar Inc
2400 Boston St - Suite 326
Baltimore, MD 21224

[EMAIL PROTECTED]
(410)327-9153 ext. 1




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




trouble creating file object

2002-09-06 Thread Rutledge, Aaron

Hello List,
 I am simply trying to browse a file server for a list of filenames with the 
following JSP snipit below.  For some reason, It is returning null for the listfiles() 
method.  I know there are files in the directory and when I run the same piece of code 
inside of a main() from the server I am returned the list of files using the same JVM. 
 I have tried entering the URI different ways (such as NTSERVER\\Public\\Intranet, 
mapping a network drive and then using that, etc.) without luck.  Why would Tomcat 
have trouble with this?  I am pretty sure the same piece of code worked fine awhile 
ago.  The only thing I can think of that I've done wierd is add a CATALINA_OPTS 
variable into catalina.bat so that I could connect to resources outside of our SOCKS 
firewall (which BTW didn't work).  I have removed the variable and I still can't get 
this going.  ANy ideas???  It seems like such a simple obstacle but it is tearing my 
hair out.  Best regards, Aaron
 
File dir = new File("//NTSERVER/Public/Intranet");
File[] children = dir.listFiles();
if (children == null) {%>
Either dir does not exist or is not a directory
<%} else {
for (int i=0; i
rest of my code...

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




TomCat network authentication in Windows Domain

2002-09-09 Thread Rutledge, Aaron

Hi List,
I have run in to a problem that I can't track down.  In my intranet application I 
can't get a servlet to retreive any file system objects that do not have read-only 
access for everyone even though the same code allows me to access these objects using 
the same JVM on the same machine through a regular application.  I am wondering if 
TomCat uses its own security settings somehow to access these resources through a 
servlet?  This is beyond the scope of this list, but in general how does the JVM 
authenticate with a W2K domain?  Does it authenticate as the user logged in to the 
server the JVM is running on?  I can't find a lot on this topic.  At any rate--maybe 
someone can help me with what is going on with TomCat and accessing network resources. 
 Surprisingly, I haven't found any discussions on this.  Any help--GREATLY 
appreciated.  I am totally stumped and don't know where to go from here.  --Aaron

  

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




changing ROOT context

2002-09-23 Thread Rutledge, Aaron

I am simply trying to change the ROOT context from /ROOT to /mydirectory and I have 
been up all night doing it.  I have changed server.xml from...

  
to...

  

and the default home page still went to /ROOT.  After much frustration I thought I 
could perhaps live with my ap being in /ROOT so I shut down the server and removed 
everything in ROOT and pasted all of the data from my application (this is actually 
they way I had it before I decided to ruin my sunday night by upgrading to TOmcat 
4.1).  When I restart it mysteriously still loads the default home page even though it 
is totally different that /mydirectory/index.jsp.  I can't even understand where it is 
pulling the file from?!  I have reloaded my machine a million times hoping this is a 
cache issue.  Does anyone have a clue what is going on?!  This should be textbook 
(which is why I was such an idiot as to not back it up before..argh!!).  ANy help 
GREATLY appreciated.  Regards, Aaron  

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




RE: changing ROOT context

2002-09-23 Thread Rutledge, Aaron

THANK YOU!  That worked.  


-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 3:31 AM
To: Tomcat Users List
Subject: RE: changing ROOT context


Erase the Tomcat cache. It's in work directory at tomcat home.

-Mensaje original-
De: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 23 de septiembre de 2002 10:48
Para: Tomcat Users List (E-mail)
Asunto: changing ROOT context

I am simply trying to change the ROOT context from /ROOT to /mydirectory and
I have been up all night doing it.  I have changed server.xml from...

  
to...

  

and the default home page still went to /ROOT.  After much frustration I
thought I could perhaps live with my ap being in /ROOT so I shut down the
server and removed everything in ROOT and pasted all of the data from my
application (this is actually they way I had it before I decided to ruin my
sunday night by upgrading to TOmcat 4.1).  When I restart it mysteriously
still loads the default home page even though it is totally different that
/mydirectory/index.jsp.  I can't even understand where it is pulling the
file from?!  I have reloaded my machine a million times hoping this is a
cache issue.  Does anyone have a clue what is going on?!  This should be
textbook (which is why I was such an idiot as to not back it up
before..argh!!).  ANy help GREATLY appreciated.  Regards, Aaron

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


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


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




IIS, Tomcat 4.0.3 on 2 different servers...

2002-09-23 Thread Rustad, Aaron


I would like to have IIS (running on server 1) forward JSP requests to
Tomcat (running on server 2).

I have set it up using the redirector, and I have successfully been able to
view JSPs as expected.

One problem I am encountering is that when I enter a protected directory (as
defined by web.xml), I get the standard error: 
 Apache Tomcat/4.0.3 - HTTP Status 403 - Access to the requested resource
has been denied

I have traced the log files but can not find a solution, nor can I find a
answer in the archives or howtos.

I really need another pair of eyes to look at this for me.
If anyone can help, I would greatly appreciate it (please see below for
config files and logs).

Thanks!
Aaron.



Web.xml
---
  

  loginForm
  /protected/*


  REPUSER
  USERADMIN
  EXTUSER
  SYSTEMADMIN
  TMSUSER


  NONE

  


iis_rediect.reg
===
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/wins/isapi_redirect.dll"
"log_file"="C:\\wins\\logs\\iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\wins\\conf\\workers.properties"
"worker_mount_file"="C:\\wins\\conf\\uriworkermap.properties"

uriworkermap.properties
===
#
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#
/connect=$(default.worker)
/connect/*=$(default.worker


Workers.properties
==

# workers.properties -
#
# This file provides IIS filter with the needed information to
# connect to the different tomcat workers.


#-- ENVIRONMENT Settings -
#-
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=D:\Projects\bcgas\sdk\JBoss-2.4.6_Tomcat-4.0.3\catalina

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=D:\Projects\bcgas\sdk\j2sdk1.4.0

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
#ps=\
ps=/


#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp13


#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=cgybcgas
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers= ajp13



IIS_Redirect.log

[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (965)]: Using registry.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (967)]: Using log file
C:\wins\logs\iis_redirect.log.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (968)]: Using log level 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (969)]: Using extension uri
/wins/isapi_redirect.dll.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (970)]: Using worker file
C:\wins\conf\workers.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (971)]: Using worker mount
file C:\wins\conf\uriworkermap.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (972)]: Using uri select 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (988)]: Ignoring worker mount
file entry default.worker=ajp13.
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (170)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (362)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (383)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 4
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /connect=ajp13 was
added
[M

RE: IIS, Tomcat 4.0.3 on 2 different servers...

2002-09-23 Thread Rustad, Aaron

Thanks for everyone's help on this one!! <- HEAVY SARCASM ->

Actually, for future reference, I replaced my TC 4.0.3 tomcat-ajp.jar with a
4.0.4 version.

It solved my problem.
Thanks again!
Aaron.

-Original Message-
From: Rustad, Aaron 
Sent: Monday, September 23, 2002 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: IIS, Tomcat 4.0.3 on 2 different servers...



I would like to have IIS (running on server 1) forward JSP requests to
Tomcat (running on server 2).

I have set it up using the redirector, and I have successfully been able to
view JSPs as expected.

One problem I am encountering is that when I enter a protected directory (as
defined by web.xml), I get the standard error: 
 Apache Tomcat/4.0.3 - HTTP Status 403 - Access to the requested resource
has been denied

I have traced the log files but can not find a solution, nor can I find a
answer in the archives or howtos.

I really need another pair of eyes to look at this for me.
If anyone can help, I would greatly appreciate it (please see below for
config files and logs).

Thanks!
Aaron.



Web.xml
---
  

  loginForm
  /protected/*


  REPUSER
  USERADMIN
  EXTUSER
  SYSTEMADMIN
  TMSUSER


  NONE

  


iis_rediect.reg
===
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
"extension_uri"="/wins/isapi_redirect.dll"
"log_file"="C:\\wins\\logs\\iis_redirect.log"
"log_level"="debug"
"worker_file"="C:\\wins\\conf\\workers.properties"
"worker_mount_file"="C:\\wins\\conf\\uriworkermap.properties"

uriworkermap.properties
===
#
# Default worker to be used through our mappings
#
default.worker=ajp13

#
# Sites to be redirected to Tomcat
#
/connect=$(default.worker)
/connect/*=$(default.worker


Workers.properties
==

# workers.properties -
#
# This file provides IIS filter with the needed information to
# connect to the different tomcat workers.


#-- ENVIRONMENT Settings -
#-
#
# workers.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=D:\Projects\bcgas\sdk\JBoss-2.4.6_Tomcat-4.0.3\catalina

#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=D:\Projects\bcgas\sdk\j2sdk1.4.0

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
#ps=\
ps=/


#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
worker.list=ajp13


#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13.port=8009
worker.ajp13.host=cgybcgas
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) workers perform wighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers= ajp13



IIS_Redirect.log

[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (965)]: Using registry.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (967)]: Using log file
C:\wins\logs\iis_redirect.log.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (968)]: Using log level 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (969)]: Using extension uri
/wins/isapi_redirect.dll.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (970)]: Using worker file
C:\wins\conf\workers.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (971)]: Using worker mount
file C:\wins\conf\uriworkermap.properties.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (972)]: Using uri select 0.
[Mon Sep 23 11:10:59 2002]  [jk_isapi_plugin.c (988)]: Ignoring worker mount
file entry default.worker=ajp13.
[Mon Sep 23 11:10:59 2002]  [jk_uri_worker_map.c (170)]: Into
jk_uri_worker_map_t::ur

How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan


Hi, I want to make tomcat to forward request for certain file type etc
.xml to a servlet. May i know how to do it?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan


Hi, I want to make tomcat to forward request for certain file type etc
.xml to a servlet. May i know how to do it?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan

Thanks!

-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 4:00 PM
To: 'Tomcat Users List'
Subject: RE: How to configure tomcat to forward files to diff servlet

In the web.xml you can define a url pattern for servlets, eg:


myServlet
/directory/*.xml
class.MyServlet


See the servlet spec from sun for more information about the settings in
your web.xml

> -Original Message-
> From: Aaron Chan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 9:56 AM
> To: 'Tomcat Users List'
> Subject: How to configure tomcat to forward files to diff servlet
> 
> 
> 
> Hi, I want to make tomcat to forward request for certain file type etc
> .xml to a servlet. May i know how to do it?
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

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


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




How to write a servlet that handle request for .xml documents

2002-09-26 Thread Aaron Chan

Hi, I have setup the web.xml to direct request to .xml to my servlet

However, I do not know how to write the servlet inorder to have it
perform jobs I want it to do. Anyone know of any guides on writing it or
know how to write it? Thanks in advance.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to write a servlet that handle request for .xml documents

2002-09-26 Thread Aaron Chan

Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the servlet, which method inside the servlet gets to handle it? doGet or
doPost? I even tried service() but can't do it. Also how can I get the
requested file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

> Hi, I have setup the web.xml to direct request to .xml to my servlet
> 
> However, I do not know how to write the servlet inorder to have it
> perform jobs I want it to do. Anyone know of any guides on writing it
or
> know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

I totally understand the diff between get n post. 
The purpose of me posting is to ask about the way to implement a servlet
to handle certain file type. What I am more interested to know is how
can the servlet know what to do when a request to abc.xml is pass to it.
Not whats the different between get and post etc. Please read before
replying or don't reply if you don’t' intend to. I don't call myself an
expert, but I certainly know what I can or cannot ask here. Thanks for
your rude reply.


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: Tomcat Users List
Subject: AW: How to write a servlet that handle request for .xml
documents

Wether doGet() or doPost() is called depends on the kind 
of request that is sent to tomcat, not on the file type.

If tomcat receives a GET-request doGet() is called, if 
tomcat receives a POST-request doPost() is called.

If the client is a browser, all href, src attributes and
forms with method="get" are GET-requests. Only forms with
method="post" are POST-request.

Other clients can choose arbitrary methods to do requests.

This is basic knowledge before you even can start to write 
servlets and this list isn't the platform for this kind of
questions.

> -----Ursprüngliche Nachricht-
> Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 27. September 2002 08:34
> An: 'Tomcat Users List'
> Betreff: RE: How to write a servlet that handle request for .xml
> documents
> 
> 
> Hi, thanks for ur reply. I already know how to write basic 
> servlet, just that I am not sure when the tomcat redirect 
> the request of .xml file to the servlet, which method inside 
> the servlet gets to handle it? doGet or doPost? I even tried 
> service() but can't do it. Also how can I get the requested 
> file names?

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


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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

Hi,

I am trying to have all the request to .xml documents to be pass to a
servlet, so that I can dynamically change the documents before sending
it back to the client. Thanks.


-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-----
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the
servlet, which method inside the servlet gets to handle it? doGet or
doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

> Hi, I have setup the web.xml to direct request to .xml to my servlet
> 
> However, I do not know how to write the servlet inorder to have it 
> perform jobs I want it to do. Anyone know of any guides on writing it
or
> know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


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


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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


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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

What I am not sure of is how the servlet handle request by tomcat after
it encounter a request for a .xml. The servlet is running as a handler
servlet for .xml. I want to know is there a diff between writing this
type of servlet. 

If you really intend to help me, I am thankful for your effort. But if
you are trying to show off your superiority here by replying me with
this

>This is basic knowledge before you even can start to write 
>servlets and this list isn't the platform for this kind of questions.

Thanks a lot then, I don't really need your help.

And by the way, I didn't know that Tomcat User list is actually Tomcat
EXPERT user list... is that defined by you?

Thank you.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 3:40 PM
To: Tomcat Users List
Subject: AW: How to write a servlet that handle request for .xml
documents

My post is a direct answer to your question:

> I am not sure when the tomcat redirect the 
> request of .xml file to the servlet, which method inside 
> the servlet gets to handle it? doGet or doPost?

That was for me a clear indicator that you didn't
understand how get/put work. (Why would you ask this
question otherwise)

> -----Ursprüngliche Nachricht-
> Von: Aaron Chan [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 27. September 2002 09:26
> An: 'Tomcat Users List'
> Betreff: RE: How to write a servlet that handle request for .xml
> documents
> 
 
> I totally understand the diff between get n post. 
> The purpose of me posting is to ask about the way to 

> Not whats the different between get and post etc.
> Please read before replying
> 
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, September 27, 2002 2:55 PM
> To: Tomcat Users List
> Subject: AW: How to write a servlet that handle request for .xml
> documents
> 
> Wether doGet() or doPost() is called depends on the kind 
> of request that is sent to tomcat, not on the file type.
> 

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


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




RE: How to write a servlet that handle request for .xml documents

2002-09-27 Thread Aaron Chan

Hi,

I tried understand the JspServlet source and I have already solve the
problem. 

Thanks for your help again.

-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 4:14 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

So, if I am understanding right, what you want to do is:-
1. Client calls http://localhost:8080/home.jsp and there html code in
there:
a xml file
2. Client then calls http://localhost:8080/file.xml and you want to
intercept this and redirect to a servlet
http://localhost:8080/servlet/myServlet (which you have done?)
3. Now this is where you are stuck?? "How do I know that file.xml has
been
redirected?"
4. Do stuff and return file.xml.

Is this right? Well if it is, back in step one you can have the link
specify
a xml file. But if
you
just want to be able to type in http://localhost:8080/file.xml and do
you
what you want, then you need to find out where you have come from, (been
redirected from), you might be able to use 'request.getRequestURL()'
this
would only work however, if tomcat redirects without sending a proper
'response.sendRedirect()'.

Other than that I don't know of a way to do what you want, hope this all
helps somehow.

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 5:27 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi,

I am trying to have all the request to .xml documents to be pass to a
servlet, so that I can dynamically change the documents before sending
it
back to the client. Thanks.


-Original Message-
From: Nicholas Orr [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:55 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents

Hi,

What exactly are you trying to do??

Nicholas Orr

-Original Message-
From: Aaron Chan [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 27 September 2002 4:34 PM
To: 'Tomcat Users List'
Subject: RE: How to write a servlet that handle request for .xml
documents


Hi, thanks for ur reply. I already know how to write basic servlet, just
that I am not sure when the tomcat redirect the request of .xml file to
the
servlet, which method inside the servlet gets to handle it? doGet or
doPost?
I even tried service() but can't do it. Also how can I get the requested
file names?

Thanks in advance

Btw.. I agree that it is a good book I have it here :)

-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: How to write a servlet that handle request for .xml
documents

> Hi, I have setup the web.xml to direct request to .xml to my servlet
> 
> However, I do not know how to write the servlet inorder to have it
> perform jobs I want it to do. Anyone know of any guides on writing it
or
> know how to write it? Thanks in advance.

The sun site has a tutorial. Search www.javasoft.com.

O'Reilly's Java Servlet Programming is a good book on Java 
servlets.

Andreas


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


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


**
The information contained in this e-mail is confidential and is intended
only for the use of the addressee(s). If you receive this e-mail in
error,
any use, distribution or copying of this e-mail is not permitted. You
are
requested to forward unwanted e-mail and address any problems to the MIM
Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


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


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

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


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




Force One page to not use SSL

2002-10-28 Thread Rustad, Aaron
I am trying to force one page NOT to use HTTPS and still maintain the
session. I have looked in mailing list, and all I see is how you are not
supposed to do this. Well, I really...really...really need to do this and
yes, I understand that I shouldn't.

So, if anyone knows how I can maintain the session that is given to my
client from HTTPS -> HTTP I would greatly appreciate it.

Some background:

1. IIS as a front for Tomcat 4.0.1.
2. Using AJP13

Thanks!
Aaron.

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: Force One page to not use SSL

2002-10-29 Thread Rustad, Aaron
OK, let me explain the real problem then. What I really want to do is
download a bunch of jars for an applet, however, doing this over HTTPS is
driving my nuts!!! Can I somehow use HTTP to get the jars and still have the
page that the applet resides in HTTPS?

Thanks again!
Aaron.

-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: October 28, 2002 9:37 PM
To: Tomcat Users List
Subject: Re: Force One page to not use SSL




On Mon, 28 Oct 2002, Rustad, Aaron wrote:

> Date: Mon, 28 Oct 2002 17:48:40 -0700
> From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Force One page to not use SSL
>
> I am trying to force one page NOT to use HTTPS and still maintain the
> session. I have looked in mailing list, and all I see is how you are not
> supposed to do this. Well, I really...really...really need to do this and
> yes, I understand that I shouldn't.
>
> So, if anyone knows how I can maintain the session that is given to my
> client from HTTPS -> HTTP I would greatly appreciate it.
>

There is no support for this because it would be a huge security hole.
For much discussion on this topic, check the mailing list archives.

> Some background:
>
> 1. IIS as a front for Tomcat 4.0.1.
> 2. Using AJP13
>
> Thanks!
> Aaron.

Craig


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: Force One page to not use SSL

2002-10-29 Thread Rustad, Aaron
Man alive! Does this thread have to continue in this direction? Myself and
Jeff both have similar problems, and we are requesting a common solution. I
think we both expressed that we are aware of the consequences of our
"security-flawed" approach to app design, yet everyone seems to think that
this has not been thought through. 

All I am asking is...does anyone know how to persist a session from HTTPs to
HTTP. Any potential solutions are GREATLY appreciate...any other suggestions
(even though they might be well-meaning) are discouraged.

Thanks!
Aaron.

-Original Message-
From: Justin Ruthenbeck [mailto:justinr@;nextengine.com]
Sent: October 29, 2002 5:20 PM
To: Tomcat Users List
Subject: RE: Force One page to not use SSL



Jeff --

This may be a bit simple minded since I don't understand your entire 
situation there, but it doesn't sound like you're interested in protecting 
these JARs in the first place (hence you don't need HTTPS for them).  Why, 
then, do you even need to make sure the user is authenticated (ie *has* a 
session) in the first place?  Why not just serve them up to anyone who 
requests them?

If you need the user to be in a session, you can approximate (which 
implies, of course, a less-than-elegant solution) the session by 
duplicating some of what Tomcat does to handle sessions.  Namely, give your 
own token/cookie to the user and also into your context at HTTPS session 
start time ... keep your list synched with Tomcat's by removing the tokens 
whenever sessions are invalidated.  When deciding whether to serve up the 
JARs, use this to determine whether the user is 
authenticated.  Duplication, yes, but it's *a* solution.

I'd be interested to hear what you end up doing...

justin



At 03:56 PM 10/29/2002, you wrote:
>I've read the list archives and I'm aware of the security "issue", but I
>still want to switch from HTTPS to HTTP.
>
>Yes, I know someone could hijack the session.  We're not worried about
>that; at worst someone could make some obnoxious posts to a forum.  We
>force users to submit their password a second time (and go into SSL, of
>course) whenever anything sensitive is touched, such as passwords or
>credit card info.
>
>We get a _lot_ of traffic.  Running everything under SSL is not really
>an option.  Can Apache/Tomcat/mod_jk be made to handle the switch?  In
>our current configuration, it appears that the session is getting lost
>in the transition from HTTPS->HTTP so the user is forced to log in
>again.
>
>Thanks,
>Jeff Schnitzer
>[EMAIL PROTECTED]
>The Sims Online
>
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
> > Sent: Monday, October 28, 2002 8:37 PM
> > To: Tomcat Users List
> > Subject: Re: Force One page to not use SSL
> >
> >
> >
> > On Mon, 28 Oct 2002, Rustad, Aaron wrote:
> >
> > > Date: Mon, 28 Oct 2002 17:48:40 -0700
> > > From: "Rustad, Aaron" <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: "'[EMAIL PROTECTED]'"
><[EMAIL PROTECTED]>
> > > Subject: Force One page to not use SSL
> > >
> > > I am trying to force one page NOT to use HTTPS and still maintain
>the
> > > session. I have looked in mailing list, and all I see is how you are
>not
> > > supposed to do this. Well, I really...really...really need to do
>this
> > and
> > > yes, I understand that I shouldn't.
> > >
> > > So, if anyone knows how I can maintain the session that is given to
>my
> > > client from HTTPS -> HTTP I would greatly appreciate it.
> > >
> >
> > There is no support for this because it would be a huge security hole.
> > For much discussion on this topic, check the mailing list archives.
> >
> > > Some background:
> > >
> > > 1. IIS as a front for Tomcat 4.0.1.
> > > 2. Using AJP13
> > >
> > > Thanks!
> > > Aaron.
> >
> > Craig
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-user-> 
> [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:tomcat-user-> 
> [EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
>For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




intercept jsp:include (InstanceEvent.BEFORE_DISPATCH_EVENT ?)

2002-11-27 Thread AAron nAAs
I'm trying to intercept a jsp:include so that I can adjust the requested 
file (ie: "/include.html") to a different directory/file (ie: 
"/otherdir/otherfile.html"). If there is an easy way (Filter, Valve, 
Listener, ...) just let me know. NOTE: I've already created and installed a 
request filter in my web.xml to filter the initial request, but this doesn't 
get invoked for jsp:include references.

Current idea:
I want to change the "javax.servlet.include.servlet_path" request attribute 
so the DefaultServlet.getRelativePath() finds the new file. I can see that 
the ApplicationDispatcher fires off a list of InstanceEvent's before the 
DefaultServlet.service() is called.

After days of exploration, I can't figure out how to add to get my 
InstanceEvent into the InstanceSupport's list (ie: cause a call to the 
support.addInstanceListener). Is there a configuration that will add my 
class to my application Context?

Thanks,
-AAron ([EMAIL PROTECTED])

-Code snippits-
NOTE: Globals.SERVLET_PATH_ATTR = "javax.servlet.include.servlet_path"

org/apache/catalina/core/ApplicationDispatcher.java:

   private void doInclude(ServletRequest request, ServletResponse response) 
throws ServletException, IOException
   {
...
   wrequest.setAttribute(Globals.SERVLET_PATH_ATTR, servletPath);
...
   invoke(outerRequest, outerResponse);
...
   }

...

   private void invoke(ServletRequest request, ServletResponse response)
   throws IOException, ServletException {

   support.fireInstanceEvent(InstanceEvent.BEFORE_DISPATCH_EVENT, 
servlet, request, response);

   servlet.service(request, response);

   support.fireInstanceEvent(InstanceEvent.AFTER_DISPATCH_EVENT, 
servlet, request, response);


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



Re: JSP + custom tags (XML)

2002-11-27 Thread AAron nAAs
You may get a flood of email telling you to read up on taglibs.
You could find or make an xml parsing taglib.

-AAron


From: [EMAIL PROTECTED]
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: JSP + custom tags (XML)
Date: Thu, 28 Nov 2002 09:50:33 +0800

Hi,
In my quest to be able to parse a 10 line XML file in a JSP
(notice the sarcasm there?) and extract an element value, I have come
accross a few PDFs that talk of custom tags - and for the purposes of XML,
a taglib directive. In several examples I saw <%@ taglib uri="..."
prefix="tl" %> and syntax such as , hoping I
could parse it and extract elements using 



1
10
$17.95




What have I stumbled upon? Am i way off thinking I can use this syntax to
parse my XML file? What is the significance of the error displayed?

Thanks very much

paul.



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



filter jsp:include servletPath?

2002-11-27 Thread AAron nAAs
Hi all,

This is more clarification about my attempts to automatically intercept and 
modify a .jsp request's servletPath as well as all the embedded 
 files.

Examples:
http://blah.com/index.jsp would run /blah/index.jsp or 
/default/index.jsp based on which was first found to exist.
 would use /blah/include.html or 
/default/include.html based on which was first found to exist.

I'm choosing a directory for the requested .jsp file based on the hostname 
specified in the request. I've gotten that to work perfectly by adding a 
filter to my web.xml file, and wrapping the request object before passing on 
to the next doFilter(). By overriding the request getServletPath() I can 
change the servlet or JSP file that gets invoked.

Now I want the jsp:include files to also use an alternate directory. So 
refering to "/myfile.jsp" in the include would be intercepted and changed to 
another directory based on the hostname in the original request.

Another view is that I'm creating a "path" to search through to find the 
requested (or included) file. If the requested file isn't found in the 
alternate expected directory, it checks in the default directory which will 
always have the file for request (or include).

The code shows that once the request is filtered, all the jsp:include's are 
not.

Private method ApplicationDispatcher.invoke() says:
* IMPLEMENTATION NOTE: This implementation assumes
* that no filters are applied to a forwarded or included resource,
* because they were already done for the original request.

Anyway, I'll let you read my original post below for more details on what 
I've found.

BTW, I've searched long and hard for anyone doing this sort of thing. But, 
I'm certainly open to the embarassment of "Oh, just do this" if I've missed 
the obvious :-)

Thanks,
-AAron

My original post:

I'm trying to intercept a jsp:include so that I can adjust the requested 
file (ie: "/include.html") to a different directory/file (ie: 
"/otherdir/otherfile.html"). If there is an easy way (Filter, Valve, 
Listener, ...) just let me know. NOTE: I've already created and installed a 
request filter in my web.xml to filter the initial request, but this doesn't 
get invoked for jsp:include references.

Current idea:
I want to change the "javax.servlet.include.servlet_path" request attribute 
so the DefaultServlet.getRelativePath() finds the new file. I can see that 
the ApplicationDispatcher fires off a list of InstanceEvent's before the 
DefaultServlet.service() is called.

After days of exploration, I can't figure out how to add to get my 
InstanceEvent into the InstanceSupport's list (ie: cause a call to the 
support.addInstanceListener). Is there a configuration that will add my 
class to my application Context?

Thanks,
-AAron ([EMAIL PROTECTED])


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



[OT] Re: Java method equal to perl crypt()?

2002-11-28 Thread AAron nAAs
Although off topic, the standard unix crypt algorithm has been 
written/ported to many languages (I've even seen source code in books.. 
Applied Cryptography I think).

I know versions exist for Java, or you could just convert a basic, C, C++ or 
Pascal version to Java.

Seek with Google,
-AAron

From: "Galbayar Dorjgotov" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "TomCat Users" <[EMAIL PROTECTED]>
Subject: Java method equal to perl crypt()?
Date: Thu, 28 Nov 2002 17:33:45 +0800

Ok, I have an existing MySQL database that has user's passwords stored that
were encrypted using the Perl "crypt()" function. I was wondering what the
best way to re-use this database using JSP. I know enough Java to get most
functionality working, and I can already connect to and read/write to 
MySQL.
The only problem I have is if I migrate to JSP, how can I compare passwords
that are supplied in the JSP page to the password in the DB that was stored
via the Perl crypt() function?


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


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: filter jsp:include servletPath?

2002-11-28 Thread AAron nAAs
Due to the complexity of the question and probably vendor specific-ness of 
the answer, I've altered course and solved the problem.

I wrote my own small taglib to implement the jsp:include functionality. I 
just need to change the  tags into 


I'm still interested in knowing if a jsp:include intercept is possible, but 
I'm not waiting for the answer anymore. If there are any die hard 
coders/detail-ists out there, let me know if it's even possible without 
modifying Tomcat itself.

-AAron

From: "AAron nAAs" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: filter jsp:include servletPath?
Date: Wed, 27 Nov 2002 22:43:28 -0500

Hi all,

This is more clarification about my attempts to automatically intercept and 
modify a .jsp request's servletPath as well as all the embedded 
 files.

Examples:
http://blah.com/index.jsp would run /blah/index.jsp or 
/default/index.jsp based on which was first found to exist.
 would use /blah/include.html 
or /default/include.html based on which was first found to exist.

I'm choosing a directory for the requested .jsp file based on the hostname 
specified in the request. I've gotten that to work perfectly by adding a 
filter to my web.xml file, and wrapping the request object before passing 
on to the next doFilter(). By overriding the request getServletPath() I can 
change the servlet or JSP file that gets invoked.

Now I want the jsp:include files to also use an alternate directory. So 
refering to "/myfile.jsp" in the include would be intercepted and changed 
to another directory based on the hostname in the original request.

Another view is that I'm creating a "path" to search through to find the 
requested (or included) file. If the requested file isn't found in the 
alternate expected directory, it checks in the default directory which will 
always have the file for request (or include).

The code shows that once the request is filtered, all the jsp:include's are 
not.

Private method ApplicationDispatcher.invoke() says:
* IMPLEMENTATION NOTE: This implementation assumes
* that no filters are applied to a forwarded or included resource,
* because they were already done for the original request.

Anyway, I'll let you read my original post below for more details on what 
I've found.

BTW, I've searched long and hard for anyone doing this sort of thing. But, 
I'm certainly open to the embarassment of "Oh, just do this" if I've missed 
the obvious :-)

Thanks,
-AAron

My original post:

I'm trying to intercept a jsp:include so that I can adjust the requested 
file (ie: "/include.html") to a different directory/file (ie: 
"/otherdir/otherfile.html"). If there is an easy way (Filter, Valve, 
Listener, ...) just let me know. NOTE: I've already created and installed a 
request filter in my web.xml to filter the initial request, but this 
doesn't get invoked for jsp:include references.

Current idea:
I want to change the "javax.servlet.include.servlet_path" request attribute 
so the DefaultServlet.getRelativePath() finds the new file. I can see that 
the ApplicationDispatcher fires off a list of InstanceEvent's before the 
DefaultServlet.service() is called.

After days of exploration, I can't figure out how to add to get my 
InstanceEvent into the InstanceSupport's list (ie: cause a call to the 
support.addInstanceListener). Is there a configuration that will add my 
class to my application Context?

Thanks,
-AAron ([EMAIL PROTECTED])


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



need request lifecycle diagram

2002-11-30 Thread AAron nAAs
Does anyone know of a good request lifecycle diagram showing all the steps 
in satisfying a Java Server request?

I'd like to see the exact ordering of all the components that a request goes 
through such as Authentication, Filters, Listeners, Valves, etc... Either a 
vendor specific or a generic Java Server diagram would suffice.

Everything I've found so far talks about one of these at a time, so the big 
picture is never revealed. I want to know, for instance, if filters are 
applied before or after authentication.

Thanks,
-AAron

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



RE: filter jsp:include servletPath?

2002-12-02 Thread AAron nAAs
FYI, through more digging in google groups, I found out that the Java Server 
spec is vague on this issue. The new Java Server spec is going to explicitly 
allow two options. The default option will be that only the initial request 
is filtered. The other option will filter includes and forwards as well.

-AAron

From: "Cox, Charlie" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: filter jsp:include servletPath?
Date: Mon, 2 Dec 2002 07:50:48 -0500

no, filters are only applied on the original request.

Charlie

> -Original Message-
> From: AAron nAAs [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 28, 2002 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: filter jsp:include servletPath?
>
>
> Due to the complexity of the question and probably vendor
> specific-ness of
> the answer, I've altered course and solved the problem.
>
> I wrote my own small taglib to implement the jsp:include
> functionality. I
> just need to change the  tags into
> 
>
> I'm still interested in knowing if a jsp:include intercept is
> possible, but
> I'm not waiting for the answer anymore. If there are any die hard
> coders/detail-ists out there, let me know if it's even
> possible without
> modifying Tomcat itself.
>
> -AAron
>
> >From: "AAron nAAs" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: filter jsp:include servletPath?
> >Date: Wed, 27 Nov 2002 22:43:28 -0500
> >
> >Hi all,
> >
> >This is more clarification about my attempts to
> automatically intercept and
> >modify a .jsp request's servletPath as well as all the embedded
> > files.
> >
> >Examples:
> >http://blah.com/index.jsp would run /blah/index.jsp or
> >/default/index.jsp based on which was first found to exist.
> > would use
> /blah/include.html
> >or /default/include.html based on which was first
> found to exist.
> >
> >I'm choosing a directory for the requested .jsp file based
> on the hostname
> >specified in the request. I've gotten that to work perfectly
> by adding a
> >filter to my web.xml file, and wrapping the request object
> before passing
> >on to the next doFilter(). By overriding the request
> getServletPath() I can
> >change the servlet or JSP file that gets invoked.
> >
> >Now I want the jsp:include files to also use an alternate
> directory. So
> >refering to "/myfile.jsp" in the include would be
> intercepted and changed
> >to another directory based on the hostname in the original request.
> >
> >Another view is that I'm creating a "path" to search through
> to find the
> >requested (or included) file. If the requested file isn't
> found in the
> >alternate expected directory, it checks in the default
> directory which will
> >always have the file for request (or include).
> >
> >The code shows that once the request is filtered, all the
> jsp:include's are
> >not.
> >
> >Private method ApplicationDispatcher.invoke() says:
> > * IMPLEMENTATION NOTE: This implementation assumes
> > * that no filters are applied to a forwarded or
> included resource,
> > * because they were already done for the original request.
> >
> >Anyway, I'll let you read my original post below for more
> details on what
> >I've found.
> >
> >BTW, I've searched long and hard for anyone doing this sort
> of thing. But,
> >I'm certainly open to the embarassment of "Oh, just do this"
> if I've missed
> >the obvious :-)
> >
> >Thanks,
> >-AAron
> >
> >My original post:
> >
> >I'm trying to intercept a jsp:include so that I can adjust
> the requested
> >file (ie: "/include.html") to a different directory/file (ie:
> >"/otherdir/otherfile.html"). If there is an easy way (Filter, Valve,
> >Listener, ...) just let me know. NOTE: I've already created
> and installed a
> >request filter in my web.xml to filter the initial request, but this
> >doesn't get invoked for jsp:include references.
> >
> >Current idea:
> >I want to change the "javax.servlet.include.servlet_path"
> request attribute
> >so the DefaultServlet.getRelativePath() finds the new file.
> I can see that
> >the ApplicationDispatcher fires off a list of
> InstanceEvent's before the
> >DefaultServlet.servic

applet jars

2002-07-15 Thread Rutledge, Aaron

Hello list,
 I have been trying to embed a simple applet in a web page and keep
getting a ClassNotFoundException.  However, I have placed the jars in my
webservers CLASSPATH and I am able to launch (non-applet) applications
contained in the JAR succesfully form the server.  I am wondering if I
need to do some sort of special configuration for applets in TomCat?  I
have tried placing the JARS in my web ap. lib directory, the root
directory, in the tomcat lib--everything!  Am I missing something?
Regards to all, Aaron

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




RE: applet jars

2002-07-15 Thread Rutledge, Aaron

The user's browser is requesting the applet classes from TomCat, right?
I understand that the applet doesn't run on the server, but somehow
TomCat needs to know what classes to send and that is what I am confused
on.  How can I refer to my JARs in my web page, and where do I place
them on the server?  I assumed they would just be placed in the root
directory along with the page and a simple call like...

 


It appears that Tomcat doesn't know where the jar is.


_____
Aaron Rutledge
Electronic Business Specialist
Eppendorf - 5 Prime, Inc.
6135 Gunbarrel Ave., Ste 230
Boulder, CO 80301
Tel: 303-583-7019

 


-Original Message-
From: Nick Wesselman [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:40 AM
To: Tomcat Users List
Subject: Re: applet jars


Since it's an applet, it needs to be in the applet JAR in the browser. 
The Applet runs in the user's browser, not in tomcat.

Nick

On Monday, July 15, 2002, at 12:32 PM, Rutledge, Aaron wrote:

> Hello list,
>  I have been trying to embed a simple applet in a web page and
keep
> getting a ClassNotFoundException.  However, I have placed the jars in
my
> webservers CLASSPATH and I am able to launch (non-applet) applications
> contained in the JAR succesfully form the server.  I am wondering if I
> need to do some sort of special configuration for applets in TomCat?
I
> have tried placing the JARS in my web ap. lib directory, the root
> directory, in the tomcat lib--everything!  Am I missing something?
> Regards to all, Aaron
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>


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


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




RE: applet jars

2002-07-15 Thread Rutledge, Aaron

Thanks! -A.
 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 11:44 AM
To: Tomcat Users List
Subject: RE: applet jars


Howdy,
Applet jars need to be accessible to the browser.  Therefore, they
cannot be under /mywebapp/WEB-INF.  Put them under /mywebapp/applets,
for example /mywebapp/applets/myApplet.jar.

Then your web page would have something like


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 15, 2002 1:33 PM
>To: Tomcat Users List (E-mail)
>Subject: applet jars
>
>Hello list,
> I have been trying to embed a simple applet in a web page and keep
>getting a ClassNotFoundException.  However, I have placed the jars in
my
>webservers CLASSPATH and I am able to launch (non-applet) applications
>contained in the JAR succesfully form the server.  I am wondering if I
>need to do some sort of special configuration for applets in TomCat?  I
>have tried placing the JARS in my web ap. lib directory, the root
>directory, in the tomcat lib--everything!  Am I missing something?
>Regards to all, Aaron
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


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


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




Multiple HttpServletRequest objects

2002-07-24 Thread Rutledge, Aaron

Is it possible to have more than one HttpServletRequest object per
session?  I am trying to store a request from one form as a session
object, process an intermediary form, and then pass the original request
to a servlet.  I have a couple clunky ways of doing this (having the
servlet write a hidden form from the request object and passing this
along).  I tried to create a session object like...

protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException {
HttpSession session = request.getSession();
session.setAttribute("form_data", request);

...and test the original value with...

protected void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException {
HttpSession session = request.getSession();
HttpServletRequest old_form =
(HttpServletRequest)session.getAttribute("form_data");
String a_field = old_form.getParameter("textfield");

to see if I get the original field value for the form field called
"textfield", but I get a null value.  Does anyone have any clever ways
of storing a request object and then submitting later in the session?

Best regards to all!
Aaron

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




RE: Multiple HttpServletRequest objects

2002-07-24 Thread Rutledge, Aaron

Thanks to both of you.  Yes, using the MVC II would have alleviated this
problem.  Using a bean is an idea I had though of, but how would I then
post the data back to the servlet as a request? --Aaron

 


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 3:33 PM
To: Tomcat Users List
Subject: Re: Multiple HttpServletRequest objects




On Wed, 24 Jul 2002, Rutledge, Aaron wrote:

> Date: Wed, 24 Jul 2002 15:04:52 -0600
> From: "Rutledge, Aaron" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
> Subject: Multiple HttpServletRequest objects
>
> Is it possible to have more than one HttpServletRequest object per
> session?  I am trying to store a request from one form as a session
> object, process an intermediary form, and then pass the original
request
> to a servlet.  I have a couple clunky ways of doing this (having the
> servlet write a hidden form from the request object and passing this
> along).  I tried to create a session object like...
>
> protected void doPost(HttpServletRequest request, HttpServletResponse
> response)
> throws ServletException, java.io.IOException {
> HttpSession session = request.getSession();
> session.setAttribute("form_data", request);
>
> ...and test the original value with...
>
> protected void doGet(HttpServletRequest request, HttpServletResponse
> response)
> throws ServletException, java.io.IOException {
> HttpSession session = request.getSession();
> HttpServletRequest old_form =
> (HttpServletRequest)session.getAttribute("form_data");
>   String a_field = old_form.getParameter("textfield");
>
> to see if I get the original field value for the form field called
> "textfield", but I get a null value.  Does anyone have any clever ways
> of storing a request object and then submitting later in the session?
>

It is not legal to maintain a reference to a request after that request
has been completed.

My advice is to look at your problem completely differently -- plan on
pulling out of any request whatever you need to save, and save *that*
data
as session attributes.  Trying to save the requests themselves will lead
you to design an application full of spaghetti code, because you'll try
to
make everything look like a servlet that processes requests.

It would also be worth your time investigating how Model-View-Controller
(MVC) application frameworks like Struts
<http://jakarta.apache.org/struts> encourage you to architect web
applications.

> Best regards to all!
> Aaron
>

Craig


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


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




adding a virtual directory

2002-08-02 Thread Rutledge, Aaron

I'm sorry for this very basic question, but I can't find an answer
anywhere.

Within my web application I would like to map everything requested from
one directory (such as http://my.com/my_ap/my_dir) to another directory
located on another server (mapped like
\\Server_name\directory\my_static_content).  Can I do this from my
application's web.xml or only by specifying a virtual directory in
server.xml?  I would rather keep everything self-contained so that I can
deploy it on other servers without modifying the server.xml on each
machine deployed.  Surely there is a way to do this?  Any help would be
greatly appreciated! Regards, Aaron

  

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




RE: adding a virtual directory

2002-08-02 Thread Rutledge, Aaron

The goal is to get that mapped drive into the context of my web-app.
Regardless of wether the folder is on or off the server--how do I map a
virtual folder from web.xml.  Is it possible?  I want everything with a
certain URL pattern to request content from a folder that is not in the
usual place.  Thanks!  Aaron


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:55 PM
To: Tomcat Users List
Subject: Re: adding a virtual directory



Assuming you are using Windows OS, you could map a drive on the source
machine pointing to the shared destination directory. Ofcourse you could
run into a few problems if  "my_ap" is the Context and "my_dir" isn't
under
"my_ap".

RS



 

      "Rutledge, Aaron"

  
<[EMAIL PROTECTED]>   
   cc:

  08/02/02 04:49 PMSubject:  adding a
virtual directory
  Please respond to

  "Tomcat Users

  List"

 

 





I'm sorry for this very basic question, but I can't find an answer
anywhere.

Within my web application I would like to map everything requested from
one directory (such as http://my.com/my_ap/my_dir) to another directory
located on another server (mapped like
\\Server_name\directory\my_static_content).  Can I do this from my
application's web.xml or only by specifying a virtual directory in
server.xml?  I would rather keep everything self-contained so that I can
deploy it on other servers without modifying the server.xml on each
machine deployed.  Surely there is a way to do this?  Any help would be
greatly appreciated! Regards, Aaron



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







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


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




RE: adding a virtual directory

2002-08-02 Thread Rutledge, Aaron

Thanks!  Very informative.
 


-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 5:37 PM
To: Tomcat Users List
Subject: Re: adding a virtual directory



> From: "Rutledge, Aaron" <[EMAIL PROTECTED]>
> Sent: Friday, August 02, 2002 3:04 PM


> The goal is to get that mapped drive into the context of my web-app.
> Regardless of wether the folder is on or off the server--how do I map
a
> virtual folder from web.xml.  Is it possible?  I want everything with
a
> certain URL pattern to request content from a folder that is not in
the
> usual place.  Thanks!  Aaron

The problem is that the basic element in the system is the Webapp, and
they're essentially a self-contained entity, so the web.xml wouldn't be
the
place to do this kind of thing as its not something a Webapp would do.

So, I think you're stuck tweaking server.xml (which configure Tomcat,
not
the Webapp, per se), or moving the content into your Webapp.

Of course, moving it all into your Webapp would make it portable outside
of
Tomcat, whereas tweaking server.xml may not be portable to another
container
(don't know whether that's important to you or not).

Regards,

Will Hartung
([EMAIL PROTECTED])




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


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




RE: adding a virtual directory

2002-08-02 Thread Rutledge, Aaron

Thanks, I guess I'll just stick with adding the context to server.xml.
I wish there was a way to specify multiple doc-bases in an applications
web.xml for different URL mappings kind of like there is for servlets.
Oh well...
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 5:07 PM
To: Tomcat Users List
Subject: RE: adding a virtual directory



You could define a servlet that takes care of this for you. And add that
mapping to the $CATALINA_HOME/conf/web.xml file. The
org.apache.jasper.servlet.JspServlet does something like this. It looks
for
a *.jsp in the URL. See $CATALINA_HOME/conf/web.xml and source code for
org.apache.jasper.servlet.JspServlet for more details

RS




 

  "Rutledge, Aaron"

  
<[EMAIL PROTECTED]>   
   cc:

  08/02/02 05:04 PMSubject:  RE: adding a
virtual directory
  Please respond to

  "Tomcat Users

  List"

 

 





The goal is to get that mapped drive into the context of my web-app.
Regardless of wether the folder is on or off the server--how do I map a
virtual folder from web.xml.  Is it possible?  I want everything with a
certain URL pattern to request content from a folder that is not in the
usual place.  Thanks!  Aaron


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:55 PM
To: Tomcat Users List
Subject: Re: adding a virtual directory



Assuming you are using Windows OS, you could map a drive on the source
machine pointing to the shared destination directory. Ofcourse you could
run into a few problems if  "my_ap" is the Context and "my_dir" isn't
under
"my_ap".

RS





  "Rutledge, Aaron"

  
<[EMAIL PROTECTED]>
   cc:

  08/02/02 04:49 PMSubject:  adding a
virtual directory
  Please respond to

  "Tomcat Users

  List"









I'm sorry for this very basic question, but I can't find an answer
anywhere.

Within my web application I would like to map everything requested from
one directory (such as http://my.com/my_ap/my_dir) to another directory
located on another server (mapped like
\\Server_name\directory\my_static_content).  Can I do this from my
application's web.xml or only by specifying a virtual directory in
server.xml?  I would rather keep everything self-contained so that I can
deploy it on other servers without modifying the server.xml on each
machine deployed.  Surely there is a way to do this?  Any help would be
greatly appreciated! Regards, Aaron



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







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


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







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


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




Tomcat and SOCKS

2002-08-08 Thread Rutledge, Aaron

Hello,
 I am trying to get Tomcat working with a SOCKS firewall.  Can this
be done?  I tried setting it like this... 
TOMCAT_OPTS=-DproxySet=true -DproxyHost= -DproxyPort=1080

..without luck.  Anyone been able to get this going?  This was the only
reference I've been able to find on getting TomCat working with a
firewall.   Regards!  Aaron

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




RE: Apache2 - Tomcat4 Integration

2002-08-11 Thread Aaron Chan

Hi Mr Turner, John, 

May I know if you have any links that have instruction on Apache
2 + Tomcat 4 in Windows environment. Because I am using Windows 2000
Server. Thanks in advance.

Aaron Chan
[EMAIL PROTECTED]
http://www.accom.per.sg


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 7:53 PM
To: 'Tomcat Users List'
Subject: RE: Apache2 - Tomcat4 Integration


Aw, shucks.

Any comments or suggestions you have towards making my HOWTO work with
both
apache 1.3 and apache 2.0 would be greatly appreciated. That goes for
tomcat
4.1.x beta comments as well.  I would be glad to add them to the
document.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Lou Fox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 4:44 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache2 - Tomcat4 Integration


Have you gotten any help on this?  Last night I started on practically
the
same task, the only difference is that I'm using Tomcat4.18Beta (I hear
the
performance is far superior to any other tomcat version), anyway I found
this page that gives great instructions for  apache 1.3.26 / tomcat
4.0.4 /
mod_jk.  I'm going to try to follow the directions tonight.  I'm hoping
that
apache 1.3.26 is similar enough to apache 2, and tomcat 4.0.4 is similar
to
tomcat 4.1.8 beta.  Here's the link:

http://www.johnturner.com/howto/apache-tomcat-howto.html

Let me know how it goes and I'll do the same for you.  Good luck.

- Original Message -
From: "Brian Orledge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 08, 2002 12:06 PM
Subject: Apache2 - Tomcat4 Integration


> Hello,
>
> I have spent over 3 days trying to integrate Apache2  and Tomcat4.0.3
on
> RH 7.2.  Standalone tomcat works fine.  I am using mod_jk2.so.  When I
> try to request a jsp page from Apache, I notice 2 main errors :
>
> In apache2/log/error.log :  [error] ajp14.service() error sending,
retry
> on new endpoint tomcat1
> The page returned is "Apache Tomcat/4.0.3 - HTTP Status 500 - No
Context
> configured to process this request"
>
> I am trying to access a page
> /usr/local/jakarta-tomcat-4.0.3/webapps/examples/jsp/dates/date.jsp
> through the url http://localhost/examples/jsp/dates/date.jsp
>
> Thanks in advance.
>
> Brian Orledge
> Revenue Solutions, Inc.
> 301.240.2182
>
>
> My config files follow :
>
> Server.xml:
>
> 
> 
>
> 
> 
>
>   
>
>   
>   
>
> 
>
> 
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8080" tomcatAuthentication="false"
> minProcessors="5" maxProcessors="75"
>enableLokups="true" debug="99"
> connectionTimeout="6"/>
> 
>
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>
> 
>
> 
> 
>
>   
>   
>
>   
>  prefix="catalina_log." suffix=".txt"
>   timestamp="true"/>
>
>   
>
>   
>
>   
>
>   
>
>   
>
>   
>
>   
>unpackWARs="true">
>
> 
> 
>
> 
>   directory="logs"  prefix="localhost_access_log."
> suffix=".txt"
>  pattern="common"/>
>
> 
>   directory="logs"  prefix="localhost_log."
suffix=".txt"
> timestamp="true"/>
>
> 
>
>
> 
> 
>
> 
>   debug="99" privileged="true"/>
>
> 
>   reloadable="true" crossContext="true">
> prefix="localhost_examples_log." suffix=".txt"
>   timestamp="true"/>
> home="com.wombat.empl.EmployeeRecordHome"
>remote="com.wombat.empl.EmployeeRecord"/>
>   
>   
>  value="15"/>
>value="context.param.value"
>  override="false"/>
>type="javax.sql.DataSource"/>
>   
> usersa
>
password
> driverClassName
>   org.hsql.jdbcDriver
> driverName

RE: Tomcat + apache

2002-08-11 Thread Aaron Chan

Thanks a lot! 

Sorry for the late reply, there is too much message coming into the
inbox and I nearly missed this. This is very helpful. Thank again !

Aaron Chan
[EMAIL PROTECTED]
http://www.accom.per.sg


-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 12:33 PM
To: Tomcat Users List
Cc: 'Tomcat Users List'
Subject: RE: Tomcat + apache

Here you go Aaron,

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc

This is an install for Win2k, Tomcat 4.1.8, JDSK1.4.0, mod_jk2  It'
fairly 
easy to install.  Sorry, all I have right now is a Word Doc, but all the

hyper links work, I think. 

If you want Apache with SSL then I can do that too, but it's more 
complicated.

Yall have fun now, hear?

rls







"Aaron Chan" <[EMAIL PROTECTED]>
08/07/2002 02:29 AM
Please respond to "Tomcat Users List"

 
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc: 
Subject:RE: Tomcat + apache

Hi, I am using Windows 2000 Server instead of Linux. Anywhere I can go
to find help on setting up? Thanks.

Aaron Chan


-Original Message-
From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 06, 2002 7:57 PM
To: Tomcat Users List
Subject: R: Tomcat + apache


Ops, sorry
I forgot to mention

I've linux red hat 7.3
Tomcat 4.0.4
Apache 2.0.39
java 1.4.0

I've seen the 3 connectors
which is the best?
Thx
Simone



> -Messaggio originale-
> Da: Turner, John [mailto:[EMAIL PROTECTED]]
> Inviato: martedì 6 agosto 2002 13.44
> A: 'Tomcat Users List'
> Oggetto: RE: Tomcat + apache
>
>
>
> To get tomcat to work with apache for serving mixed content, you will
need
> to choose a connector.  At this time, there are three to choose
> from: mod_jk
> (AJP), mod_webapp (WARP), and mod_jk2.  Then you configure apache to
serve
> certain content, and send other content to tomcat via the connector
for
> processing.
>
> Without knowing your platform and OS environment, there's no way to
point
> you to documentation on how to work with a connector.
>
> You can make the entire environment start at boot time quite
> easily.  Again,
> not knowing your environment, there's no way to point you to
alternatives.
>
> John Turner
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Simone Chiaretta [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 06, 2002 7:28 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat + apache
>
>
> Sorry for this questions that could have been already answered,
> but I didn't
> find anything on the net and the archive doesn't have a search
feature.
>
> I'm new in tomcat world, basically I'm a programmer but I've to
> setup a web
> server on linux with apache and tomcat.
>
> What I'd like to know is:
> 1 -  How can I integrate apache 2.x with tomcat 4.0.4 (I mean
> having apache
> handle static files and php, while tomcat just handles java dynamic
> contents)
> 2 - How can I make this environment start at boot time.
>
> Thank you
> Simone
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>





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


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





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


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




Re: Questionnaire

2002-08-11 Thread aaron . duncan

"Marcos Manosso" <[EMAIL PROTECTED]>
08/08/2002 11:05
Please respond to "Tomcat Users List"

 
To: "Marcos Manosso" <[EMAIL PROTECTED]>
cc: "Marcos Manosso" <[EMAIL PROTECTED]>
Subject:Questionnaire
Is this part of a business decision process?: 


Dear Sir/Madam

We are conducting some research concerning the public's opinion about the 
level of ethics in advertising. As you may be aware, many companies have 
ethical advertising policies. Furthermore,  the media (i.e. TV, Radio, 
Magazines and Newspapers) have governmental and non-governmental 
organizations that are suppose to monitor the ethical content of 
advertisements. The questions we want to address in this study are 
whether, in the public's opinion, (a) this control is really maintaining a 
high level of ethics in advertising executions; (b) what are the main 
issues in advertising ethics that should be dealt with in order to ensure 
this high ethical level, and (c) if ethics impacts consumers attitudes and 
behaviours towards firms that maintain high levels of ethics in their 
business and advertisings, which may be reflected in the company's society 
and environment.

In order to answer these questions, we need your help. Following this 
letter is a short questionnaire. We would really appreciate your help in 
completing and returning it. Your responses are extremely valuable and 
will help us gain a better understanding of the issues of advertising 
ethics and corporate social responsibility.

Once completed, please return the questionnaire to [EMAIL PROTECTED] 

We know your time is valuable, and therefore, as a token of our 
appreciation for your cooperation, we would be pleased to send you the 
results and analysis of this questionnaire. If you wish to receive this 
summary, please place your e-mail address in the "Subject" box of your 
response e-mail.

We assure you that the information you provide will be kept strictly 
confidential and combined with all other responses so that no individuals 
can be identified. In addition, your  name and/or e-mail address will 
remain in the highest levels of anonymity and privacy, and will not be 
given, sold or otherwise distributed to anyone, being destroyed from our 
records immediately after your questionnaire is gathered and (if the case) 
the results posted to you.

Please take a few minutes now to complete and return the questionnaire.

Thank you very much for your help

Marcos Manosso
[EMAIL PROTECTED]





Please complete the following fields:
Age:29 
Country of residence:Australia 
Gender (Male / Female):Male 
Education Level (Elementary / High School / University / 
Post-Graduate):University 

 
Please answer the following questions by placing an "x" in the appropriate 
space:
"Businesses have responsibilities with society that go beyond job 
creation." 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

"It is possible for a business to be both ethical and profitable." 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

"Advertising shows an accurate view of reality." 
1. Strongly agree   (__) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (X)
5. Strongly Disagree   (__)

"Advertising helps to shape society's views of the world and itself." 
1. Strongly agree   (X) 
2. Agree   (__)
3.  No Opinion   (__)
4. Disagree   (__)
5. Strongly Disagree   (__)

How do you view the level of ethics in general advertising? 
1. Very High   (__)
2. High   (__)
3. Average   (X)
4. Low   (__)
5. Very Low   (__)

 
Whose responsibility is it to deal with the social problems of the world? 
(please mark with an "x", as appropriate)
01.  Businesses   (__)
02.  Non-Profit Organizations   (__)
03.  Government   (X)
04.  Non-Government Organizations (NGOs)   (__)
05.  Schools and Universities   (X)
06.  General Public   (X)
07.  Other - Please cite:___ 


Which of the following issues in general advertising would you consider 
being unethical? (please mark by placing an "x" in the appropriate 
place(s))
01. Ads for abortion services or family planning   (X)

02. Ads for cosmetic surgery or other elective surgery   (__)

03. Ads for medical products and services   (__)

04. Ads for personal care and hygiene products   (__)

05. Ads for professional services (lawyers, doctors, etc.)   (__)

06. Ads for workers to replace striking workers   (X)

07. Advertising pharmaceuticals   (__)

08. Advertising to children   (X)

09. AIDS-awareness ads   (__)

10. Alcoholic beverage ads   (__)

11. Anti-abortion ads   (__)

12. Anti-alcohol Public Service Announcements   (__)

13. Anti-cigarette Public Service Announcements   (__)

14. Anti-drug Public Service Announcements   (__)

15. Censorious advertising   (__)

16. Cigarette and tobacco ads   (__)

17. Comparative advertising   (_

Tomcat and SOCKS proxy server

2002-08-12 Thread Rutledge, Aaron

I am trying to use Tomcat behind a SOCKS firewall.  I have a servlet
that is trying to access information outside the application context and
I am getting the following exceptions

java.net.NoRouteToHostException: No route to host: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:366)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:582)
at sun.net.www.http.HttpClient.(HttpClient.java:292)
at sun.net.www.http.HttpClient.(HttpClient.java:253)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:301)
...and so on


I found on a really old post that I need to set TOMCAT_OPTS =
-DsocksProxyHost= -DsocksProxyPort=1080
I have set an environmental variable (I am using W2K), but I am still
having problems.  Is there something more I need to do?  I can't find
any documentation on this.  Any help GREATLY appreciated!  
Best regards, Aaron

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




Problem accessing beans in beta 3

2001-04-08 Thread Aaron Brashears

I was building a simple web app which combines jsps with beans. When I
deployed the application (a few pages and one bean), and accessed the
jsp which makes use of the bean, an exception was thrown that jasper
was unable to compile the jsp because it couldn't find the bean class.

At first, I assumed it was all my problem, but after a few failed
attempts to circumvent the problem, I tried out an old application
that I copied, deployed and successfully tested out of a book when I
was working with 4.0 beta 1. The same exception was generated. What's
going on? I found a message in the archives that indicated beans have
to be in a package. Is this a new requirement?

/jsp/beans.jsp accesses LanguageBean
/jsp/WEB-INF/classes/LanguageBean.class exists.

server.xml is configured with the following snippet in 



And the exception is:

A Servlet Exception Has Occurred

org.apache.jasper.JasperException: Unable to compile class for 
JSP/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:57:
 Class org.apache.jsp.LanguageBean not found.
LanguageBean languageBean = null;
    ^
/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:60: 
Class org.apache.jsp.LanguageBean not found.
languageBean= (LanguageBean)
   ^
/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:65: 
Class org.apache.jsp.LanguageBean not found.
languageBean = (LanguageBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "LanguageBean");
    ^
/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:93: 
Class org.apache.jsp.LanguageBean not found.

out.print(JspRuntimeLibrary.toStringLanguageBean)pageContext.findAttribute("languageBean")).getName(;
    ^
/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:100: 
Class org.apache.jsp.LanguageBean not found.

out.print(JspRuntimeLibrary.toStringLanguageBean)pageContext.findAttribute("languageBean")).getLanguage(;
    ^
/home/aaron/tmp/jakarta-tomcat-4.0-b3/bin/./../work/localhost/jsp/beans_jsp.java:107: 
Class org.apache.jsp.LanguageBean not found.

out.print(JspRuntimeLibrary.toStringLanguageBean)pageContext.findAttribute("languageBean")).getLanguageComments(;
^
6 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:501)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:357)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162)
at 
org.apache.catalina.core.StandardPipelin

Re: setAttribute/getAttribute problem

2001-04-26 Thread Aaron Lindsey

In response to Bill Kaufman's suggestion here is the output from his code
snippet:

Request object: class=class PopBean, loader=AdaptiveClassLoader( )
PopBean object: class=class PopBean, loader=AdaptiveClassLoader( )
Myself: class=class sla._0002fsla_0002ftest_0002ejsptest_jsp_9, 
loader=JspLoader( /usr/local/tomcat/work/localhost_8080 ) / 
AdaptiveClassLoader( )

Also, I'm trying to remember everyone's questions.  I am using forward and
not sendRedirect.  I tried using the session to pass this rather than the
request with the same results.  I do have the correct import statement
because I can instantiate PopBean objects in the jsp just fine.

Hmmm.  Just when I think I know everything...

Aaron





setAttribute/getAttribute problem

2001-04-26 Thread Aaron Lindsey

I'm having problems attaching an object to the request object in a servlet
and pulling that object out again after forwarding to a jsp.  I've created
a bean called PopBean that I attach to the request.  After forwarding to a
jsp, I attempt to retrieve it from the request object and cast back to
PopBean. I get a ClassCastException.  If I run a getClass().getName() the
result is PopBean.  However, instanceof returns false when compared to
PopBean.   I can create new instances of PopBean in the jsp with no
problem.  I also can pass any of the standard java classes like Vector,
String, etc. and pull them out with no problem.  This problem only happens
with classes that I have created myself.
   Does anyone have any ideas? I've been wrestling with this for a while
without success.  BTW, I'm using Tomcat 3.2.1 on Solaris.  Thanks.

Aaron





windows, tomcat.log

2001-05-18 Thread Aaron Titus

When I start tomcat on Win2k, it says, "Check logs/tomcat.log for error 
messages."

There is no tomcat.log file anywhere on the server, and the only files in 
logs/ are:  jasper.log, mod_jk.log, and servlet.log.

Where are tomcat error messages being logged?

Thanks for any help you can provide.

Aaron


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Dr. Aaron Titus
Department of Physics
316 Marteena Hall
North Carolina A&T State University
Greensboro, NC  27411

Email:  [EMAIL PROTECTED]
Phone: (336) 334-7646
Fax:   (336) 256-0815
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




Problems with isapi_redirect.dll

2001-05-25 Thread Aaron Nance

Everyone,

I am having problems getting isapi_redirect.dll to work.  Here's my configuration info:

  Win NT Server: SP 6a
  IIS 4
  Java 1.3.0-c
  Tomcat 3.2.1
  
I have no problem running Tomcat in stand alone mode.  I am 99.9 % certain I have the 
registry entries right.  When I try to access http://localhost/examples/jsp/index.html 
IIS throws a 500 at me.  I get the following information in the isapi.log:

  [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL 
parameter
  [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL 
parameters
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed

I'm running with the configuration files as they were installed by Tomcat except for 
the workers.tomcat_home and workers.java_home properties in the workers.properties 
file.

If you can tell me what I'm doing wrong here I'd appreciate it.

Thanks,
Aaron





RE: Problems with isapi_redirect.dll

2001-05-30 Thread Aaron Nance

I won't send the entire registry, but here is the Apache key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0]
"extension_uri"="/jakarta/isapi_redirect.dll"
"log_file"="D:\\jakarta-tomcat-3.2.2\\logs\\isapi.log"
"log_level"="debug"
"worker_file"="D:\\jakarta-tomcat-3.2.2\\conf\\workers.properties"
"worker_mount_file"="D:\\jakarta-tomcat-3.2.2\\conf\\uriworkermap.properties"

Do you see anything wrong with this?  The directories are correct for my setup.

I also set the log level to debug, and this is what I got:

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url 
- should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is 
points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 788
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url 
- should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is 
points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 768
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

Any ideas?

Aaron


>>> [EMAIL PROTECTED] 05/27/01 07:58PM >>>
i also encountered several problems while configuring tomcat work IIS and
after 3 days i have it working perfectly with the same config as yours. can
you send me your registry file?  maybe theres something wrong with it.

-Original Message-
From: Aaron Nance [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, 26 May 2001 8:33 AM
To: >
Subject: Problems with isapi_redirect.dll


Everyone,

I am having problems getting isapi_redirect.dll to work.  Here's my
configuration info:

  Win NT Server: SP 6a
  IIS 4
  Java 1.3.0-c
  Tomcat 3.2.1
  
I have no problem running Tomcat in stand alone mode.  I am 99.9 % certain I
have the registry entries right.  When I try to access
http://localhost/examples/jsp/index.html IIS throws a 500 at me.  I get the
following information in the isapi.log:

  [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
  [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed

I'm running with the configuration files as they were installed by Tomcat
except for the workers.tomcat_home and workers.java_home properties in the
workers.properties file.

If you can tell me what I'm doing wrong here I'd appreciate it.

Thanks,
Aaron



RE: Problems with isapi_redirect.dll

2001-05-30 Thread Aaron Nance

Nope, the ajp12 port is set to 8007 in both files.  I'd have to learn more about the 
ajp12 protocol, but it looks like it is opening the next available socket to do it's 
communication and for whatever reason, my machine won't let it.  I've tried this on a 
couple of machines here at work (one NT server and one NT workstation) and get the 
same results (with different ports failing each time).  I'm beginning to wonder if is 
has anything to do with our LAN being NetWare.  I'm going to try this on my home 
machine tonight to see if it makes a difference.

Aaron

>>> [EMAIL PROTECTED] 05/30/01 02:21PM >>>

If I had to guess, I would say that Tomcat is not listening on the
correct port (the jk_open_socket fails).  I would check that you have AJP12
configured in your server.xml file and that matches the workers.properties
file.

    Randy


> -Original Message-
> From: Aaron Nance [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 30, 2001 3:17 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
> Subject: RE: Problems with isapi_redirect.dll
> 
> 
> I won't send the entire registry, but here is the Apache key:
> 
> [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software 
> Foundation\Jakarta Isapi Redirector\1.0]
> "extension_uri"="/jakarta/isapi_redirect.dll"
> "log_file"="D:\\jakarta-tomcat-3.2.2\\logs\\isapi.log"
> "log_level"="debug"
> "worker_file"="D:\\jakarta-tomcat-3.2.2\\conf\\workers.properties"
> "worker_mount_file"="D:\\jakarta-tomcat-3.2.2\\conf\\uriworker
> map.properties"
> 
> Do you see anything wrong with this?  The directories are 
> correct for my setup.
> 
> I also set the log level to debug, and this is what I got:
> 
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> of /examples/jsp/index.html
> [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (407)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/examples/jsp/index.html] is a servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/examples/jsp/index.html] is points to the web-inf directory
> [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for 
> name ajp12
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 788
> [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
> [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection 
> of /examples/jsp/index.html
> [jk_uri_worker_map.c (345)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (407)]: 
> jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc 
> [/examples/jsp/index.html] is a servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if 
> [/examples/jsp/index.html] is points to the web-inf directory
> [jk_isapi_plugin.c (517)]: HttpExtensionProc started
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for 
> name ajp12
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 768
> [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
> [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
> 
> Any ideas?
> 
> Aaron
> 
> 
> >>> [EMAIL PROTECT

Re: Netscape and Tomcat

2001-06-01 Thread Aaron Nance

I know a lot of the time Netscape 4.76 on Windows tends to become a zombie process if 
you push it to much.   When this happens the browser starts behaving erratically.  
Exit out of Netscape and check you task manager.  If you see netscape.exe in the task 
list kill it then relaunch Netscape.  That usually works for me, anyway.

Aaron

>>> [EMAIL PROTECTED] 05/31/01 10:46PM >>>
Does anybody know of any reason why Tomcat would not work properly with
Netscape?

When I try to access my server, using http://localhost:8080, it correctly
returns the Tomcat default page.  However, none of the links work, and I
cannot access any of my own applications (JSPs) under Tomcat.  I have
observed this behaviour on Windows 2000 and on Linux with Netscape 4.75.
Netscape 6 is OK, as is IE.

Any ideas?

Stephen Oakes
senior developer
-
[EMAIL PROTECTED] 
-
a t o m i c m e d i a
Leading Partners Online

Level 1 / 216 City Road
Southbank, Melbourne, Vic 3006
Australia.

+61 3 9695 5777 phone
+61 3 9695 5700 fax
-
www.atomicmedia.com 
-






Re: Tomcat in Win2k with IIS

2001-06-06 Thread Aaron Nance

To answer you question about if there is a difference between the JRE and the J2SDK, 
the answer is a definite yes.  The difference is that the JRE does not come with the 
Java byte-code compiler and you need that in order to run Tomcat.  Also, if you are 
not sure how to set environment variables in NT I would suggest getting a book on how 
to run NT.

Aaron

>>> [EMAIL PROTECTED] 06/05/01 04:03PM >>>
I am currently trying to install Tomcat 3.2.2 on a windows 2000 box with
IIS.  I am really confused. Can Tomcat be run standalone as its own web
server?  Or does it have to have a webserver installed (like IIS).  I tried
to follow the tomcat_ug.htm file for installation.  I went through the "How
do I Install the Binary Version of Tomcat" and when I got down to set
environment variable JAVA_HOME.  I started to loose it.  I don't have JDK
installed but I do have JRE1.3 installed (Is there a difference?)  And what
is the Java interpreter, and where do I find that?

So then I moved on.  I saw that I could use scrips to setup Tomcat.  I tried
Tomcat env and I guess it didn't work.  

Next I tried the Tomcat IIS How To.  I followed the Installation.  I
downloaded the DLL and put it in \bin\win32\i386
I went through and did minor changes to workers.properties.  Then I went
through the painful task of adding the key and strings into the registry.
It is a new web server so I made the root directory the dir with the DLL
file.  (Does it have to be a virtual dir?)  I then added the filter and
restarted IIS.  There is still a Red arrow next to the filter.  That is when
I put everything down.  (BIG HEADACH)  

Thank you for your time!

Matthew Winer





RE: IIS and Tomcat

2001-06-06 Thread Aaron Nance

Thank you very much for that information.  This is just what I needed to know to fix 
one of the last problems I was having.  I have Tomcat installed on a development box 
that has several Web servers running on it, one on port 8080 of the default IP.  The 
Tomcat server would crash every time I tried to start it when this server was running, 
by commenting out those lines from the server.xml file, the two now live in harmony.

Aaron

>>> [EMAIL PROTECTED] 06/06/01 01:27AM >>>
Hi,

If you want to stop tomcat acting as a standalone web server just delete 
these lines in server.xml:




  


This works for 3.2.1 and 3.2.2 . Don't know about other versions though.

hope this helps,

Kenneth Westelinck


>From: "Chris Faulkner" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: <[EMAIL PROTECTED]>
>Subject: RE: IIS and Tomcat
>Date: Tue, 5 Jun 2001 07:13:03 +0100
>
>Hi
>
>Thanks, this pretty much confirms what I thought. The crucial question,
>though, is whether I can have Tomcat functioning in harness with IIS to
>serve my servlets but not have it operation as a web server. When its
>running in support of IIS, I also have the Tomcat web server running on 
>port
>8080. Maybe I've overdone my install !
>
>The other bit I'm stuck on is how to install a jar and access the classes 
>in
>it.
>
>Thanks very much
>
>Chris
>
> > -Original Message-
> > From: Todd Sussman [mailto:[EMAIL PROTECTED]] 
> > Sent: 06 June 2001 07:36
> > To: [EMAIL PROTECTED]
> > Subject: RE: IIS and Tomcat
> >
> >
> > The messages show you are running IIS as the webserver and it is
> > redirecting the servlets to tomcat.  When you shutdown tomcat, IIS can
> > no longer redirect the servlets to tomcat and therefor you get an error.
> > I have never set Tomcat as a stand alone server, but it can be done.
> >
> > Todd
> >
> > -Original Message-
> > From: Chris Faulkner [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, June 05, 2001 12:50 AM
> > To: [EMAIL PROTECTED] 
> > Subject: IIS and Tomcat
> >
> >
> > Hi
> >
> > I am just trying to get my servlets tested on IIS (windows 2000) and
> > Tomcat.
> > I have done all the set-up steps, the isapi_redirect stuff seems to be
> > functioning. I have IIS on W2K with Tomcat 3.2.2 and JDK 1.3.0_02. IIS
> > is on
> > the usual port 80.
> >
> > If I start up "tomcat run", tomcat starts and initialises everything
> > (IIS is
> > also running at this time)
> >
> > http://localhost:8080/examples/servlet/SnoopServlet 
> >
> > I can see that its coming from Tomcat.
> >
> > If I hit
> >
> > http://localhost/examples/servlet/SnoopServlet 
> >
> > This also works and it tells me that the port is 80 and the server is
> > Tomcat. However, I know that the port 80 is being served by IIS and I
> > can
> > see the request in the IIS logs, being redirected to
> > /jakarta/isapi_redirect.dll. Why is it telling me that the web server is
> > Tomcat ?
> >
> > So it all looks good, except that if I do a "tomcat stop", then the
> > servlet
> > requests to IIS start to fail. Is this expected ? If so, can I run
> > tomcat
> > without opening up that 8080 port ? Maybe I'm a bit confused  but I'd
> > like
> > to have tomcat managing my servlets without essentially having a second
> > web
> > server running.
> >
> > Secondly, how do I get a jar loaded and get access to the classes within
> > that jar ? Where do I put it and how can classes in it be aliased ?
> >
> > Thirdly, and probably related, how can I use the  tag in my
> > .shtml
> > web pages. I was using Apache JSSI previously.
> >
> > Thanks very much
> >
> >
> > Chris Faulkner
> >
> >
> >
> >
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Problem with log directories

2001-10-04 Thread aaron . titus

I have set up a new context at the system path:

/home/web/live_site

Within this path I have created:

conf/
webapps/
work/
logs/

It finds and autoloads the contexts under webapps, and writes the generated
.conf files to the /home/web/live_site/conf directory, but the tomcat.log,
jasper.log and servlet.log files all get written to /usr/local/tomcat/logs
instead of /home/web/live_site/logs. I have set the home property to
/home/web/live_site in the ContextManager in the server.xml file and when I
start tomcat, I use the -f /home/web/live_site/conf/server.xml option. 

Can anyone help me fix this problem so the logs will go to the right place?
I need this to work so I can run multiple instances on the same server and
have logs for each.

Thanks !

Aaron
[EMAIL PROTECTED]



Can anyone please help with a log file issue?

2001-10-05 Thread aaron . titus

Hello,

I have been looking for several days to find information on the way that 
tomcat handles log files. The user guide says that if you set the home
attribute of the Context Manager to a fully qualified path, that the logs/
, conf/ , webapps/ and work/ directories will be relative to the path you
set in the context. I did this, and used the -f option when starting tomcat
to point to the server.xml file in my new conf directory. 

Tomcat does run, and the generated conf files go to the specified paths and 
it reads the webapps from the specified path. However, the log files like 
jasper.log, tomcat.log, servlet.log still go into $TOMCAT_HOME/logs. Why does 
this happen? Is this a known bug, because I have searched everywhere and 
cannot find any information on this. Please help !!

Thank you in advance,

Aaron
[EMAIL PROTECTED]




SSL Exception

2002-05-17 Thread Rutledge, Aaron

Hello List,
   I am trying to configure SSL for Tomacat(4.0.1).  I am using jdk
1.3.1_02 and jsse-1_0_2.  I followed the instruction to the tee as
explained at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

Anyway, I am hoping someone might help me narrow down my problem.  WHat
could cause the exception below on startup?  I've tried changing my
ports, adding a keystoreFile parameter, and a million other things.  I
hope someone might be able to tell me where to start looking next by the
exception type.  Best regards to all, Aaron

2002-05-17 08:29:43 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
58)
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
76)
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:198)
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:193)
at org.apache.jsp.pgl$jsp._jspService(pgl$jsp.java:80)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

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




RE: SSL Exception

2002-05-17 Thread Rutledge, Aaron

Me either--which is why I am so baffled.  However, as soon as I comment
out my SSL connector Tomcat loads fine.  --Aaron


-Original Message-
From: Pae Choi [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 8:17 PM
To: Tomcat Users List
Subject: Re: SSL Exception


As far as JSSE goes, I do not see any exception related to
that.


Pae

- Original Message -
From: "Rutledge, Aaron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 17, 2002 3:58 PM
Subject: SSL Exception


Hello List,
   I am trying to configure SSL for Tomacat(4.0.1).  I am using jdk
1.3.1_02 and jsse-1_0_2.  I followed the instruction to the tee as
explained at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

Anyway, I am hoping someone might help me narrow down my problem.  WHat
could cause the exception below on startup?  I've tried changing my
ports, adding a keystoreFile parameter, and a million other things.  I
hope someone might be able to tell me where to start looking next by the
exception type.  Best regards to all, Aaron

2002-05-17 08:29:43 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
58)
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
76)
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:198)
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:193)
at org.apache.jsp.pgl$jsp._jspService(pgl$jsp.java:80)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

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



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


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




RE: Doubts on SSL configuration.???

2002-05-20 Thread Rutledge, Aaron


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

I'm not sure if you've found this article or not.  On first run-through
it appears to be the "Idiot's Guide to SSL", but I am still having
problems.  I configured my Tomcat exactly like it is explained and now I
get a java.lang.IllegalStateException error when I start TomCat.  I have
no idea why SSL would cause this type of exception.  Anyway, maybe this
article will help you more than me.  Basically, as you probably know,
you create a new port that allows for SSL.  You can force any context in
your application to use this port by prefixing the URL with https...the
How TO explains it like this...

" Any page within an application can be requested over a secure socket
by simply prefixing the address with https: instead of http:. Any pages
which absolutely require a secure connection should check the protocol
type associated with the page request and take the appropriate action of
https is not specified."

probably not the detail you need

I would love to hear from anyone out there who has successfully gotten
SSL running to assist Rajesh and I.  I am kind of frustrated by what
seems to be a simple task. --Aaron
 


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 7:02 AM
To: [EMAIL PROTECTED]
Subject: Doubts on SSL configuration.???


HI All,

I need Apache-ssl+tomcat expert's help on this issue. My problem is,
after a lot of search i am still not able to find some useful
documentation
for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL).

My application needs to handle both HTTP and HTTPS. Few modules in the
application needs HTTPS and others needs HTTP. So how do i need my
configuration to be?. Can some one sent me a sample 'httpd.conf /
server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl
from
'openssl' site and have set up for the application to run on this server
with Tomcat 3.2.2.

My two main problems are:
1) But how do i redirect few options of my application to work on Https
and
others to serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or
Https?

Thanks in advance for all your help.

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



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


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




RE: Doubts on SSL configuration.???

2002-05-20 Thread Rutledge, Aaron

I'm not.  Maybe Rajesh is.  This should be straightforward and I wish to
learn what is causing my error.  I know I must be missing something
simple in my implementation.  The Tomcat SSL how-to is very brief and
clear but is causing this bizarre java.lang.IllegalStateException--which
doesn't make sense to me.  I am just trying to get SSL working
independently on Tomcat--I'm not using Apache at all.  Maybe somebody
could tell me what they did with the install of JSSE.  I simply added
this to my jre/lib/ext directory.  I was then able to succesfully creat
a key file.  I then uncommented the SSL section of my web.xml.  The Sun
Docs mention modifying the java.security file--which I did after I had
trouble.  The How To doesn't mention any of this, so I'm wondering if I
am missing some parts on the JSSE installation part??

--Aaron
 


-Original Message-
From: Pae Choi [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 6:35 PM
To: Tomcat Users List
Subject: Re: Doubts on SSL configuration.???


For $400.00, I will make a custom build for those packages,
applciations, configuration you need. That is including Apache/
HTTPd, Tomcat, OpenSSL, mod_ssl, mod_jk, and JSSE on Win32
for you. And I will provide the sample applications and
configurations you need for those needs. Interesting? Send me
an email.


Pae


- Original Message -----
From: "Rutledge, Aaron" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 8:01 AM
Subject: RE: Doubts on SSL configuration.???



http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

I'm not sure if you've found this article or not.  On first run-through
it appears to be the "Idiot's Guide to SSL", but I am still having
problems.  I configured my Tomcat exactly like it is explained and now I
get a java.lang.IllegalStateException error when I start TomCat.  I have
no idea why SSL would cause this type of exception.  Anyway, maybe this
article will help you more than me.  Basically, as you probably know,
you create a new port that allows for SSL.  You can force any context in
your application to use this port by prefixing the URL with https...the
How TO explains it like this...

" Any page within an application can be requested over a secure socket
by simply prefixing the address with https: instead of http:. Any pages
which absolutely require a secure connection should check the protocol
type associated with the page request and take the appropriate action of
https is not specified."

probably not the detail you need

I would love to hear from anyone out there who has successfully gotten
SSL running to assist Rajesh and I.  I am kind of frustrated by what
seems to be a simple task. --Aaron



-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 7:02 AM
To: [EMAIL PROTECTED]
Subject: Doubts on SSL configuration.???


HI All,

I need Apache-ssl+tomcat expert's help on this issue. My problem is,
after a lot of search i am still not able to find some useful
documentation
for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL).

My application needs to handle both HTTP and HTTPS. Few modules in the
application needs HTTPS and others needs HTTP. So how do i need my
configuration to be?. Can some one sent me a sample 'httpd.conf /
server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl
from
'openssl' site and have set up for the application to run on this server
with Tomcat 3.2.2.

My two main problems are:
1) But how do i redirect few options of my application to work on Https
and
others to serve on Http?
2) How to restrict a particular 'Context' to only serve on Http or
Https?

Thanks in advance for all your help.

Regards
H.Rajesh
([EMAIL PROTECTED])
SoftSolutions Pvt. Ltd.,
Chennai. India.



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


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



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


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




RE: Doubts on SSL configuration.???

2002-05-20 Thread Rutledge, Aaron

You must be using Apache's modSSL to provide the SSL functionality to
your Tomcat Aps.  When using Tomcat alone you must configure the SSL
connector in server.xml to specify the factory class name within the
JSSE and you must specify where your keyfile is located.  If you look at
your server.xml file you will see that there is a section commented out
that is a sample for doing this.  Aaron
 


-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 4:26 PM
To: Rutledge, Aaron
Subject: RE: Doubts on SSL configuration.???


You really don't have to do anything in the server.xml, it's all in the
http
config.

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 2:57 PM
> To: Mike Jackson
> Subject: RE: Doubts on SSL configuration.???
> 
> 
> Thanks for your offer.  Binaries aren't an issue--just the
configuration
> of server.xml.  Best regards, Aaron
>  
> 
> 
> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 20, 2002 3:42 PM
> To: Tomcat Users List
> Subject: RE: Doubts on SSL configuration.???
> 
> 
> I have this setup at home on my linux box.  Didn't have any problems
> getting
> it working.  If you ask really, really nicely I could send you the
> binaries
> I suppose, or the config files.  But really the major pain was getting
> apache
> to run with ssl, not the tomcat part.
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 20, 2002 8:02 AM
> > To: Tomcat Users List
> > Subject: RE: Doubts on SSL configuration.???
> >
> >
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
> >
> > I'm not sure if you've found this article or not.  On first
> run-through
> > it appears to be the "Idiot's Guide to SSL", but I am still having
> > problems.  I configured my Tomcat exactly like it is explained and
now
> I
> > get a java.lang.IllegalStateException error when I start TomCat.  I
> have
> > no idea why SSL would cause this type of exception.  Anyway, maybe
> this
> > article will help you more than me.  Basically, as you probably
know,
> > you create a new port that allows for SSL.  You can force any
context
> in
> > your application to use this port by prefixing the URL with
> https...the
> > How TO explains it like this...
> >
> > " Any page within an application can be requested over a secure
socket
> > by simply prefixing the address with https: instead of http:. Any
> pages
> > which absolutely require a secure connection should check the
protocol
> > type associated with the page request and take the appropriate
action
> of
> > https is not specified."
> >
> > probably not the detail you need
> >
> > I would love to hear from anyone out there who has successfully
gotten
> > SSL running to assist Rajesh and I.  I am kind of frustrated by what
> > seems to be a simple task. --Aaron
> >
> >
> >
> > -Original Message-
> > From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 20, 2002 7:02 AM
> > To: [EMAIL PROTECTED]
> > Subject: Doubts on SSL configuration.???
> >
> >
> > HI All,
> >
> > I need Apache-ssl+tomcat expert's help on this issue. My problem
> is,
> > after a lot of search i am still not able to find some useful
> > documentation
> > for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL).
> >
> > My application needs to handle both HTTP and HTTPS. Few modules in
the
> > application needs HTTPS and others needs HTTP. So how do i need my
> > configuration to be?. Can some one sent me a sample 'httpd.conf /
> > server.xml'?. I have downloaded a copy of
Apache1.3.24+mod_ssl_openssl
> > from
> > 'openssl' site and have set up for the application to run on this
> server
> > with Tomcat 3.2.2.
> >
> > My two main problems are:
> > 1) But how do i redirect few options of my application to work on
> Https
> > and
> > others to serve on Http?
> > 2) How to restrict a particular 'Context' to only serve on Http or
> > Https?
> >
> > Thanks in advance for all your help.
> >
> > Regards
> > H.Rajesh
> > ([EMAIL PROTECTED])
> > SoftSolutions Pvt. Ltd.,
> > Chennai. India.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

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




RE: Enabling SSL in tomcat

2002-05-22 Thread Rutledge, Aaron


Hello,
I keep seeing the topic of SSL configuration come up, but I have yet
heard anyone with a simmilar problem as mine.  I am surprised this can
be so problematic since it seems so straight forward. 

I tried using Joaquin's example and got the same exception...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)

Anyone have any idea why the connector would throw this kind of
exception?  As soon as I remove the connector Tomcat loads fine.  Here
is my current connector configuration in server.xml...















I also received the same exception using the example configuration.  I
wish I at least knew where to start looking.  I've read over the How To
a million times.  Is it as simple as adding the jcert.jar, jnet.jar,
jsse.jar files to the jre/lib/ext directory, creating a .keyfile and
adding the connector in server.xml?  Am I missing something?  I read
through some of the docs sun provides with JSSE and it mentions adding
some information to java.security.  I tried that without success.  Can
anyone tell me if they can think of any steps that I might have missed?
I am going crazy.  
Best regards to all, Aaron


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:43 AM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat


Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat,
then
tried what 'J' told, but due to Java's security permission for file
reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect
shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.




- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT
server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show
the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default
User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav
a:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1
60)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav
a:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1
88)
> 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)
>
> This problem does not appear in Windows NT Workstation. In the
workstation
> the  property is the same as required by the Tomcat server
at
run
> time.
>
> If anyone face the same problem earlier and have the solution please
reply
> ASAP.
>
> Regards,
> Ajay
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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


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




RE: Very strange session problem on localhost only (trying again)

2002-05-22 Thread Rutledge, Aaron

What do you mean "the session times out"?  Are you testing for session
variables and the session expires after this page loads on localhost,
but not from another browser on another machine?  Or, does your page
never load?  I assume the page loaded in the new window is a JSP or
Servlet generated. WHat kind of code is in that window and what is the
action of the button when it is closed (is it strictly client-side or
does it load a new page or submit data)?  Also, are you sure that the
problem is not a browser problem on your localhost machine.  When you
return to that page is it possible that you're not seeing what you are
expecting because of a cached page or a simmilar problem? --Aaron 


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 7:23 AM
To: Tomcat Users List
Subject: RE: Very strange session problem on localhost only (trying
again)



Nobody responded to this in a few days, so I'll try again this
morning...


Hello,

We have recently noticed a very strange error when running tomcat 3.2.4
on
localhost.  If a button in the application pops up a new window, then
the
user closes that window to return to the original screen, the session
times
out.  This does not happen when using tomcat connected to apache on our
production machine, or even if we access tomcat standalone from another
computer on the network.  Only happens on localhost.

Does anyone know why?

Brandon


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



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


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




RE: Very strange session problem on localhost only (trying again)

2002-05-22 Thread Rutledge, Aaron

So it sounds like you have a test page that loads the session variables
and you reload the page or something to verify thier value.  You open
some window...and for some reson when you continue testing the variables
in this original window you suddenly have a new session?  Are you sure
you aren't mixing up the windows some how? It makes perfect sense that
the new window may have a different session value from the one that
spawned it.--Aaron


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 7:51 AM
To: Tomcat Users List
Subject: RE: Very strange session problem on localhost only (trying
again)


The popup window only displays and html page.  There is no processing
done
when the window is closed.  Actually, the only thing tomcat does is
serve
one html page and the associated images.  For some reason, this seems to
create a new session.

When I say that the session times out, a check reveals that there is an
entirely new session value set when I try to click something in the
original
page.  This happens on all dev computers, running all different versions
of
Internet Explorer.



-Original Message-
From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 8:46 AM
To: Tomcat Users List
Subject: RE: Very strange session problem on localhost only (trying
again)


What do you mean "the session times out"?  Are you testing for session
variables and the session expires after this page loads on localhost,
but not from another browser on another machine?  Or, does your page
never load?  I assume the page loaded in the new window is a JSP or
Servlet generated. WHat kind of code is in that window and what is the
action of the button when it is closed (is it strictly client-side or
does it load a new page or submit data)?  Also, are you sure that the
problem is not a browser problem on your localhost machine.  When you
return to that page is it possible that you're not seeing what you are
expecting because of a cached page or a simmilar problem? --Aaron


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 7:23 AM
To: Tomcat Users List
Subject: RE: Very strange session problem on localhost only (trying
again)



Nobody responded to this in a few days, so I'll try again this
morning...


Hello,

We have recently noticed a very strange error when running tomcat 3.2.4
on
localhost.  If a button in the application pops up a new window, then
the
user closes that window to return to the original screen, the session
times
out.  This does not happen when using tomcat connected to apache on our
production machine, or even if we access tomcat standalone from another
computer on the network.  Only happens on localhost.

Does anyone know why?

Brandon


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



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


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



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


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




RE: Enabling SSL in tomcat

2002-05-22 Thread Rutledge, Aaron

I guess I'll try this one more time.  Last time I posted it quickly got
burried.  Any help would be greatly appreciated and would contribute
greatly to my mental health! Regards, Aaron

-Original Message-
From: Rutledge, Aaron 
Sent: Wednesday, May 22, 2002 7:21 AM
To: Tomcat Users List
Subject: RE: Enabling SSL in tomcat



Hello,
I keep seeing the topic of SSL configuration come up, but I have yet
heard anyone with a simmilar problem as mine.  I am surprised this can
be so problematic since it seems so straight forward. 

I tried using Joaquin's example and got the same exception...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)

Anyone have any idea why the connector would throw this kind of
exception?  As soon as I remove the connector Tomcat loads fine.  Here
is my current connector configuration in server.xml...















I also received the same exception using the example configuration.  I
wish I at least knew where to start looking.  I've read over the How To
a million times.  Is it as simple as adding the jcert.jar, jnet.jar,
jsse.jar files to the jre/lib/ext directory, creating a .keyfile and
adding the connector in server.xml?  Am I missing something?  I read
through some of the docs sun provides with JSSE and it mentions adding
some information to java.security.  I tried that without success.  Can
anyone tell me if they can think of any steps that I might have missed?
I am going crazy.  
Best regards to all, Aaron


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:43 AM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat


Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat,
then
tried what 'J' told, but due to Java's security permission for file
reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect
shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.




- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT
server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show
the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default
User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav
a:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1
60)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav
a:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1
88)
> 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)
>
> This problem does not appear in Windows NT Workstation. In the
workstation
> the  property is the same as required by the Tomcat server
at
run
> time.
>
> If anyone face the same problem earlier and have the solution please
reply
> ASAP.
>
> Regards,
> Ajay
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To 

Enabling SSL in tomcat--specific questions

2002-05-22 Thread Rutledge, Aaron

Sorry list, I'm getting desperate.

Perhaps my question I've submitted a couple times is too vague.  I'll
try asking a few specific ones...

If I am able to create a .keyfile, do I have JSSE installed correctly?

Does Tomcat use the JSSE directly from
org.apache.tomcat.net.SSLSocketFactory or does it have all the classes
necessary to create the port itself (and the JSSE is used to create the
keyfile only)?

Besides placing the JSSE jars in the lib/ext directory, and creating a
keyfile, is there anything else that needs to be directly configured in
the JRE?

Thanks for any insight anyone can give.  If I could just ask someone who
has set this up before a couple questions I would be extremely grateful!
Regards, Aaron

 


-Original Message-
From: Rutledge, Aaron 
Sent: Wednesday, May 22, 2002 7:21 AM
To: Tomcat Users List
Subject: RE: Enabling SSL in tomcat



Hello,
I keep seeing the topic of SSL configuration come up, but I have yet
heard anyone with a simmilar problem as mine.  I am surprised this can
be so problematic since it seems so straight forward. 

I tried using Joaquin's example and got the same exception...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)

Anyone have any idea why the connector would throw this kind of
exception?  As soon as I remove the connector Tomcat loads fine.  Here
is my current connector configuration in server.xml...















I also received the same exception using the example configuration.  I
wish I at least knew where to start looking.  I've read over the How To
a million times.  Is it as simple as adding the jcert.jar, jnet.jar,
jsse.jar files to the jre/lib/ext directory, creating a .keyfile and
adding the connector in server.xml?  Am I missing something?  I read
through some of the docs sun provides with JSSE and it mentions adding
some information to java.security.  I tried that without success.  Can
anyone tell me if they can think of any steps that I might have missed?
I am going crazy.  
Best regards to all, Aaron


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:43 AM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat


Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat,
then
tried what 'J' told, but due to Java's security permission for file
reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect
shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.




- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT
server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show
the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default
User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav
a:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1
60)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav
a:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1
88)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)

RE: Enabling SSL in tomcat--specific questions

2002-05-23 Thread Rutledge, Aaron


Thanks!  I downloaded JDK1.4 and it worked like a charm too.  I guess
I'll never figure out what was causing my exception.  Best regards!
Aaron 


-Original Message-
From: Oki DZ [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 7:06 PM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat--specific questions


On 05/23 03:14 "Rutledge, Aaron" wrote:
> If I am able to create a .keyfile, do I have JSSE installed correctly?

I use JDK1.4 and Tomcat 4.0.3; it was all I needed to get SSL running.
(And the .keystore file, of course, in the root's home directory;
because I 
run Tomcat under root.) FYI, the certificate's passphrase has to be
"changeit".

Oki


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


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




forcing SSL

2002-05-23 Thread Rutledge, Aaron

I'm trying to clear one last hurdle on this whole SSL thing.  How
exactly do I force a certain page to require https protocol?  The How-To
on SSL (which I have just about memorized at this point) states... 

"Any pages which absolutely require a secure connection should check the
protocol type associated with the page request and take the appropriate
action of https is not specified."

Can this be done in the web.xml file or is this done within each JSP or
Servlet?  Is it possible to seamlessly redirect a user who requests a
page through http to be switched to https without altering the source
code of each page?  I've scanned every e-mail on SSL on this list since
November and I've seen many similar requests, but nobody has ever
answered it.  Weird.  If somebody could point me in the right direction
I would be very grateful.  Regards!  Aaron

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




RE: forcing SSL

2002-05-23 Thread Rutledge, Aaron

THANK YOU!
 


-Original Message-
From: Ingo Bruell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 1:03 PM
To: Tomcat Users List
Subject: Re: forcing SSL


Hi,

RA> I'm trying to clear one last hurdle on this whole SSL thing.  How
RA> exactly do I force a certain page to require https protocol?  The
How-To
RA> on SSL (which I have just about memorized at this point) states... 

RA> "Any pages which absolutely require a secure connection should check
the
RA> protocol type associated with the page request and take the
appropriate
RA> action of https is not specified."

RA> Can this be done in the web.xml file or is this done within each JSP
or
RA> Servlet?  Is it possible to seamlessly redirect a user who requests
a
RA> page through http to be switched to https without altering the
source
RA> code of each page?  I've scanned every e-mail on SSL on this list
since
RA> November and I've seen many similar requests, but nobody has ever
RA> answered it.  Weird.  If somebody could point me in the right
direction
RA> I would be very grateful.  Regards!  Aaron

Yes, put the following into the web-xml security-constraint part and
tomcat redirects automaticly to ssl if the resource was requested.

  
 
CONFIDENTIAL
 
  

it is necessary that ssl is correctly set up in server.xml. Have a
look at the HOW-To on the tomcat homepage

so long


Ingo Bruell

---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648
169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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


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




Enterprise JavaBeans support?

2001-06-26 Thread Aaron Cooper

Hello
 
   I have been checking the online documentation but I have not found the answer I am 
looking for.  I know that Tomcat support JavaBeans, but does it support EJB? 

Thanks

Aaron




tomcat 3.2.3 configuration

2001-07-24 Thread Aaron Cooper

Hi folks

   I am really stumped here and am wondering if someone can lend a helping hand.  I 
want to create my own web application.  From what I have read, if I put a directory 
under /webapps, tomcat will automatically add that directory to its web applications 
using ContextManager.

  I created a /baseball directory under /webapps, however, whenever I type in 
http://localhost:8080/baseball, it does not find the directory.  So, I went and 
changed server.xml and added the  .  But that also did not work :)

Is there something I am doing wrong here? I've noticed in the /webapps directory there 
exists .war files... do I need to do create a war file? if so, how? 

Any help would be greatly appreciated! 

thanks!

Aaron Cooper




RE: tomcat 3.2.3 configuration

2001-07-24 Thread Aaron Cooper

Hi William

   Thanks for your reply.  I appreciate it a lot.  Ok, I will try what you suggested.  
However, I do not have any servlets in my application, just JSP pages.  That being 
said, is it necessary for me to define a servlet mapping?
Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the 
directory.  I've been following the examples I've seen to a tea, yet unsuccessful.  
Aren't computers fun :)

I'll check out the URL you gave too.  

Cheers

Aaron

>>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>>
It should be

  http://localhost:8080/servlet/baseball 
^^^
If you want to use

  http://localhost:8080/baseball 

you'll need to define your own web.xml, aliasing your servlet to "/baseball"
like,

 cut here 

  

BaseballServlet


baseball

  

BaseballServlet


/baseball

  

 cut here 

For more information, read the JSDK spec, at

  http://java.sun.com/products/servlet/download.html 

    -- Bill K. 

> -Original Message-
> From: Aaron Cooper [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 24, 2001 7:59 AM
> To: [EMAIL PROTECTED] 
> Subject: tomcat 3.2.3 configuration
> 
> 
> Hi folks
> 
>I am really stumped here and am wondering if someone can 
> lend a helping hand.  I want to create my own web 
> application.  From what I have read, if I put a directory 
> under /webapps, tomcat will automatically add that directory 
> to its web applications using ContextManager.
> 
>   I created a /baseball directory under /webapps, however, 
> whenever I type in 
> http://localhost:8080/baseball, it does not find the 
> directory.  So, I went and changed server.xml and added the 
>  
> .  But that also did not work :)
> 
> Is there something I am doing wrong here? I've noticed in the 
> /webapps directory there exists .war files... do I need to do 
> create a war file? if so, how? 
> 
> Any help would be greatly appreciated! 
> 
> thanks!
> 
> Aaron Cooper
> 




help please!

2001-07-24 Thread Aaron Cooper

Hi

   I've checked documentation and have tried things already suggested, but still 
without success. Does anyone know where I could go to get information or give me some 
help? 

   I have placed a /baseball under /webapps.  When I type in 
http://localhost:8080/baseball from my UNIX workstation, it works fine.  However, when 
I type the URL/baseball from my PC, it cannot find the directory.  Apache came already 
set up with tomcat, I do not understand why it wont show from my PC, when the 
/examples directory shows perfectly finr from my PC.  

Any help greatly appreciated.

Aaron




Re: help please!

2001-07-24 Thread Aaron Cooper

i've tried that John :) I'll still plug away at it :) Thanks for the reply.

>>> John Hebert <[EMAIL PROTECTED]> 07/24/01 03:54pm >>>
Aaron Cooper wrote:

> Hi
> 
>I've checked documentation and have tried things already suggested, but still 
>without success. Does anyone know where I could go to get information or give me some 
>help? 
> 
>I have placed a /baseball under /webapps.  When I type in 
>http://localhost:8080/baseball from my UNIX workstation, it works fine.  However, 
>when I type the URL/baseball from my PC, it cannot find the directory.  Apache came 
>already set up with tomcat, I do not understand why it wont show from my PC, when the 
>/examples directory shows perfectly finr from my PC.  


Hmmm. Make sure your browser cache is clean. What you are doesn't seem 
like it should work.


-- 
John Alex Hebert
[EMAIL PROTECTED] 
System Engineer




RE: help please!

2001-07-24 Thread Aaron Cooper

Hi Chris

   I am running apache/tomcat on a UNIX server, and I am trying to access the page 
from my PC.  I can access the pages just fine by http://localhost:8080/baseball/ on 
the UNIX box, but when I type http://istest-vac.acc.gc.ca/baseball/baseball.jsp from 
my PC, it does not show up, however, /examples in the above URL works.

I do not believe it is a case sensitivity problem here. I've checked that.

Thanks for the reply :)

Aaron

>>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:08pm >>>
Aaron,

Are you running apache/tomcat on your PC?  We had this problem before
and it turned out to be a case problem on the directories.  The PC
ignores case while UNIX is case-sensitive.  We had Web-Inf instead of
WEB-INF.

Chris

> -Original Message-
> From: Aaron Cooper [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 24, 2001 1:41 PM
> To: [EMAIL PROTECTED] 
> Subject: help please!
>
>
> Hi
>
>I've checked documentation and have tried things already
> suggested, but still without success. Does anyone know where
> I could go to get information or give me some help?
>
>I have placed a /baseball under /webapps.  When I type in
> http://localhost:8080/baseball from my UNIX workstation, it
> works fine.  However, when I type the URL/baseball from my
> PC, it cannot find the directory.  Apache came already set up
> with tomcat, I do not understand why it wont show from my PC,
> when the /examples directory shows perfectly finr from my PC.
>
> Any help greatly appreciated.
>
> Aaron
>
>





RE: help please!

2001-07-24 Thread Aaron Cooper

when I try http://localhost/baseball from my UNIX box, it says "Not Found"

>>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:24pm >>>
Aaron Cooper wrote:
>I am running apache/tomcat on a UNIX server, and I am
> trying to access the page from my PC.  I can access the
> pages just fine by http://localhost:8080/baseball/ on the
> UNIX box, but when I type
> http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my
> PC, it does not show up, however, /examples in the above
> URL works.

Hang on, what happened to the :8080?  What happens when you
try http://localhost/baseball/ from the UNIX box?

-- Andrew




RE: help please!

2001-07-24 Thread Aaron Cooper

hi Andrew

   I thought that might be the case, but why would I be able to view the /examples 
directory from my PC if it were not configured correctly? 

  Because of that, I thought it was configured properly.

>>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>>
Aaron Cooper wrote:
> when I try http://localhost/baseball from my UNIX box, it says
> "Not Found"

OK, now we're getting somewhere.  Apache is not configured correctly
to forward JSP requests off to Tomcat.  See if this helps:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html 

-- Andrew




RE: help please!

2001-07-25 Thread Aaron Cooper

Yup, I have checked that.  I inserted that in the file.  
I'm going to have a look at the HowTo again.

>>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:45pm >>>
I'm going to take another shot at it ;-)

Check your JkMounts and make sure that there are some for /baseball.
mod_jk.conf-auto or whatever you changed it to.

Chris

> -Original Message-
> From: Aaron Cooper [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, July 24, 2001 3:37 PM
> To: [EMAIL PROTECTED] 
> Subject: RE: help please!
>
>
> hi Andrew
>
>I thought that might be the case, but why would I be able
> to view the /examples directory from my PC if it were not
> configured correctly?
>
>   Because of that, I thought it was configured properly.
>
> >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>>
> Aaron Cooper wrote:
> > when I try http://localhost/baseball from my UNIX box, it says
> > "Not Found"
>
> OK, now we're getting somewhere.  Apache is not configured correctly
> to forward JSP requests off to Tomcat.  See if this helps:
> http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache- 
> howto.html
>
> -- Andrew
>
>





RE: Please HELP / W A R N I N G: LoadModule order

2001-07-25 Thread Aaron Cooper

Hi

  Yes I believe at the top of httpd.conf, it is written that the order in which the 
modules are loaded is very important.

Cheers

Aaron

>>> Loïc Lefèvre <[EMAIL PROTECTED]> 07/25/01 10:29am >>>
Phew I've got on problem resolved (or partially resolved).
It seems that the order of the LoadModule command in httpd.conf is
very important !!!
When I put:

LoadModule jk_module modules/mod_jk.dll
LoadModule rewrite_module modules/mod_rewrite.so

Tomcat receive my request but when I put:

LoadModule jk_module modules/mod_jk.dll
LoadModule rewrite_module modules/mod_rewrite.so

nothing appears !

How strange isn't it ?

Loïc Lefèvre

-Message d'origine-
De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] 
Envoyé : mercredi 25 juillet 2001 15:10
À : Mailing List Tomcat
Objet : Please HELP


Hello, I've got the following problem:

(please don't stop reading :) )

in the file mod_jk.conf:

NameVirtualHost 127.0.0.1


ServerName win.fivia.com
DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront

JkMount /*.jsp ajp12
JkMount /adfront/* ajp12

RedirectMatch /index.html $1/start/index.html

ErrorLog d:/Tomcat/log/loic_error_html.log
TransferLog d:/Tomcat/log/loic_access_html.log

RewriteEngine on
RewriteLog d:/Tomcat/log/loic_rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/servlet* [NC]
# =>
RewriteRule ^/servlet/(.*) /adfront/$1 [PT]

RewriteCond %{REQUEST_URI} !^/adfront* [NC]
RewriteCond %{REQUEST_URI} !^/Image* [NC]
RewriteCond %{REQUEST_URI} !^/Elemtech* [NC]
RewriteCond %{REQUEST_URI} !^/Erreur* [NC]
RewriteCond %{REQUEST_URI} ^/.*/.*
# =>
RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA]



then when I try to access http://win.fivia.com/ 

The module mod_rewrite transforms the uri into:

http://win.fivia.com/start/index.html 

logs:
(2) init rewrite engine with requested uri /
 (3) applying pattern '^/servlet/(.*)' to uri '/'
 (3) applying pattern '^/(.*)' to uri '/'
 (4) RewriteCond: input='/' pattern='!^/adfront*' => matched
 (4) RewriteCond: input='/' pattern='!^/Image*' => matched
 (4) RewriteCond: input='/' pattern='!^/Elemtech*' => matched
 (4) RewriteCond: input='/' pattern='!^/Erreur*' => matched
 (4) RewriteCond: input='/' pattern='^/.*/.*' => not-matched
 (1) pass through /

(2) init rewrite engine with requested uri /index.html
 (3) applying pattern '^/servlet/(.*)' to uri '/index.html'
 (3) applying pattern '^/(.*)' to uri '/index.html'
 (4) RewriteCond: input='/index.html' pattern='!^/adfront*' => matched
 (4) RewriteCond: input='/index.html' pattern='!^/Image*' => matched
 (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' => matched
 (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' => matched
 (4) RewriteCond: input='/index.html' pattern='^/.*/.*' => not-matched
 (1) pass through /index.html

(2) init rewrite engine with requested uri /start/index.html
 (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html'
 (3) applying pattern '^/(.*)' to uri '/start/index.html'
 (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' => matched
 (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' => matched
 (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' =>
matched
 (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' => matched
 (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' => matched
 (2) rewrite /start/index.html -> /adfront/AdFront?access=/start/index.html

 (3) split uri=/adfront/AdFront?access=/start/index.html ->
uri=/adfront/AdFront,

args=access=/start/index.html
(2) forcing '/adfront/AdFront' to get passed through to next API
URI-to-filename handler

and then the requested uri is:

http://win.fivia.com/adfront/AdFront?access=/start/index.html 

BUT it does nothing (tomcat receive NO request).

And when I try manually to access

http://win.fivia.com/adfront/AdFront?access=/start/index.html 

Tomcat receive and process the uri 

What's the problem ???
Please HELP

Loïc Lefèvre





Apxs

2001-07-25 Thread Aaron Cooper

hi folks

   I am trying to configure tomcat3.3b1 with apache.  however, whenever I run the 
build-hpux.sh script, it produces the following error messages relating to the apxs 
script:

/opt/apache/bin/apxs[66]: require: not found
/opt/apache/bin/apxs[67]: use:   not found
/opt/apache/bin/apxs[68]: package: not found
/opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected.

I have not modified apxs at all.  Has anyone else encountered these difficulties? i've 
searched my directory structure for the packages, and they are not found.

Aaron






RE: Apxs

2001-07-25 Thread Aaron Cooper

hi Michael,

   I did change that the the proper directory, but it's still not finding the packages 
:(

>>> "Nance, Michael" <[EMAIL PROTECTED]> 07/25/01 03:38pm >>>
I found that the apxs command has a "hard coded" path.  If the  apache
directory is different you may have to update it.
edit the apxs and make sure it is correct.

-Original Message-
From: Aaron Cooper [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 25, 2001 10:28 AM
To: [EMAIL PROTECTED] 
Subject: Apxs


hi folks

   I am trying to configure tomcat3.3b1 with apache.  however, whenever I
run the build-hpux.sh script, it produces the following error messages
relating to the apxs script:

/opt/apache/bin/apxs[66]: require: not found
/opt/apache/bin/apxs[67]: use:   not found
/opt/apache/bin/apxs[68]: package: not found
/opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected.

I have not modified apxs at all.  Has anyone else encountered these
difficulties? i've searched my directory structure for the packages, and
they are not found.

Aaron






Apxs problem

2001-07-26 Thread Aaron Cooper

HI folks

I re-installed the apache web server , building it from source.  Now I am trying to 
configure tomcat with apache using the mod_jk web adapter.  However, when I run apxs, 
it produces the following message:

gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE -
DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I
/opt/java1.2/include/hp-ux -DHPUX11GCC  -c ../common/jk_ajp12_worker.c
apxs:Break: Command failed with rc=255
Error with apxs


I've read the mod_jk howto website, and it says to rebuild the apache web server from 
source... but that is what I just finished doing :)

Any ideas? 

Cheers

Aaron




Re: mod_jk problems

2001-07-26 Thread Aaron Wald

I've seen this problem in 3.3.m4...

I just upgraded to 3.3b1 on one box and haven't seen it yet, but haven't tested it as 
thoroughly.

I'm really interested in a work around? 

In addition to this problem I occasionally get a jsp page that isn't processed 
returned. 

I've seen this on two seperate m4 installs running different sets of code. 

--aaron

On Thu, Jul 26, 2001 at 01:43:27PM -0500, Jason Koeninger wrote:
> I've seen this exact problem in 3.3m3, but I don't have any 
> recommendations on working through it right now.  ajp12 
> has been better in this respect than ajp13, but the problem 
> isn't gone.  I'm planning to spend some time in August or 
> September working through the mod_jk code to check on a 
> number of issues I've had with it, this one being the most 
> important.  Until then, I'll be interested to see what kind of 
> response your message gets.
> 
> Best Regards,
> 
> Jason Koeninger
> J&J Computer Consulting
> http://www.jjcc.com
> 
> On Thu, 26 Jul 2001 19:31:51 +0100, Andrew Ormsby wrote:
> 
> >Hi,
> >
> >I'm using Apache 1.3.20 and Tomcat 3.3m4 and I have the following
> >problem:
> >
> >I have a simple servlet which responds to GET requests by returning a
> >web page with some binary content.  The precise content is selected by a
> >parameter, e.g: http://host/servlet/get?p=1
> >
> >Accessing the servlet from Tomcat standalone, everything works fine.
> >However, when using mod_jk (AJPv13) to access Tomcat from Apache, things
> >work well until after the server has been under heavy load.
> >
> >Once the server has been loaded up, I start getting bizarre behaviour:
> >Apache will return the output of the *previous* servlet invocation.
> >Given the sequence:
> >http://host/servlet/get?p=1
> >http://host/servlet/get?p=2
> >the first request will return some old result and p=2 will return the
> >result expected from p=1.
> >
> >From my servlet logs, I know that the p=1 request reaches the servlet
> >and the right content is generated (and I can confirm this by accessing
> >the servlet directly on port 8080, by-passing Apache).  But Apache
> >resolutely returns the "old" content.
> >
> >This feels like some kind of buffering problem - perhaps in mod_jk, or
> >maybe in Apache itself.  Has anyone else seen anything like this?  Any
> >suggestions on how I can diagnose the problem?
> >
> >--
> >Andy Ormsbyandy.ormsby .at. lexicle.com
> >
> 
> 



apache -> tomcat

2001-07-27 Thread Aaron Cooper

Hi folks
 
   i'm using apache 1.3 and tomcat 3.3.  apache is working fine, and tomcat is working 
great.. as standalone.  however, apache doesnt seem to be sending the servlet requests 
to tomcat.  I've checked the errror_log from apache, and found the following:

  [error] Cannot remove module mod_jk.c: not found in module list

Would this have anything to do with the above mentioned problem? 
Any ideas on why apache may not be sending the requests to tomcat? the /examples 
directory isnt even showing up.

Cheers

Aaron




Servlet Mapping

2001-07-31 Thread Aaron Cooper

Hi Folks

I am using tomcat 3.3 b1.  I have the following in my web.xml file.


tester2 
tester2  



tester2 
/tester2 


However, the page doesnt load, as it cannot find the class.  It says cannot find 
"jsp/tester2".  My tester2.jsp page is under a directory called /jsp, but my compiled 
file and class file is under /WEB-INF/classes. 

I also tried to put this in my apps-myWebApp.xml file but no luck.

Does anybody have any ideas? I think I am just making a silly mistake and there is an 
easy fix.

Aaron




tomcat 3.3b1 performance

2001-08-01 Thread Aaron Cooper

Hello

   I am using tomcat 3.3b1 .. Despite the fact that i have precompiled my JSP pages 
and have appended ?jsp_compile=true to my URLs, I am still experiencing about a minute 
of lag time before the page loads.  This is quite annoying, considering when using an 
earlier version ( tomcat 3.1) , I did not experience this.  

Any ideas?

Aaron Cooper




RE: tomcat 3.3b1 performance

2001-08-01 Thread Aaron Cooper

Hi

   Yes , on first access.  After precompiling my JSPs, there is still lag time when I 
first access the page.  However, whenever I make changes to my JSP page and recompile 
it, the lag time is still there.  

Have you experienced something similar?

Cheers

Aaron

>>> "Ignacio J. Ortega" <[EMAIL PROTECTED]> 08/01/01 01:06pm >>>
When you get this behaviour? on first access?

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Aaron Cooper [mailto:[EMAIL PROTECTED]] 
> Enviado el: miércoles 1 de agosto de 2001 15:06
> Para: [EMAIL PROTECTED] 
> Asunto: tomcat 3.3b1 performance
> 
> 
> Hello
> 
>I am using tomcat 3.3b1 .. Despite the fact that i have 
> precompiled my JSP pages and have appended ?jsp_compile=true 
> to my URLs, I am still experiencing about a minute of lag 
> time before the page loads.  This is quite annoying, 
> considering when using an earlier version ( tomcat 3.1) , I 
> did not experience this.  
> 
> Any ideas?
> 
> Aaron Cooper
> 
> 




public key for signature on jakarta-tomcat-3.2.3-src.tar.gz not found

2001-08-15 Thread Aaron Seth

I just downloaded Tomcat 3.2.3 and before even attempting to build it
I have a problem: it appears that the signature on
jakarta-tomcat-3.2.3-src.tar.gz doesn't match any of the Apache
developer signatures in the KEYS file distributed at
http://www.apache.org/dist/

(It also appears that someone else pointed out this very same problem
awhile back, but I didn't see any replies in the mailing list
archives, so I'll inquire again).

I'm using GNUPG 1.0.6 on FreeBSD 4.3 to attempt to check the
signature.

asc@mauinui: ~> gpg /tmp/jakarta-tomcat-3.2.3-src.tar.gz.asc
gpg: Signature made Tue Jul 17 07:38:39 2001 HST using DSA key ID 45ABB45D
gpg: Can't check signature: public key not found

asc@mauinui: ~> gpg --import KEYS
gpg: key 2719AF35: not changed
gpg: key A99F75DD: not changed
gpg: key A0BB71C1: not changed
gpg: key 08C975E5: not changed
gpg: key DD919C31: not changed
gpg: key 940A64BD: not changed
gpg: key 631B5749: not changed
gpg: key 49A563D9: not changed
gpg: key 2F90A69D: not changed
gpg: key BA20321D: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: key 26BB437D: not changed
gpg: key 45B91DF1: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: key 163751F5: not changed
gpg: key EE65E321: not changed
gpg: key FDE534D1: not changed
gpg: key EC140B81: not changed
gpg: key F08E012A: not changed
gpg: key F88341D9: not changed
gpg: key 28AA55C5: not changed
gpg: key C808A7BF: not changed
gpg: key 00ADEBF5: not changed
gpg: key 62C48B29: not changed
gpg: key 10FDE075: not changed
gpg: Total number processed: 23
gpg:   w/o user IDs: 2
gpg:  unchanged: 21

Maybe I'm overly paranoid, but I can't help thinking about the
not-too-long-ago compromise of the Apache.org site.  Any suggestions
for how to remedy this problem?

Thanks-

Aaron



RE: tomcat und IIS

2001-02-08 Thread Aaron Knauf

We run tomcat on NT4 and Win2K.  If the ISAPI redirector has a red arrow, then 99% of the time, the error will be a typo in the registry.  One particularly hard one to track down was when a new developer cut and paste the entries into the registry from the howto doc.  He ended up with spaces at the end of entry names, which are *extremely* hard to spot with the standard font that windows uses.

We had another issue were the redirector was working, then it suddenly stopped (with the red arrow thing).  After searching for a config error, I eventually found that re-registering the dll fixed the problem (no other changes made).  I had to unload the dll from IIS, reboot the server, then reload the dll.

Hope this helps.

Cheers

---
Aaron Knauf
Implementation Consultant
Genie Systems Ltd
Auckland, New Zealand
Ph. +64-9-573 3310 x812, email: [EMAIL PROTECTED]
http://www.geniesystems.com







Randy Layman <[EMAIL PROTECTED]>
09/02/2001 10:28
Please respond to tomcat-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        RE: tomcat und IIS



        The only Win2K that I have tried on is Advanced Server.  Installed
from MSDN CD and applied SP1.  Then installed Java, WinZip, Tomcat,
isapi_redirect.dll, and jk_nt_service.  In that order.  It didn't take
anything different from Win NT.  One slightly unclear part is that on IIS
you don't have to edit the FilterDLLs registry entry - that's only for PWS.

        Maybe the account you are trying to run as is having a problem?


        Randy


-Original Message-
From: Praet Wim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: tomcat und IIS


that is: it works fine for w2k professional and IIS5.0, but it does not with
w2k advanced server and IIS5.0 (even if you add the isapi filter under the
main www server properties it keeps pointing down after an IIS restart).
Till now I've not found the error, I did everything exactly the same as I
did with w2k pro, where it worked perfect, under w2k advanced server it
simply does _not_.

regards,
Wim.

>
> That would be the Tomcat IIS HowTo. Its at
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat
> -iis-howto.htm
> l.  It says that it only works with IIS/PWS 4, but it also
> works for IIS 5.
>
>         Randy
>
> -Original Message-
> From: Erwan TROEL [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 9:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: tomcat und IIS
>
>
> do u know where i can find how o install tomcat(version?) with IIS4?
>
> -Message d'origine-
> De : Randy Layman [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 8 février 2001 14:03
> À : [EMAIL PROTECTED]
> Objet : RE: tomcat und IIS
>
>
>
>         As another current thread states, yes you can still run
> ASP and JSP,
> but you must be careful - if the pattern of the URL matches
> something in the
> config file then Tomcat will see it and not IIS's ASP engine.
>
>         Randy
>
>
> -Original Message-
> From: Erwan TROEL [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 7:59 AM
> To: [EMAIL PROTECTED]
> Subject: RE: tomcat und IIS
>
>
> In this case IIS will run only in JSP no longer in ASP?
> or will it be possible to develop in ASP and in JSP?
>
> -Message d'origine-
> De : Randy Layman [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 8 février 2001 13:16
> À : [EMAIL PROTECTED]
> Objet : RE: tomcat und IIS
>
>
>
>         Yes its possible.  Check the registry entries (case and
> white space
> matters).  Also, check that you have the full dll
> (downloading with Netscape
> will corrupt, I would recommend the zip file, just to be safe)
>
>         Randy
>
>
> -Original Message-
> From: Inga Schuetz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 7:38 AM
> To: [EMAIL PROTECTED]
> Subject: tomcat und IIS
>
>
> Hello,
>
> does someone know, if it is possible to use tomcat together
> with IIS 5 und
> Windows 2000? I have set the ISAPI Filter, and edited the
> regidtry, but I
> still have a red arrow. It says that the dll was not loaded.
>
> Inga
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
&

Re: tomcat-iis-howto

2001-02-08 Thread Aaron Knauf

I would rule out an IIS5 issue as the cause of your problem.  I use it constantly and it works with tomcat better than IIS4 does.

The 404 error has two flavours:  If it is the standard 404 error page the you get when you hit an IIS url theat doesn't exist, then your isapi redirector is configured incorrectly.  This is usually frustratingly hard to spot.  You will need to go over all of the configuration steps and double check for typos.  (Also check that the dll is successfully loaded in IIS.)

If the 404 error page is the one served up by tomcat (bigger, bolder font and less verbose,) then the issue probably just what the troubleshooting section says.

Also check you uriworkermap.properties file.  If you are using the 'advanced context configuration' for the examples context, then your URI patterns may not match html files.  E.g. your context entry looks like this:

/examples/servlet/*=ajp12
/examples/*.jsp=ajp12

As you can see, the above patterns do not match files with a .html extension.  You should create a virtual directory in IIS which maps to the root of your examples context, so that IIS can find the html files and serve them up if you want to use this configuration.


Good luck

Cheers.

---
Aaron Knauf
Implementation Consultant
Genie Systems Ltd
Auckland, New Zealand
Ph. +64-9-573 3310 x812, email: [EMAIL PROTECTED]
http://www.geniesystems.com







"Conrad Gustafson" <[EMAIL PROTECTED]>
09/02/2001 12:48
Please respond to tomcat-user

        
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        tomcat-iis-howto



Hi  there,
 
Question:  has  anybody set up tomcat to work with IIS 5.0?  I've done everything right and  it just doesn't work.  When I try to hit http://localhost/examples/jsp/index.html  I get the standard HTTP 404 error page.  The troubleshooting section just  says "make sure you typed the url correctly".
 
Could this be an IIS  5.0 issue?
 
Thanks so  much,
 
Conrad  Gustafson
eXI  Solutions
Victoria,  BC



Starting Tomcat under Netware 5.x

2001-02-14 Thread Aaron Schroeder


Could somebody tell me what I need to do to start tomcat running 
on a Netware server? I downloaded and unzipped files to the SYS 
volume, but there are only scripts for unix and win32 in the bin 
directory. I have JVM for netware, and the sdk. Do I just need to 
load the lib/webserver.jar via java on the server console? Thanks,

-Aaron Schroeder
 [EMAIL PROTECTED]


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




RE: Using a servlet superclass

2001-02-14 Thread Aaron Knauf

How about this?

1)        Declare your SuperServlet as abstract
2)        Declare an abstract method called SuperServlet.initialize()
3)        Call this.initialize() from SuperServlet.init()

That way all of your worker servlets will be forced to implement initialize().  You then have to trust your programmers to do the sensible thing and put their initialisation code there rather than in init().  You are guaranteed that both methods are called in turn when your servlet initialises.

---
Aaron Knauf
Implementation Consultant
Genie Systems Ltd
Auckland, New Zealand
Ph. +64-9-573 3310 x812, email: [EMAIL PROTECTED]
http://www.geniesystems.com







"Samson, Lyndon [IT]" <[EMAIL PROTECTED]>
13/02/2001 05:26
Please respond to tomcat-user

        
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: Using a servlet superclass



Well no simple solutions will do exactly what you want. There is nothing
special about the init method in java. It might be nice if the servlet
container promised to walk up the class hierachy calling each init as it
goes but thats not how it works.

But you could;

1.Use the java debugging interface to detect when the method init is being
called in you derived class and call the base class method.

2.Create your own Method object ( bytecode ) and replace the derived classes
init method bytecode ( is this even possible? ) giving

  newinit = function() {
    call super.init
    call oldinit
  }

  oldinit = derived.init
  derived.init = newinit



Okay, these are a bit tounge in cheek :-) Depends how much you don't want to
call super.init() I guess...



-Original Message-
From: Jill Stephenson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 1:52 AM
To: '[EMAIL PROTECTED]'
Subject: Using a servlet superclass


I have a number of servlets in my application that need to
perform common initialisation, etc.  So I was thinking of
creating a superclass that has an init method that does all
of the common work, eg.,

public class SuperServlet extends HttpServlet {
  public void init() {
    // do common initialisation stuff in here
  } // init
} // SuperServlet

Then all the workers servlets would extend SuperServlet
rather than HttpServlet, eg.,

public class WorkerServlet extends SuperServlet {
  ...
} // WorkerServlet

This seems to be OK, until I implement init in the
WorkerServlet, as the init method in the SuperServlet
does not then get invoked.  While I can call super.init()
in the WorkServlet, I want this to be handled automatically
as I can bet on someone forgetting this step, eg.,

public class WorkerServlet extends SuperServlet {
  public void init() {
    // don't want to have to make this call ==> super.init();
  } // init
  ...
} // WorkerServlet

Is there any way to implement this ?


Jill

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

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




how to disable or restrict generation of automatic configuration files

2001-02-22 Thread Aaron Titus

Hi All,

I have looked in all the online FAQ's, mailing lists, etc... and have not
been able to find the solution to the following question. When I start up
tomcat, I get a series of failures from a few java classes because its
trying to generate configuration files for apache, netscape, etc... I am
simply using this standalone on a development machine and would like to
disable this feature because I do not need those configuration files. Does
anyone know of a way to do this? I appreciate your help.

Aaron

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




Re: Tomcat class loader

2001-02-27 Thread Aaron Brashears

On Tue, Feb 27, 2001 at 04:13:08PM -, Chris Haynes wrote:
> So you have to keep stopping and starting tomcat unless you use ONLY
> simple JSP pages (with no other changing classes referred to ) and
> servlets which use only stable classes.

alternately, you can enable the manager classes by modifying the
tomcat conf, and then sending an http get to the appropriate url for
your web app. I implement this by calling wget in my makefile install
script. I don't know of an equivalent utility on windows, but here's
an example of how to do this once you've enabled the manager.

wget http://:@localhost:8080/manager/reload?path=

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




Re: PostgreSQL

2001-03-02 Thread Aaron Brashears

I've had a great experience in general using postgresql 7. The jdbc
driver that comes with it can be compiled for either jdbc1 or jdbc2
depending on your needs. I've never had an issue with the driver, but
I haven't tried using the javax.sql interfaces yet.

The only thing you should be aware of is that postgresql.jar needs to
be in your classpath when starting tomcat.


On Fri, Mar 02, 2001 at 11:02:02AM -0500, mikhail malamud wrote:
> I am compiling PostgreSQL 7.0.3 to be used with the Tomcat 3.2.1 web
> application. Does anyone have any success stories or nightmares about
> postgresql and java connectivity. What drivers did you use and why?
> Please share.

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




Connection pooling with PostgreSQL

2001-03-02 Thread Aaron Brashears

After reading and responding to a recent post about postgres, it
dawned on me that postgresql should the support jdbc2.0 calling
mechanisms which include connection pooling. In an effort to find out
how to set it up, and use it with Tomcat 4.0b1, I downloaded the
source code to the jdbc2 driver for postgresql 7.0.3.

I searched through the souce code, but only found references to pooled
connections in the XA classes and not a javax.sql.PooledConnection
implementation. This leads to a few questions:

* Has anyone used pooled connections with postgresql 7? How did you call it?

* Has anyone set up postgresql to work in harmony with tomcat through
jndi? How did you accomplish it?

Thanks.





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




ok .. where is the latest tomcat + IIS 5.0 howto ?

2001-03-07 Thread Aaron Cody



hello
I would like to know where the latest HOWTO doc is 
that describes what to download, where to put it and how to configure it for 
Tomcat and IIS on Win2000
I started looking at the IIS + Tomcat howto and it 
referred to certain properties files that have recently been removed... so I'm 
thinking i'm barking up the wrong tree with that doc
 
where's the latest info?
 
thanks
Aaron
 


Cache-control on a per-application basis

2001-03-30 Thread Dunlop, Aaron
Title: Cache-control on a per-application basis





When running Tomcat 3.2 standalone, is there a way to configure cache-control directives on a per-application basis? Or is it necessary to add cache-control, pragma no-cache, etc directives to each JSP page?

I'm migrating an app from WebSphere which defaults to sending cache-control info restricting cacheing with each request.

Thanks,
Aaron Dunlop




Aaron Dunlop
Product Development Engineer
DAT Services, TransCore Commercial Service Group
[EMAIL PROTECTED]





Thread handling in Tomcat 4.x

2002-12-04 Thread Dunlop, Aaron
Is there any scenario in which Tomcat 4.0 or 4.1 will kill off processor
threads?

I know that under apache, it is possible to limit the number of spare
processes, in which case the controller process will kill off extras when
load decreases.

Alternatively, is there any error condition under which a thread will be
considered hung or otherwise corrupted and killed off?

Our application maps certain objects on a per-thread basis, and I'm worried
that we may end up with memory leaks when objects remain referenced in our
map even though the thread they are assigned to is no longer valid. (And yes
- I know this is probably a bad design, and we're looking into some
refactoring there, but not a week before a release if we can avoid it...)

Either there hasn't been any discussion of this topic in the archives or
(more likely) I just didn't hit on the right combination of keywords to
search on. And I can't convince myself one way or that other from the code.
;)

Thanks in advance,
Aaron

-------
Aaron Dunlop
Product Development Engineer
TransCore Commercial Services, Inc.



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




  1   2   >