Using appelts with different clients

2005-06-07 Thread Heiner . Amthauer
Hi,

I want to include a java applet into a webpage, to be loaded correctly
depending on the client (ie, firefox, opera, etc., etc.). Of course, I could
check the client myself by reading http headers. However, I'm sure, that
some else already did this and there is no need to reinvent the wheel. Other
servers create the corret page by using the jsp:pluggin tag. Tomcat doesn't.
How can this be done with tomcat?

regards
Heiner


T-Systems
BU Ulm
Dipl. Ing. Heiner Amthauer
Systementwickler
Magirusstr. 39/1, D-89077 Ulm
+49 731 9344-4422 (Tel.)
+49 731 9344-4409 (Fax)
+49 177 7873405 (Mobil)
E-Mail: [EMAIL PROTECTED]
http://www.t-systems.com http://www.t-systems.com 




Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Mark Benussi
I am submitting a Struts form in my live application but the values seem to
be getting lost between my browser and the population of my ActionForm. This
only happens if the login page is the first request of the session.

 

If you click around on the site (even once) and then submit the form the
values are taken.

 

:S

 

NB This only happens in my live environment (Tomcat 5, LINUX).



Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Anto Paul
On 6/7/05, Mark Benussi [EMAIL PROTECTED] wrote:
 I am submitting a Struts form in my live application but the values seem to
 be getting lost between my browser and the population of my ActionForm. This
 only happens if the login page is the first request of the session.
 
 
 
 If you click around on the site (even once) and then submit the form the
 values are taken.
 
 
 
 :S
 
 
 
 NB This only happens in my live environment (Tomcat 5, LINUX).
 
 
 

Dont crosspost. Is there Apache infront of Tomcat ?. I have noticed
this kind of problem in Tomcat 4.1 + Apache 1.3  combination but
couldn't find the reason.
-- 
rgds
Anto Paul

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



Why I got multiple/many instance of tomcat + jvm right after I've started tomcat? ( on Red Hat Linux E 3 )

2005-06-07 Thread Mohd. Jeffry
Dear All,

I got 6 servers running rhel3 and tomcat 4.1.27. One of this servers
its tomcat is giving so many instance of tomcat and jvm but not for
other server. They are running with the same configuration as far as
tomcat and jvm is concern. Any thing else did I miss?

This is snippet of my server.xml for all server for Connector 
 
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80 minProcessors=5 maxProcessors=100
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /


A snippet of ps -aux | grep tomcat on the problematic server

[EMAIL PROTECTED] salmonprops]# ps aux | grep tomcat
root  1617  0.0  0.0  1604  508 pts/0S14:12   0:00
/usr/local/tomcat/bin/wrapper wrapper.conf
root  1619  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1620  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1621  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1622  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1623  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1624  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1625  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1626  1.4  2.1 1278556 266056 pts/0 S   14:12   0:20
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1627  1.2  2.1 1278556 266056 pts/0 S   14:12   0:17
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1628  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1629  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1630  0.0  2.1 1278556 266056 pts/0 S   14:12   0:00
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true
-Djava.awt.headless=true
root  1632  0.2  2.1 1278556 266056 pts/0 S   14:12   0:02
/usr/java/j2sdk1.4.2_02/bin/java -server
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat
-Djava.io.tmpdir=/usr/local/tomcat/temp -Dbuild.compiler.emacs=true

Re: JMX implementation - Tomcat 5.0.28

2005-06-07 Thread Jon Wingfield

That's because it's hardcoded to look for jmx.jar. One jar, singular.
Sitting on my local dev machine I've got a jmx.jar which is a 
concatenation of mx4j.jar and mx4j-tools.jar. It's a bit horrible but it 
works.


There are other ways to do it:

1)
Add your jars to the bootstrap classpath by modifying setclasspath.bat 
(assuming you're using the scripts not the service to start and stop tc).


2)
According to the release notes you can also change the manifest file in 
the bootstrap.jar to point to your own jmx implementations.


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES.txt
(just above the Tomcat 5.0 and XML Parsers section)

HTH,

Jon

Jimmy Ray wrote:

I was ruinning 5.0.28 on Windows, but now it wont
start.  I get this message:

Due to new licensing guidelines mandated by the Apache
Software
Foundation Board of Directors, a JMX implementation
can no longer
be distributed with the Apache Tomcat binaries. As a
result, you
must download a JMX 1.2 implementation (such as the
Sun Reference
Implementation) and copy the JAR containing the API
and
implementation of the JMX specification to:
${catalina.home}/bin/jmx.jar

I have downlaoded the implementation and placed th
files in the correct bin directory, but I still get
this error.

Any one else tackled this issue.

Regards,

Jimmy Ray



__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html


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





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



Re: Urgent: how to detect client has closed connection

2005-06-07 Thread Ronald Klop

Sorry,

But I have no more suggestions. I would have to debug it myself than and don't 
have the time for that. Maybe somebody else on the list can tell you more. 
Maybe posting some snippets of code helps.

Ronald.

On Thu Jun 02 22:25:12 CEST 2005 lapson lee [EMAIL PROTECTED] wrote:

Hey Ronald,

Thanks for your help. I checked the code. I use default out.. and it indeed 
was using javax.servlet.jsp.JspWriter, but it does not throw an IOException. 
Do you know why?


Thanks in advance...

Luke




From: Ronald Klop [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Urgent: how to detect client has closed connection
Date: Wed, 1 Jun 2005 14:14:08 +0200 (CEST)

What Writer are you using? If you do response.getWriter() you will get a 
PrintWriter and the docs tell you that PrintWriter doesn't throw 
exceptions, so your app keeps printing to the writer after an error. (A 
closed connection is an IOException.)
If you use the default out property of a jsp page you get a JspWriter which 
does throw exeptions on error.


Ronald.

On Tue May 31 19:42:30 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:

Hey guys,

I have a problem right now. I wrote a Jsp page to keep sending data to 
client browser. However, no exception was thrown when I use out.print() to 
send something to client even after client has closed his web browser. My 
question is how can i know his browser is closed, so I can stop sending.
Also, from the tomcat logs, the reset by peer socket exception was 
thrown by Tomcat. however, seems i don't have a way to catch it.


Can anybody help me with this one... I will be really thankful to any help 
from you.


Thanks,
Luke

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/






RE: accessing webapp via proxy

2005-06-07 Thread Jan Behrens
Anyone???

Hello list,

we are currently in the pretest stage for a webapp we build for a customer 

situated at various locations. We got reports that our app could not be 
accessed by a number of testers who are connecting through a proxy. The 
funny thing is, they can access the first page (therefore can connect to 
the url and port 8080). The login then fails with a valid user account, 
the login data is stored in the session and requires cookies (which are 
enabled).

I have talked to the admins on the other side and as far as they know 
everything should be working... Has anyone experienced something similar? 
The archives are full of proxy questions, unfortunately all I found 
regarded other aspects of proxied connections :( I assume that this is not 

really Tomcat related but still hope that someone has an idea as to where 
to look for an answer.

Our setup: TC 5.0.28 @ 8080 on Suse 9 EE (Kernel 2.6.8-24.14-smp) with SDK 

1.4.2_06-b03

TIA,

Jan

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



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



RE: apache2+mod_jk + ssl: howto

2005-06-07 Thread faisal
1. The default httpd that ships in with FC3 i dont exactly remember its
version but it's 2.x.x or something.
2. mod_jk2.
3. What i meant was when ur switching between ports in ur web application.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Monday, June 06, 2005 3:28 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:

Apache web server's SSL certificate was already configured by our client so
i did't ve to configure anything on apache. But we did configure SSL on
tomcat.

When redirecting, redirect through apache web server's port instead of
tomcat's port, because now your requests are being processed by apache web
server not tomcat. I also made this mistake of redirecting to tomcat's
ports
whenever switching between SSL to Non-SSL ports.

We are using tomcat 5.5.9.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 4:27 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:



i used mod_jk2 when i was integrating tomcat with apache2. i also tried my
hands on mod_jk and i find mod_jk2 a bit simpler of the two.



I have been using mod_jk2 to forward requests on the httpd2 web server
to tomcat4 successfully - but this was before I tried to implement SSL.
Now that I am looking at how to configure things, I read that jk2 is no
longer supported and that all the new features unique to jk2 have been
included in jk. Seeing as you have it working,  lets assume for the rest
of this thread that I still want to get it working with jk2.



regarding SSL, ur gonna ve to enable SSL on both server.



Does that mean generating the key stuff on both machines?



apache2 on fedora
core 3 comes SSL ebabled so i did't ve to do anything there.



I thought my httpd was SSL-enabled too but I couldn't find any ssl.conf
on my htttp machine. I found a mod_ssl.so file but no config. I didn't
know what to do about it.



my java web
application used SSL for user logins so i had to configure my tomcat to
enable SSL (java jeystore and tomcat server.xml and stuff.)



This I did too and could access the tomcat install and successfully use
SSL in my app but I was still (and still am) stuck with setting up an
ssl-enabled httpd server and configuring it to act as a front to my
tomcat servlet engine.



be carefull when redirecting user requests to HTTP to SSL or SSL to HTTP
port on ur tomcat. use Apache web server ports instead of tomcat's
port(which are 80 for http and 443 for https.)




why?



how ur gonna integrate Apache web server - tomcat??
u dont. AJPConnetor13 does it for u.

u only ve to configure ur apache server to use mod_jk2 for ur web app
requests. tomcat handles everything out of box(atleast newer one which we
uses.)




which version of tomcat are you using?

Thanks!
jfc



-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 1:54 PM
To: tomcat-user
Subject: apache2+mod_jk + ssl: howto


Hi,

My environment: linux 2.4.22, httpd2 running on its own machine with an
appropriate mod_jk module, tomcat4.1.24+jboss3 running on a seperate
machine.

I have searched this list for an answer to my question but so far have
come up empty handed. My question is simply, 'If I want to front an
instance of tomcat with an instance of apache httpd and to enable my
java webapps to use ssl, do I need to configure httpd for ssl or do I
need to configure tomcat for ssl?'.

Any help will be much appreciated.

jfc


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





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









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





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




ok, let me just get a few things straight.

1. What version of Apache httpd are you using?
2. What version of mod_jk are you using?
3. When you say 'redirect' do you mean the directives in the workers
properties file?

Thanks
jfc


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





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



Mix form based and basic authentication in one web-app?

2005-06-07 Thread stephan
Hi there,

I have two servlets. One is configured to listen to /forms/* and the 
other to /documents/*.
I configured a security realm, so users need to use form based 
authentication when accessing /forms/*.
Can I, in the same web.xml configure a second security realm that uses 
basic authentication? We need the basic since the /documents/* servlet 
serves webDAV and Webfolders doesn't do form based authentication. Would 
that work?
:-) stw

Lucene+ParseFile

2005-06-07 Thread Zakaria KHABOT




Hi all,
Will using 'lucene' I want to get a brief resume from the document in
witch the term of search exist, like this:

  

  
  1resultatstrouvs,
classparrelvement
  
  
  Nonbreavecdate
  Masquersommaires
  regrouperparlocation
  
  
  1-1
  

  



Microsoft
Word - CPS version dfinitive.doc
 ...  optimiser lutilisation des ressources,  entretenir la motivation des ressources humaines et  faire vivre ...
et de la valorisation des ressources
humaines. Partant des acquis constats ... 
file:///C|/Aide on line/docs/CPS %E9tude
de la d%E9pense publique.pdf
- 75.0KB
 - GIPE1


I got the title, the path of the file but not
the paragraph containing the term of search.
I am using the 'getSummary()' Method but it doesn't give me the text
wanted.
Can someone help me.
Thanks






war redeployment problem

2005-06-07 Thread Sergey Pariev

Hello.
   Sometimes while redeploing my app in tomcat I'm getting the 
following error in catalina.out :


ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
ContextLoader.initWebApplicationContext(182) | Context initialization 
failed

java.lang.InternalError: jzentry == 0,
jzfile = 141476144,
total = 41,
name = /home/serega/tomcat/webapps/pcc/WEB-INF/lib/pcc-dao.jar,
i = 9,
message = invalid LOC header (bad signature)
   at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430)
   at java.util.zip.ZipFile$3.nextElement(ZipFile.java:416)
   at java.util.jar.JarFile$1.nextElement(JarFile.java:214)
   at java.util.jar.JarFile$1.nextElement(JarFile.java:213)
   at 
org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:322) 




It can be cured only by restarting tomcat and happens 2 or 3 times a day 
on regular basis.


I'm using Tomcat 5.0.29 and set reloadable=true in context.xml. I 
think  it is issue with tomcat prematurely reloading wars, but I'm not 
completely sure. I've searched tomcat-user mailing list on this error 
but haven't found anything useful (a couple of unanswered posts  - for 
example,
http://marc.theaimsgroup.com/?l=tomcat-userm=111398635120733w=2 and 
http://marc.theaimsgroup.com/?l=tomcat-userm=101183791105101w=2

).
I also asked this question in Appfuse mailing list 
(https://appfuse.dev.java.net/servlets/ReadMsg?listName=usersmsgNo=6997) 
and it looks like no one really knows how to workaround it.


Is this problem can be solved somehow or may be I should post this as a 
bug in Bugzilla ?


Thanks in advance, Sergey

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



Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Gessendorfer, Thomas
Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


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



RE: Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Raghupathy,Gurumoorthy
Change 
From   DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
To  DocumentRoot c:/Apache/Apache2/htdocs

Regards
Guru

-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 11:43
To: tomcat-user@jakarta.apache.org
Subject: Virtual host, workers file and httpd.conf settings for SSL


Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


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

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



RE: Module jk2 and jk Connectormodules

2005-06-07 Thread luc_boudreau
I've configured lately such a configuration. I first tried to use the
jk2 module, but soon discovered that it was deprecated and much more
complex to use. I really recommend using jk. 

There are big differences in the configuration directives required in
the httpd.conf by jk and jk2. Since I've never succeded in installing
jk2, I'll provide you with instructions regarding jk.


First, in httpd.conf, load your module :

LoadModule jk_module modules/mod_jk.so


Then, protect your WEB-INF directories :

Directory c:/Tomcat5/webapps/exampleApp/WEB-INF
Options -Indexes FollowSymLinks
Deny from all
/Directory


Then, between section 2 and 3 of httpd.conf, add the jk configuration :

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat  %a %b %d %Y - %H:%M:%S  -=- 


Create an alias :

Alias /exampleApp c:/Tomcat5/webapps/exampleApp


Define which files are to be served by Tomcat :

JkMount / exampleApp/*.jsp tomcat5
JkMount / exampleApp/*.do tomcat5

(Note that here, tomcat5 refers to the name of the worker as defined
in the workers.properties file. See below for details)


Create two empty log files within the conf directory of apache with 777
rights :

mod_jk.log and jk-tomcat5.log


Create a workers.properties file in your Apache/conf directory and add
this :

ps=/
worker.list=tomcat5

worker.tomcat5.port=8008
worker.tomcat5.host=localhost
worker.tomcat5.type=ajp13
worker.tomcat5.lbfactor=1

(This is a VERY simple configuration file. Refer to the Apache Jakarta
webpage for details on how to configure this file.)



In your Tomcat server.xml file, under the line :
Server port=8005 shutdown=SHUTDOWN debug=1\
Add the following :

Listener className=org.apache.jk.config.ApacheConfig
configHome=c:\Tomcat5\
modJk=c:\Apache2\modules\mod_jk.so
jkWorker=tomcat5
forwardAll=False
jkLog=c:\Apache2\logs\jk-tomcat5.log
jkDebug=debug
noRoot=False
workersConfig=c:\Apache2\conf\workers.properties /


At last, inside the Service (...) tag, add:

Connector
port=8008
protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector



There you are ! It took me three days to figure that out, hope it serves
you well !

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



Tomcat, SSL, IE, and .pdf downloads

2005-06-07 Thread Panichi, Mary-Beth
Greetings ~

We're having issues downloading .pdf files in SSL.  I've been all over
the web trying to find solutions.  The issue appears to be interaction
between Tomcat and InternetExplorer.  IE appears to be corrupting the
pdf files.  There's an IE patch out there, but we've patched past that.
The fix that they list, to uncheck the don't allow encrypted data to be
cached to disk,  works, but it's a setting that for security reasons we
don't want to leave unchecked.

I've tried all manner of setting headers for cache-control, etc..  We're
dynamically generating the .pdf files, and streaming them to the jsp
page.   I've tried also saving the pdf's physically to the server and
then getting them, but that didn't work either.

Has anyone run into this issue?  Does anyone have a solution?  I've seen
lots of suggestions out there, but nothing that actually works.

Thanks!

Mary Beth Panichi


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



AW: Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Gessendorfer, Thomas

Then I see the starting page of the Apache2 Installation...

Regards,

Tom

-Ursprüngliche Nachricht-
Von: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 13:07
An: 'Tomcat Users List'
Betreff: RE: Virtual host, workers file and httpd.conf settings for SSL

Change 
From   DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
To  DocumentRoot c:/Apache/Apache2/htdocs

Regards
Guru

-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 11:43
To: tomcat-user@jakarta.apache.org
Subject: Virtual host, workers file and httpd.conf settings for SSL


Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


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

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





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



RE: Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Raghupathy,Gurumoorthy
The do 
JkMount /*.jsp worker1

Restart both the servers 
and say https://yourservername/index.jsp 

Regard
Guru


-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 12:28
To: Tomcat Users List
Subject: AW: Virtual host, workers file and httpd.conf settings for SSL



Then I see the starting page of the Apache2 Installation...

Regards,

Tom

-Ursprüngliche Nachricht-
Von: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 13:07
An: 'Tomcat Users List'
Betreff: RE: Virtual host, workers file and httpd.conf settings for SSL

Change 
From   DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
To  DocumentRoot c:/Apache/Apache2/htdocs

Regards
Guru

-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 11:43
To: tomcat-user@jakarta.apache.org
Subject: Virtual host, workers file and httpd.conf settings for SSL


Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


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

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





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

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



How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed?

2005-06-07 Thread Harland, David
How do you set the session timeout in tomcat so that the session only
timeouts when the browser is closed?

This e mail is from DLA Piper Rudnick Gray Cary UK LLP.

The contents of this email and any attachments are confidential to the intended 
recipient. They may not be disclosed to or used by or copied in any way by 
anyone other than the intended recipient. If this email is received in error, 
please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 
quoting the name of the sender and the email address to which it has been sent 
and then delete it.

Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender 
accept any responsibility for viruses and it is your responsibility to scan or 
otherwise check this email and any attachments. 

DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership 
registered in England and Wales (registered number OC307847) which provides 
services from offices in England, Belgium, Germany and the People's Republic of 
China.  A list of members is open for inspection at its registered office and 
principal place of business 3 Noble Street, London EC2V 7EE.  Partner denotes 
member of a limited liability partnership.

DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a 
member of DLA Piper Rudnick Gray Cary, a global legal services organisation, 
the members of which are separate and distinct legal entities.  For further 
information, please refer to www.dlapiper.com.




RE: How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed?

2005-06-07 Thread Peter Crowther
 From: Harland, David [mailto:[EMAIL PROTECTED] 
 How do you set the session timeout in tomcat so that the session only
 timeouts when the browser is closed?

You don't.  There is no way in any Web architecture of reliably
detecting whether a browser has closed, or whether it has merely
disconnected from the server for now and will be reconnecting later.
This is a generic problem with any stateful browser-based application
and is not specific to Tomcat.

- Peter

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



RE: war redeployment problem

2005-06-07 Thread Caldarale, Charles R
 From: Sergey Pariev [mailto:[EMAIL PROTECTED] 
 Subject: war redeployment problem
 
  message = invalid LOC header (bad signature)
 at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430)
 
 I'm using Tomcat 5.0.29 

But what OS and JDK level are you using? I have a vague memory of a
problem in early Sun 1.4 JDKs with zip file handling.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed?

2005-06-07 Thread Anto Paul
On 6/7/05, Harland, David [EMAIL PROTECTED] wrote:
 How do you set the session timeout in tomcat so that the session only
 timeouts when the browser is closed?
 

Possible solution may be to refresh the page frequently and set a
short interval for session time out. You might use a frame for this.
If you use the AJAX approach to develop web applications it will be
easy. I hadnt seen GMail session expired.

-- 
rgds
Anto Paul

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



Re: war redeployment problem

2005-06-07 Thread Sergey Pariev

Caldarale, Charles R :

From: Sergey Pariev [mailto:[EMAIL PROTECTED] 
Subject: war redeployment problem


message = invalid LOC header (bad signature)
   at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430)

I'm using Tomcat 5.0.29 
   



But what OS and JDK level are you using? I have a vague memory of a
problem in early Sun 1.4 JDKs with zip file handling.

 

I'm currently using Slackware Linux 2.6.11 and Sun JDK 1.5.0_03, but 
IFAIK other people have experienced this problem on the other OS'es -

https://appfuse.dev.java.net/servlets/ReadMsg?list=usersmsgNo=6998

Thanks, Sergey.



- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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

 




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



Buggy .war in 5.5.9 binary distribution

2005-06-07 Thread Alexander Fairley
Hello all,

I've been playing around with the samples in the 5.5.9 distribution,
and the .war available from the internal link:
http://localhost/tomcat-docs/appdev/sample/sample.war
doesn't autodeploy when placed in webapps. Furthermore, attempting to
extract it with jar (fastjar) 0.92-gcc throws the following java.zip
exception:
  created: META-INF/
extracted: META-INF/MANIFEST.MF
java.util.zip.ZipException: invalid entry size (expected 975 but got 470 bytes)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at sun.tools.jar.Main.extractFile(Main.java:714)
at sun.tools.jar.Main.extract(Main.java:677)
at sun.tools.jar.Main.run(Main.java:189)
at sun.tools.jar.Main.main(Main.java:903)
[EMAIL PROTECTED] webapps]# jar -xvf sample.war

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



Client authentication using Keystores...

2005-06-07 Thread Manuel Gil Perez

Hi all,

I would like to enrol my server to accept authenticated connections from 
authorized parties using X.509 certificates. I follow the instructions 
indicated in SSL Configuration HOW-TO 
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html) and I 
generate my keystore file with the certificate/private key of the web server 
and the CA certificate.


The client authentication only works if I add the CA certificate into the 
$JAVA_HOME/jre/lib/security/cacerts. If the Tomcat keystore contains the CA 
certificate but not the JDK keystore... the client authentication fails.


Can somebody tell me how can I manage these keystores and to add only the CA 
certificate in the Tomcat keystore... leaving the original JDK keystore 
intact??


Thanks!

--
Manuel Gil Pérez 




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



Re: pageContext.getException() always null

2005-06-07 Thread Konrad Bernstein
Seems to me like a pure Tomcat-issue.
Downloaded and tested a couple of TC versions (5.0.28, 5.0.30 beta).
Same result: pageContext.getException() always returns null.

I then built Tomcat on my own (via
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/build.xml)
and everything worked fine there.

Looking at the source of class PageContextImpl made clear, that
the version has changed. The new implementation of method getException()
now uses JspRuntimeLibrary.getThrowable(request) instead of
request.getAttribute(PageContext.EXCEPTION)

This comes down to returning the request attribute
javax.servlet.error.exception instead of javax.servlet.jsp.jspException.

So, if you use code like

Throwable error = (Throwable)
request.getAttribute(javax.servlet.error.exception)
instead of
pageContext.getException()

you should be fine.

However, looks like a TC bug to me, that only occurs if you setup your
error pages by
the error-tag within web.xml (not by using the page directive
errorPage). pageContext.getException()
only returns what is saved under attribute
javax.servlet.jsp.jspException. But this attribute is
not set, if you're throwing from a Servlet, for instance (as with Struts
etc.).

Have fun,
Konrad

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



JAVA_OPTS??

2005-06-07 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
I really apologize if this has been answered previously but I cannot find any 
definative documentation on the JAVA_OPTS option.  I would like to bring myself 
up to date on what might be accomplished using this setting.

TIA

SB

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



RE: JAVA_OPTS??

2005-06-07 Thread Peter Crowther
 From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] 
 I really apologize if this has been answered previously but I 
 cannot find any definative documentation on the JAVA_OPTS 
 option.  I would like to bring myself up to date on what 
 might be accomplished using this setting.

Using JAVA_OPTS, you can pass any options *directly to the Java virtual
machine* on which you are running Tomcat.  Some of these options are
standard, others are VM-specific.  If you want to know the details,
check the documentation for your particular JVM - if it can be passed an
option, you can pass it in JAVA_OPTS.

- Peter

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



Re: JAVA_OPTS??

2005-06-07 Thread Matt Galvin
 Using JAVA_OPTS, you can pass any options *directly to the Java virtual
 machine* on which you are running Tomcat.  Some of these options are
 standard, others are VM-specific.  If you want to know the details,
 check the documentation for your particular JVM - if it can be passed an
 option, you can pass it in JAVA_OPTS.
 
 - Peter

Like for example if you want to run your Sun Java VM in server mode
you would say (which I usually do):

export JAVA_OPTS= -server 

Hope this helps,

Matt

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



Logging Server Responses

2005-06-07 Thread TK
Hi,
I'm looking for ways to log server (Tomcat) responses so that I could
figure out the time taken (in ms) for Tomcat to process a client
request. The information I need to record include:

1. Request ID (e.g. client IP address and object requested),
2. Date and time (in ms) the request is received, 
3. Date and time (in ms) the corresponding response is sent.

Thank you.

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



Re: Logging Server Responses

2005-06-07 Thread Tim Funk
See 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html


In particular:
%D - Time taken to process the request, in millis
%T - Time taken to process the request, in seconds

Otherwise use a filter and rely on:
%{xxx}r

-Tim

TK wrote:


Hi,
I'm looking for ways to log server (Tomcat) responses so that I could
figure out the time taken (in ms) for Tomcat to process a client
request. The information I need to record include:

1. Request ID (e.g. client IP address and object requested),
2. Date and time (in ms) the request is received, 
3. Date and time (in ms) the corresponding response is sent.




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



RE: Buggy .war in 5.5.9 binary distribution

2005-06-07 Thread Caldarale, Charles R
 From: Alexander Fairley [mailto:[EMAIL PROTECTED] 
 Subject: Buggy .war in 5.5.9 binary distribution
 
 I've been playing around with the samples in the 5.5.9 distribution,
 and the .war available from the internal link:
 http://localhost/tomcat-docs/appdev/sample/sample.war
 doesn't autodeploy when placed in webapps. Furthermore, attempting to
 extract it with jar (fastjar) 0.92-gcc throws the following java.zip
 exception:
   created: META-INF/
 extracted: META-INF/MANIFEST.MF
 java.util.zip.ZipException: invalid entry size (expected 975 
 but got 470 bytes)
 at 
 java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)

I just downloaded a fresh copy of the 5.5.9 zip distribution, installed
it, examined sample.war, and extracted everything from it - with no
problems.  Did you verify the checksums of your download?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Buggy .war in 5.5.9 binary distribution

2005-06-07 Thread Ben Souther
I just deployed the one that shipped with 5.5.9 as well.
At one point that war file was corrupted but I know the issue was fixed
before 5.5.9.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32382







On Tue, 2005-06-07 at 10:57, Caldarale, Charles R wrote:
  From: Alexander Fairley [mailto:[EMAIL PROTECTED] 
  Subject: Buggy .war in 5.5.9 binary distribution
  
  I've been playing around with the samples in the 5.5.9 distribution,
  and the .war available from the internal link:
  http://localhost/tomcat-docs/appdev/sample/sample.war
  doesn't autodeploy when placed in webapps. Furthermore, attempting to
  extract it with jar (fastjar) 0.92-gcc throws the following java.zip
  exception:
created: META-INF/
  extracted: META-INF/MANIFEST.MF
  java.util.zip.ZipException: invalid entry size (expected 975 
  but got 470 bytes)
  at 
  java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
 
 I just downloaded a fresh copy of the 5.5.9 zip distribution, installed
 it, examined sample.war, and extracted everything from it - with no
 problems.  Did you verify the checksums of your download?
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Using Jacorb through Tomcat

2005-06-07 Thread Adam Wynne
Hi,

Does anyone know how to use Jacorb through Tomcat?  I read that I need
to pass the Jacorb command line options to Tomcat at startup, but
can't find which script to add them to.  Any advice is appreciated.  I
am using tomcat41.

Thanks!

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



Re: JAVA_OPTS??

2005-06-07 Thread Paul
Scott, the JAVA_OPTS parameter are used to pass different startup  
configuration options to the Java Virtual Machine.  Most commonly it's 
probably used to speficify the RAM used by the VM and to fine tune your 
GC (Garbage Collection) settings.  There are both standard and 
non-standard options.  The non-standard ones are prefixed with an X 
and may not be supported by every java VM and can change without 
notice.  There are also XX options that are even more specific to the 
system your running on and may require special access to use.


Check out
http://java.sun.com/docs/hotspot/VMOptions.html

There is more info about them on the sun site.

Regards,
-Paul


BATCHELOR, SCOTT (CONTRACTOR) wrote:


I really apologize if this has been answered previously but I cannot find any 
definative documentation on the JAVA_OPTS option.  I would like to bring myself 
up to date on what might be accomplished using this setting.

TIA

SB

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


 




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



Realm problems! 4.1 vs. 5.5

2005-06-07 Thread Søren Blidorf
Hi.

I am upgrading my 4.1 server to 5.5 and am having problems with the
realm:

Context path=/xx docBase=xxx debug=0 reloadable=true
Realm name=UMRealm className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
connectionURL=jdbc:microsoft:sqlserver://xxx;DatabaseName=xxx;ProgramNa
me=xx; connectionName=xx connectionPassword=xx
userTable=users userNameCol=username userCredCol=password
userRoleTable=user_roles roleNameCol=rolename //Context

I am connecting to a MS SQL server 2000 and it worked just fine with the
4.1 server.

Any idears?

Soren, DK
Nolas Consulting




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



Re: Using Jacorb through Tomcat

2005-06-07 Thread Jason Bainbridge
On 6/7/05, Adam Wynne [EMAIL PROTECTED] wrote:
 Hi,
 
 Does anyone know how to use Jacorb through Tomcat?  I read that I need
 to pass the Jacorb command line options to Tomcat at startup, but
 can't find which script to add them to.  Any advice is appreciated.  I
 am using tomcat41.

Uhm did you even look for an answer first?

http://www.jacorb.org/TomcatHowto.html

I had no idea what Jacorb was, a google found their site and a click
on the documentation link found the above.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: Disabling put and delete http methods...

2005-06-07 Thread Peter Fellwock
There is not switch at the tomcat configuration level? 

I know apache has one limit where you can specify to block http
methods...

-peter

-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 06, 2005 10:04 PM
To: Tomcat Users List
Subject: Re: Disabling put and delete http methods...

On 6/7/05, Peter Fellwock [EMAIL PROTECTED] wrote:
 Tomcat Gurus:
 
 
 
 How can I disable put and delete http methods?
 

Putting a security constraint in web.xml works. Try this in
applications web.xml. Usually it will be last element in the web.xml.

security-constraint
web-resource-collection
web-resource-nameDisallowed Location/web-resource-name
url-pattern*/url-pattern
http-methodDELETE/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
 /security-constraint


-- 
rgds
Anto Paul

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


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



Re: Using Jacorb through Tomcat

2005-06-07 Thread Adam Wynne
Hi Jason,

Thanks for the response.  Yes, I saw that doc but it appears to be
outdated.  That's why I was wondering if anyone has done this with a
more recent version.



On 6/7/05, Jason Bainbridge [EMAIL PROTECTED] wrote:
 On 6/7/05, Adam Wynne [EMAIL PROTECTED] wrote:
  Hi,
 
  Does anyone know how to use Jacorb through Tomcat?  I read that I need
  to pass the Jacorb command line options to Tomcat at startup, but
  can't find which script to add them to.  Any advice is appreciated.  I
  am using tomcat41.
 
 Uhm did you even look for an answer first?
 
 http://www.jacorb.org/TomcatHowto.html
 
 I had no idea what Jacorb was, a google found their site and a click
 on the documentation link found the above.
 
 Regards,
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com


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



incomplete WAR expansion on redeployment

2005-06-07 Thread Matt Tucker

Hello,

I have a WAR that I'm deploying via the tomcat ant deployer:

deploy url=${manager.url} username=${manager.username} 
password=${manager.password}

   path=/ war=${build.webstore.dir}/webstore.war update=true /

The first time it's deployed, everything works fine. On subsequent 
redeploys, the expanded WAR file is incomplete and, therefore, my app 
won't run. Has anyone run into a problem like this?


Right now, my only lead is that I'm getting the following exception on 
redeploy:


SEVERE: ClassNotFoundException while loading persisted sessions: 
java.lang.ClassNotFoundException: com.thoughtbot.webstore.form.CartForm


First of all, am I getting this Exception because CartForm is not 
serializable or is it a ClassLoader problem? Secondly, would this type 
of error on redeploy cause the behavior I'm seeing? Thanks a lot, any 
help would be greatly appreciated.


PS I've encountered the same problem copying the war to the webapps 
directory by hand so I don't think it has anything do with the ant task.


--
Matt Tucker
thoughtbot

cell: 617 775 0742
office: 617 876 4780
www.thoughtbot.com



Servlet Concurrency Issues

2005-06-07 Thread Michael Pasko
I've recently developed a servlet that connects to an AS/400, and returns
results off an sql query based off criteria submitted by a form.  I've had
pretty much exclusive use of the Tomcat server during development, but when
I started allowing other users on it, I stumbled on some problems.
Basically what happens, when user A submits the form, and then 2 seconds
later user B submits the same form.  User A stops getting results, and User
B receives the output for his request as well as the end of User A's
request.  User A is on a different computer than B and both have different
session ID's.  I'm sure this is a configuration error on my part, but would
appreciate a direction on where to look.
 
PS - I create a session if it doesn't exist, and store the username and DB
connection in it.  (Will use JNDI later) 
 
 
 
 
I'm using Tomcat 5.5.7


RE: Servlet Concurrency Issues

2005-06-07 Thread Caldarale, Charles R
 From: Michael Pasko [mailto:[EMAIL PROTECTED] 
 Subject: Servlet Concurrency Issues
 
 I started allowing other users on it, I stumbled on some problems.
 Basically what happens, when user A submits the form, and then 2 
 seconds later user B submits the same form.  User A stops getting 
 results, and User B receives the output for his request as well as
 the end of User A's request.

Probably not a configuration problem but rather implementation errors in
your servlet or some related object (such as the DB connection).
There's normally only one copy of the servlet object, and it will be
used concurrently by multiple threads.  Make sure you're not storing
request-specific information in there.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: JMX implementation - Tomcat 5.0.28

2005-06-07 Thread Jimmy Ray
I fixed this by adding the jmxri.jar to the
C:\Sun\AppServer\jdk\jre\lib\ext path on my test
box.

Regards,

Jimmy Ray

--- Jon Wingfield [EMAIL PROTECTED] wrote:

 That's because it's hardcoded to look for jmx.jar.
 One jar, singular.
 Sitting on my local dev machine I've got a jmx.jar
 which is a 
 concatenation of mx4j.jar and mx4j-tools.jar. It's a
 bit horrible but it 
 works.
 
 There are other ways to do it:
 
 1)
 Add your jars to the bootstrap classpath by
 modifying setclasspath.bat 
 (assuming you're using the scripts not the service
 to start and stop tc).
 
 2)
 According to the release notes you can also change
 the manifest file in 
 the bootstrap.jar to point to your own jmx
 implementations.
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES.txt
 (just above the Tomcat 5.0 and XML Parsers
 section)
 
 HTH,
 
 Jon
 
 Jimmy Ray wrote:
  I was ruinning 5.0.28 on Windows, but now it wont
  start.  I get this message:
  
  Due to new licensing guidelines mandated by the
 Apache
  Software
  Foundation Board of Directors, a JMX
 implementation
  can no longer
  be distributed with the Apache Tomcat binaries. As
 a
  result, you
  must download a JMX 1.2 implementation (such as
 the
  Sun Reference
  Implementation) and copy the JAR containing the
 API
  and
  implementation of the JMX specification to:
  ${catalina.home}/bin/jmx.jar
  
  I have downlaoded the implementation and placed th
  files in the correct bin directory, but I still
 get
  this error.
  
  Any one else tackled this issue.
  
  Regards,
  
  Jimmy Ray
  
  
  
  __ 
  Discover Yahoo! 
  Stay in touch with email, IM, photo sharing and
 more. Check it out! 
  http://discover.yahoo.com/stayintouch.html
  
 

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

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



OpenEJB JNDI issue -

2005-06-07 Thread Jimmy Ray
I am trying to use openEJB 0.9.2 with Tomcat 5.0.28 on
W2K with the Sun 1.4.2 JDK.

I can
test everything OK with the call to
http://localhost:8080/openejb_loader-0.9.2/;.  I can
even lookup my bean.  Now when I try the JSP or
servlet I seem to be getting a JNDI NamingException,
Naming Exception - Name ejb/hello not found. 

In the past, to get JNDI working for DBCP, I have had
to have a servlet.xml, web.xml and app_nam.xml file
entry for this JNDI resource.  Below is the code I am
trying.

Regards,

Jimmy Ray

THE JSP:
%@ page import=org.acme.HelloObject,
 org.acme.HelloHome,
 javax.naming.InitialContext,
 javax.naming.Context%

html
head
titleOpenEJB -- EJB for Tomcat/title
/head

body
%
Context initCtx = new InitialContext();

Object object =
initCtx.lookup(java:comp/env/ejb/hello);

if (object != null) {
HelloHome helloHome = (HelloHome)
javax.rmi.PortableRemoteObject.narrow(object,
HelloHome.class);
HelloObject bean = helloHome.create();
out.println(bean.sayHello());
}

%
/body
/html

THE SERVER.XML ENTRY:
Context docBase=${catalina.home}/webapps/EJB
path=/EJB

Ejb name=ejb/hello
 type=Session
 home=org.acme.HelloHome
 remote=org.acme.Hello/
ResourceParams name=ejb/hello
parameter
namefactory/name
   
valueorg.openejb.client.TomcatEjbFactory/value
/parameter
parameter
   
nameopenejb.naming.factory.initial/name
   
valueorg.openejb.client.LocalInitialContextFactory/value
/parameter
parameter
   
nameopenejb.naming.security.principal/name
valueAdmin/value
/parameter
parameter
   
nameopenejb.naming.security.credentials/name
valuepass/value
/parameter
parameter
   
nameopenejb.naming.provider.url/name
valuelocalhost:4201/value
/parameter
parameter
nameopenejb.ejb-link/name
valueHello/value
/parameter
/ResourceParams
  
  /Context

The web.xml entry for the EJB webapp:
ejb-ref
  description
  EJB Reference to the bean deployed to
OpenEJB
  /description
  ejb-ref-nameejb/hello/ejb-ref-name
  ejb-ref-typeSession/ejb-ref-type
  homeorg.acme.HelloHome/home
  remoteorg.acme.Hello/remote
  /ejb-ref

The application xml entry in the EJB.xml in
$CATALINA_HOME/conf/catalina/localhost:

?xml version='1.0' encoding='utf-8'?
Context crossContext=true debug=9
displayName=EJB docBase=EJB path=/EJB
workDir=c:/tomcat-5.0.28/work/Catalina/localhost/EJB
  Logger
className=org.apache.catalina.logger.FileLogger
directory=c:/tomcat-5.0.28/webapps/EJB/logs
prefix=EJB_log. suffix=.txt timestamp=true
verbosity=4/
  ResourceLink global=ejb/hello name=ejb/hello
type=org.acme.Hello/
/Context

THE SERVLET:
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Properties;

import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.acme.HelloHome;
import org.acme.HelloObject;

/*
 * Created on Jun 7, 2005
 */

/**
 * @author rayj
 * @version 1.0
 */
public class TestHelloEJBServlet extends HttpServlet {



/** Processes requests for both HTTP
codeGET/code and codePOST/code methods.
 * All the real work happens here.
 * @param request servlet request
 * @param response servlet response
 * @throws ServletException if an error occurred
 * @throws IOException if an error occurred
 */
protected void processRequest(HttpServletRequest
req,
HttpServletResponse res) throws
ServletException, IOException {

res.setContentType(text/html);
PrintWriter out = res.getWriter();
out.println(html);
out.println(head);
out.println(titleServlet/title);
out.println(/head); 
out.println(body);
   
Properties p = new Properties();

//The JNDI properties you set depend
//on which server you are using.
//These properties are for the Remote Server.
/*p.put(java.naming.factory.initial,
   
org.openejb.client.RemoteInitialContextFactory);
p.put(java.naming.provider.url,
127.0.0.1:4201);
p.put(java.naming.security.principal,
Admin);
p.put(java.naming.security.credentials,
pass);*/

p.put(java.naming.factory.initial,
org.openejb.client.LocalInitialContextFactory);
p.put(openejb.home,
C:\\Programs\\openejb-0.9.2);

try {
//

Re: Using appelts with different clients

2005-06-07 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

Other
servers create the corret page by using the jsp:pluggin tag. Tomcat doesn't.


In what way does Tomcat not support this? As far as I am aware it does 
in both 4.1.x and 5.5.x


Mark

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



Re: Mix form based and basic authentication in one web-app?

2005-06-07 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

Hi there,

I have two servlets. One is configured to listen to /forms/* and the 
other to /documents/*.
I configured a security realm, so users need to use form based 
authentication when accessing /forms/*.
Can I, in the same web.xml configure a second security realm that uses 
basic authentication? We need the basic since the /documents/* servlet 
serves webDAV and Webfolders doesn't do form based authentication. Would 
that work?

:-) stw


No can do. webapps are allowed no more than 1 form of authentication.

Maybe use two web applications?

Mark


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



Re: Lucene+ParseFile

2005-06-07 Thread Mark Thomas

1. Don't cross-post
2. Try the lucene user list

Zakaria KHABOT wrote:

Hi all,
Will using 'lucene' I want to get a brief resume from the document in 
witch the term of search exist, like this:

1 resultats trouvs, class par relvement

Nonbre avec date 
http://sd2k-pc2:8765/query.html?st=1rf=1charset=iso-8859-1col=doc+docsqt=ressources   
Masquer sommaires 
http://sd2k-pc2:8765/query.html?lk=2charset=iso-8859-1col=doc+docsqt=ressources   
regrouper par location 
http://sd2k-pc2:8765/query.html?sc=1st=1charset=iso-8859-1col=doc+docsqt=ressources

spacer   1-1spacer

*Microsoft Word - CPS version dfinitive.doc 
file:///C%7C/Aide%20on%20line/docs/CPS%20%C3%A9tude%20de%20la%20d%C3%A9pense%20publique.pdf*
*...*  optimiser lutilisation des *ressources*,  entretenir la 
motivation des *ressources* humaines et  faire vivre *...* et de la 
valorisation des *ressources* humaines. Partant des acquis constats *...*
/file:///C|/Aide on line/docs/CPS %E9tude de la d%E9pense publique.pdf/ 
/- 75.0KB/ / - GIPE1



/I/ got /the title, the path of the file but not the paragraph 
containing the term of search.

I am using the 'getSummary()' Method but it doesn't give me the text wanted.
Can someone help me.
Thanks




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



Re: Tomcat, SSL, IE, and .pdf downloads

2005-06-07 Thread Mark Thomas
This seems to be a popular subject today. Try looking at 
http://marc.theaimsgroup.com/?l=tomcat-userm=111811136603781w=2


Mark

Panichi, Mary-Beth wrote:

Greetings ~

We're having issues downloading .pdf files in SSL.  I've been all over
the web trying to find solutions.  The issue appears to be interaction
between Tomcat and InternetExplorer.  IE appears to be corrupting the
pdf files.  There's an IE patch out there, but we've patched past that.
The fix that they list, to uncheck the don't allow encrypted data to be
cached to disk,  works, but it's a setting that for security reasons we
don't want to leave unchecked.

I've tried all manner of setting headers for cache-control, etc..  We're
dynamically generating the .pdf files, and streaming them to the jsp
page.   I've tried also saving the pdf's physically to the server and
then getting them, but that didn't work either.

Has anyone run into this issue?  Does anyone have a solution?  I've seen
lots of suggestions out there, but nothing that actually works.

Thanks!

Mary Beth Panichi


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






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



Re: Client authentication using Keystores...

2005-06-07 Thread Mark Thomas

Manuel Gil Perez wrote:
The client authentication only works if I add the CA certificate into 
the $JAVA_HOME/jre/lib/security/cacerts. If the Tomcat keystore contains 
the CA certificate but not the JDK keystore... the client authentication 
fails.


AFAIK this can't be done without some custom code. 
http://issues.apache.org/bugzilla/show_bug.cgi?id=34643 should provide 
you with some pointers.


Mark

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



Re: Tomcat, SSL, IE, and .pdf downloads

2005-06-07 Thread Frank W. Zammetti
Ironically, I ran into this last week as well.

However, I was running my app on Websphere, and the cause (and solution)
was subtly different...

It is a Struts-based application.  I had the nocache RequestProcessor
setting in effect.  This caused PDF generation to fail under SSL, same as
the referenced issue.

Removing the setting resolved the issue, but I then had to create a quick
filter that would set the same cache headers the nocache setting does but
allows me to define a list of paths that they should NOT be set for.  So,
now everything in the app gets the cache headers set EXCEPT the three
paths accessed to generate PDFs, and life is good again.

The point is be sure that it's no Tomcat setting the headers... and even
if it is and you turn that off, be sure they aren't getting set anywhere
else, like Struts, or some other app code.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Tue, June 7, 2005 2:46 pm, Mark Thomas said:
 This seems to be a popular subject today. Try looking at
 http://marc.theaimsgroup.com/?l=tomcat-userm=111811136603781w=2

 Mark

 Panichi, Mary-Beth wrote:
 Greetings ~

 We're having issues downloading .pdf files in SSL.  I've been all over
 the web trying to find solutions.  The issue appears to be interaction
 between Tomcat and InternetExplorer.  IE appears to be corrupting the
 pdf files.  There's an IE patch out there, but we've patched past that.
 The fix that they list, to uncheck the don't allow encrypted data to be
 cached to disk,  works, but it's a setting that for security reasons we
 don't want to leave unchecked.

 I've tried all manner of setting headers for cache-control, etc..  We're
 dynamically generating the .pdf files, and streaming them to the jsp
 page.   I've tried also saving the pdf's physically to the server and
 then getting them, but that didn't work either.

 Has anyone run into this issue?  Does anyone have a solution?  I've seen
 lots of suggestions out there, but nothing that actually works.

 Thanks!

 Mary Beth Panichi


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





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




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



Re: pageContext.getException() always null

2005-06-07 Thread Mark Thomas

Konrad Bernstein wrote:

However, looks like a TC bug to me, that only occurs if you setup your
error pages by
the error-tag within web.xml (not by using the page directive
errorPage). pageContext.getException()
only returns what is saved under attribute
javax.servlet.jsp.jspException. But this attribute is
not set, if you're throwing from a Servlet, for instance (as with Struts
etc.).


This is http://issues.apache.org/bugzilla/show_bug.cgi?id=31659 and is 
fixed in 5.5.9+


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



Class.forName() gives NoClassDefFoundError

2005-06-07 Thread Torsten Römer

Hello!

I am currently trying to migrate a webbased cashregister system from BEA 
Weblogic 6.1/JDK 1.3.1 to Tomcat 5.0.25/JDK 1.4.2. After making some 
minor changes the application seems to work, and it also seems to run a 
lot faster.


I have one problem though: The application does a lot of 
Class.forName(), which occasionally fails with a NoClassDefFoundError. 
One time everything seems to work fine, another time, after a restart of 
Tomcat, I sometimes get this error.


In a pretty old post here I read that I have to add the classes in 
question (they are all in WEB-INF/classes) to Tomcat's classpath, so 
that the classloader can find them. Does this still apply? Or have I 
overlooked some setting, that for example preloads classes or something 
like that?


Greetings,
Torsten

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



Mod_JK error

2005-06-07 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
Can anyone give me an idea of what might be causing this?  I have searched the 
web to no avail.

[jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has 
been sent to the client (yet)
[Tue Jun 07 13:46:09 2005]  [jk_ajp_common.c (1449)]: ERROR: Receiving from 
tomcat failed, recoverable operation. err=0
[Tue Jun 07 13:46:09 2005]  [jk_ajp_common.c (783)]: ERROR: can't receive the 
response message from tomcat, network problems or tomcat is down (some 
IP:8012), err=-131

Thanks,

SB

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



RE: Mod_JK error

2005-06-07 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
My apologies...

I should have added that I only get this error when the server comes under load 
and even then the errors are intermittent.

-SB

-Original Message-
From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 2:12 PM
To: Tomcat User List (E-mail)
Subject: Mod_JK error


Can anyone give me an idea of what might be causing this?  I have searched the 
web to no avail.

[jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has 
been sent to the client (yet)
[Tue Jun 07 13:46:09 2005]  [jk_ajp_common.c (1449)]: ERROR: Receiving from 
tomcat failed, recoverable operation. err=0
[Tue Jun 07 13:46:09 2005]  [jk_ajp_common.c (783)]: ERROR: can't receive the 
response message from tomcat, network problems or tomcat is down (some 
IP:8012), err=-131

Thanks,

SB

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


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



How to query for number of active participants in the tomcat 5.5 cluster

2005-06-07 Thread Edmon Begoli

Hi,

Is it possible to query host tomcat for the number of active 
participants in the cluster that host tomcat belongs to.


If yes - can you please point me to the API, and possibly examples.

Thank you,
Edmon

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



[announce] Stylus Studio 6 XML Enterprise Edition (an XML IDE) is now available

2005-06-07 Thread Stylus Studio Announcements
[announce] Dear Tomcat-Users,

Stylus Studio 6 XML Enterprise Edition (an XML IDE) is now available for free 
trial download at: http://www.stylusstudio.com/xml_download.html. Here is a 
summary of some of the new features:

* Java Code Generation: Now you can generate code for your XQuery and XSLT 
stylesheets and deploy that code to a live production server or application. 
Stylus Studio captures the settings specified in the XQuery and XSLT scenarios 
- fully configurable, with your choice of XML processor, parameters, 
input/output files, and post processing options, for example - and reflects 
them in the generated Java code. 
* Updated W3C XQuery Compliance:  Stylus Studio is the first XML IDE to fully 
support the W3C XQuery working draft of April 2005 
* New XML Schema Tools:  EDI/EDIFACT to XML Schema conversion - Generate sample 
XML fragments from XML Schema components - Generate Java API for XML Binding 
(JAXB) code from XML Schema - Create XML Schema documentation with a familiar 
JavaDoc-like layout - XML Schema-based output validation of XSLT or XQuery 
transformations - these and many more usability enhancements further the Stylus 
Studio position as the most innovative tool for XML Schema data modeling.
* New File Explorer: The new File Explorer window provides a handy way for 
developers to manage their files in Stylus Studio and to perform other basic 
file-oriented operations (delete, copy, and rename, for example). You can also 
easily convert files by dragging the file you want to convert onto any 
user-defined built-in adapters. A new Auto-Backup feature optionally creates 
backup files of your documents when you save them. 
* XML Diff Text View: The XML Diff Viewer has a third way to view differences 
in XML documents. In addition to the Split View - Tree tab and the Merged tab, 
you can now view two documents side-by-side in plain text on the Split View - 
Text tab. 
* Canonical XML Converter: Render XML in its canonical form with a single mouse 
click - just one of the many new features in the Stylus Studio XML Editor.

You can download a free 30-day trial of Stylus Studio 6 XML Enterprise Edition 
at: http://www.stylusstudio.com/xml_download.html

Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com


 


RE: Servlet Concurrency Issues

2005-06-07 Thread George Sexton
You're probably using instance properties on the servlet object. 

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Michael Pasko [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 07, 2005 12:09 PM
 To: 'tomcat-user@jakarta.apache.org'
 Subject: Servlet Concurrency Issues
 
 I've recently developed a servlet that connects to an AS/400, 
 and returns
 results off an sql query based off criteria submitted by a 
 form.  I've had
 pretty much exclusive use of the Tomcat server during 
 development, but when
 I started allowing other users on it, I stumbled on some problems.
 Basically what happens, when user A submits the form, and 
 then 2 seconds
 later user B submits the same form.  User A stops getting 
 results, and User
 B receives the output for his request as well as the end of User A's
 request.  User A is on a different computer than B and both 
 have different
 session ID's.  I'm sure this is a configuration error on my 
 part, but would
 appreciate a direction on where to look.
  
 PS - I create a session if it doesn't exist, and store the 
 username and DB
 connection in it.  (Will use JNDI later) 
  
  
  
  
 I'm using Tomcat 5.5.7
 


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



Re: Module jk2 and jk Connectormodules

2005-06-07 Thread Andreas Bauer
Hello!

Btw, here is another link:
http://www.dynamicobjects.com/d2r/archives/002574.html
After doing this script, jk2 works for me in win xp, but not in Suse 9.2.
I hope, it helps you anyway and you can use it somehow.
I have still questions.


LoadModule jk_module modules/mod_jk.so

Jk suse 9.1 binary?



   Then, protect your WEB-INF directories :
   Directory c:/Tomcat5/webapps/exampleApp/WEB-INF
Options -Indexes FollowSymLinks
Deny from all
   /Directory

Same: /, \ for suse?



Then, between section 2 and 3 of httpd.conf, add the jk configuration :


After the loaded modules? 



Create an alias :
Alias /exampleApp c:/Tomcat5/webapps/exampleApp
Define which files are to be served by Tomcat :
JkMount / exampleApp/*.jsp tomcat5
JkMount / exampleApp/*.do tomcat5

In the httpd.conf, too?

Best regards and many thanks
Andreas


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


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



Re: Tomcat, SSL, IE, and .pdf downloads

2005-06-07 Thread Mark Leone
Mary-Beth, be advised that applying the fix in Tomcat is arguably the 
moral equivalent of what you said you didn't want to do (i.e., uncheck 
don't allow encrypted data to be cached to disk in IE). By inserting 
the valve that ensures that the cache-control headers are not set, 
you're not only permitting IE  to cache the response, but you're also 
permitting any HTTP intermediaries to do so. I wouldn't be concerned 
about the former (since the user can control the browser cache), but the 
latter can be an issue if you have HTTP intermediaries in the path and 
you don't want any copies of the response hanging around.


It would actually be more secure to just uncheck the setting in IE 
(since you indicated that works), and retain the no-cache behavior for 
the HTTP intermediaries; but that's probably unworkable from an interop 
standpoint. All IE users would have to configure their browser properly, 
or they will be told that your site is unavailable.


The unfortunate reality is that because one particular user agent (IE) 
is applying more restrictive caching behavior than is warranted by the 
spec, the server has to relax the caching behavior where it really needs 
to be restricted in many cases, if IE compatibility with default 
settings is to be maintained. There's an important lesson here, but I 
don't think the party that needs to learn it is listening.


-Mark

Mark Thomas wrote:

This seems to be a popular subject today. Try looking at 
http://marc.theaimsgroup.com/?l=tomcat-userm=111811136603781w=2


Mark

Panichi, Mary-Beth wrote:


Greetings ~

We're having issues downloading .pdf files in SSL.  I've been all over
the web trying to find solutions.  The issue appears to be interaction
between Tomcat and InternetExplorer.  IE appears to be corrupting the
pdf files.  There's an IE patch out there, but we've patched past that.
The fix that they list, to uncheck the don't allow encrypted data to be
cached to disk,  works, but it's a setting that for security reasons we
don't want to leave unchecked.

I've tried all manner of setting headers for cache-control, etc..  We're
dynamically generating the .pdf files, and streaming them to the jsp
page.   I've tried also saving the pdf's physically to the server and
then getting them, but that didn't work either.

Has anyone run into this issue?  Does anyone have a solution?  I've seen
lots of suggestions out there, but nothing that actually works.

Thanks!

Mary Beth Panichi


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






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




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



Set Connector to secure but DON'T use TLS/keystore/etc.?

2005-06-07 Thread John G. Norman
For Tomcat 5.0.28:

I have an SSL accelerator in front of a set of hardware load-balanced Tomcats.

SSL is handled by the accelerator.

HTTP requests come in on port 80 and are redirected via the load
balancer (it's actually an Inkra) to a Tomcat HTTP Connector listening
on port 8080.

I would like to mark some resources in the app with the security
constraint CONFIDENTIAL and have the request redirected to port 443.

So . . . A redirected request would now come in on 443, where the SSL
accelerator handles TLS. Then the request goes into the LB, and goes
to a Tomcat Connector on port 8443.

Therefore, in server.xml, I would like to set the secure attribute for
the Connector on port 8443 to true so that the request is no longer
redirected.

But if I set the secure attribute to true, it seems that I must
specify a keystore, and handle SSL on Tomcat. (If you set secure to
true but w/o a keystore, you get exceptions and the Connector
doesn't start.)

If I set the secure attribute to false, then the redirect happens
again (effectively an infinite loop).

So . . . any suggestions?

My ideas are:

(0) See if the load balancer can do the redirect. I.e., have certain
traffic (not all, I'm afraid) return a 304 and redirect to the 443
port? There *are* certain paths (for example, for privacy policy XML
files) that must not use https/443. Then the Tomcat's 8443 could be
insecure. This is a bad solution because now the authority for the
redirect isn't in the app; harder to change.

(1) Stop using the hardware acceleration, and put the SSL cert on each
of the Tomcats. This is probably big drag for performance reasons.

(2) Write a custom J2EE filter to do the 304/redirect.

(3) Any more flexibility on this in Tomcat 5.5?

John

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