Hi.
I have a domain resolving to a tomcat box.
I have set up a virtual host. No probs.
/~
Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
/Host
Host
Hassan,
How do I add an instance of the listener to each session? Can you please
provide an example?
I forgot to mention that I already have the following in the first JSP after
the login is validated:
jsp:useBean id=listener class=abcd.AbcdSessionListener scope=session /
%
Hassan,
Also, I don't understand the difference between a global and a non-global
listener approach. Can you explain? Thanks.
Thanks.
Hassan Schroeder wrote:
Franklin Phan wrote:
I'm trying to code a method to clean up specifically named files
inside a working dir (in Windows XP)
Hi.
I solved this myself by placing the database resource tag in the server.xml
instead of in a separate context.xml file in the META-INF directory.
I don't know why that has to be that way.
KR.
Luke.
29Aug2005 @ 15:39 [EMAIL PROTECTED] thusly spake
Hi.
I have a domain resolving to a
Hi All,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.
The problem manifests when forms are posted containing Scandinavian
characters. In some cases these characters are de/encoded correctly and
in
Hi All,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.
The problem manifests when forms are posted containing Scandinavian
characters. In some cases these characters are de/encoded correctly and
in
On 8/29/05, Richard Jones [EMAIL PROTECTED] wrote:
Hi All,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.
This is what I did to work with Tomcat.
a, Set up Tomcat first: To support UTF encoded
Just a guess:
Check the format of the .jsp-files. I had similar problems and solved
them by converting the jsp-files to UTF-8.
- Manfred
Richard Jones wrote:
Hi All,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be
Hassan,
I have found the solution. I think that a big part of what you were saying was something that I was already doing but neglected to mention (i.e., having a line of code in the JSP to bind the
listener object to the session using setAttribute).
Your commenting out my two lines of code
Hi,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.
This is what I did to work with Tomcat.
a, Set up Tomcat first: To support UTF encoded data send as part of
URI one has to set the
The setCharacterEncoding() must be called on the request before any
getParameter() method is invoked on it. There may be some filters that
is processing the request in the filter chain before the setCharacter
encoding filter.
Also what is the character encoding used by the OS ?.
URIEncoding
Hi there
I dont know, what term to search for.. so excuse me, if there is already a
similar problem
I'm running a Webserver on Fedora Core 4
- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc
I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost
Hi,
The setCharacterEncoding() must be called on the request before any
getParameter() method is invoked on it. There may be some filters that
is processing the request in the filter chain before the setCharacter
encoding filter.
Yeah, I think this was the problem with the
Unless there is another reason, why not drop Apache and run only Tomcat? It
can handle the virtual hosts just fine.
This would simplify the setup considerably.
Doug
- Original Message -
From: rueh hänä [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29,
Because im running normal HTML sites, too. I need another solution, if even
possible...
--- Ursprüngliche Nachricht ---
Von: Parsons Technical Services [EMAIL PROTECTED]
An: Tomcat Users List tomcat-user@jakarta.apache.org
Betreff: Re: Got trouble with virtual hosts
Datum: Mon, 29 Aug 2005
On Monday 29 Aug 2005 06:03, Anto Paul wrote:
On 8/29/05, Alan Chandler [EMAIL PROTECTED] wrote:
Where can I find specs for all the tags in server.xml
I use these pages. it explains the elements used in the server.xml.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html
No it
Tomcat will handle them just fine with the current releases.
With the current versions of Tomcat, unless you are doing something special
that requires a feature of Apache that is not in Tomcat, you can host
multiple sites just fine. If load is an issue, take a look a the clustering.
Otherwise
I am totally failing to get form based security to work.
One thing that is bugging me is that under the security-constraint tag in
the web.xml file there is the realm-name tag.
What should this be?
For the standard Realm provided by tomcat, it seems to have a name of
UserDatabase, but if I
Franklin Phan wrote:
I have found the solution.
Cool. :-)
What threw me off in the first place was the poor API documentation for
HttpSessionBindingListener interface. It says for valueUnbound:
Notifies the object that it is being unbound from a session and
identifies the session.
It
Hm, so it should work, i got an actual version.
I found out something new:
When i open one of these jsp-sites on my server, it works fine. If i open
additional jsp-sites, tomcat goes down and i have to restart it. The log of
the site gives this outpuot:
StandardWrapperValve[jsp]:
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Subject: Re: Where can I find specs for ALL the xml tags that
can be used in server.xml.
I must admin not really searching 5.5 docs, because I am
using 4.1, but I can't find the Resource tag described
aywhere.
Then you certainly should be
On Monday 29 Aug 2005 14:55, Caldarale, Charles R wrote:
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Subject: Re: Where can I find specs for ALL the xml tags that
can be used in server.xml.
Then you certainly should be looking at the 4.1 docs, since 5.5
configuration is noticeably
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Subject: Re: Where can I find specs for ALL the xml tags that
can be used in server.xml.
Unfortunately, it still doesn't specify what the
auth=Container attribute means.
This is pretty clear to me:
Specify whether the web Application code
I am try to to use FORM based authorisation to control access to part of my
database application. Consequently I have added the users and user_role
tables to my database which is already been set up as
java:/comp/env/jdbc/family_tree.
I then created a Realm which refers to it.
Realm
Hello Alan,
try removing the / in your jndi name
java:comp/env/jdbc/family_tree.
Thanks !
-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 10:57 AM
To: tomcat-user@jakarta.apache.org
Subject: Really struggling with
On Monday 29 Aug 2005 16:16, Marc-Andre Blain wrote:
Hello Alan,
try removing the / in your jndi name
java:comp/env/jdbc/family_tree.
Already tried that combination - this is the result - see how the name its
looking for is just java:
Exception performing authentication
Than, did you try putting only jdbc/family_tree.
The java:comp/env should be the default.
-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 11:22 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Really struggling with DataSource'd Realm
Hi all,
recently I stumbled over the mod_jk statusworker feature coming with
recent mod_jk versions and, of course, I immediately wanted to have
such neat thing :-)
Up to that time, I didn't saw an imperative need to have balanced wor-
kers (Apache+Tomcat on the same machine; one single ajp13
Hi,
I have a fairly large application I'm trying to port from jboss to tomcat.
I've turned on debug logging with log4j (the contents at the end of this mail).
In the log, I see the following:
2005-08-29 19:01:27,106 DEBUG [WebappClassLoader] (main:) Loading class
from local repository
My web application uses tomcat 5.5.10. By using basic authentication,
the application works fine.
By using the form based authentication, if I submit a invalidate
username/password, appication seems worked, a error.jsp was showed up.
But if I submit a valid username/password, I got a HTTP Status
Software
Tomcat 5.5.2
JDK 1.5
I have created a webapplication named b
It works perfectly fine including the realm declared
inside the context.xml file in META-INF folder
THen I created war by using
C:\webapps\bjar cvf c.war *.*
Later I copied c.war in the webapps folder and started
On Monday 29 Aug 2005 16:25, Marc-Andre Blain wrote:
Than, did you try putting only jdbc/family_tree.
The java:comp/env should be the default.
Yes - then it failed saying it could not find jdbc
So I thought Ah! - and renamed the resource just family_tree. But then it
didn't actually find
I am testing a load balancing configuration with Tomcat and IIS using the
isapi_redirector. My configuration works if I have a single worker defined
in my workers.properties file but it fails if I try to add a second worker
(ie, I change the balance_workers entry near the bottom of the file to
I have updated a site from tomcat 4 to tomcat 5 and my link that used to
redirect to a secure site now fails. I see the webpage tying to connect
with my internal IP address instead of the external URL that the request
came in one. If I connect to https://www.x.com and hit the link to the
secure
i have this in my ${CATALINA_HOME}/webapps/ROOT/WEB-INF/web.xml:
login-config
auth-methodFORM/auth-method
realm-nameqrm/realm-name
form-login-config
form-login-page/login/login.do?type=attempt/form-login-page
Hi,
I have an application that is the only application running on a given
tomcat instance (there are multiple tomcat instances on the same box).
The application has been running for weeks, but the code has not been
changed for weeks. Suddenly, Friday afternoon the application began
failing as
Hi,
I haven't found anywhere a step-by-step instructions or reference code on how
to set up jaas. Please help me with this as I'm very much lost.
What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in
I used the following link:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm
It tooks some research, but I finally got it to work.
/robert
Ittay Dror wrote:
Hi,
I haven't found anywhere a step-by-step instructions or reference code
on how to set up jaas. Please
Robert Taylor wrote:
I used the following link:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm
doesn't contain whether i can put 'Realm' in ROOT.xml
doesn't say anything about where to get a LoginModule implementation, or how to
config jaas.config.
It tooks
btw, i also need authentication vs an ldap server
thanx,
ittay
Ittay Dror wrote:
Robert Taylor wrote:
I used the following link:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm
doesn't contain whether i can put 'Realm' in ROOT.xml
doesn't say anything
Have you read anything here?
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
/robert
Ittay Dror wrote:
Robert Taylor wrote:
I used the following link:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm
doesn't contain
From: Ittay Dror [EMAIL PROTECTED]
btw, i also need authentication vs an ldap server
I recently got JAASRealm and Sun's Krb5LoginModule (Kerberos Authentication)
to work for the JSP examples that ship with Tomcat... this may save you some
pain:
Hello,
Tomcat takes long time to shut down, it takes about a minute from the
shut down command until it terminates with an error in catalina.out.
Apache should have nothing to do with it.
Tomcat version: jakarta-tomcat-4.1.27
Server version: Apache/2.0.46 with mod_jk2
OS RHE Linux
We are experiencing a strange problem that we can't seem to figure out.
We have a Struts web app running on Tomcat 5.0.28/Apache web server. All the
computers of a particular client are getting a Page cannot be displayed
error when they click a certain button. They can then go home and access it
Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the
isapi redirect dll. This seems to be working well and configured correctly.
Now I am trying to get the LOGON_USER from the header. I want the windows id
of the user that is hitting my web page. I am
request.getRemoteUser()
- Original Message -
From: Robert Jose [EMAIL PROTECTED]
To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header
Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5
Thanks for the response Gurumoorthy, but I get null for a result.
Rob J.
- Original Message -
From: Gurumoorthy [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header
This may come under the category of first time user usability testing.
- I installed Tomcat on my box and it runs fine.
- The admin webapp is in a separate download so one
can safely install it (proper)
BUT :)
From my naive user (and valuable in usability testing) POV I don't know
the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
- From what I understand there are two queues in Tomcat, and incoming
queue and an execution queue. It appears tomcat is rejecting some
clients when too many people try to hit my server at one time. During
this time the cpu utilization was about
mod_jk 1.2.14:
List of workers, attributes and defaults. ajp14 is not included.
global:
- worker.maintain (60)
[and some obvious others]
all workers:
- type (ajp13)
ajp12:
- host (localhost)
- port (8007)
ajp13:
- host (localhost)
- port (8009)
- connection_pool_size (1) [aka cachesize
By default, tomcat ignores the REMOTE_USER header from Apache or IIS in
favor if it's own authentication. To get tomcat to accept the IIS
authentication info, add this attribute to the Connector/ element in
server.xml:
tomcatAuthentication=false
--David
Robert Jose wrote:
Thanks for the
We have a JSP/servlet combo that uses the OReilly MultiPartRequest to
upload a users HTML template for our application. Invariably they end up
with some unusual characters in their template - sometimes from pasting in
text from MS Word or other similar application.
For some reason a single
i've been trying to get my webapp working in tomcat 5.5.9, and i'm
running into a problem using spring's JndiObjectFactoryBean to access a
tomcat naming resource.
i'm getting a BeanCreationException with this message: Error creating
bean with name 'jcrRepository' defined in class path resource
Brian Moseley wrote:
i've been trying to get my webapp working in tomcat 5.5.9, and i'm
running into a problem using spring's JndiObjectFactoryBean to access a
tomcat naming resource.
nevermind! i didn't rtfm and so did not realize that 5.5 does not use
ResourceParams. all is well. hope
Thanks David, I will give this a try.
Rob
- Original Message -
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:16 PM
Subject: Re: Getting LOGON_USER from the header
By default, tomcat ignores the REMOTE_USER
tomcat website has a server configuration link and it states for every element
in the server.xml which sub elements are possible. along with knowledge of JAAS
you have to acuire alone and the JAAS Realm configuration link you have been
given, i would say you are set.
-Original Message-
Guy Katz wrote:
tomcat website has a server configuration link and it states for every element
in the server.xml which sub elements are possible. along with knowledge of JAAS
you have to acuire alone and the JAAS Realm configuration link you have been
given, i would say you are set.
can i
if the Realm element can reside inside the elements in the root.xml
(specifically the Context element) then yes.
you can check this in the server.xml configuration docs on the tomcat website.
-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005
58 matches
Mail list logo