Re: Session Objects

2005-02-09 Thread Mario Winterer
Hi! Is it really necessary to hold all active session objects in a global variable? I can't imagine a situation that would require this! Tex Jagadeesha T wrote: Thanks for responding. To manage session between an apllication and web servers. Is there any way to get that worked in clustered

Re: How to get english messages on a German Windows-XP?

2005-02-07 Thread Mario Winterer
I think Java uses the Locale from your operating system. So to switch to english, you should either: + switch the locale of your operating system + tell Java to use another locale via system.properties at tomcat startup (jvm-property): -Duser.language=language-code -Duser.country=country-code

Re: JTDS help

2005-02-07 Thread Mario Winterer
I think the main time is spent on opening the database connection! So you better use connection pooling - then this expensive operation is just execute once (or at least not so often) Have a look at the Tomcat documentation (Section on JNDI-DataSources) Tex Charles P. Killmer wrote: I am trying

Re: JTDS help

2005-02-07 Thread Mario Winterer
I do not think, jsp compilation is the problem - well, the first request will last long, but after the jsp is compiled, subsequent calls will not be remarkable slower than executing pure compiled servlet code. (Charles, I hope you did not measure the time for the first request only - which

Re: How to get english messages on a German Windows-XP?

2005-02-07 Thread Mario Winterer
but in javadoc for jvm-1.4.2 I found only the follow system properties: user.name User's account name user.home User's home directory user.dirUser's current working directory Zsolt -Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: Monday, February 07, 2005 6:30

Re: Where is jmx.jar

2005-02-07 Thread Mario Winterer
JMX is now part of J2SE 5.0. Best regards, Tex Phillip Qin wrote: I am trying to build tomcat 5.5 manager app. Where can I find jmx.jar? It used to be in ${catalina.home}/bin. Regards, PQ Going to war for peace is like having sex for virginity

Re: tutorial for fast settings of Tomcat

2005-02-06 Thread Mario Winterer
Hi! If you are already familiar with programming JSPs and you just want to know what you must do to set up a web-application that can handle JSPs - you're glad, because that is almost done. Have a look at the tomcat-docu at http://localhost/tomcat-docs/appdev/index.html In short: 1) create a

Re: tutorial for fast settings of Tomcat

2005-02-06 Thread Mario Winterer
Sorry, I've forgotten the first and basic step: 0) Install tomcat! ;-) Tex Mario Winterer schrieb: Hi! If you are already familiar with programming JSPs and you just want to know what you must do to set up a web-application that can handle JSPs - you're glad, because that is almost done. Have

Re: Form Auth + xml users database

2005-02-06 Thread Mario Winterer
Hi! What does Now, this seems to not work... mean??? Please go more into detai! We cannot tell you how to fix it if you do not tell us WHAT is going wrong! (e.g.: Tomcat can't start; Tomcat starts but web-app. can't start; Tomcat starts, webapp starts but you get exceptions each time you

Re: Form Auth + xml users database

2005-02-06 Thread Mario Winterer
Hi again! I've noticed one thing in your configuration - but I do not know if this is the reason for your problem: Remove the resource-env-ref-xxx entries from web.xml. You do not need a JNDI-reference to your user database here! (Apart from that this is wrong - it should be a

Re: tutorial for fast settings of Tomcat

2005-02-06 Thread Mario Winterer
file ending in .xml to be located at $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. See this link: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html aka_sergio --- Mario Winterer [EMAIL PROTECTED] wrote: Hi! If you are already familiar with programming JSPs and you just

Re: Form Auth + xml users database

2005-02-06 Thread Mario Winterer
can use the authentication procedure with the names I have stored in my xml database... this is what I mean saying that it's not works hope this should be more helpfully On Sun, 06 Feb 2005 18:43:45 +0100, Mario Winterer [EMAIL PROTECTED] wrote: Hi! What does Now, this seems to not work... mean

Re: Form Auth + xml users database

2005-02-06 Thread Mario Winterer
, It is not wrong to have that resource-env-ref within his web.xml. Look at the manager/WEB_INF/web.xml for a working application (manager) and you will see exact elements. aka_sergio --- Mario Winterer [EMAIL PROTECTED] wrote: Hi again! I've noticed one thing in your configuration - but I do

Re: [SOLVED] Form Auth + xml users database

2005-02-06 Thread Mario Winterer
Hi! I'm happy you could solve your problem now! Seems the reason was the missing Realm-definition in your context.xml. To Question 1) Tomcat offers a separate JNDI-namespace for each web application (so if you have 4 web applications you will have 4 namespaces). These namespaces are configured

Re: Problem in war deployment

2005-02-05 Thread Mario Winterer
Hi Doug! I think eilnet.xml IS the context.xml file you mentioned! To Manoj: As Dough said, try the following: 1) Remove eilnet.xml from .../conf/{engine}/manoj.eilnet.effectsoft.local 2) Rename eilnet.xml to context.xml 3) Put it into your war-file (into the manifest directory) Make sure

Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory

2005-02-05 Thread Mario Winterer
-Original Message- From: Mario Winterer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 4:37 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory Hi David! I think, you do not need to explicitely define a bean

Re: virtualhost and deployment applications

2005-02-05 Thread Mario Winterer
-directory (or any other directory that you specified in server.xml). Best regards, Tex Carlos Gabriel Arce wrote: But when I deploy a local .war in the administration page www.domain1.com/manager/html this war gets replicated in other virtualhosts. Mario Winterer escribió: Of course! That's Tomcat's

HTTPS: more than one certificate

2005-02-05 Thread Mario Winterer
Hi! Just because I'm interested: If I had more than one certificate in my keystore, which certificate would be used by tomcat for https? Is there a way to specify which certificate to use? Thanks, Tex - To unsubscribe, e-mail:

Re: order of creation of JNDI datasource from context.xml and Filter.init() using it

2005-02-05 Thread Mario Winterer
Hi Jeroen! Two weeks ago I (almost) exactly did what you want to do - make hibernate use a JNDI-DataSource defined as a GlobalNamingResource! The differences: My database is Oracle and I didn't configure hibernate directly because I use the spring-framework in between. I experienced problems

Re: Hiding resources

2005-02-03 Thread Mario Winterer
Thanks for your and Nix' advice - I know that what I do is not the clean and nice approach. If I were you, I'd challenge my solution too! But: In fact - we do have local CVS sandboxes on the development PCs - and we do have a separate development webserver for testing. And we do use this system

Re: AW: Login filter

2005-02-03 Thread Mario Winterer
Hi Ben! You cannot hook in the login validation process without touching tomcat code. But usually, this is not necessary. Just write a filter and map it to / - every request will be directed to your filter - except requests to j_security_check. But this should not bother you, because your

Re: Hiding resources

2005-02-03 Thread Mario Winterer
CVS URLs and have them map to a servlet that responds with an error or redirect. --David Mario Winterer wrote: Thanks for your and Nix' advice - I know that what I do is not the clean and nice approach. If I were you, I'd challenge my solution too! But: In fact - we do have local CVS sandboxes

Re: Accessing static variable from different webapps

2005-02-03 Thread Mario Winterer
For more information on tomcat's classloading concept have a look at: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html As you can see there, Tomcat instantiates a classloader for each web application. So if you put a class - let's say Global - inside the WEB-INF/classes

Re: virtualhost and deployment applications

2005-02-03 Thread Mario Winterer
Of course! That's Tomcat's default behaviour - and in fact, it is difficult to make it behave different! Have a look at server.xml of your tomcat's default installation (you need a host-element for each virtual host). More information can be found at

Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory

2005-02-03 Thread Mario Winterer
password=password/ /Context Mario Winterer [EMAIL PROTECTED] 02/02/2005 07:19 PM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX

Re: isUserInRole question

2005-02-03 Thread Mario Winterer
Hi Denny! Which Realm do you use in server.xml? What are your web.xml-settings? Please post your configurations!!! Tex Hello, Thanks for your reply. When I use IE to bring up the page I get a dialogbox asking for user name and password. If I put in a user name and password of a user on the

Re: compiling and deployment in tomcat

2005-02-02 Thread Mario Winterer
Hi, it is not possible to make Tomcat automatically compile and deploy your servlets. Usually this is not necessary. If you use a good IDE, it is no great effort to compile your servlets. Deployment could be done by using an Ant script - just copy the servlet-binaries in the correct directory

Re: sharing session across Hosts

2005-02-02 Thread Mario Winterer
Hi! Do you want to share some kind of global variables or session information? Global variables should exist only once while session information is stored for each user (to be more correct: for each user-session). I think you want to share session-information, but using a class-variable from

Re: isUserInRole question

2005-02-02 Thread Mario Winterer
Hi! I'm not sure, but I think your code is OK. The question is: How did you configure your security realm in web.xml and server.xml. (request.isUserInRole only works, if the user has already been authenticated against the web server.) Best regards, Tex Hello, I am trying to use isUserInRole

Re: idle connections

2005-02-02 Thread Mario Winterer
Hi! the parameter maxIdle is the maximum number of idle connections that can retain in the pool. That means it is ok for the pool to have 50 connections waiting for usage - you told him to do so! So what different behaviour did you expect? Best regards, Tex Hey, wondering if someone could

Re: Cross-context

2005-02-02 Thread Mario Winterer
In Tomcat 5.x, you can define the default settings for application contexts in %TOMCAT_HOME%/conf/context.xml. (I'm not sure if Tomcat versions prior to 5.x support this.) Best regards, Tex Tomcat Users - We are distributing a servlet application that relies on the application's Context

Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory

2005-02-02 Thread Mario Winterer
Hi! How did you define your JDBC DataSource? As far as I know, the original jakarta-commons-dbcp and jakarta-commons-pool-libraries are not included with Tomcat. Instead, just a subset of the required classes with modified package names (starting with 'org.apache.tomcat.dbcp') are packed in

Hiding resources

2005-02-02 Thread Mario Winterer
Hi! I'm running a web application that is under CVS, which means my web application contains a lot of CVS-related directories (for the CVS-metadata). Is there a possibility to tell Tomcat to hide or protect all those CVS directories? More general, what I need is a way to hide/protect all files