Dongsheng Song wrote:
Hello,
Can I hook a function after user login before user logout ?
I assume that logout usually goes hand in hand with a session
invalidation, then Servlet 2.4. spec is your friend:
SRV.10.2.1 Event Types and Listener Interfaces
javax.servlet.http.HttpSessionListener
Marten Lehmann wrote:
Hello,
So far, this is not a problem. Looking up users through jdbc isn't a
problem as well. But how can I inform the container about a successful
login, so that calls to request.getRemoteUser() and
request.isUserInRole(manager) will behave as if I logged in through
There is no meaning in saying that one can plug in required
services to Tomcat. My question is by design is it an application
server ?. My opinion is that Tomcat in the shipped form is not an
application server. At the minimum it should provide transaction and
persistence services, method
Liz Donaldson wrote:
Hi,
I have a apache https enabled webserver and tomcat server an and am
using the mod_jk connection module. From all the documentation I have
read, it indicates that apache handles all the SSL negotiations and that
the traffic between apache and tomcat is clear text.
Omar Adobati wrote:
Good Morning all,
I'm looking for a free and good web traffic analyzer to use with
tomcat 5.x but searching on the net I can't find anything good.
Does anyone know a good tool? (if it exists)
Thanks in advice
What about analog, webalizer or awstats?
Looking back I was starting Tomcat from inside Eclipse with the Sysdeo
Tomcat Plugin which apparently doesn't use the tomcat startup scripts,
i.e., it bypasses startup.sh so it never sees -server. When I started
tomcat manually via the cli with startup.sh with the JAVA_OPTS in
catalina.sh it
Oto Bossert wrote:
Yoo,
Yes switch to jk2 is faster!
But unsupported! Development of mod_jk1.x is going on, but not jk2. I
wouldn't advise anyone to select something uncontinued.
I set the session timeout time to 5 minutes, but
in
the session view of tomcat manager, I see message
30
- 40
Michael Echerer wrote:
Shouldn't it have the -server in there if it is running in server mode?
How can I tell that the JVM is actually running in server mode?
well, not sure if you can. I'd try java.lang.System.getProperties() or
something...
Yupp... works... Just run my junitreport via
Ron Heeb wrote:
my understanding comes from this book i got: 'common is responsible for
classes that are used by Tomcat and publicly available to all Web
apps'. shared is like common, except that 'developers can place their
own classes and JAR files into the shared class loader domain'.
Acácio Furtado Costa wrote:
Hi ALL,
Does anyone know how to pass one parameter by Tomcat 5.0.28 to the
starts JVM?
I need to pass the - server parameter to the JVM (SUN 1.4.2) but I
don´t know where I put this to call JVM.
Use the JAVA_OPTS variable in catalina.sh or .bat
Zohar Amir wrote:
Hello,
I'm using Tomcat 5.0.28 on Red Hat linux.
What is the correct procedure to deploy a new version of the same servlet?
Just build redeploy the webapp containing the new servlet, if you
don't need the new and old version at the same time.
servlet-mapping in your web.xml
Eduardo Lobo wrote:
Hi,
I have this problem: I need to make a web application that read some
resources(xml files) from JAR files (located in the shared/lib folder),
but I need to update constantly the JARs content, then I need that the
web application always gets the last JAR files
Shouldn't it have the -server in there if it is running in server mode?
How can I tell that the JVM is actually running in server mode?
well, not sure if you can. I'd try java.lang.System.getProperties() or
something...
At least on a Solaris machine you could figure out whether you are
Alex Pure wrote:
I need help with this problem
please ..
Apache Tomcat/4.0.1 - HTTP Status 404 - /servlet/utdHttpController
type Status report
message /servlet/utdHttpController
description The requested resource (/servlet/utdHttpController) is not
available.
Either
Hi,
I was testing the JNDI Resource configuration using a custom resource factory
and/or the Tomcat BeanFactory following the tutorial here with Tomcat 5.0.28:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
For Generic Java Bean resources the documentation says:
The
Paulo Alvim wrote:
Thank you all
It's good to know that we're not alone...but since we used to have workable
'hot deploy' others pre-J2EE App Servers our customers will insist with
that - maybe we'll have to reconsider other App Server as our main
Open-Source production environment
Hi,
One thing to look out for would be the use of JNI i.e. native calls. I'm
not sure if there is a way of preventing someone from packaging a .so in
a WAR and then loading it in to the app via code to bypass the lack of
LD_LIBRARY_PATH (on *nix).
didn't try it myself, but I guess
Dale, Matt wrote:
I'm not sure what you're getting at here. The number of users are irrelevant to
the classes. You should only use shared/classes if the classes have to be
shared across web apps. Although this is not usually advised as it is good
practice to keep web apps self contained.
provides. Some logic does belong in JSP. However, the logic that
appears within pages should be limited to display logic. I've found
that Struts and JSTL are a great combination to accomplish such
separation.
IMHO this is basically the essence of Java code does no belong in well
designed JSP
Hi!
What you could do is to give Apache a hint where to direct a request to.
E.g. you could not simply invalidate the session, but also redirect to
your start page again with a little trick.
Add a ;jsessionid= string to the URL.
Assume your Tomcat JVM routes are called e.g. tomcatA, tomcatB,
How come that you need an Oracle client installation at all when you
just want to use the Oracle thin JDBC driver? IHMO the client
installation is only required for OCI thick drivers...
Brad Rhoads wrote:
We have an (struts) app that talks to an Oracle 8i database. Our latest
installation wants
Hi,
another idea... try to increase the size of the perm heap with
-XX:permSize and -XX:maxPermSize. (See the JVM and garbage collector
tuning docus from Sun for more information and google for more). Also
try to enable the garbage collector log to check what happens to the
perm memory in case
Hi,
in our Tomcat 5.0.28 catalina log I've seen the following lines. (see below)
The first part are GC logs, that's okay as it was set in the JVM_OPTS, but the
XXX unknowon type 0 is quite strange. What's the reason for this. Does anyone
know this kind of error message? I've just found out
: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 9:04 AM
To: [EMAIL PROTECTED]
Subject: XXX unknowon type 0 in catalina log of Tomcat 5.0.28
Hi,
in our Tomcat 5.0.28 catalina log I've seen the following lines. (see
below)
The first part are GC logs, that's okay
javax.servlet.ServletException: Cannot create JDBC driver of class ''
for connect URL 'null', cause: No suitable driver
Typically this just means that the JNDI name could not be resolved. Thus
no driver is available.
Server.xml:
(...)
Context path=/bankApp1 docBase=bankApp1 debug=5
Hi,
we have an application that we deploy as .WAR file on Tomcat 5.0.28.
It has a META-INF/context.xml with this content:
Context path=/foo reloadable=false useNaming=true
ResourceLink name=jdbc/myDB global=jdbc/myDB
type=javax.sql.DataSource/ResourceLink
/Context
If our .war file is
1) When I start tomcat with above server.xml , it creates 9 process with same output on shell. it is
I configured tomcat to run with minSpareThreads=5 then why it start with 9 threads?
You configured 5 connector threads that not necessarily match OS threads
(or whatever you saw). Check with
Steve Kirk wrote:
Remy mentioned earlier today on another thread that the path is ignored in a
context.xml file because it is redundant, but I _think_ he was talking about
5.5 rather than 5.0. I have deleted the post now but I think he said that
the docBase is probably also ignored. search the
If you put the ResourceParams stuff in server.xml as GlobalResource,
you must put e.g. this into your server.xml's context respectively your
myapp.xml context descriptor.
ResourceLink name=jdbc/myapp global=jdbc/myapp
type=javax.sql.DataSource/ResourceLink
Of course name and global can differ,
Built Tomcat from source and change the few java class files where
jsessionid is in.
What we once did: Patch the binary! :-)
you can grep for jsessionid in the tomcat jars somewere in server/lib
(don't ask me which, but 1 think in 2-3 jars there was 1 class file each)
You may simple replace
Jignesh Patel wrote:
Hi All,
We are using tomcat5.0.19 and struts1.1.
Whenever we deploys our application it deploys twice.
We couldn't able to identify the reason, why this is happening.
Can anybody give insight to us.
We are not deploying war file as well as we are not deploying in server
we
Srinivas Rao Ch wrote:
I am getting problems in configuring my tomcat for clustering. Nodes are not
recognizing each other. mcastAddr has the same IP for all the nodes. Can
someone tell what this property is for. My tcpListenAddress is 127.0.0.1 for
all the nodes but port is different. In my
Hi,
I use Tomcat 5.0.19.
I'm playing around with the Manager web application and want to deploy a .WAR
file that contains a META-INF\context.xml deployment descriptor.
Deploying the .WAR file using the upload feature works, and the context.xml that
I put into the META-INF\ is copied (but
[EMAIL PROTECTED]:
Hi,
I don't think we support a nested docBase when using a WAR file, such as
tests/whatever. The WAR itself is the docBase if packed, or the WAR's
root directory if unpacked.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Michael Echerer
And when examining localhost_log.2004-08-01.txt
I see these errors:
2004-08-01 04:20:52 StandardHost[localhost]: Error deploying
application at context path null
java.lang.IllegalStateException: Context path /admin is already in use
2004-08-01 04:20:52 HostConfig[localhost] Error deploying
QM wrote:
On Tue, Jul 27, 2004 at 05:42:51PM -0300, Claudio Carvalho wrote:
: Does anybody know how to hide the JDBCRealm password from server.xml?
1/ This has been discussed before on the list. (aka, check the archives.)
The quick answer is:
protect you Tomcat's server.xml from being read by
Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
says:
Pathname to a scratch directory to be provided by this Context for
temporary read-write use by servlets within the associated web
application. This directory will be made visible to servlets in the web
application by
for multiple instances by setting a
CATALINA_BASE directory, you should use $CATALINA_BASE instead of
$CATALINA_HOME for each of these references.
:)
Michael Echerer wrote:
Hi,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
says:
Pathname to a scratch directory to be provided
Hi all,
i have been using Tomcat 4.x for quite a while and was using log4j for logging
purposes with a log4j pattern like this:
log4j.appender.logfile.layout.ConversionPattern=%-10r [%t] %d{ISO8601} %-5p %c
%x - %m%n
In Tomcat4.x with mod_jk1.x the thread names for [%t] I got looked like:
[EMAIL PROTECTED] wrote:
Hi,
I have 2 questions regarding tomcat:
1- I am wondering if it is possible to rename the JSESSIONID cookie to
something else. I am interseted in renaming it host_port_JSESSIONID
this way JSESSION ids generated by webservers on the same domain
(domain.com) will not
Hi,
short question:
Is the crossContext attibute for contexts (or better the mechanismn
behind) part of the Servlet API or is it a Tomcat specific feature that
you couldn't use on other servers.
I just wondered if you would tie your application/setup to Tomcat when
using a crosscontext webapp
which tells more details on this, Please let me know.
Regards,
Bhaskar
-Original Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:08 PM
To: Tomcat Users List
Subject: Re: JK2: lb_factor
I measured similar effects using The Grinder.
Under maximum load
was that
a lower value means more requests (official JK2-documentation
at jakarta.apache.org).
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Inf. (FH) Michael Echerer
TNG
Jim Kennedy wrote:
I am considering using Tomcat alone as my HTTP server as well as my servlet
container with SSL. I know a lot of people use Apache HTTP Server instead
of Tomcat for this and Tomcat is just the servlet container only.
Is there any reason why I should not use just Tomcat alone
Gordon Ross wrote:
The problem, is that I do *NOT* want the webapp available over the
non-SSL connection.
In the VirtualHost section in Apache 2 where I defined the SSL
VirtualHost, I put a JkUriSet command, but the tomcat apps were still
available over port 80 (non-SSL) - even though there was
Hello,
I stumbled upon a serious issue with the load balancing of mod_jk2. Currently
I'm doing load testing with The Grinder. My config is: 1x Apache 2.0.49
compiled with openssl (rest is default, prefork, etc.). mod_jk2.0.2 and 2x
Tomcat 5.0.19 on Solaris 2.8.
With The Grinder I put a high load
address with your info. However the other issue exists. I
have tried different variations of the context path but none
seem to work. Still hammering at it.
Not yet struggled with virtual hosts, but...
Do you have a ROOT.WAR or ROOT directory in your webapps dir?
Maybe this could
I guess you should have a look into
javax.servlet.http.HttpSessionBindingListener and .HttpSessionEvent to
monitor if a session is created or destroyed.
-Original Message-
From: Lindomar [mailto:[EMAIL PROTECTED]]
Sent: Montag, 16. Dezember 2002 14:00
To: Tomcat Users List
Subject:
More specifically, he may be looking for:
request.getUserPrincipal().getName(), which returns the
actual user name.
I believe that request.getRemoteUser() only returns the
username if the
user is authenticated using BASIC authentication.
Actually not true, although I don't say I
Hello,
I use Tomcat 4.1.16 on Windows with Eclipse 2.0 and the Lomboz 0.95 J2EE plugin for
Tomcat integration.
I have a problem with auto deployment.
When I start Tomcat from the Eclipse I can deploy the webapp. It will be packed into a
war file and copied into Tomcat's webapps directory, will
I'm not sure if that problem is connected to mod_jk2.
There are four ways for session tracking.
SSL, hidden form fields, url rewriting or cookies.
Tomcat can use certain methods mostly transparent if necessary e.g. if cookies are
disabled then url rewriting is in use.
I guess your session info
To use servlets you will need a servlet container/webserver like Tomcat. To compile
servlets some .jar files from Tomcat are necessary. You have to add this to your
classpath or use ant scripts whatever.
In your case I guess that servlet.jar from /tomcat/common/lib/ is missing in your
52 matches
Mail list logo