AW: need for deployment strategy without terminating user session s

2004-03-29 Thread Hubbert, Thomas
Thanks for your reply Tim. 
I'm aware that there is support for persistent sessions but I don't think
that this will help me solving my problems: 
1. we can't effort to access the DB for every request! 
2. you cannot reload the session information from the DB when the class
definition on tomcat has changed (correct me if I'm wrong).
3. this would still mean that I would have to shutdown the application for
some time making it impossible for anybody to access it until I restart it.

I like your second idea though... clustering tomcat. The only problem I'm
having when looking at this scenario is: 
What happens after the 1st instance is shutdown, the new code deployed and
the application is restarted? That would mean that I got TWO tomcat
instances up an running trying to replicate session data based on DIFFERENT
class definitions, wouldn't it. Can I stop and reactivate session
replication at runtime?

Thanks for your help!!!
Thomas

-Ursprüngliche Nachricht-
Von: Tim Funk [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 25. März 2004 17:14
An: Tomcat Users List
Betreff: Re: need for deployment strategy without terminating user
sessions


Tomcat should be saving all session data to a serializable file. So you can 
persist session across an application restart.

You can also (in tomcat 5) - use the clustering capability.

You can use JDBC to persist sessions.

OR

You can not put stuff critical to a session and persist in another manner
and 
save non-critical stuff in the session.


-Tim

Hubbert, Thomas wrote:

 Hi,
 I need some help on how to deploy applications on tomcat without
terminating
 all the user sessions (by stopping and restarting the application). At the
 moment I can't see how this could be possible (not even with the help of
 session replication). Is there any feature in tomcat or modjk which could
 help me achieve this task? 
  

-
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: JK2

2004-03-29 Thread Nikola Milutinovic
SH Solutions wrote:

Hi

Now I am stuck with configuration.
The online documentation really isnt useful. Sorry. This differs from
tomcat. Anyway, I stored a lot of bookmarks in the last weeks about JK2 from
this list.
The docs are really awful.

But there are a lot of questions open.
Some tutorials talk about default workers2.properties files. I dont know
where to find this. A lot of tutorials about jk2 give different syntax for
the configuration files. NO tutorial even states where the files must be
placed. Can anyone tell me, how tomcat should know where to find these
files? Or apache2?
There are two files to muck with:

FILE 1: ${CATALINA_HOME}/conf/jk2.conf
--
#
# Environment
#
jkHome=Apache_JK2-2.0.2
jkUSR=/usr/opt/${jkHome}
jkVAR=/var/opt/${jkHome}
# Set the desired handler list
# handler.list=apr,request,channelJni
# handler.list=apr,request,channelSocket
handler.list=apr,request,channelUnix
#
# APR
#
apr.NativeSo=${jkUSR}/module/jkjni.so
# apr.jniModeSo=inprocess
apr.baseDir=${jkVAR}
apr.aprHome=/usr/opt/Apache-2.0.48-W
apr.soExt=so
#
# TCP/IP Socket Channel
#
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
channelSocket.maxThreads=50
# channelSocket.backLog=
# channelSocket.tcpNoDelay=
# channelSocket.soTimeout=
# channelSocket.soLinger=
# channelSocket.serverTimeout=
#
# UNIX file socket channel
#
channelUnix.file=${jkVAR}/channels/jk2.sock
#
# JNI inprocess channel
#
#
# JMX handler
#
mx4j.port=-1
#
# Shared Memory handler
#
shm.file=${jkVAR}/channels/jk2.shm
shm.host=localhost
shm.port=8009
shm.unixSocket=${jkVAR}/channels/jk2.sock
#
# Request handler
#
request.tomcatAuthentication=true
# request.ajpidDir=
# request.decodedUri=
# request.secret=
# request.useSecret=
FILE 2: ${APACHE_ROOT}/conf/workers2.properties
---
#
# Logger level can be EMERG, ERROR, INFO, DEBUG
#
[logger]
level=INFO
[logger.file:0]
level=INFO
file=/var/opt/Apache_JK2-2.0.2/logs/mod_jk2.log
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# [shm:]
info=Scoreboard. Required for reconfiguration and status with multiproc srv
file=/var/opt/Apache_JK2-2.0.2/channels/jk2.shm
size=100
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
#==#
#  #
# CHANNELS (physical means of sending to Tomcat instances) #
#  #
#==#
# [channel.socket:localhost:8009]
# info=Ajp13 forwarding over socket
# debug=0
# tomcatId=localhost:8009
# [channel.socket:localhost:8809]
# info=Ajp13 forwarding over socket to JBoss/Jetty
# debug=0
# tomcatId=localhost:8809
# [channel.socket:localhost:8019]
# info=A second tomcat instance.
# debug=0
# tomcatId=localhost:8019
# lb_factor=1
# group=lb
# group=lb_1
# disabled=0
[channel.un:unixsock]
info=A second channel connecting to localhost:8019 via unix socket
file=/var/opt/Jk2-2.0.2/channels/jk2.sock
lb_factor=1
debug=0
# [channel.jni:jni]
# info=The jni channel, used if tomcat is started inprocess
#===#
#   #
# Workers (these accept requests from URI maps) #
#   #
#===#
# [lb:lb]
# info=Default load balancer.
# debug=0
# worker=
# noErrorHeader=1
# noWorkerMsg=
# noWorkerCode=503
# hwBalanceErr=
# timeout=0
# attempts=3
# recovery=60
# stickySession=1
# [lb:lb_1]
# info=A second load balancer.
# debug=0
[status:]
info=Status worker, displays runtime informations
# [vm:]
# info=Parameters used to load a JVM in the server process
# # JVM=C:\jdk\jre\bin\hotspot\jvm.dll
# 
OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar
# OPT=-Dtomcat.home=${TOMCAT_HOME}
# OPT=-Dcatalina.home=${TOMCAT_HOME}
# OPT=-Xmx128M
# # OPT=-Djava.compiler=NONE
# disabled=1

# [worker.jni:onStartup]
# info=Command to be executed by the VM on startup. This one will start tomcat.
# class=org/apache/jk/apr/TomcatStarter
# ARG=start
# disabled=1
# stdout=/var/log/httpd/jk2-stdout.log
# stderr=/var/log/httpd/jk2-stderr.log
# [worker.jni:onShutdown]
# info=Command to be executed by the VM on shutdown. This one will stop tomcat.
# class=org/apache/jk/apr/TomcatStarter
# ARG=stop
# disabled=1
# [ajp13:unixsock]
info=Default AJP 1.3 worker
channel=channel.un:unixsock
# secretkey=
# tomcatId=
# route=
# group=
# level=
# max_connections=0
# connectTimeout=0
# replyTimeout=0
# prepostTimeout=0
[uri:/jkstatus/*]
info=Display status information 

modjk load balancer

2004-03-29 Thread Hubbert, Thomas
Hi, 
I'm just wondering whether it's possible to tell modjk not to forward new
session requests to one specific tomcat instance in the cluster but still
forward those with a valid jvmroute. This would help me to let die all the
session on one specific instance without having to stop the whole
application or killing any sessions (all new requests would be handled by
another tomcat instance in the cluster)

Thanks 
Thomas

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



Re: Fake 'alias' for sales rep pages

2004-03-29 Thread Graham Reeds
This is what I do for my web-page.

It will be multilingual so a cookie (first set when they visit the site)
causes the links to be of the form: lan/page, so you get uk/home.html,
de/products.html etc.  In actual fact each link is caught by a JSP page
which in turn creates a session bean and then calls a servlet that accesses
a database which serves up the required page in the correct language (or in
my case serves up 404 errors:-)

G.


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



AW: Manager Application does not remove webapp correctly

2004-03-29 Thread Just Fun 4 You
Hi Doug,

if I put struts.jar and securityfilter.jar in the tomcat common/lib folder
it works. However, I am not allowed to put these jars there. I have to ship
them with the webapp, so I am still facing this problem that Tomcat Manager
is not removing the app correctly. Any further idea?

thx,
Dirk

 

-Ursprüngliche Nachricht-
Von: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 29. März 2004 03:09
An: Tomcat Users List
Betreff: Re: Manager Application does not remove webapp correctly

Dirk,

Have you tried putting these jars in common/lib?

This way they are loaded on Tomcat start-up and will be available to your
app without impacting the deploy/undeploy.

Doug
www.parsonstechnical.com

- Original Message -
From: Just Fun 4 You [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 7:06 PM
Subject: Manager Application does not remove webapp correctly


 Hi,

 I am using Tomcat 4.1.29 and deploy/undeploy my webapp with the Tomcat
 Manager Application. My webapp uses Struts 1.1, SecurityFilter and Log4J.
 The first deploy works fine. Then, when I remove the webapp, the app
folder
 is not totally removed from the tomcat webapps directory. The folder 'lib'
 with the files struts.jar and securityfilter.jar remain. It is not even
 possible to delete them manually as tomcat still holds a process on them.
 Have no idea what happens here!?

 Can somebody help?

 thx,

 Dirk


 -
 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: JK2

2004-03-29 Thread Nikola Milutinovic
Nikola Milutinovic wrote:

SH Solutions wrote:

Hi


Now I am stuck with configuration.
The online documentation really isnt useful. Sorry. This differs from
tomcat. Anyway, I stored a lot of bookmarks in the last weeks about 
JK2 from
this list.
Oh, and I forgot, there is also a mod_jk2 Apache directive JkUri and 
JkUriSet, which should not be needed with this setup. The way I see it, there 
are two redundant ways to state which URI will be handled by a particular JK2 
worker: workers2.properties:uri:... and httpd.conf:JkUri...

What is preferable? I don't know. It would be nice to keep all VHost directives 
in one place, so from that point of view, you would setup channels and workers 
in workers2.porperties and setup URI mappings in httpd.conf (or in separate 
VHost config file fragments, like most new RPMs do).

On the other hand, you might want to keep all JK2 directives in one place, which 
would lead you to place even URI mappings in workers2.properties, like in my 
example.

In any case, it looks like a tie to me. workers2.properties must hold workers 
and channels. httpd.conf is the one aware of VHosts and full paths. JK2 is a 
bridge between those domains. URI mappings can easily be placed in both places 
and they wouldn't stick out.

And don't forget, if you're playing with VHosts, Tomcat must also be setup for 
them. See Host ... element of server.xml.

Nix.

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


Re: post data through form based authentication example?

2004-03-29 Thread Adam Hardy
Hmm. You're right. I just tested it on my JBoss (running 3.2.4RC1 with 
tomcat 5.0.19) and I got the same effect. Rats! This is not good. Trying 
to get info out of JBoss is like trying to get blood out of a stones. I 
assume there's a bug report? I haven't looked at JBoss's bugzilla yet.

On 03/29/2004 01:10 AM Martin Alley wrote:
After further testing, I believe this is a bug specific to the JBoss
environment (both 3.2.3 and 3.2.4RC1)
Martin

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 28 March 2004 15:24
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

The updated web.xml below now correctly lists the required security-role
tags, but the only effect was to bring the form.html resource into the
secured area (ie login is requested before accessing this page now), so
I have also modified web.xml to put form.html *outside* the secured area
- thus still requiring post data to transition the form based logon.
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app 
   session-config
  session-timeout2/session-timeout
   /session-config
security-constraint
web-resource-collection
  web-resource-nameSignon/web-resource-name
  descriptionDeclarative security tests/description
  !--url-pattern/form.html/url-pattern--
  url-pattern/process.jsp/url-pattern
  http-methodHEAD/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
  http-methodDELETE/http-method
/web-resource-collection
auth-constraint
  role-namecustomer/role-name
  role-namemerchant/role-name
  role-nameadmin/role-name
/auth-constraint
user-data-constraint
  descriptionno description/description
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.html/form-login-page
form-error-page/login.html/form-error-page
/form-login-config
/login-config
security-rolerole-namecustomer/role-name/security-role
security-rolerole-namemerchant/role-name/security-role
security-rolerole-nameadmin/role-name/security-role
/web-app
I can't see the point of protecting the POST method if the data fails to
transition.
Has anyone got a working example of this?

Thanks
Martin
-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2004 09:47
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

I forgot to mention it's behaviour!!

Basically when the is no security constraint, it works.  When there is a
security constraint, the post data gets killed.
Martin

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2004 09:43
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

Hi Adam,

I've put together a simple test for posting to a secured resource which
seems to throw up a problem.  Included files are the web app.  Based on
JBoss3.2.3 embedded tomcat4.1.
Martin

Index.html
html
body
a href=form.htmlform/a
/body
/html
form.html
html
body
form action=process.jsp method=post
input type=text name=text1/
input type=submit value=OK/
/form
/body
/html
login.html
html
body
h4Please login:/h4
form method=POST action=j_security_check
input type=text name=j_username
input type=password name=j_password
input type=submit value=OK
/form
/body
/html
process.jsp
html
body
text1=%=request.getParameter(text1)%
/body
/html
WEB-INF\web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app 

   session-config
  session-timeout2/session-timeout
   /session-config
 security-constraint
web-resource-collection
  web-resource-nameSignon/web-resource-name
  descriptionDeclarative security tests/description
  url-pattern/form.html/url-pattern
  url-pattern/process.jsp/url-pattern
  http-methodHEAD/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
  http-methodDELETE/http-method
/web-resource-collection
auth-constraint
  role-namecustomer/role-name
  role-namemerchant/role-name
  role-nameadmin/role-name
/auth-constraint
user-data-constraint
  descriptionno description/description
  

RE: JK2 and SHM

2004-03-29 Thread SH Solutions
Hi

 [shm]
 file=anonymous

Works, thank you.

  This leaves only one problem open:
  How to tell tomcat to use unix sockets to talk to mod_jk2 ?
  I know how to set up mod_jk2 for this, but I don't know how to specify 
  the socket in tomcat.

 Unix sockets like JNI is platform specific, IMO wasn't touched in 2.0.4.

Anyway, I didn't use JK2 before, and I cannot get it running.
Can you help me on this?

Regards,
  Steffen


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



connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread Guillaume Roger
Hi all,

I've a problem while connecting to mysql from tomcat.

There is a bean which initializes the connexion between tomcat and 
mysql. The parameter which seems to be faulty is the url: 
jdbc:mysql://localhost:3306/appli

After a reboot, this url caused an error, ie the connexion between mysql 
and tomcat was not up. The url had to be replaced by the following: 
jdbc:mysql://212.xxx.xxx.xxx:3306/appli, ie I had to put the IP 
address instead of localhost, without understanding why, whearas no 
modification relating to this had occured.

All was going well until another reboot, after which I had to put the 
old line back, with localhost, always without understanding why.

The searches on google, mysql and tomcat sites didn't bring me a solution.

Here is the configuration of my box:

redaht 7.2
mysql 3.23
tomcat4 4.1.10
j2sdk 1.4.0
Could anyone explain me why sometimes the IP address should be put, and 
sometimes localhost? I'd like to make it work at any time.

Thanks,

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


RE: I know this is a stupid question

2004-03-29 Thread Schalk
I am just throwing this idea out there, maybe it helps maybe it does not.
Have you tried using Windows search and search for all index.jsp files on
your hard drive? I know this will probably return a lot of results but
perhaps scanning over them you may find an index.jsp that looks suspicious.

HTH!

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Donald Lee [mailto:[EMAIL PROTECTED]
:: Sent: Monday, March 29, 2004 4:50 AM
:: To: [EMAIL PROTECTED]
:: Subject: Re: I know this is a stupid question
:: 
:: Yes I did do all of this ( i may be newbie to tomcat but not that new to
:: web/application servers).  I tetsted this using both MSIE and Mozilla
:: Firefox.  I also do not experience the problem with my test.jsp that I
:: placed in the webapps\ROOT folder.  This seems to be isolated to only the
:: index.jsp.  I noticed in the WEB_INF\web.xml file designates servlet
:: mappings are being made to match up index_jsp.class with index.jsp
Since
:: I am not re-compiling anything I can only assume that no matter what
change
:: I make to index.jsp it will continue to read the index_jsp.class file
:: instead.  I plan to experiment with the web.xml and see if this resolves
the
:: issue.  This is version 5 of tomcat I am talking about, more specifically
:: the windows install version.
:: Thanks
:: Don
:: 
:: 
:: 
:: From: Bryan K. Cantwell [EMAIL PROTECTED]
:: Reply-To: Tomcat Users List [EMAIL PROTECTED]
:: To: Tomcat Users List [EMAIL PROTECTED]
:: Subject: Re: I know this is a stupid question
:: Date: Sun, 28 Mar 2004 19:00:12 -0600
:: 
:: If you are still seeing a page that litterally does not exist, then you
ARE
:: looking at a cached version of the page. Stop Tomcat, in Internet
Exploder
:: click tools-internet options-settings-every visit to the page and set
:: amount os disk space to the min (1MB) and ok. then click delete files
under
:: temp internet files... this will clear up the phantom page. then make
sure
:: u
:: go to tomcat_home/work and delete everything inside there. Then start
:: tomcat back up ...
:: 
:: bryancan
:: 
:: - Original Message -
:: From: Donald Lee [EMAIL PROTECTED]
:: To: [EMAIL PROTECTED]
:: Sent: Sunday, March 28, 2004 2:52 PM
:: Subject: Re: I know this is a stupid question
:: 
:: 
::   Yes, I did clear my work directory.  No diff.  The index.jsp just
would
:: not
::   change or even go away despite my deleting it.
::  
::  
::   From: Antonio Fiol Bonnín [EMAIL PROTECTED]
::   Reply-To: Tomcat Users List [EMAIL PROTECTED]
::   To: Tomcat Users List [EMAIL PROTECTED]
::   Subject: Re: I know this is a stupid question
::   Date: Sun, 28 Mar 2004 10:19:04 +0200
::   
::   Hi Don,
::   
::   As Bryan already told you, you should clear the work directory of
:: already
::   compiled versions.
::   
::   Antonio
::   
::   Donald Lee wrote:
::   
::   I have since downloaded version 4.1.30 and am not experiencing this
::   problem.  I have noticed that there are fewer sub-directories under
:: the
::   WEB-INF.  This leads me to believe that the jsp's were pre-compiled
in
::   version 5 and running more like servlets than a standard jsp.  With
no
:: way
::   for me to really understand how I go about pre-compiling and
deploying
::   jsps in this manner, I guess for now until I learn enough about all
:: the
::   changes in version 5, I will continue using version4.
::   Thanks
::   Don
::   
::   
::   
::   From: Donald Lee [EMAIL PROTECTED]
::   Reply-To: Tomcat Users List [EMAIL PROTECTED]
::   To: [EMAIL PROTECTED]
::   Subject: Re: I know this is a stupid question
::   Date: Sat, 27 Mar 2004 21:59:22 -0500
::   
::   Yes I turned off caching I even deleted the index.jsp and stopped
and
::   started tomcat.  I still get the Congratulations!
::   I can do this without specifying the index.jsp and if I specify
it.
:: I
::   know I am looking in the right folder because like I said, I can
run
:: a
::   test.jsp just fine and even update it without cycling tomcat.
This
:: is
::   version 5.0.19 windows installation.  It runs as a service.  I
:: installed
::   the jk2 connector but right now IIS is turned off and I am not
using
:: it.
::   Thanks
::   Don
::   
::   
::   
::   
::   From: Bryan K. Cantwell Reply-To: Tomcat Users List To:
Tomcat
::   Users List Subject: Re: I know this is a stupid question Date:
Sat,
:: 27
::   Mar 2004 19:34:55 -0600
::   
::   Is your browser chacheing? turn it off. clear the work directory
of
::   already 

RE: post data through form based authentication example?

2004-03-29 Thread Martin Alley
No formal bug report yet.

The current state of play is at
http://www.jboss.org/index.html?module=bbop=viewtopict=47595

If you would like to add your weight to this observation...

Thanks
Martin


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2004 09:17
To: Tomcat Users List
Subject: Re: post data through form based authentication example?

Hmm. You're right. I just tested it on my JBoss (running 3.2.4RC1 with 
tomcat 5.0.19) and I got the same effect. Rats! This is not good. Trying

to get info out of JBoss is like trying to get blood out of a stones. I 
assume there's a bug report? I haven't looked at JBoss's bugzilla yet.

On 03/29/2004 01:10 AM Martin Alley wrote:
 After further testing, I believe this is a bug specific to the JBoss
 environment (both 3.2.3 and 3.2.4RC1)
 
 Martin
 
 -Original Message-
 From: Martin Alley [mailto:[EMAIL PROTECTED] 
 Sent: 28 March 2004 15:24
 To: 'Tomcat Users List'
 Subject: RE: post data through form based authentication example?
 
 The updated web.xml below now correctly lists the required
security-role
 tags, but the only effect was to bring the form.html resource into the
 secured area (ie login is requested before accessing this page now),
so
 I have also modified web.xml to put form.html *outside* the secured
area
 - thus still requiring post data to transition the form based logon.
 
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app 
session-config
   session-timeout2/session-timeout
/session-config
   security-constraint
   web-resource-collection
 web-resource-nameSignon/web-resource-name
 descriptionDeclarative security tests/description
 !--url-pattern/form.html/url-pattern--
 url-pattern/process.jsp/url-pattern
 http-methodHEAD/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
   /web-resource-collection
   auth-constraint
 role-namecustomer/role-name
 role-namemerchant/role-name
 role-nameadmin/role-name
   /auth-constraint
   user-data-constraint
 descriptionno description/description
 transport-guaranteeNONE/transport-guarantee
   /user-data-constraint
   /security-constraint
 
   login-config
   auth-methodFORM/auth-method
   form-login-config
   form-login-page/login.html/form-login-page
   form-error-page/login.html/form-error-page
   /form-login-config
   /login-config
 
   security-rolerole-namecustomer/role-name/security-role
   security-rolerole-namemerchant/role-name/security-role
   security-rolerole-nameadmin/role-name/security-role
 /web-app
 
 I can't see the point of protecting the POST method if the data fails
to
 transition.
 
 Has anyone got a working example of this?
 
 Thanks
 Martin
 
 -Original Message-
 From: Martin Alley [mailto:[EMAIL PROTECTED] 
 Sent: 27 March 2004 09:47
 To: 'Tomcat Users List'
 Subject: RE: post data through form based authentication example?
 
 I forgot to mention it's behaviour!!
 
 Basically when the is no security constraint, it works.  When there is
a
 security constraint, the post data gets killed.
 
 Martin
 
 
 -Original Message-
 From: Martin Alley [mailto:[EMAIL PROTECTED] 
 Sent: 27 March 2004 09:43
 To: 'Tomcat Users List'
 Subject: RE: post data through form based authentication example?
 
 Hi Adam,
 
 I've put together a simple test for posting to a secured resource
which
 seems to throw up a problem.  Included files are the web app.  Based
on
 JBoss3.2.3 embedded tomcat4.1.
 
 Martin
 
 Index.html
 html
 body
   a href=form.htmlform/a
 /body
 /html
 
 form.html
 html
   body
   form action=process.jsp method=post
   input type=text name=text1/
   input type=submit value=OK/
   /form
   /body
 /html
 
 login.html
 html
 body
 h4Please login:/h4
 form method=POST action=j_security_check
 input type=text name=j_username
 input type=password name=j_password
 input type=submit value=OK
 /form
 /body
 /html
 
 process.jsp
 html
 body
 text1=%=request.getParameter(text1)%
 /body
 /html
 
 WEB-INF\web.xml
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application
 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app 
 
 
session-config
   session-timeout2/session-timeout
/session-config
 
  security-constraint
 web-resource-collection
   web-resource-nameSignon/web-resource-name
   descriptionDeclarative security tests/description
   url-pattern/form.html/url-pattern
  

AW: I know this is a stupid question

2004-03-29 Thread Torsten Fohrer
Simply look at the ROOT/WEB-INF/web.xml

All webapps are precompiled.

;-)

Cu Fohrer

 -Ursprüngliche Nachricht-
 Von: Donald Lee [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 28. März 2004 04:59
 An: [EMAIL PROTECTED]
 Betreff: Re: I know this is a stupid question
 
 
 Yes I turned off caching I even deleted the index.jsp and stopped and 
 started tomcat.  I still get the Congratulations!
 I can do this without specifying the index.jsp and if I 
 specify it.  I know 
 I am looking in the right folder because like I said, I can 
 run a test.jsp 
 just fine and even update it without cycling tomcat.  This is 
 version 5.0.19 
 windows installation.  It runs as a service.  I installed the 
 jk2 connector 
 but right now IIS is turned off and I am not using it.
 Thanks
 Don
 
 
 
 
 From: Bryan K. Cantwell Reply-To: Tomcat Users List To: Tomcat 
 Users
 List Subject: Re: I know this is a stupid question Date: 
 Sat, 27 Mar 2004 
 19:34:55 -0600
 
 Is your browser chacheing? turn it off. clear the work directory of 
 already
 compiled versions too...
 
 - Original Message - From: Donald Lee To: Sent: Saturday, 
 March
 27, 2004 7:31 PM Subject: I know this is a stupid question
 
 
   Ok, I know this has got to be a stupid newbie question but I have
 searched  the archives without success.  What is special about the 
 default
 tomcat  webapps/ROOT/index.jsp?  I cannot make changes to 
 it.  I tried 
 making minor  changes to it and expecting the changes to 
 happen on a 
 refresh; no joy.  I  also shutdown and restarted tomcat to 
 get the changes 
 to take effect; no  joy.  I eventually created a small 
 test.jsp and copied 
 the contents to it  and sure enough my changes were there.  
 made some 
 minor changes to my  test.jsp and sure enough the changes 
 were in effect 
 without cycling tomcat.  I really would like to use index.jsp as my 
 default page.  What has this  locked down?  Thanks  Don   
 _
   Check 
 out MSN PC Safety  Security to help ensure your PC is 
 protected and  
 safe. http://specials.msn.com/msn/security.asp
 -
   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]
 
 
 _
 Get reliable access on MSN 9 Dial-up. 3 months for the price of 1! 
 (Limited-time offer) 
 http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/o
nm00200361ave/direct/01/


-
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: post data through form based authentication example?

2004-03-29 Thread Adam Hardy
Right I see. I shall ponder what jumping in at some point as well if you 
get no replies, but the replies from the JBoss people tend to be 
sporadic and I suffer all sorts of superstitious doubts about how best 
to elicit an answer from them.

By the way, you can post HTML code there, you have to put it in [CODE] 
blocks, rather than [QUOTE] blocks which you tried.

Adam

On 03/29/2004 12:30 PM Martin Alley wrote:
No formal bug report yet.

The current state of play is at
http://www.jboss.org/index.html?module=bbop=viewtopict=47595
If you would like to add your weight to this observation...

Thanks
Martin
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2004 09:17
To: Tomcat Users List
Subject: Re: post data through form based authentication example?

Hmm. You're right. I just tested it on my JBoss (running 3.2.4RC1 with 
tomcat 5.0.19) and I got the same effect. Rats! This is not good. Trying

to get info out of JBoss is like trying to get blood out of a stones. I 
assume there's a bug report? I haven't looked at JBoss's bugzilla yet.

On 03/29/2004 01:10 AM Martin Alley wrote:

After further testing, I believe this is a bug specific to the JBoss
environment (both 3.2.3 and 3.2.4RC1)
Martin

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 28 March 2004 15:24
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

The updated web.xml below now correctly lists the required
security-role

tags, but the only effect was to bring the form.html resource into the
secured area (ie login is requested before accessing this page now),
so

I have also modified web.xml to put form.html *outside* the secured
area

- thus still requiring post data to transition the form based logon.

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
Application

2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app 
  session-config
 session-timeout2/session-timeout
  /session-config
security-constraint
web-resource-collection
  web-resource-nameSignon/web-resource-name
  descriptionDeclarative security tests/description
  !--url-pattern/form.html/url-pattern--
  url-pattern/process.jsp/url-pattern
  http-methodHEAD/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
  http-methodDELETE/http-method
/web-resource-collection
auth-constraint
  role-namecustomer/role-name
  role-namemerchant/role-name
  role-nameadmin/role-name
/auth-constraint
user-data-constraint
  descriptionno description/description
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.html/form-login-page
form-error-page/login.html/form-error-page
/form-login-config
/login-config
security-rolerole-namecustomer/role-name/security-role
security-rolerole-namemerchant/role-name/security-role
security-rolerole-nameadmin/role-name/security-role
/web-app
I can't see the point of protecting the POST method if the data fails
to

transition.

Has anyone got a working example of this?

Thanks
Martin
-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2004 09:47
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

I forgot to mention it's behaviour!!

Basically when the is no security constraint, it works.  When there is
a

security constraint, the post data gets killed.

Martin

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2004 09:43
To: 'Tomcat Users List'
Subject: RE: post data through form based authentication example?

Hi Adam,

I've put together a simple test for posting to a secured resource
which

seems to throw up a problem.  Included files are the web app.  Based
on

JBoss3.2.3 embedded tomcat4.1.

Martin

Index.html
html
body
a href=form.htmlform/a
/body
/html
form.html
html
body
form action=process.jsp method=post
input type=text name=text1/
input type=submit value=OK/
/form
/body
/html
login.html
html
body
h4Please login:/h4
form method=POST action=j_security_check
input type=text name=j_username
input type=password name=j_password
input type=submit value=OK
/form
/body
/html
process.jsp
html
body
text1=%=request.getParameter(text1)%
/body
/html
WEB-INF\web.xml
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web

Re: JSP preloading taking a lot of time

2004-03-29 Thread Adam Hardy
Tomcat 3.3? Are you not able to upgrade?

On 03/29/2004 01:10 PM Abhinandan Karmakar wrote:
Hi,

My web site has a lot of JSP pages ~60. Some JSPs are big ~400 lines. I
have given load-on-startup for all my JSP pages.
I notice that tomcat takes up about 200 secs to preload all my JSPs and
during the entire startup time the CPU util does not go above 5-10%. Can
anyone throw some light on this ?
Abhinandan.

Tomcat 3.3 on linux.

PS: My JSPs contain a lot of custom tags.



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



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSP preloading taking a lot of time

2004-03-29 Thread Abhinandan Karmakar

No. The stuff is running inside one of our released products. Upgrading
tomcat is not possible.

Abhinandan.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 4:01 PM
To: Tomcat Users List
Subject: Re: JSP preloading taking a lot of time


Tomcat 3.3? Are you not able to upgrade?

On 03/29/2004 01:10 PM Abhinandan Karmakar wrote:
 Hi,
 
 My web site has a lot of JSP pages ~60. Some JSPs are big ~400 lines.
I
 have given load-on-startup for all my JSP pages.
 
 I notice that tomcat takes up about 200 secs to preload all my JSPs
and
 during the entire startup time the CPU util does not go above 5-10%.
Can
 anyone throw some light on this ?
 
 Abhinandan.
 
 Tomcat 3.3 on linux.
 
 PS: My JSPs contain a lot of custom tags.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


-
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]



JSP preloading taking a lot of time

2004-03-29 Thread Abhinandan Karmakar

Hi,

My web site has a lot of JSP pages ~60. Some JSPs are big ~400 lines. I
have given load-on-startup for all my JSP pages.

I notice that tomcat takes up about 200 secs to preload all my JSPs and
during the entire startup time the CPU util does not go above 5-10%. Can
anyone throw some light on this ?

Abhinandan.

PS: My JSPs contain a lot of custom tags.



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



JSP preloading taking a lot of time

2004-03-29 Thread Abhinandan Karmakar

Hi,

My web site has a lot of JSP pages ~60. Some JSPs are big ~400 lines. I
have given load-on-startup for all my JSP pages.

I notice that tomcat takes up about 200 secs to preload all my JSPs and
during the entire startup time the CPU util does not go above 5-10%. Can
anyone throw some light on this ?

Abhinandan.

Tomcat 3.3 on linux.

PS: My JSPs contain a lot of custom tags.



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



AJP connector monitoring

2004-03-29 Thread Antonio Fiol Bonnín
Hi,

I'd like to have our Tomcat servers monitored, in order to get an alarm 
if one of them stops responding.

But they are not using HTTP at all. We are using the Coyote AJP 
connector because we have Apache in front of them, in a balanced 
configuration.

So I'd like to load a page directly using a simple AJP client integrated 
into our monitoring tool. Do you know of any AJP client which is easy to 
drive?

The only I know of is mod_jk(2), but I'm afraid that's overkill. Any ideas?

I've googled for an AJP client, but I came across nothing that seemed 
useful.

OTOH, I've been searching for something related to JMX monitoring. 
Again, the best I found involves access to the manager app. And I'd like 
to access it via AJP. So, we're back to the first problem. And it did 
not seem to me that the new JMeter tomcat monitor is any different.

Anything better than setting up an Apache server with one VirtualHost 
per Tomcat server, only for monitoring?

Thank you all very much.

Antonio Fiol

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


problem Explorer: does not 'switch' to https

2004-03-29 Thread dirk ooms
Hello,

I have an application on standalone Tomcat that works fine with Konqueror and 
Mozilla, but not with Microsoft Explorer: it doesn't 'automatically switch' 
to https.

E.g. the page 'secretary.html' is security constrained (see web.xml fragment 
below). When i call the page in Konqueror or Mozilla as 
http://my.domain.net:8080/secretary.html, the page is shown after the login 
and the url in the location bar is https://my.domain.net:8443/secretary.html 
(everything is fine).

But when i do the same in Explorer, the location bar shows 
http://my.domain.net:8080/secretary.html and it says 'page cannot be 
displayed'. At the other hand, when i call the protected page directly as 
https://my.domain.net:8443/secretary.html it works fine.

any explanation for this behavior?

cheers,
dirk

  security-constraint
web-resource-collection
  web-resource-nameSecretary/web-resource-name
  url-pattern/secretary.html/url-pattern
/web-resource-collection
auth-constraint
  role-namesecretary/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint


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



Configure tomcat connected to apache to accept connections other that localhost

2004-03-29 Thread scott howser
How do you configure tomcat connected to apache to accept connections on
something besides localhost.  
Individually they will connect from my internet ip but together only
localhost.
 
 
http://www.howsernet.com:8080 http://www.howsernet.com:8080/Apache
 
http://www.howsernet.com:8181 http://www.howsernet.com:8181/ /app1
Tomcat
 
 
http://localhost/app1   Apache-Tomcat
 
 
Thanks
Scott Howser


parsing the jndi datasources source code

2004-03-29 Thread meissa . Sakho

hi all,

I'm looking for the source code/class where the configured  jndi 
datasources
are parsed and registred.
I'm using Tomcat 4.18 and dbcp

I need to understand two features.

1) how a resource is registred in JNDI.
2)how a datasource  is instanciated and registred as a jndi resource.

thanks in advance.


___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO 
01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and 
notify the sender.

Re: jsp compile - default constructor

2004-03-29 Thread Tim Funk
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26444

It won't be fixed. You'll need to send an email to the jsp feedback group to 
address this. (The email is on the cover page of the spec)

-Tim

Antonio Fiol Bonnín wrote:
I don't agree or disagree.

But this will break many apps. Mine for example.

Couldn't that be detected at jsp-java time? I believe that would not 
hurt that much. In fact... (not having read the spec) ...what's the 
whole point of creating the object at that time? IMHO, if it doesn't 
exist, just null, and everyone should be mostly happy. Or maybe I'm 
completely wrong? Well, in any case, detecting that at jsp-java time 
would give a compatible implementation.

If you'd like me to submit a patch explaining more clearly what I mean, 
please tell me which class is the affected one (the one that changed 
recently), and I will send that patch to you ASAP.

Yours,

Antonio Fiol

Tim Funk wrote:

The spec says using new() is OK. So tomcat does since it is *much* 
faster than reflection.

-Tim

Rupert Jones wrote:

Hi there

[Running Tomcat 5.0.19]

I have a servlet which forwards a Boolean object resource 
(request.setAttribute(someBoolean, someBoolean);) on to a jsp page. 
As you know there is no default constructor for this object (new 
Boolean()). In previous versions of Tomcat, well 5.0.16 and less, 
this didnt become a problem, as long as the Boolean was not null. In 
5.0.19 the jsp compile throws an error because it includes code to 
make a new object were it null.


-
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: Configuring Tomcat on different IP's

2004-03-29 Thread Parsons Technical Services
Uma,

Sorry for the delay. I went to bed early for a change.

Attachments don't survive. You will need to put it in the body of the email.

List can you comment on if I am anywhere close on this or totally off my
rocker.

Thanks.

Doug

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 1:33 AM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 Can you look at this server.xml file to see if I have done everything
 correct?

 (See attached file: server.xml)

 Thank you,
 Best Regards,
 Uma



  Parsons
  Technical
  Services  To
  parsonstechnical
  @earthlink.net   Tomcat Users List
[EMAIL PROTECTED]
  03/29/2004 12:31   cc
  PM


  Please respond to
Tomcat Users
List   Subject
  [EMAIL PROTECTED] Re: Configuring Tomcat on different
   rta.apache.org  IP's










 Okay to continue,

 In the Server element you can declare two services. In one service you
 would
 have the connector for the http and the context for your application. Note
 unless someone can tell me how to control which service a context is
 associate you will have to put your context in the server.xml.

 In the other sevice you will declare the https and the other context.

 Now for clarification I have NOT done this before and am basing it on what
 I
 read from the config documentaion.

 If you look in the server.xml file you will find the connector declaration
 for the http. If you have NOT used the admin application, you will also
 find
 the connector for the https but it will be commented out !---- .

 To try this first make a copy of the server.xml.
 Next copy and paste the service section from start tag service   to
 finish tag /service and paste it right after the service finish tag.
 In the second service tag you will need to change the name on the service
 and maybe the engine.
 Then comment out the http connector and uncomment the https connector.
 Add the address=  to each connector.
 Add the context for your applications in the appropriate service.

 Restart tomcat and see what the logs say.

 Again, I have never done this. But the configuration docs say:

 Quote
 The following components may be nested inside a Server element:

 Service - One or more service element.
 GlobalNamingResources - Configure the JNDI global resources for the
server.
 Unquote

 So having two services is okay.

 Now can someone tell me which service an application will be associated
 with
 if you use the context.xml in the app?

 Give it a try and read up on the docs at:

 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html

 Good luck.

 Doug

 - Original Message -
 From: Parsons Technical Services [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 1:26 AM
 Subject: Re: Configuring Tomcat on different IP's


  Clicked too fast. There is more to come...
 
  - Original Message -
  From: Parsons Technical Services [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, March 29, 2004 1:19 AM
  Subject: Re: Configuring Tomcat on different IP's
 
 
   Uma,
  
   I think this will do what you want.
  
   For each connector defined, one for http and one for https use the
 address
   attribute to specify the IP to listen on.
  
   So in the https connector use address=192.68.xxx.xx1 and Tomcat will
   listen on 192.68.xxx.xx1 for only https request.
  
   On the http connector use address=192.68.xxx.xx2 and Tomcat will
 listen
   only for http request on 192.68.xxx.xx2 .
  
   Remember this affect all applications running on this instance of
 Tomcat.
  
   See this for details:
  
   http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
  
   Doug
  
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Sunday, March 28, 2004 11:58 PM
   Subject: Re: Configuring Tomcat on different IP's
  
  
   
   
   
   
Doug,
Thanks for the reply. It is just for security reasons out network
administrator has planned to do. So, I need to configure as such. I
 have
made the settings in the code to see if the user is using http or
 https
   and
block the user from using http.
   
But there should be some way of doing this, right?
   
Thank you,
Best Regards,
Uma
   
   
   
   
 Parsons
 Technical
 Services
  To
 parsonstechnical
 @earthlink.net   Tomcat Users List
   
 [EMAIL PROTECTED]
 03/29/2004 11:23
  cc
 AM
   
   
  

Upgrading from 4.0.1 to 4.1.30

2004-03-29 Thread Dennis Thrysøe
Hi,

I'm having problems with upgrading an existing environment from Tomcat 
4.0.1 to 4.1.30.

I just tried running the new version with the existing configuration 
(attached). But whenever I request a JSP I get an error like this:

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
	at 
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497)
	at 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

The class is generated and compiled fine, and placed in the context's 
work-dir (placed similarly to the JSP file in the webapp).

I've run out of things to try. Any ideas?

-dennis
?xml version=1.0 encoding=ISO-8859-1?

Server port=8005 shutdown=SHUTDOWN debug=0

  Service name=Tomcat-Standalone

Connector className=org.apache.catalina.connector.http.HttpConnector
  port=80
  minProcessors=5
  maxProcessors=75
  enableLookups=false
  redirectPort=8443
  acceptCount=10
  connectionTimeout=6
  debug=0/

Connector className=org.apache.catalina.connector.http.HttpConnector
  port=81
  minProcessors=5
  maxProcessors=75
  enableLookups=false
  redirectPort=8443
  acceptCount=10
  connectionTimeout=6
  debug=0/

Connector className=org.apache.catalina.connector.http.HttpConnector
  port=443
  minProcessors=5
  maxProcessors=75
  enableLookups=false
  acceptCount=10
  scheme=https
  secure=true
  debug=0

  Factory className=org.apache.catalina.net.SSLServerSocketFactory
	clientAuth=false
	keystoreFile=conf/test.keystore
	keystorePass=badeand
	protocol=TLS/
/Connector

Engine name=Standalone defaultHost=localhost debug=0

  Logger className=org.apache.catalina.logger.FileLogger
	directory=C:\cvs\cmd31\core/../build/tomcat/log
	prefix=catalina_log.
	suffix=.txt
	timestamp=true/

  Host name=localhost appBase=C:\cvs\cmd31\core/../build/webapp unpackWARs=false debug=0 autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
  directory=C:\cvs\cmd31\core/../build/tomcat/log
  prefix=localhost_access_log.
  suffix=.txt
  pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
  directory=C:\cvs\cmd31\core/../build/tomcat/log
  prefix=localhost_log.
  suffix=.txt
  timestamp=true/

Context
  path=
  docBase=
  workDir=C:\cvs\cmd31\core/../build/tomcat/work
  reloadable=true
  debug=0

  Manager className=org.apache.catalina.session.StandardManager
pathname=C:\cvs\cmd31\core/../build/tomcat/log/SESSION.ser/

/Context

  /Host

/Engine

  /Service

/Server
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

  !--  Introduction == --
  !-- This document defines default values for *all* web applications  --
  !-- loaded into this instance of Tomcat.  As each application is --
  !-- deployed, this file is processed, followed by the--
  !-- /WEB-INF/web.xml deployment descriptor from your own   --
  !-- applications.--
  !--  --
  !-- WARNING:  Do not configure application-specific resources here!  --
  !-- They should go in the /WEB-INF/web.xml file in your application.   --


  !-- == Built In Servlet Definitions  --


  !-- The default servlet for all web applications, that serves static --
  !-- resources.  It processes all requests that are not mapped to other   --
  !-- servlets with servlet mappings (defined either here or in your own   --
  !-- web.xml file.  This servlet supports the following initialization--
  !-- parameters (default values are in square brackets):  --
  !--  --
  !--   debug   Debugging detail level for messages logged --
  !--   by this servlet.  [0]  --
  !--  --
  !--   input   Input buffer size (in bytes) when reading  --
  !--   resources to be served.  [2048]--
  !--  

Re: Manager Application does not remove webapp correctly

2004-03-29 Thread Parsons Technical Services
Dirk,

Sorry, but at this point it has move above my current level on Tomcat.
Hopefully someone more knowledgeable will chime in.

Doug

- Original Message - 
From: Just Fun 4 You [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 3:51 AM
Subject: AW: Manager Application does not remove webapp correctly


Hi Doug,

if I put struts.jar and securityfilter.jar in the tomcat common/lib folder
it works. However, I am not allowed to put these jars there. I have to ship
them with the webapp, so I am still facing this problem that Tomcat Manager
is not removing the app correctly. Any further idea?

thx,
Dirk



-Ursprüngliche Nachricht-
Von: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 29. März 2004 03:09
An: Tomcat Users List
Betreff: Re: Manager Application does not remove webapp correctly

Dirk,

Have you tried putting these jars in common/lib?

This way they are loaded on Tomcat start-up and will be available to your
app without impacting the deploy/undeploy.

Doug
www.parsonstechnical.com

- Original Message -
From: Just Fun 4 You [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 7:06 PM
Subject: Manager Application does not remove webapp correctly


 Hi,

 I am using Tomcat 4.1.29 and deploy/undeploy my webapp with the Tomcat
 Manager Application. My webapp uses Struts 1.1, SecurityFilter and Log4J.
 The first deploy works fine. Then, when I remove the webapp, the app
folder
 is not totally removed from the tomcat webapps directory. The folder 'lib'
 with the files struts.jar and securityfilter.jar remain. It is not even
 possible to delete them manually as tomcat still holds a process on them.
 Have no idea what happens here!?

 Can somebody help?

 thx,

 Dirk


 -
 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]



Vedr.: Upgrading from 4.0.1 to 4.1.30

2004-03-29 Thread Thomas Nybro Bolding
Hi Dennis,
this is just a wild guess but are your classes placed in packages? As I 
recall at some point around 4.0x this became a prerequisite.

/Thomas




FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



Re: Vedr.: Upgrading from 4.0.1 to 4.1.30

2004-03-29 Thread Dennis Thrysøe
Thomas Nybro Bolding wrote:
Hi Dennis,
this is just a wild guess but are your classes placed in packages? As I 
recall at some point around 4.0x this became a prerequisite.
I'm unsure which classes your are speaking of. The generated class in 
this case is org.apache.jsp.index_jsp, but it is not placed in the 
package (folder) org/apache/jsp. Instead it's placed in the same folder 
as the JSP in the webapp.

I can see how this is a problem, if the webapp classloader isn't 
implemented in an unusually creative way. But I don't know how to alter 
this behaviour.

-dennis

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


Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru




Doug,
Here I am pasting my server.xml file, Please correct me if I am wrong
anywhere or do I need to add any more changes to the file.




!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina


!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector
port=8080   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true
   address=192.68.xxx.xx2 /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

  !-- Note : To use gzip compression you could set the following
properties :

 compression=on
 compressionMinSize=2048
 noCompressionUserAgents=gozilla, traviata
 compressableMimeType=text/html,text/xml
  --



!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--
Connector port=8082
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false
   acceptCount=100 debug=0 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /
--

!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --

!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
Engine name=Standalone defaultHost=localhost debug=0
jvmRoute=jvm1
--

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0

  !-- The request dumper valve dumps useful debugging information
about
   the request headers and cookies that were received, and the
response
   headers and cookies that were sent, for all requests received by
   this instance of Tomcat.  If you care only about requests to a
   particular virtual host, or a particular application, nest this
   element inside the corresponding Host or Context entry
instead.

   For a similar mechanism that is portable to all Servlet 2.4
   containers, check 

Re: AJP connector monitoring

2004-03-29 Thread John Sidney-Woollett
Antonio Fiol Bonnín said:
 Hi,

 I'd like to have our Tomcat servers monitored, in order to get an alarm
 if one of them stops responding.

 But they are not using HTTP at all. We are using the Coyote AJP
 connector because we have Apache in front of them, in a balanced
 configuration.

If you cannot find an AJP client...

Why not have tomcat listen for http requests as well (on 8080 or some
other port) (only accessible on your internal network), and have your
monitor script call some URL (a monitor servlet you create) on the tomcat
server to determine whether the tomcat server (and your web app) is up and
running.

Either use the response code (including no response) and/or the response
data/output to determine the state of the app server (and your
application).

You can use wget or some http client to poll your server. This is how we
do it even though we front-end Tomcat using Apache as well. This works
great with Nagios...

John Sidney-Woollett

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



Connection is Closed

2004-03-29 Thread Rob Wichterman
I keep receiving a Connection is Closed error in my tomcat localhost_log.
After receiving this error I have to restart tomcat to reconnect to oracle.
Is there any type of auto reconnect parameter?

 

Thanks,



JK Connector versus mod_proxy

2004-03-29 Thread Frank Febbraro
Historically I have had problems with the JK Connectors and have typically resorted to 
useing mod_proxy to connect my tomcat applications to an Apache website. Can someone 
here tell me why this might not be a good idea? It is easy to setup and work great, 
however what are the additional benefits of this connector approach?

Thanks in advance...
Frank

Mail Delivery (failure tomcat-user@jakarta.apache.org)

2004-03-29 Thread tomcat-user


If the message will not displayed automatically,
follow the link to read the delivered message.
Received message is available at:
www.jakarta.apache.org/inbox/tomcat-user/read.php?sessionid-26439




Norton AntiVirus Deleted1.txt
Description: plain/text


Re: AJP connector monitoring

2004-03-29 Thread Antonio Fiol Bonnín
John Sidney-Woollett wrote:

Antonio Fiol Bonnín said:
 

Hi,

I'd like to have our Tomcat servers monitored, in order to get an alarm
if one of them stops responding.
But they are not using HTTP at all. We are using the Coyote AJP
connector because we have Apache in front of them, in a balanced
configuration.
   

If you cannot find an AJP client...

Why not have tomcat listen for http requests as well (on 8080 or some
other port) (only accessible on your internal network), and have your
monitor script call some URL (a monitor servlet you create) on the tomcat
server to determine whether the tomcat server (and your web app) is up and
running.
Either use the response code (including no response) and/or the response
data/output to determine the state of the app server (and your
application).
You can use wget or some http client to poll your server. This is how we
do it even though we front-end Tomcat using Apache as well. This works
great with Nagios...
 

I had thought of that, but if you hit maxProcessors on the AJP side, you 
won't detect that if you monitor the HTTP connector.

Antonio Fiol

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


RE: help with embedding tomcat

2004-03-29 Thread Shapira, Yoav

Hi,
Look at org.apache.catalina.Embedded#main for an example of how to embed
tomcat.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: tomcatuser [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 27, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: help with embedding tomcat

I am trying to figure out how to embed tomcat into my application.  If
someone could help, I would appreciate it.

My biggest question is, do I need to use the commons-modeler in order
to
get this all working?  Or can I just use the JMX libraries ?

thank you.



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Directory question for the masters...

2004-03-29 Thread Shapira, Yoav

Hi,
See the allowLinking attribute:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 1:26 AM
To: [EMAIL PROTECTED]
Subject: Directory question for the masters...

I need to access a specific directory from within tomcat, but I'm
having
a specific problem and require some advice.

I have a link to a file in the servlet, something like
https://myserver.com/special-directory/file.zip;

If I create the directory as follows:
/export/home/tomcat/webapps/ROOT/special-directory/ and put file.zip
in that directory, it all works perfectly.

HOWEVER, if instead of creating the actual directory, I create a
symbolic link to a different directory

(i.e. in ROOT I type ln -s /export/home/myfiles/directory
special-directory, the linked directory appears, and (in unix) I can
see/access the files. BUT - tomcat no longer finds the files, even
though the linked directory has the required name and files.

Is there some way to make tomcat see a linked directory?

The problem is that the servlets are writing a data file for offline
use
in one directory, and then I was hoping to symbolically link that
directory under ROOT so the user could access it.  Worst case, I guess
I
could write to ROOT/special-directory, but I didn't really want the
user files stored there - just a link. Since these files are created
on
the fly, a hard link won't work.

Thanks very much in advance,

-Richard

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: JK Connector versus mod_proxy

2004-03-29 Thread David Smith
I use mod_proxy all the time with no problem  well that is until my 
last webapp project.  The good is you can map your webapp in anywhere 
and even in several places in the main site with a little help from 
mod_rewrite.  The bad is user credentials from an authentication module 
in Apache aren't passed on to the Tomcat container :(.  I'm resorting to 
the mod_jk system for the first time because the remote username from 
the university's kerberized authentication system isn't passed on 
without it.

That's my experience anyway.  I posted a question about it a few months 
ago with no responses -- not even a 'you can't do that'.  I'm guessing 
no one has any experience with such a setup.

--David

Frank Febbraro wrote:

Historically I have had problems with the JK Connectors and have typically resorted to useing mod_proxy to connect my tomcat applications to an Apache website. Can someone here tell me why this might not be a good idea? It is easy to setup and work great, however what are the additional benefits of this connector approach?

Thanks in advance...
Frank
 

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


Shared WebServer

2004-03-29 Thread Simone - Dev
Hello All,
at the moment I'm managing a server with a single website developed by
myself.
But in the next few months I'm planning to share the server with other
websites, developed by other developers.
I'm running tomcat 5.0.18.
 
Is it possibile to prevent the application developed under these
websites to stay inside their directory, without being able to access
parent directories?
 
Thank you
Simone
 
-
Simone Chiaretta
 http://www.piyosailing.com/S www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
Life is short, play hard
 


RE: Connection is Closed

2004-03-29 Thread Tom K
In your server.xml file if you are using connection pooling you can put
a line in like this:
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value




  -- 
- parameter
  nameurl/name 
 
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value
 
  /parameter
  /ResourceParams
  /Context
  /Host
  /Engine
  /Service
  /Server

Hope that does the trick.

Tom Kochanowicz



-Original Message-
From: Rob Wichterman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 7:36 AM
To: 'Tomcat Users List'
Subject: Connection is Closed

I keep receiving a Connection is Closed error in my tomcat
localhost_log.
After receiving this error I have to restart tomcat to reconnect to
oracle.
Is there any type of auto reconnect parameter?

 

Thanks,


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



RE: Tomcat Hangs

2004-03-29 Thread Cox, Charlie
Try to search for the file from a command prompt. Windows explorer's search
feature will not find all the files depending on your setup.

dir /s hs*

Charlie

 -Original Message-
 From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 10:01 AM
 To: Tomcat Users List
 Subject: RE: Tomcat Hangs
 
 I could not find that file. But meanwhile it stopped responding again.
 This time it is not a crash, I can still see the console and the
 java.exe process in the Task Manager.
 
 When I hit ctrl + break on the console, there was a lot of log message
 that scrolled on the screen. I've pasted some of the messages at the
 end below:
 ---
 StandardManager[/udf_uiAlertNS] daemon prio=5 tid=0x34e22e48
 nid=0x6ac waiting
  on monitor [0x358cf000..0x358cfdb8]
 at java.lang.Thread.sleep(Native Method)
 at org.apache.catalina.session.StandardManager.threadSleep
 (StandardManag
 er.java:810)
 at org.apache.catalina.session.StandardManager.run
 (StandardManager.java:
 869)
 at java.lang.Thread.run(Thread.java:479)
 
 Signal Dispatcher daemon prio=10 tid=0x828e78 nid=0xa68 waiting on
 monitor [0.
 .0]
 
 Finalizer daemon prio=9 tid=0x34c50d78 nid=0x978 waiting on monitor
 [0x34f0f00
 0..0x34f0fdb8]
 at java.lang.Object.wait(Native Method)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
 at java.lang.ref.Finalizer$FinalizerThread.run
 (Finalizer.java:157)
 
 Reference Handler daemon prio=10 tid=0x34c500e0 nid=0xf60 waiting on
 monitor [
 0x34ecf000..0x34ecfdb8]
 at java.lang.Object.wait(Native Method)
 at java.lang.Object.wait(Object.java:415)
 at java.lang.ref.Reference$ReferenceHandler.run
 (Reference.java:105)
 
 main prio=5 tid=0x234bc8 nid=0xfcc runnable [0x6f000..0x6fc34]
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
 at java.net.ServerSocket.implAccept(ServerSocket.java:238)
 at java.net.ServerSocket.accept(ServerSocket.java:217)
 at org.apache.catalina.core.StandardServer.await
 (StandardServer.java:527
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
 at org.apache.catalina.startup.Catalina.execute
 (Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process
 (Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main
 (Bootstrap.java:203)
 
 VM Thread prio=5 tid=0x829498 nid=0xe20 runnable
 
 
 
 - SPS
 
 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 Date: Friday, March 26, 2004 9:37 am
 Subject: RE: RE: Tomcat Hangs
 
 
  Hi,
 
 
  Yes this time it appears to be a crash. The message that I posted
  belowis the only message that I can see on the console. This is
  the last
  message before crashing.
 
  There should be a file called hs_err_ ( can be a number of
  different things on the Windows platform) in the current working
  directory of the JVM when it crashed.  Look for that file and post its
  contents if you find it.
 
  Yoav Shapira
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is confidential,
  proprietary and/or privileged.  This e-mail is intended only for
  the individual(s) to whom it is addressed, and may not be saved,
  copied, printed, disclosed or used by anyone else.  If you are not
  the(an) intended recipient, please immediately delete this e-mail
  from your computer system and notify the sender.  Thank you.
 
 
  ---
  --
  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: Why won't Tomcat 5 shutdown properly?

2004-03-29 Thread Shapira, Yoav

Hi,

There's no date set for 5.0.20 is there?

5.0.20 is out already and has been available for download for several
days.  I don't think it contains anything relevant to your issue over
5.0.19.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-29 Thread Shapira, Yoav

Hi,

JAVA_OPTS=-server -Xms1200 -Xmx1200 on a Pentium 3 machine with 2GB
of
RAM.  I'm new to Memory profiling but can't seem to find any lingering

I really doubt this is the memory setting you want.  But giving you the
benefit of the doubt, assuming you've done your profiling and testing to
arrive at this setting, it means the heap is stable.  So the free memory
reduction you're observing can only come from new classes loading, e.g.
webapp reloads, or from non-tomcat-related activities on the server.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



JMeter -Aggregate Report - very small Question

2004-03-29 Thread armalai
Hi.,
   In the JMeter - Aggregate Report option we have various coloumns in the result 
table.
I'm confused about Average,Min and Max.
Please describe me what is Average,Min and Max?
I did compare to graph results and other results option..i couldn't get clear idea.

Thanks.,
MALAI

RE: [ANN] : Doc Mirror

2004-03-29 Thread Shapira, Yoav

Hi,
I've updated the wiki links.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 2:30 AM
To: Tomcat Users List
Subject: [ANN] : Doc Mirror

Hi All!

I will be dismantling my site over the next few days, so, very soon,
you
will not be able to find my Tomcat 4 and Tomcat 5 tutorials at
http://cymulacrum.net

Werner van Mook, of connecties.com, has generously offered to host the
documents for free. The new links are shown below:
Tomcat 5 : http://www.connecties.com/cymulacrum/tomcat5/book1.html
Tomcat 4 : http://www.connecties.com/cymulacrum/tomcat4/book1.html

I have not had time to update the JK2 section for the new connector
release that just came out. So, watch for the next release. Which may
be
soon.

As usual, this documentation is provided without warranty, and I cannot
be held responsible if it screws up your server, loses you money or
time, causes your children to grow hair on their palms, etc. Read the
terms and conditions.

[Yoav, Tim : please update the links on the Wiki for me. Thanks ! ]

--
There is nothing so absurd but some philosopher has said it.
   -- Marcus Tullius Cicero
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread David Smith
Are you sure it's not MySQL being funny?  Try going in to mysql as root 
and executing this query:

select user, host from mysql.user ;

Take a look at the host field for the user tomcat is logging in as.  If 
it specifies anything other than %, you may end up having to put in a 
row for every identity your computer can be.  I've had that trouble 
myself.  I want it restricted so only the tomcat server is getting in as 
the webapp user.  Anyone else would be rejected even if they did manage 
to get the username and password.  To do that, I had to cover my bases 
and put in a row for each: localhost, 127.0.0.1, the IP address, and the 
FQDN of the machine tomcat was on.

--David

Guillaume Roger wrote:

Hi all,

I've a problem while connecting to mysql from tomcat.

There is a bean which initializes the connexion between tomcat and 
mysql. The parameter which seems to be faulty is the url: 
jdbc:mysql://localhost:3306/appli

After a reboot, this url caused an error, ie the connexion between 
mysql and tomcat was not up. The url had to be replaced by the 
following: jdbc:mysql://212.xxx.xxx.xxx:3306/appli, ie I had to put 
the IP address instead of localhost, without understanding why, 
whearas no modification relating to this had occured.

All was going well until another reboot, after which I had to put the 
old line back, with localhost, always without understanding why.

The searches on google, mysql and tomcat sites didn't bring me a 
solution.

Here is the configuration of my box:

redaht 7.2
mysql 3.23
tomcat4 4.1.10
j2sdk 1.4.0
Could anyone explain me why sometimes the IP address should be put, 
and sometimes localhost? I'd like to make it work at any time.

Thanks,

-
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]


AW: Manager Application does not remove webapp correctly

2004-03-29 Thread Just Fun 4 You
Does anybody else can jump in here? I got stuck. 

Obviously there is a big problem with Tomcat 4 and Struts. Tomcat does not
release the struts.jar, commons-validator.jar and securityfilter.jar. All
these packages have some property files. I assume this could be the problem,
why Tomcat still holds processes on these jars because there might be a
problem for tomcat with i/o operations. But I am just guessing.  Is there no
struts user who deploys/undeploys with the Tomcat Manager Application and
experiences the same problem??!

Dirk


-Ursprüngliche Nachricht-
Von: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 29. März 2004 14:43
An: Tomcat Users List
Betreff: Re: Manager Application does not remove webapp correctly

Dirk,

Sorry, but at this point it has move above my current level on Tomcat.
Hopefully someone more knowledgeable will chime in.

Doug

- Original Message -
From: Just Fun 4 You [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 3:51 AM
Subject: AW: Manager Application does not remove webapp correctly


Hi Doug,

if I put struts.jar and securityfilter.jar in the tomcat common/lib folder
it works. However, I am not allowed to put these jars there. I have to ship
them with the webapp, so I am still facing this problem that Tomcat Manager
is not removing the app correctly. Any further idea?

thx,
Dirk



-Ursprüngliche Nachricht-
Von: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 29. März 2004 03:09
An: Tomcat Users List
Betreff: Re: Manager Application does not remove webapp correctly

Dirk,

Have you tried putting these jars in common/lib?

This way they are loaded on Tomcat start-up and will be available to your
app without impacting the deploy/undeploy.

Doug
www.parsonstechnical.com

- Original Message -
From: Just Fun 4 You [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 28, 2004 7:06 PM
Subject: Manager Application does not remove webapp correctly


 Hi,

 I am using Tomcat 4.1.29 and deploy/undeploy my webapp with the Tomcat
 Manager Application. My webapp uses Struts 1.1, SecurityFilter and Log4J.
 The first deploy works fine. Then, when I remove the webapp, the app
folder
 is not totally removed from the tomcat webapps directory. The folder 'lib'
 with the files struts.jar and securityfilter.jar remain. It is not even
 possible to delete them manually as tomcat still holds a process on them.
 Have no idea what happens here!?

 Can somebody help?

 thx,

 Dirk


 -
 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]


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



RE: Windows Login Id in a Web App on T5

2004-03-29 Thread LILES, DAVID (CONTRACTOR)
I have used IIS to get usernames and it's simple to do with Windows basic 
authentication.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 4:58 PM
To: 'Tomcat Users List'
Subject: RE: Windows Login Id in a Web App on T5


You can't get a use a windows username and password without integrating with
windows authentication. How about fronting things with IIS? Let IIS do the
authentication for you. Haven't tried it but I don't see why it wouldn't work.


 -Original Message-
 From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 26, 2004 7:30 PM
 To: 'Tomcat Users List'
 Subject: Windows Login Id in a Web App on T5
 Importance: High
 
 Hi,
 
 How can I get user's windows login Id in a java web 
 application (JSP/Servlets) running on Apache Tomcat (T5) 
 without using NTLM Authentication. The need is due to the 
 fact that I cant use POST method with NTLM Authentication in 
 a JSP's to send data to a servlet.
 
 Help !!
 
 Regards
 Abhay
 
 -
 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: new apache to tomcat connector for linux

2004-03-29 Thread Mark Nye
Hi all,
 Thanks for the replies.. 

Yoav.. Yes I read the documentation.  The documentation was helpful but
there is/was no download available for linux.  The download directory was
empty.  At that point I stopped to ask for assistance.  

Dale.. I have not yet read this howto. Thank you very much!

Andrew.. I couldn't find a valid download link in the docs and thought maybe
they were old.  

Thanks,
Mark

 
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 26, 2004 9:50 AM
To: Tomcat Users List
Subject: RE: new apache to tomcat connector for linux


Hi,
You mean to say you read
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html and found
none of it helpful enough to do something besides copy the old conf
directory?!?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mark Nye [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 9:32 AM
To: [EMAIL PROTECTED]
Subject: new apache to tomcat connector for linux

Hi,

I spend about half a day looking for the jk flavor of the week.  It
seems
the documentation is running in circles.  I currently use apache 2 with
tomcat 3.  (tomcat 3 is the only tomcat that we have been succesfull at
installing with apache)  I would like to use the new tomcat with apache
but
the jk for linux download directory is empty.  I'm comfortable with the
install of apache and tomcat but I can't find any good documentation on
getting the jk directory under tomcat5-- conf.  About the best I could
do
is copy my jk directory from the old tomcat to the new.  Start the new
tomcat server and Apache.   Tomcat does get the servlet requests but
says
the servlet cannot be found.  I don't like this hack though and was
wondering if anyone else has experienced this confusion.  If so could
you
point to the correct jk and connection methodology?



Thanks,

Mark




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: JK2

2004-03-29 Thread LILES, DAVID (CONTRACTOR)
I recently had a similar problem with Tomcat 5 and IIS 5, but now I have it working. 
As a result, I documented the steps I took and the files I modified. Hopefully it can 
give you some pointers

http://www.dynamichostings.com/TomCat5IIS5.do

-Dave

-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: Friday, March 26, 2004 4:46 PM
To: 'Tomcat Users List'
Subject: JK2


Hi

I really wanted to avoid asing the list for this again. Sorry, I couldn't
get it going. This was on the list soo often and I always read the posts and
I bookmarkes, every link I could find.
I am using apache2 and tomcat5 for some time now. Every works great.

Now I need to run multiple tomcats and I don't want to get more ips right
now. So I took a few days (yes, it took that long for me) and compiled
mod_jk2.

Now I am stuck with configuration.
The online documentation really isnt useful. Sorry. This differs from
tomcat. Anyway, I stored a lot of bookmarks in the last weeks about JK2 from
this list.

But there are a lot of questions open.
Some tutorials talk about default workers2.properties files. I dont know
where to find this. A lot of tutorials about jk2 give different syntax for
the configuration files. NO tutorial even states where the files must be
placed. Can anyone tell me, how tomcat should know where to find these
files? Or apache2?

So my questions are:
- Does someone have a [jk2-] beginners tutorial, that covers details?
- Can anyone with a working environment send me his configuraiton files for
apache, tomcat, workers, jk2? I will handle them secretly and you can remove
any real domainnames beforehand.

I would be very thankful.

Regards, 
  Steffen


-
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: AJP connector monitoring

2004-03-29 Thread Scott Ahten
I use Mars to monitor Tomcat instances that are front-ended with 
Apache. To insure that my back-end logic is working correctly, I 
connect to Apache and look for a particular string of characters in a 
page. Mars also contains a HTTPS and JDBC probes so you can monitor SSL 
sites and database servers.

In addition, the plugin API isn't very complex, so you could write a 
probe to poll AJP directly.

http://www.altara.org/mars.html

- Scott

On Mar 29, 2004, at 8:15 AM, John Sidney-Woollett wrote:

You can use wget or some http client to poll your server. This is how 
we
do it even though we front-end Tomcat using Apache as well.
- - - - -
:: [EMAIL PROTECTED]
:: http://www.pixelfreak.net
- - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Connection is Closed

2004-03-29 Thread Rob Wichterman
I am connecting to Oracle 9i not MySql.  Sorry I should've mentioned this in
my original message.

Thanks,

-Original Message-
From: Tom K [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 9:14 AM
To: 'Tomcat Users List'
Subject: RE: Connection is Closed

In your server.xml file if you are using connection pooling you can put
a line in like this:
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value




  -- 
- parameter
  nameurl/name 
 
valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value
 
  /parameter
  /ResourceParams
  /Context
  /Host
  /Engine
  /Service
  /Server

Hope that does the trick.

Tom Kochanowicz



-Original Message-
From: Rob Wichterman [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 7:36 AM
To: 'Tomcat Users List'
Subject: Connection is Closed

I keep receiving a Connection is Closed error in my tomcat
localhost_log.
After receiving this error I have to restart tomcat to reconnect to
oracle.
Is there any type of auto reconnect parameter?

 

Thanks,


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


-
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: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread Guillaume Roger
David Smith a écrit :
Are you sure it's not MySQL being funny?  Try going in to mysql as root 
and executing this query:

select user, host from mysql.user ;
That was an idea I already had, and I checked that.

It is specified %, so I should be able to connect from everywhere.

The thing is that I connect always from the same box (tomcat and mysql 
are on the same box), but I have to specify in my jsp sometimes 
localhost, and sometimes the IP address to connect. I suspected 
alternatively mysql, the network configuration, tomcat... I must admit 
that I'm a bit lost.

Thanks for your help

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


RE: Why won't Tomcat 5 shutdown properly?

2004-03-29 Thread rcdunn

 Hi,

 There's no date set for 5.0.20 is there?

 5.0.20 is out already and has been available for download for several
 days.  I don't think it contains anything relevant to your issue over
 5.0.19.

 Yoav Shapira

It looks like the jakarta website is out of date then. There is no mention
that I can see of a 5.0.20 release. I guess it must be hidden away in the
download site as the website says the latest is 5.0.19. (and I don't see it
on the normal download page I usually go to:
http://jakarta.apache.org/site/binindex.cgi)

Rich Dunn

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



RE: PDF Files

2004-03-29 Thread Cox, Charlie
You need to implement the Range header.

Charlie

 -Original Message-
 From: Peter Guyatt [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 12:04 PM
 To: Tomcat Users List
 Subject: PDF Files
 
 Hi All,
 
   Does anyone know how to jump directly to a specific page in a PDF
 document
 if you have manually loaded it and served it through a servlet ?
 
 Thanks
 
 Pete
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


RE: Why won't Tomcat 5 shutdown properly?

2004-03-29 Thread Shapira, Yoav

Hi,

It looks like the jakarta website is out of date then. There is no
mention

No.  5.0.20 is an alpha, and we list the latest stable release on the
binary downloads page.  Since you were asking about an alpha build, I
assumed you knew this as well the download location (unmirrored):

http://www.apache.org/dist/jakarta/tomcat-5/v5.0.20-alpha/

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Configuring Tomcat on different IP's

2004-03-29 Thread Parsons Technical Services
Uma,

I removed several of the elements that were commented out and made the
changes I thought it would need.

Unless someone can answer my question about which service picks up which
app, you will have to put the context in the server.xml . You can experiment
with it after you get it running by trying an external context and see which
service picks it up.

Give it a try.

Doug


!-- Example Server Configuration File --


Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina


!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true address=192.68.xxx.xx2 /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --


!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--

  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

  !-- Comment out the old realm but leave here for now in case we
   need to go back quickly --
  !--
  Realm className=org.apache.catalina.realm.MemoryRealm /
  --

  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false



!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.  Specify
either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

DefaultContext reloadable=true /

  /Host

/Engine

  /Service

  Service name=CatalinaHTTPS


!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --

Connector port=443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:\Documents and
Settings\kworker\server.keystore
   keystorePass=changeit
   address=192.68.xxx.xx1 /


!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8019
   enableLookups=false redirectPort=443 debug=0
   protocol=AJP/1.3 /

!-- Define the top level container in our 

Re: AJP connector monitoring

2004-03-29 Thread Antonio Fiol Bonnín
It's a very nice software, but it still has not an AJP probing client.

Antonio Fiol

Scott Ahten wrote:

I use Mars to monitor Tomcat instances that are front-ended with 
Apache. To insure that my back-end logic is working correctly, I 
connect to Apache and look for a particular string of characters in a 
page. Mars also contains a HTTPS and JDBC probes so you can monitor 
SSL sites and database servers.

In addition, the plugin API isn't very complex, so you could write a 
probe to poll AJP directly.

http://www.altara.org/mars.html

- Scott

On Mar 29, 2004, at 8:15 AM, John Sidney-Woollett wrote:

You can use wget or some http client to poll your server. This is how we
do it even though we front-end Tomcat using Apache as well.


- - - - -
:: [EMAIL PROTECTED]
:: http://www.pixelfreak.net
- - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




smime.p7s
Description: S/MIME Cryptographic Signature


Re: JSP works, Servlet does not work

2004-03-29 Thread Robert Mazur
On Saturday 27 March 2004 17:07, Phillip Rhodes wrote:
 Robert Mazur wrote:
  SUMAMRY:
  JSP's work, but servlets give:
  HTTP Status 404 - /sampleapp/servlet/samplepackage.SampleServlet

 Offhand, this sounds like the problem people experience because
 newer versions of Tomcat ship with the Invoker servlet
 disabled by default.  Take a look at this page,
 and see if this helps:

 http://www.cs.fiu.edu/~downeyt/cgs4825/context.html

 You can tell if this is the problem you're having if
 you define a servlet mapping in your web.xml and you
 can access your servlet that way, but accessing it using
 the /servlet/whatever url pattern fails.

 HTH.. otherwise, hopefully some of the more knowledgeable
 list members will chime in..

 TTYL,

 Phil
Phil and Doug,

Thanks to you both for the help.  I have it working now.   Man, I am so 
psyched that I can stop beating my head against the wall.  I was definately 
cruising down the wrong path in trying to fix this problem.  Your posts saved 
me a lot of grief.

So as Doug mentioned, leaving the invoker open as default can lead to evil.  
Is this because then Tomcat would be willing to invoke any old servlet that I 
cracker might manager to upload to your server?  So all the mapping in 
web.xml is extra insurance that Tomcat will execute only what you want it to?

If that is not the reason, could someone mention what else the reasons could 
be for the potential evil?

Thanks guys!
Rob


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



Re: JSP works, Servlet does not work

2004-03-29 Thread Parsons Technical Services
Robert,

That's one. The other is if you have a servlet sitting in your app that
should be called by another class. If the hacker gets lucky he could call
this servlet with his own query/post from the URL and bypass any
check/security you may have in the calling servlet. Now if the nonpublic
servlet can access thing and return them to the client you could have a big
hole for the hacker to look into your data with.

Now with this in mind suppose the servlet can query a database using the
querystring data and the database contains sensitive data. Hackers seem to
have this unlimited amount of time to try thousands of combinations until
they get a response. Once they figure out your structure your sunk.

Look at all your servlets and ask what can they do if you call them
directly. Can their use be twisted?

Now let your imagination flow.

Doug

- Original Message - 
From: Robert Mazur [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 10:30 AM
Subject: Re: JSP works, Servlet does not work


 On Saturday 27 March 2004 17:07, Phillip Rhodes wrote:
  Robert Mazur wrote:
   SUMAMRY:
   JSP's work, but servlets give:
   HTTP Status 404 - /sampleapp/servlet/samplepackage.SampleServlet
 
  Offhand, this sounds like the problem people experience because
  newer versions of Tomcat ship with the Invoker servlet
  disabled by default.  Take a look at this page,
  and see if this helps:
 
  http://www.cs.fiu.edu/~downeyt/cgs4825/context.html
 
  You can tell if this is the problem you're having if
  you define a servlet mapping in your web.xml and you
  can access your servlet that way, but accessing it using
  the /servlet/whatever url pattern fails.
 
  HTH.. otherwise, hopefully some of the more knowledgeable
  list members will chime in..
 
  TTYL,
 
  Phil
 Phil and Doug,

 Thanks to you both for the help.  I have it working now.   Man, I am so
 psyched that I can stop beating my head against the wall.  I was
definately
 cruising down the wrong path in trying to fix this problem.  Your posts
saved
 me a lot of grief.

 So as Doug mentioned, leaving the invoker open as default can lead to
evil.
 Is this because then Tomcat would be willing to invoke any old servlet
that I
 cracker might manager to upload to your server?  So all the mapping in
 web.xml is extra insurance that Tomcat will execute only what you want it
to?

 If that is not the reason, could someone mention what else the reasons
could
 be for the potential evil?

 Thanks guys!
 Rob


 -
 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 enable cipher suites in Tomcat

2004-03-29 Thread Rodrigo Ruiz
Hi all, is there any way to enable a specific cipher suite for SSL 
connections in Tomcat?

The current project I am working in requires data encryption, but not 
server authentication, so enabling an anonymous cipher suite would fit 
my requirements without needing to create a certificate.

Thanks in advance,
Rodrigo Ruiz
--
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.642 / Virus Database: 410 - Release Date: 24/03/2004
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to enable cipher suites in Tomcat

2004-03-29 Thread Adam Buglass
There is a way, and I believe this (very out-of-date) link should give
you some more information:
http://www.redhat.com/mirrors/LDP/HOWTO/SSL-RedHat-HOWTO.html

For better info, you could check relevant docs and / or man pages or do
a google search. But that is mere speculation...!

On Mon, 2004-03-29 at 16:54, Rodrigo Ruiz wrote:
 Hi all, is there any way to enable a specific cipher suite for SSL 
 connections in Tomcat?
 
 The current project I am working in requires data encryption, but not 
 server authentication, so enabling an anonymous cipher suite would fit 
 my requirements without needing to create a certificate.
 
 Thanks in advance,
 Rodrigo Ruiz


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



Re: JK Connector versus mod_proxy

2004-03-29 Thread Frank Febbraro
Thanks for your response.

Have you encountered any gotchas with using (and more appropriately
configuring) mod_jk? Last time I tried, I had all sorts of problems with
data not rendering correctly, it was incredibly frustrating and awkward.
Anyway, just wondering...

thanks,
Frank

- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 9:04 AM
Subject: Re: JK Connector versus mod_proxy


 I use mod_proxy all the time with no problem  well that is until my
 last webapp project.  The good is you can map your webapp in anywhere
 and even in several places in the main site with a little help from
 mod_rewrite.  The bad is user credentials from an authentication module
 in Apache aren't passed on to the Tomcat container :(.  I'm resorting to
 the mod_jk system for the first time because the remote username from
 the university's kerberized authentication system isn't passed on
 without it.

 That's my experience anyway.  I posted a question about it a few months
 ago with no responses -- not even a 'you can't do that'.  I'm guessing
 no one has any experience with such a setup.

 --David

 Frank Febbraro wrote:

 Historically I have had problems with the JK Connectors and have
typically resorted to useing mod_proxy to connect my tomcat applications to
an Apache website. Can someone here tell me why this might not be a good
idea? It is easy to setup and work great, however what are the additional
benefits of this connector approach?
 
 Thanks in advance...
 Frank
 
 

 -
 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: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-29 Thread tom ly
I started up tomcat with both the Sun JDK and JRockit.  Even without any load, the 
total avaiable memory contiues to drop.  Why does this happen?
 
Thanks,
Tom
tom ly [EMAIL PROTECTED] wrote:
Background threads? What can be causing them to occur? If you have any suggestions on 
where to look that'll be great.

Thanks
Tom

Tim Funk wrote:
Sounds like background threads doing bad things or things that the GC can't 
resolve as candidate for freeing.

-Tim

tom ly wrote:

 The Free Memory(not the java heap) continues to drop even when there is nothing 
 going on with tomcat. It gets to the point where there is hardly any left and we 
 have to restart tomcat. I'm using JRockit and have my JAVA_OPTS=-server -Xms1200 
 -Xmx1200 on a Pentium 3 machine with 2GB of RAM. I'm new to Memory profiling but 
 can't seem to find any lingering objects using JProbe, besides, the Free Memory 
 continues to drop on the machine over the weekend when no testing is taking place. 
 What can be wrong? Any help would be great.
 Thanks,
 Tom


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


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread David Smith
Well, then I'm not sure what to tell you.  I use mysql all the time and 
have never had such an issue (Mandrake Linux 9.2, Tomcat 5.0.19, Apache 
2.0).  Very strange.  Are there any firewalls or internet connection 
sharing programs at work?

--David

Guillaume Roger wrote:

David Smith a écrit :

Are you sure it's not MySQL being funny?  Try going in to mysql as 
root and executing this query:

select user, host from mysql.user ;


That was an idea I already had, and I checked that.

It is specified %, so I should be able to connect from everywhere.

The thing is that I connect always from the same box (tomcat and mysql 
are on the same box), but I have to specify in my jsp sometimes 
localhost, and sometimes the IP address to connect. I suspected 
alternatively mysql, the network configuration, tomcat... I must admit 
that I'm a bit lost.

Thanks for your help

-
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]


Why servlet-api.jar can't be loaded?

2004-03-29 Thread pkhadra24
When I start tomcat i have this error and my application can't run:

INFO: 
validateJarFile(C:\jakarta-tomcat-5.0.19\webapps\projet\WEB-INF\lib\servlet-api.jar) - 
jar not loaded. See Servlet Spec 2.3 section 9.7.2. Offending class: 
javax/servlet/Servlet.class

and I need the Servlet class for my Action Listener class of my JSF application.
Please help.
Patrick

Re: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread satbinder . singh
How do I unsubscribe from this mail group, as I keep getting mails every 
to minutes?



RE: Why servlet-api.jar can't be loaded?

2004-03-29 Thread Shapira, Yoav

Hi,
Tomcat bundles the servlet spec: don't deploy it with your webapp.
Simply remove it from WEB-INF/lib and you'll be fine.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: pkhadra24 [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:33 AM
To: [EMAIL PROTECTED]
Subject: Why servlet-api.jar can't be loaded?

When I start tomcat i have this error and my application can't run:

INFO: validateJarFile(C:\jakarta-tomcat-5.0.19\webapps\projet\WEB-
INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3 section
9.7.2. Offending class: javax/servlet/Servlet.class

and I need the Servlet class for my Action Listener class of my JSF
application.
Please help.
Patrick



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Multiple instance in Single DBCP

2004-03-29 Thread eric sato
hi all,
Currently Tomcat is running in multiple instances. Each of the instance 
has its own Database Connection Pool(DBCP). How do i configure/make 
changes in order only has a single DBCP in multiple tomcat instances? 
It allows me more efficient to manage DB connection.
Pls advise if you know the way.
Thanks in advance.
sato.


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



Re: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread eric sato
try here http://jakarta.apache.org/site/mail2.html#Tomcat

- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, March 30, 2004 0:41 am
Subject: Re: connexion tomcat/mysql: IP vs localhost

 How do I unsubscribe from this mail group, as I keep getting mails 
 every 
 to minutes?
 
 


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



Re: JK Connector versus mod_proxy

2004-03-29 Thread David Smith
No problems that I can see.  I've been fortunate compared to most people 
on the list in that my stuff seems to just work so far.  We'll see when 
this last webapp goes live and a few users start tossing it around.

--David

Frank Febbraro wrote:

Thanks for your response.

Have you encountered any gotchas with using (and more appropriately
configuring) mod_jk? Last time I tried, I had all sorts of problems with
data not rendering correctly, it was incredibly frustrating and awkward.
Anyway, just wondering...
thanks,
Frank
- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 9:04 AM
Subject: Re: JK Connector versus mod_proxy

 

I use mod_proxy all the time with no problem  well that is until my
last webapp project.  The good is you can map your webapp in anywhere
and even in several places in the main site with a little help from
mod_rewrite.  The bad is user credentials from an authentication module
in Apache aren't passed on to the Tomcat container :(.  I'm resorting to
the mod_jk system for the first time because the remote username from
the university's kerberized authentication system isn't passed on
without it.
That's my experience anyway.  I posted a question about it a few months
ago with no responses -- not even a 'you can't do that'.  I'm guessing
no one has any experience with such a setup.
--David

Frank Febbraro wrote:

   

Historically I have had problems with the JK Connectors and have
 

typically resorted to useing mod_proxy to connect my tomcat applications to
an Apache website. Can someone here tell me why this might not be a good
idea? It is easy to setup and work great, however what are the additional
benefits of this connector approach?
 

Thanks in advance...
Frank
 

-
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]


Tomcat Configuration

2004-03-29 Thread Reis, Tom
I am running Tomcat 4.0.3 on a W2K server. My problem is I am trying
to increase the heap size. I know I am supposed to modify the tomcat.sh or
tomcat.bat but I am not sure which one. Also does someone have a sample so
that I can see exactly where to put the -Xms and -Xmx statement. Also how
can I tell if the modification is running. Thanks.

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



Re: Message on Tomcat console

2004-03-29 Thread Surya Suravarapu
Bumping. Any thoughts on this?

- SPS

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Friday, March 26, 2004 7:33 pm
Subject: Message on Tomcat console

 Hello All!
 
 Tomcat console is displaying the following message very often:
 
 ---
 SystemId Unknown; Line 1358; Column 31; name has an illegal 
 attribute: 
 {1}
 ---
 
 It is not affecting Tomcat performance or anything but just want 
 to 
 find out if anybody else have observed this kind of behavior. 
 Somebody 
 on the net was suggesting that it could be related with xalan.jar?
 
 Thanks!
 
 - SPS
 
 
 
 ---
 --
 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: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread Giuseppe Briotti
 ==
 Date: Mon, 29 Mar 2004 11:03:11 +0200
 jdbc:mysql://localhost:3306/appli
 jdbc:mysql://212.xxx.xxx.xxx:3306/appli

quite strange... what happens if you put 127.0.0.1 (i.e. the IP address for localhost)?

I think that, because you are working on a box (i.e. client and server on the same PC) 
this behaviour is related to your net configuration... check your hosts file.

G


--

Giuseppe Briotti
[EMAIL PROTECTED]

Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius.
 (Orazio)



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



RE: Message on Tomcat console

2004-03-29 Thread Shapira, Yoav

Hi,
Look for a long (= 1358 lines) XML file that you're parsing frequently,
assuming this warning comes up every time you try to parse the file.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Surya Suravarapu [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 12:17 PM
To: Tomcat Users List
Subject: Re: Message on Tomcat console

Bumping. Any thoughts on this?

- SPS

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Friday, March 26, 2004 7:33 pm
Subject: Message on Tomcat console

 Hello All!

 Tomcat console is displaying the following message very often:

 ---
 SystemId Unknown; Line 1358; Column 31; name has an illegal
 attribute:
 {1}
 ---

 It is not affecting Tomcat performance or anything but just want
 to
 find out if anybody else have observed this kind of behavior.
 Somebody
 on the net was suggesting that it could be related with xalan.jar?

 Thanks!

 - SPS



 ---
 --
 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Wrong apache version number

2004-03-29 Thread Mark Nye
Hi, 

  I downloaded the src for the new jk2.

  I have apache 2.0.49 installed and working

  I have tomcat-5.0.19 installed and working

  Mod_jk2.so compiled correctly and is installed

 

When I start the web server it says the following:

Httpd: module ../../server/paache2/mod_jk.c is not compatible with this
version of apache (found 20020628, need 20020903).

 

Has anyone else seen such a message?  Apache, Tomcat and jk where all
downloaded as src and built locally with no errors.  I used flags from the
documentation and double checked and rebuild everything. 

 

Thanks,

Mark



RE: Directory question for the masters...

2004-03-29 Thread Richard S. Huntrods
Yoav,

Hi,
See the allowLinking attribute:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.
Yoav Shapira
Millennium Research Informatics
Thank you very much. That's just what I was looking for. That's the 
problem when you only need to do something once, much after the fact. 
(that is, I've been running this app on Tomcat for over 2 years now and 
never needed this when I read all the docs for the initial install).

Cheers,

-Richard

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


Re: JSP works, Servlet does not work

2004-03-29 Thread Phillip Rhodes
Parsons Technical Services wrote:

Look at all your servlets and ask what can they do if you call them
directly. Can their use be twisted?
Now let your imagination flow.

Gotta agree w/ Doug. The Invoker servlet has nasty connotations.
I like having it turned on, just for development, as it can
sometimes be a convenience.  But for any externally exposed,
production system, it probably should be turned off.
Also, along those same lines... there's a train of thought
that says it's bad because having URL patterns like
/servlet/MyServlet tip off users as to what underlying
technology your application uses.  And while security
through obscurity is somewhat frowned up, I agree that
there's no point giving would be hackers any additional
info for free.
So with that in mind, you might want to consider the fact
that you can remap all your URL patterns as you see fit.
For example, you could configure Tomcat to use a .asp
extension, instead of .jsp!  Yeah it's only a minor advantage,
but think about it.. if Joe Script Kiddie sees .asp or .aspx
extensions on your site, he's going to start running IIS
exploits against your site.. none of which are going to work
if you're using standalone Tomcat, or Tomcat + different HTTP server.
So maybe he gets bored and moves on to somebody else's server.
Anyway, just something to think about...

TTYL,

Phil

--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives 
that enough is enough.
It's time to put ... from my cold, dead hands back where it belongs.

FREE AMERICA
Vote Libertarian
www.lp.org
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Hangs

2004-03-29 Thread Jeff Tulley
This is a For what it is worth message, since I think that your JVM
upgrade was more to the point of solving the problem.

But, the permanent generation issue:
First, reference Yoav's email response to somebody last month:
http://marc.theaimsgroup.com/?l=tomcat-userm=107590242329345w=2

Every time a context is restarted, there is a possibility that there
will be some classloader objects that the JVM doesn't think it can
dispose of.  These are stored in the permanent generation memory.  The
perm gen is a small pool of memory just for this purpose - objects that
will never be garbage collected.  But, if the permanent gen fills up
from these constant reloads you can get an OutOfMemoryException even
though the old and new generation memory pools are not full.

I think there was something about the memory not being able to go away
because it was loaded by a classloader that was loading items to be
shared by all web applications, so in other words from jar files in
shared\lib or common\lib

Once again, that doesn't seem to be your problem, especially if you are
not reloading the context repeatedly.

 [EMAIL PROTECTED] 3/25/04 6:07:28 PM 
I'd say the activity is moderate. Some 6-10 users would be using our 
web application during that time. The machine is better than a 
development machine but not as good as production one.

Jeff, can you explain more about the -- JVM's permanent generation.

Thanks.

- SPS

- Original Message -
From: Jeff Tulley [EMAIL PROTECTED]
Date: Thursday, March 25, 2004 7:59 pm
Subject: Re: Tomcat Hangs

 What kind of activity is going on with this server during those two
 hours?  Heavy, moderate, light load?  Is it a development box or
 production?
 
 I ask the last question, since some have seen a problelm with
repeated
 redeploys of a web application, where the JVM's permanent
generation
 memory is running out even though the rest of the memory pools are
 nowhere near full.
 
 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com 
 
  [EMAIL PROTECTED] 3/25/04 5:50:42 PM 
 We have Tomcat 4.1.27 running in conjunction with Apache 1.3.x. 
 We're 
 using AJP13 connector. The machine that we're using has got over 
 2GB of
 
 Memory and good processor speed. Tomcat has been allocated 1 GB of
max
 
 memory.
 
 The issue is: For every two hours or so Tomcat hangs. That means, 
 Tomcat don't crash but simply don't accept any more connections.
While


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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



Re: JNDI Realm Problem

2004-03-29 Thread Chris Egolf
I ran into the same problem after upgrading from Tomcat 4.1.29 to 
4.1.30.  The problem was with the parens in the roleSearch attribute of 
my JNDIRealm.  It does look like the parenthesis are being encoded (the 
\28 and \29) when they shouldn't be.  For now, though, I got it working 
by removing them.

Realm  className=org.apache.catalina.realm.JNDIRealm debug=99
resourceName=UserDatabase
connectionURL=ldap://localhost:389;
userBase=dc=mydomain,dc=net
userSearch=(amp;(uid={0})(objectClass=inetOrgPerson))
userSubtree=true
roleBase=ou=groups,dc=mydomain,dc=net
roleSearch=uniqueMember={0}
roleName=cn
/
Chong Yu Meng wrote:
Hello, all !

I've got a really strange problem that is probably caused by my 
eyesight. I followed the JNDI Real HowTo on the Jakarta site, and I 
setup the necessary LDIF file and put the necessary entries inside 
server.xml. After struggling with various typo errors and configuration 
mistakes (I was having a migraine at the time), I finally got Tomcat to 
authenticate with my OpenLDAP server. The trouble is, it cannot find the 
role, so I always get kicked out with an authorization error.

This is the error I am getting when I try to login to the Tomcat Web 
Administration page :

2004-03-25 20:42:53 JNDIRealm[Catalina]: lookupUser(tcadmin)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
dn=uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]:   validating credentials by 
binding as the user
2004-03-25 20:42:53 JNDIRealm[Catalina]:   binding as 
uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]: Username tcadmin successfully 
authenticated
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
getRoles(uid=tcadmin,ou=people,o=cymulacrum)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Searching role base 
'ou=groups,o=cymulacrum' for attribute 'cn'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   With filter expression 
'\28uniqueMember=uid=tcadmin,ou=people,o=cymulacrum\29'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Returning 0 roles

My LDIF file only has entries for Tomcat administrator and Tomcat Manager :

=== Begin LDIF file ===
# Define top-level entry
dn: o=cymulacrum
objectClass: top
objectClass: organization
o: cymulacrum
description: Cymulacrum directory
# Define an entry to contain people
dn: ou=people,o=cymulacrum
objectClass: organizationalUnit
ou: people
# Define an entry for Tomcat Administrator
dn: uid=tcadmin,ou=people,o=cymulacrum
objectClass: inetOrgPerson
uid: tcadmin
sn: Administrator
cn: Tomcat Administrator
mail: [EMAIL PROTECTED]
userPassword: tcsecret
# Define an entry for Tomcat Manager
dn: uid=tcmgr,ou=people,o=cymulacrum
objectClass: inetOrgPerson
uid: tcmgr
sn: Manager
cn: Tomcat Manager
mail: [EMAIL PROTECTED]
=== End LDIF file ===

My Realm definition is inside server.xml, and it looks like this:

 !-- Cymulacrum JNDI Realm --

 Realm   className=org.apache.catalina.realm.JNDIRealm debug=99
  connectionURL=ldap://localhost:389;
userPattern=uid={0},ou=people,o=cymulacrum
   roleBase=ou=groups,o=cymulacrum
   roleName=cn
 roleSearch=(uniqueMember={0})
  /
What am I doing wrong ?



--

   Chris Egolf
 http://www.ugholf.net [EMAIL PROTECTED]

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


Re: JNDI Realm Problem

2004-03-29 Thread Jeff Tulley
Yeah it looks like the fix to make the encoding only on the DN instead
of the whole string was applied after 4.1.30 was tagged.  It will have
to be in a future release.

 [EMAIL PROTECTED] 3/25/04 5:56:16 PM 
Pascal,
What version of Tomcsat are you using?  In response to a defect, I
added a feature to JNDIRealm a while back, that applied a filter to
certain JNDI realms to encode characters such as  and (
Later we learned that I should have focused that filtering a little
more on a specific string, and too much was being filtered, so I
submitted a fix.  It was very simple, really only a one or two-line
fix.

The reason I suspect this is that your output below has \28 and
\29
in the filter expression, which are the encodings for the parenthesis
that would be surrounding the expression.  The bug was that only the
DN
should have been encoded, not the whole filter expression.

It looks like from CVS logs that the fix should be in 5.0.19, and
5.0.20, but not 5.0.18

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com 

 [EMAIL PROTECTED] 3/25/04 6:14:06 AM 
Hello, all !

I've got a really strange problem that is probably caused by my 
eyesight. I followed the JNDI Real HowTo on the Jakarta site, and I 
setup the necessary LDIF file and put the necessary entries inside 
server.xml. After struggling with various typo errors and
configuration

mistakes (I was having a migraine at the time), I finally got Tomcat
to

authenticate with my OpenLDAP server. The trouble is, it cannot find
the 
role, so I always get kicked out with an authorization error.

This is the error I am getting when I try to login to the Tomcat Web 
Administration page :

2004-03-25 20:42:53 JNDIRealm[Catalina]: lookupUser(tcadmin)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
dn=uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]:   validating credentials by 
binding as the user
2004-03-25 20:42:53 JNDIRealm[Catalina]:   binding as 
uid=tcadmin,ou=people,o=cymulacrum
2004-03-25 20:42:53 JNDIRealm[Catalina]: Username tcadmin successfully

authenticated
2004-03-25 20:42:53 JNDIRealm[Catalina]:   
getRoles(uid=tcadmin,ou=people,o=cymulacrum)
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Searching role base 
'ou=groups,o=cymulacrum' for attribute 'cn'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   With filter expression 
'\28uniqueMember=uid=tcadmin,ou=people,o=cymulacrum\29'
2004-03-25 20:42:53 JNDIRealm[Catalina]:   Returning 0 roles



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


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

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



Deploying RMI in Tomcat

2004-03-29 Thread h0004429
Dear all,
I am newbie to RMI and has successfully run the RMI server in the java tutorial
example helloworld. However, when I come to Tomcat, I have problem with it. Is
there any difference and specific procedure I need to do.
I just put my code in the webapps/examples/WEB-INF/myclasses, run the
rmiregistry, and run the implementation.
However, my client applet seem to get nth from calling the remote method.

Yours sincerely,
James


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



Deaktivate Session-Creation/Handling

2004-03-29 Thread Alexander Lazic
Hi,

i haven't found any way to deaktivate the session generation in tomcat
4.1.2x.
As i see it is possible to deaktivate the SessionCookie but not the
Session entry in the Url.
Unfortunately we have an application which don't _like_ these Session
;-/
Have i overseen somthing or need i a seperate class with an dummy
response for the $GETNEWSESSION request in jakarta-tomcat?
Can anybody help me please ;-)

Thanx

al ;-)

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


sporadic jk2 errors

2004-03-29 Thread Darrell Esau
Hello all,

I'm seeing sporadic jk2 failures --

Most of the time it works great -- some times I get 500 Internal Server 
Error from Apache (2.0.48 on Fedora Core 1).  If I hit refresh (sometimes it 
takes several times), it will go through ok.

The only errors I can find are in Apache's error log:

[Mon Mar 29 13:47:33 2004] [error] jk2_init() Can't find child 19610 in 
scoreboard
[Mon Mar 29 13:47:33 2004] [error] shm.init(): No file
[Mon Mar 29 13:47:33 2004] [error] mod_jk child init 1 -2
[Mon Mar 29 13:47:37 2004] [error] workerEnv.init() create slot epStat.0 
failed
[Mon Mar 29 13:47:37 2004] [error] lb.service() worker failed 12 for 
ajp13:localhost:8009
[Mon Mar 29 13:47:37 2004] [error] lb.service() unrecoverable error...
[Mon Mar 29 13:47:37 2004] [error] mod_jk.handler() Error connecting to tomcat 
12

This is with tomcat 4.1.12

Any suggestions?

Thanks,
d

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



fake?

2004-03-29 Thread tomcat-user
?}


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

SEVERE: Error in dependencyCheck Problem

2004-03-29 Thread Peter Johnson
Has anyone else experienced this issue when adding DBCP functionality?

My research has only returned the following
http://www.mail-archive.com/[EMAIL PROTECTED]/msg11276.html

Any help is appreciated.

Thanks in advance,
PJ

INFO: Processing Context configuration file URL
file:/home/pjohnson/apache.org/tomcat-5.0.19/conf/Catalina/localhost/kidszone.xml
Mar 30, 2004 10:23:23 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in dependencyCheck
java.util.zip.ZipException: invalid entry CRC (expected 0xf1e4e34c but
got 0x998df119)
at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:377)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
at java.util.jar.JarInputStream.read(JarInputStream.java:159)
at
java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:280)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88)
at java.util.jar.JarInputStream.init(JarInputStream.java:65)
at java.util.jar.JarInputStream.init(JarInputStream.java:43)
at
org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:420)
at
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:248)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4133)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:839)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:519)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Mar 30, 2004 10:23:23 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Mar 30, 2004 10:23:23 

Re: No suitable driver

2004-03-29 Thread Todd H. Siegel
Success!

Thanks for your help Doug.  I am going to submit this to the developer list to
be added to the Tomcat docs.

The winning configuration for MS SQLServer is as follows:

server.xml:

!-- 'type' is not javax.sql.DataSource as it ordinarily would be --
Resource name=jdbc/dbName 
  auth=Container
  type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/ 

ResourceParams name=jdbc/dbName
  parameter
  namefactory/name
 
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
  /parameter
  parameter
  namemaxActive/name
  value100/value
  /parameter

  !-- serverName is required by the MS driver --
  parameter
  nameserverName/name
  valuelocalhost/value
  /parameter

  parameter
  namemaxIdle/name
  value30/value
  /parameter

  parameter
  namemaxWait/name
  value1/value
  /parameter
  
  parameter
  nameurl/name
  valuejdbc:microsoft:sqlserver://localhost\databaseName/value
  /parameter

  !-- Oddly, user and password cannot be appended to the URL --
  parameter
  nameuser/name
  valueusername/value
  /parameter
  parameter
  namepassword/name
  valuepassword/value
  /parameter

  parameter
  namedriverClassName/name
  valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
  /parameter
/ResourceParams

In the Context element in webappname.xml:

  ResourceLink name=jdbc/dbName
global=jdbc/dbName
type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource /

In the web.xml:

  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/dbName/res-ref-name
  !-- Luckily this can remain javax.sql.DataSource so the war is portable
--
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

Thanks again,
Todd


--- Parsons Technical Services [EMAIL PROTECTED] wrote:
 Todd,
 
 Should have known that MS would do something screwy with their setup. Check
 out this page from the archives.

http://archives.real-time.com/pipermail/tomcat-users/2002-December/088536.html
 
 Notice also that the type is set to a different name and yes they do have
 the factory in there. Give it a try and let us know.
 
 Doug
 
 
 - Original Message - 
 From: Todd H. Siegel [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, March 27, 2004 6:39 PM
 Subject: Re: No suitable driver
 
 
  Doug,
 
  I made those changes and I still have the same problem.
 
  org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
 class
  'com.microsoft.jdbcx.sqlserver.SQLServerDataSource' for connect URL
 
 'jdbc:microsoft:sqlserver://localhost\dbname;user=username;password=password
 ',
  cause: No suitable driver
 
  Here's my config info:
 
  From server.xml:
 
GlobalNamingResources
  Resource name=jdbc/dbName
auth=Container
type=javax.sql.DataSource/
 
  ResourceParams name=jdbc/dbName
parameter
namemaxActive/name
value100/value
/parameter
 
parameter
namemaxIdle/name
value30/value
/parameter
 
parameter
namemaxWait/name
value1/value
/parameter
 
parameter
nameurl/name
 
 valuejdbc:microsoft:sqlserver://localhost\dbName;user=username;password=pa
 ssword/value
/parameter
 
parameter
namedriverClassName/name
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
/parameter
  /ResourceParams
/GlobalNamingResources
 
  From $TOMCAT_HOME/conf/Catalina/localhost/webappname.xml:
 
  Context path=/webappname
   docBase=webappname
   debug=5
   reloadable=true
   crossContext=true
 
ResourceLink name=jdbc/dbName
  global=jdbc/dbName
  type=javax.sql.DataSource /
  /Context
 
  From web.xml:
 
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/dbName/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
 
  The code:
 
  Context context = new InitialContext();
  DataSource dataSource =
  (DataSource)context.lookup(java:comp/env/jdbc/dbName);
  return dataSource.getConnection();
 
  Also, this is Tomcat 5.0.16 on Win2k.
 
  And as for: parameter namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter
  this  was straight out of the Tomcat docs, but removing it doesn't seem to
 make
  a difference.
 
  Thanks again,
  Todd
 
  --- Parsons Technical Services [EMAIL PROTECTED] wrote:
   Todd,
  
   This:
Resource name=resourceName auth=Container

Re: No suitable driver

2004-03-29 Thread Parsons Technical Services
Todd,

One correction to your notes (I think).

The web.xml type should also change. Unless you have tested it otherwise,
the reason it works is that Tomcat is not using the resource info from the
web.xml when it's in the server.xml . You can confirm this by removing it.

But otherwise I'm glad you got it working.

Doug

- Original Message - 
From: Todd H. Siegel [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 8:12 PM
Subject: Re: No suitable driver


 Success!

 Thanks for your help Doug.  I am going to submit this to the developer
list to
 be added to the Tomcat docs.

 The winning configuration for MS SQLServer is as follows:

 server.xml:

 !-- 'type' is not javax.sql.DataSource as it ordinarily would be --
 Resource name=jdbc/dbName
   auth=Container
   type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/

 ResourceParams name=jdbc/dbName
   parameter
   namefactory/name

 valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value100/value
   /parameter

   !-- serverName is required by the MS driver --
   parameter
   nameserverName/name
   valuelocalhost/value
   /parameter

   parameter
   namemaxIdle/name
   value30/value
   /parameter

   parameter
   namemaxWait/name
   value1/value
   /parameter

   parameter
   nameurl/name
   valuejdbc:microsoft:sqlserver://localhost\databaseName/value
   /parameter

   !-- Oddly, user and password cannot be appended to the URL --
   parameter
   nameuser/name
   valueusername/value
   /parameter
   parameter
   namepassword/name
   valuepassword/value
   /parameter

   parameter
   namedriverClassName/name
   valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
   /parameter
 /ResourceParams

 In the Context element in webappname.xml:

   ResourceLink name=jdbc/dbName
 global=jdbc/dbName
 type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource
/

 In the web.xml:

   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/dbName/res-ref-name
   !-- Luckily this can remain javax.sql.DataSource so the war is
portable
 --
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref

 Thanks again,
 Todd


 --- Parsons Technical Services [EMAIL PROTECTED] wrote:
  Todd,
 
  Should have known that MS would do something screwy with their setup.
Check
  out this page from the archives.
 

http://archives.real-time.com/pipermail/tomcat-users/2002-December/088536.html
 
  Notice also that the type is set to a different name and yes they do
have
  the factory in there. Give it a try and let us know.
 
  Doug
 
 
  - Original Message - 
  From: Todd H. Siegel [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Saturday, March 27, 2004 6:39 PM
  Subject: Re: No suitable driver
 
 
   Doug,
  
   I made those changes and I still have the same problem.
  
   org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
  class
   'com.microsoft.jdbcx.sqlserver.SQLServerDataSource' for connect URL
  
 
'jdbc:microsoft:sqlserver://localhost\dbname;user=username;password=password
  ',
   cause: No suitable driver
  
   Here's my config info:
  
   From server.xml:
  
 GlobalNamingResources
   Resource name=jdbc/dbName
 auth=Container
 type=javax.sql.DataSource/
  
   ResourceParams name=jdbc/dbName
 parameter
 namemaxActive/name
 value100/value
 /parameter
  
 parameter
 namemaxIdle/name
 value30/value
 /parameter
  
 parameter
 namemaxWait/name
 value1/value
 /parameter
  
 parameter
 nameurl/name
  
 
valuejdbc:microsoft:sqlserver://localhost\dbName;user=username;password=pa
  ssword/value
 /parameter
  
 parameter
 namedriverClassName/name
  
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
 /parameter
   /ResourceParams
 /GlobalNamingResources
  
   From $TOMCAT_HOME/conf/Catalina/localhost/webappname.xml:
  
   Context path=/webappname
docBase=webappname
debug=5
reloadable=true
crossContext=true
  
 ResourceLink name=jdbc/dbName
   global=jdbc/dbName
   type=javax.sql.DataSource /
   /Context
  
   From web.xml:
  
 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/dbName/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
  
   The code:
  
 

Re: No suitable driver

2004-03-29 Thread Todd H. Siegel
That is exactly how my web.xml is.  I tested it and it works.

I even removed it like you just suggested and that worked too.

As long as long as Tomcat is ignoring it, I'll keep it that way so the war
remains portable.  I am only using SQLServer for prototyping.  I do not plan to
stick with it long-term.

Thanks again,
Todd


--- Parsons Technical Services [EMAIL PROTECTED] wrote:
 Todd,
 
 One correction to your notes (I think).
 
 The web.xml type should also change. Unless you have tested it otherwise,
 the reason it works is that Tomcat is not using the resource info from the
 web.xml when it's in the server.xml . You can confirm this by removing it.
 
 But otherwise I'm glad you got it working.
 
 Doug
 
 - Original Message - 
 From: Todd H. Siegel [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, March 29, 2004 8:12 PM
 Subject: Re: No suitable driver
 
 
  Success!
 
  Thanks for your help Doug.  I am going to submit this to the developer
 list to
  be added to the Tomcat docs.
 
  The winning configuration for MS SQLServer is as follows:
 
  server.xml:
 
  !-- 'type' is not javax.sql.DataSource as it ordinarily would be --
  Resource name=jdbc/dbName
auth=Container
type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource/
 
  ResourceParams name=jdbc/dbName
parameter
namefactory/name
 
  valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
/parameter
parameter
namemaxActive/name
value100/value
/parameter
 
!-- serverName is required by the MS driver --
parameter
nameserverName/name
valuelocalhost/value
/parameter
 
parameter
namemaxIdle/name
value30/value
/parameter
 
parameter
namemaxWait/name
value1/value
/parameter
 
parameter
nameurl/name
valuejdbc:microsoft:sqlserver://localhost\databaseName/value
/parameter
 
!-- Oddly, user and password cannot be appended to the URL --
parameter
nameuser/name
valueusername/value
/parameter
parameter
namepassword/name
valuepassword/value
/parameter
 
parameter
namedriverClassName/name
valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
/parameter
  /ResourceParams
 
  In the Context element in webappname.xml:
 
ResourceLink name=jdbc/dbName
  global=jdbc/dbName
  type=com.microsoft.jdbcx.sqlserver.SQLServerDataSource
 /
 
  In the web.xml:
 
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/dbName/res-ref-name
!-- Luckily this can remain javax.sql.DataSource so the war is
 portable
  --
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
 
  Thanks again,
  Todd
 
 
  --- Parsons Technical Services [EMAIL PROTECTED] wrote:
   Todd,
  
   Should have known that MS would do something screwy with their setup.
 Check
   out this page from the archives.
  
 

http://archives.real-time.com/pipermail/tomcat-users/2002-December/088536.html
  
   Notice also that the type is set to a different name and yes they do
 have
   the factory in there. Give it a try and let us know.
  
   Doug
  
  
   - Original Message - 
   From: Todd H. Siegel [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Saturday, March 27, 2004 6:39 PM
   Subject: Re: No suitable driver
  
  
Doug,
   
I made those changes and I still have the same problem.
   
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
 of
   class
'com.microsoft.jdbcx.sqlserver.SQLServerDataSource' for connect URL
   
  
 'jdbc:microsoft:sqlserver://localhost\dbname;user=username;password=password
   ',
cause: No suitable driver
   
Here's my config info:
   
From server.xml:
   
  GlobalNamingResources
Resource name=jdbc/dbName
  auth=Container
  type=javax.sql.DataSource/
   
ResourceParams name=jdbc/dbName
  parameter
  namemaxActive/name
  value100/value
  /parameter
   
  parameter
  namemaxIdle/name
  value30/value
  /parameter
   
  parameter
  namemaxWait/name
  value1/value
  /parameter
   
  parameter
  nameurl/name
   
  
 valuejdbc:microsoft:sqlserver://localhost\dbName;user=username;password=pa
   ssword/value
  /parameter
   
  parameter
  namedriverClassName/name
   
 valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
  /parameter
/ResourceParams
  /GlobalNamingResources
   
From 

[OT] EJB Client stops working after awhile.

2004-03-29 Thread Vy Ho
I have searched and asked many places.  I know it's an offtopic here, 
but I am sure there are so many experts here that may not mind, and shed 
some light to me.

The following code would stop working after around 100 hits.  If I do 
not create the inital context each time, then it works fine.  But I need 
this to test some EJB clients.

I run under Windows XP, Sun AppServer 8, J2EE 1.4.  Thank you very much 
for your consideration.

*import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import java.util.*;
public class TestClient {
   public TestClient() {
   }
  
   public static void main(String[] args) {
   int i;
   for(i = 0; i  1000; i++){
   System.out.println(i:  + i);
   doit();
   }
   }

   private static void doit(){
   InitialContext initial = null;
   String url = iiop://localhost:3700;
   String ejbService = HelloWorld;
   try{
   System.gc();
   Properties env = new Properties();
   env.put(java.naming.factory.initial, 
com.sun.jndi.cosnaming.CNCtxFactory);
   env.put(Context.PROVIDER_URL, url);
   initial = new InitialContext(env);
   Object objref = initial.lookup(ejbService);
   }catch (Exception ex) {
   System.err.println(Caught an unexpected exception!);
   ex.printStackTrace();
   }finally{
   if(initial != null){
   try{
   initial.close();
   System.out.println(I am here);
   initial = null;
   }catch(Exception e){
   e.printStackTrace();
   }
   }
   }
   }
}

*

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


Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru




Doug,
I am now testing it on my local machine. My network admin has provided me
with this IP configuration

Connection-specific DNS Suffix  . :
IP Address. . . . . . . . . . . . : 172.27.2.246
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IP Address. . . . . . . . . . . . : 172.27.2.44
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.27.1.59

I have added the context within the host tag of each service.
I have changed the port from 8080 to 80 for the first service.

When I type http://localhost it doesn't work. I am pasting the stdout.txt
and the other two log files that are generated along with the server.xml
file. Can you please have a look at it and correct me?

There is an error in the stdout.txt.  see these lines
SEVERE: Error filterStart
Mar 30, 2004 9:41:45 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors


---STDOUT.TXT
Mar 30, 2004 9:41:22 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Mar 30, 2004 9:41:24 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 443
Mar 30, 2004 9:41:24 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6269 ms
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Mar 30, 2004 9:41:25 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 30, 2004 9:41:26 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\admin.xml
Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Mar 30, 2004 9:41:27 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Mar 30, 2004 9:41:29 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\balancer.xml
Mar 30, 2004 9:41:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL file:E:\Tomcat 5.0
\conf\Catalina\localhost\manager.xml
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /IBS from URL
file:E:\Tomcat 5.0\webapps\IBS
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /IBS1 from URL
file:E:\Tomcat 5.0\webapps\IBS1
Mar 30, 2004 9:41:36 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:E:\Tomcat 5.0\webapps\jsp-examples
Mar 30, 2004 9:41:37 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL file:E:\Tomcat 5.0\webapps\servlets-examples
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /struts from URL
file:E:\Tomcat 5.0\webapps\struts
Mar 30, 2004 9:41:38 AM org.apache.catalina.startup.ContextConfig
applicationConfig
INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/struts]
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TEST from URL
file:E:\Tomcat 5.0\webapps\TEST
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /test1 from URL
file:E:\Tomcat 5.0\webapps\test1
Mar 30, 2004 9:41:38 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:E:\Tomcat 5.0\webapps\tomcat-docs
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:E:\Tomcat 5.0\webapps\webdav
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /workwear from URL
file:E:\Tomcat 5.0\webapps\workwear
Mar 30, 2004 9:41:39 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /workwear1 from URL
file:E:\Tomcat 

Re: Configuring Tomcat on different IP's

2004-03-29 Thread UmamaheswarKalluru




Doug,
I fogot to tell you that the first context has only one .jsp file. Here is
the content of that index.jsp file

%
response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
%

Thanks
Uma


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



Returned Mail: Error During Delivery

2004-03-29 Thread vbueno
-- Here is your List of Failed Recipients --
[EMAIL PROTECTED]


Requested action not taken: mailbox unavailable. [SMTP Error Code 550]

 Here Is Your Returned Mail 
Received: FROM italcambio.com BY icnet ; Tue Mar 30 02:16:55 2004 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Mail Delivery (failure [EMAIL PROTECTED])
Date: Tue, 30 Mar 2004 15:30:43 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type=multipart/alternative;
boundary==_NextPart_000_001B_01C0CA80.6B015D10
X-Priority: 3
X-MSMail-Priority: Normal

This is a multi-part message in MIME format.

--=_NextPart_000_001B_01C0CA80.6B015D10
Content-Type: multipart/alternative;
boundary==_NextPart_001_001C_01C0CA80.6B015D10

--=_NextPart_001_001C_01C0CA80.6B015D10
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

--=_NextPart_001_001C_01C0CA80.6B015D10
Content-Type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META content=3Dtext/html; charset=3Diso-8859-1 =
http-equiv=3DContent-Type
META content=3DMSHTML 5.00.2920.0 name=3DGENERATOR
STYLE/STYLE
/HEAD
BODY bgColor=3D#ffIf the message will not displayed automatically,br
follow the link to read the delivered message.brbr
Received message is available at:br
a href=3Dcid:[EMAIL PROTECTED] height=3D0 
width=3D0www.italcambio.com/inbox/91/read.php?sessionid-543/a
iframe
src=3Dcid:[EMAIL PROTECTED] height=3D0 width=3D0/iframe 
DIVnbsp;/DIV/BODY/HTML

--=_NextPart_001_001C_01C0CA80.6B015D10--

--=_NextPart_000_001B_01C0CA80.6B015D10
Content-Type: text/plain; charset=us-ascii
Content-ID: [EMAIL PROTECTED]

[Attachment denied by WatchGuard SMTP proxy (type audio/x-wav, filename 
message.scr)]
--=_NextPart_000_001B_01C0CA80.6B015D10--



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



Re: How to enable cipher suites in Tomcat

2004-03-29 Thread Bill Barker
In Tomcat 5, you can specify the attribute ciphers=comma separated list of
ciphers on the Connector element.

Rodrigo Ruiz [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all, is there any way to enable a specific cipher suite for SSL
 connections in Tomcat?

 The current project I am working in requires data encryption, but not
 server authentication, so enabling an anonymous cipher suite would fit
 my requirements without needing to create a certificate.

 Thanks in advance,
 Rodrigo Ruiz


 -- 
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.642 / Virus Database: 410 - Release Date: 24/03/2004




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



Tomcat4 performance issue when manually removing compiled jsps in work folder

2004-03-29 Thread Duncan Krebs
Hi, 
I have had this snag for some time now and its starting to get the best of me. I'm 
running tomcat 4.1 and when I manually remove the .java and .class files in the 
/work/standalone folder even after the initial request of recompiling the jsp's tomcat 
hits 100% on my CPU and the overall response time is delayed by about 3 seconds on 
each request.

As I deleted different sub folders in the work folder (all within the same web 
application) the degraded performance was consistent with the different sub folders 
that I was deleting even after the pages were recompiled. Has anyone experienced this 
before? 

All of my requests are going through a Servlet controller and I have a lot of classes 
in my WEB-INF folder that are part of the framework but I don't think that would have 
anything to do with this. I've also tried rebuilding my entire project from scratch 
and I'm still having the same issue of a slowed response time of about 3 seconds and 
tomcat taking all my CPU.

Regards, 
dkrebs



Re: problem Explorer: does not 'switch' to https

2004-03-29 Thread Bill Barker
This is a well known problem with MS Explorer where it doesn't send the
correct Host header when it gets two redirects in a row.  The easiest work
around is to use the default port (i.e. 443) for SSL.

dirk ooms [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,

I have an application on standalone Tomcat that works fine with Konqueror
and
Mozilla, but not with Microsoft Explorer: it doesn't 'automatically switch'
to https.

E.g. the page 'secretary.html' is security constrained (see web.xml fragment
below). When i call the page in Konqueror or Mozilla as
http://my.domain.net:8080/secretary.html, the page is shown after the login
and the url in the location bar is https://my.domain.net:8443/secretary.html
(everything is fine).

But when i do the same in Explorer, the location bar shows
http://my.domain.net:8080/secretary.html and it says 'page cannot be
displayed'. At the other hand, when i call the protected page directly as
https://my.domain.net:8443/secretary.html it works fine.

any explanation for this behavior?

cheers,
dirk

  security-constraint
web-resource-collection
  web-resource-nameSecretary/web-resource-name
  url-pattern/secretary.html/url-pattern
/web-resource-collection
auth-constraint
  role-namesecretary/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint




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