how to set JAAS Subject in HTTPSession

2007-04-24 Thread shahab
Hi: I would need help with the following - I am trying to implement JAAS authentication using struts2. I have implemented the following flow - user request -> struts action -> login() -> loginModule (implements LoginModule) this login module validates userid, password and in the commit(), it cr

Re: linux + tomcat, some path/link problem

2007-04-24 Thread Martin Gainty
make sure you have granted the correct permissions in your catalina.policy e.g. grant codeBase "file:${java.home}/lib/-" { permission java.security.AllPermission; }; M-- This email message and any files transmitted with it contain confidential information intended only for the person(s)

Re: linux + tomcat, some path/link problem

2007-04-24 Thread LRS
thanks men, actually I've already tried to add " file:// " prefix explicitly to filePath in A href link, and in mozilla I can see the property of link appear to be " file:///root/test.html " , which is a good sign, huh? but, woo, hate this but, no matter how hard i clicked, the browsers made no re

Re: Listener won't start -> NoClassDefFoundError

2007-04-24 Thread Mike Peremsky
Thanks, switching to a ServletContextListener resolved the problem. Pid <[EMAIL PROTECTED]> wrote: Mike Peremsky wrote: > If it helps at all I am running on Windows XP. If it's in the webapp directory, that explains it. It's not in the same classloader. You probably want ServletContextL

Re: charset encoding bug

2007-04-24 Thread Sean Bridges
Thanks Rashmi for clearing that up. I will try to get spring to stop setting the Locale. >Christopher writes > The character set has to be chosen at some point. It > looks like what you are suggesting is that you want > to actually report an incorrect character set (or > none, which is just as

RE: Tomcat UserDB in MySQL

2007-04-24 Thread David Short
Add a realm under the section. You'll need to copy the correct MySQL JDBC driver (http://dev.mysql.com/downloads/connector/j/5.0.html) to the tomcat_home\common\lib directory. Replace the "test" in localhost:3306/test with you database name. I've got it running on Tomcat 5.5.23 and MySQL 5.1.

Tomcat UserDB in MySQL

2007-04-24 Thread Jan Strauch
I want to replace the "tomcat-users.xml" with two tables in MySQL: Database : auth table users :username varchar(15) primary key NN pass varchar(41) NN table roles : username varchar(15) primary key NN role varchar(10) NN Tried the solution from th

Re: charset encoding bug

2007-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sean, Sean Bridges wrote: > I did a little more digging, and it seems this bug > only appears when the locale is set. My full servlet > code is, > [snip] > arg1.setLocale(arg0.getLocale()); > arg1.setContentType("application/foobar"); >

Re: Memory Leak with Comet

2007-04-24 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. Why don't you enable -XX:+HeapDumpOnOutOfMemoryError and send us a link where we can download the HPROF files that get generated. Also send us your config a

Re: Any documentation/example about org.apache.catalina.Comet* ?

2007-04-24 Thread Filip Hanik - Dev Lists
Benjamin Larchevêque wrote: Hello, I saw that Tomcat proposes some interfaces to use Comet like Servlet from version 6.x. Even(t) if I get the main idea I was not able to reuse the pseudo code servlet ChatServlet provided on the following page: http://tomcat.apache.org/tomcat-6.0-doc/aio.html

Re: NullPointerException after approx 3000 comet requests

2007-04-24 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a CometProcessor which handles a large number of requests in a very short time, and after about 3000 requests I consistently get the following two errors: Apr 18, 2007 12:09:19 PM org.apache.tom

Re: Regarding the advantages and disadvantages of apache tomcat versus other server formats

2007-04-24 Thread Rashmi Rubdi
Hi Saran, Why did you post this message twice? under different headings : "Ragarding the advantages of Apache tomcat server" -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTEC

Re: Regarding the advantages and disadvantages of apache tomcat versus other server formats

2007-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Saran, saravanan ragothman wrote: > [We] have plans to move to Oracle application server 10g > in future. but I still insist on tomcat server. Can you tell me some > advantages(and disadvantages, if any) of tomcat server over the > oracle application

RE: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread Nelson, Tracy M.
| From: David Kerber [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 24 April, 2007 13:31 | | Nelson, Tracy M. wrote: | | >Can't you just use the standard Java LDAP classes? Javax.naming.ldap.*, | >javax.naming.directory.* and friends? AD is supposed to be | >LDAPv3-compliant. | > | That was one of

Re: charset encoding bug

2007-04-24 Thread Rashmi Rubdi
However if you insist on only getting "application/xml" --- it is still achievable (even if the Locale is set), if you perform a HTTP Redirect response.sendRedirect("/p/test81/test81.jsp"); from the Servlet to the JSP instead of a HTTP Forward. -Rashmi --

Re: Classloader Concept

2007-04-24 Thread Rainer Jung
... and finally don't forget, that the pathes used by these class loaders are configured in conf/catalina.properties. Luis Rivera schrieb: > Well, that makes sense and I have had no problems using the shared class > loader. I guess I did something wrong when I tried to use the common class > loade

Re: charset encoding bug

2007-04-24 Thread Rashmi Rubdi
Hi Sean, You are right with the fact that the character set encoding does get appended to the Content-Type header when the Locale is set. However, according to the API docs: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletResponse.html#setLocale(java.util.Locale) " It also se

Re: Creating a custom session manager -- SOLVED

2007-04-24 Thread Eric Berry
Bryan, Thanks so much for sending this a lot earlier. We tried it out and found that we could simplify it a bit for our needs. I've included the source here just in case. What our valve does is just sets the domain on the session cookie, in the request and response. The first time a user comes to

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread Hassan Schroeder
On 4/24/07, Ajand Saadat <[EMAIL PROTECTED]> wrote: some disadvantages os oracle AS 1) oracle implementation of JDK i think No, you can run OC4J with a Sun JDK, but... 2) very heavy on your resource specially at startup ..that's for sure. I consulted a while last year at a company that was

Re: Classloader Concept

2007-04-24 Thread Luis Rivera
Well, that makes sense and I have had no problems using the shared class loader. I guess I did something wrong when I tried to use the common class loader for my jni classes. I guess I am light years away from really knowing tomcat :) --Luis R. On 4/24/07, David Smith <[EMAIL PROTECTED]> wrote:

Re: charset encoding bug

2007-04-24 Thread Sean Bridges
Thanks for the reply Rashmi. I did a little more digging, and it seems this bug only appears when the locale is set. My full servlet code is, import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread Ajand Saadat
some advantages in tomcat: 1)It is an open source AS 2)it is a light weight AS (no EJB) 3)it is easily configured with apache and IIS 4)very stable on unix like systems 5)good documentation online 6)java sun complaint 7)doesn't require alot of memory at startup some disadvantages os oracle AS 1) o

Re: Classloader Concept

2007-04-24 Thread David Smith
My experience has been the reverse -- shared/lib is usually disabled and not working, common/lib is used most of the time. The difference between the two is common/lib is visible to both tomcat internals and the webapps. That's why we put the db drivers in there for container managed connecti

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread Rashmi Rubdi
It is my understanding that Tomcat is a reference implementation of a web container, so everything complies to standards. However Oracle might have its own proprietary extensions to the standards. Company sometimes decide to switch between servers for various reasons, during those situations what

Re: Classloader Concept

2007-04-24 Thread Rainer Jung
common: shared between all webapps and tomcat itself shared: only shared between all webapps Luis Rivera schrieb: > Hi, > > Just as a comment. I use the shared classloader by using the shared folder > to avoid loading multiple times my shared libraries (for jni use). I am not > sure what is the

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread David Kerber
[EMAIL PROTECTED] wrote: I know next to nothing about Oracle app server, but price would be a big difference, since you don't have to pay for Tomcat. I really can't see any clear general advantage to Oracle's app server. The Only clear advantage I can see is the integration with Oracle if

Re: Classloader Concept

2007-04-24 Thread Luis Rivera
Hi, Just as a comment. I use the shared classloader by using the shared folder to avoid loading multiple times my shared libraries (for jni use). I am not sure what is the difference with the common/lib classloader, but it did not work when I used that one. --Luis R. On 4/24/07, David Delbecq

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread markw
> I know next to nothing about Oracle app server, but price would be a big > difference, since you don't have to pay for Tomcat. I really can't see any clear general advantage to Oracle's app server. The Only clear advantage I can see is the integration with Oracle if you are using Oracle. > > >

Re: Ragarding the advantages of Apache tomcat server

2007-04-24 Thread David Kerber
I know next to nothing about Oracle app server, but price would be a big difference, since you don't have to pay for Tomcat. saravanan ragothman wrote: This is Saran doing good as an admin, and I have few questions about the Apache Tomcat Server after reading the documentation. In my workpl

Re: charset encoding bug

2007-04-24 Thread Rashmi Rubdi
Hi Sean, I made a little mistake w.r.t http://www.ietf.org/rfc/rfc3023.txt , I meant to point to 3.2 Application/xml Registration MIME media type name: application MIME subtype name: xml Mandatory parameters: none Optional parameters: charset Although lis

Re: charset encoding bug

2007-04-24 Thread Rashmi Rubdi
Hi Sean, Thank you for defining the problem. I tried a few variations of code in Servlets and JSPs and was able to get only "application/xml" instead of "application/xml;some character encoding" . The only time I got "application/xml;some character encoding" was when there was a conflicting set

Re: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread David Kerber
Nelson, Tracy M. wrote: | From: David Kerber [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 24 April, 2007 10:38 | | What is a good java package that I can use with my webapp to let my | customers authenticate against their active directory installation, from | my Tomcat 5.5.15 webapp? Can't you

Ragarding the advantages of Apache tomcat server

2007-04-24 Thread saravanan ragothman
This is Saran doing good as an admin, and I have few questions about the Apache Tomcat Server after reading the documentation. In my workplace we are using the Tomcat server version 5.0.28 for the web applications(for reports and scorecards especially) but have plans to move to Oracle applicatio

Re: linux + tomcat, some path/link problem

2007-04-24 Thread Johnny Kewl
Ha ha boy of boy are you in for some pain... sorry cant help myself. Well yes, you need to convert... because MS just didnt have the decency to ask the linux guys how to do it ;) Heres a little code for you if(rawFileName == null) return ""; if(rawFileName.le

RE: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread Nelson, Tracy M.
| From: David Kerber [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 24 April, 2007 10:38 | | What is a good java package that I can use with my webapp to let my | customers authenticate against their active directory installation, from | my Tomcat 5.5.15 webapp? Can't you just use the standard Java L

RE: anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-24 Thread Propes, Barry L
I'd be glad to write it inside my own, but I figured using the security constraint, you were bound to their classes. -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 12:45 PM To: Tomcat Users List Subject: Re: anyone ever altered the Tomcat AP

Re: anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-24 Thread Johnny Kewl
I think you would be better off writing a little authentication code inside your servlets... However if you want to modify tomcat, you'll find that stuff in package org.apache.catalina.authenticator; public class BasicAuthenticator all I wanted to to say is that some browsers like IE do their

charset encoding bug

2007-04-24 Thread Sean Bridges
Sorry Rashmi, here is the problem without referencing other bugs. There is a problem with HttpServletResponse. If I set the content type of an HttpServletResponse, the charset is also set. For example consider the following code, HttpServletResponse sresp = ... sresp.setContentType("application

RE: linux + tomcat, some path/link problem

2007-04-24 Thread Caldarale, Charles R
> From: Lu Rui [mailto:[EMAIL PROTECTED] > Subject: linux + tomcat, some path/link problem > > // for winxp > String filePath = new String("c:\\root\\test.html"); > // for linux > String filePath = new String("/root/test.html"); > > testlink I have not verified the following, but this is what

anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-24 Thread Propes, Barry L
Any version? 4x. 5x? I'm actually in the 4.1.3. series, but was wondering which class files I'd need to revise and customize. I assume most if not all are in the /catalina/src/share/org/apache/catalina/ repository, and figured something like Authenticator.java or Session.java might need a me

RE: linux + tomcat, some path/link problem

2007-04-24 Thread Fargusson.Alan
I may be completely miss-understanding, but I think this is a browser trick. At least in IE7 when I have c: it assumes file:..., but when I don't have c: it assumes http:... . You will probably need to code file:///root/test.html (I may have the wrong number of / after file:) to get this to wo

Re: charset encoding bug

2007-04-24 Thread Rashmi Rubdi
Hi Sean, It's a little difficult IMO to refer to multiple bugs to determine what the problem might be. Please present a small snippet of code relevant to the problem, it makes it more straight forward for us to understand and respond to the problem. If you are looking to set an uniform characte

linux + tomcat, some path/link problem

2007-04-24 Thread Lu Rui
hi, all, i'm writing a jsp front-end of a desktop search program in linux using tomcat 5.5, here is my problem. say we need a result.jsp which can display the results from lucene and show the related links, codes like below (hard-coding for simple, as long as you can get my thougt is oka

Re: http header setting problem in servlet

2007-04-24 Thread Hassan Schroeder
On 4/24/07, Huseyin Sinecan <[EMAIL PROTECTED]> wrote: Thanks for the answer.. Here is the complete code of doGet method: For clarity, here's my entire adaptation of your code: --- package com.example.test; import

Re: Problem with compiling tomcat native

2007-04-24 Thread Orlando Reis
That's right, debian 4 comes with 3.x and debian comes with 2.x. *Where it worked (deb 3.1r3):* Last login: Tue Apr 24 16:43:54 2007 from x.y.z.w [EMAIL PROTECTED]:~$ bash -version *GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc.* *Whe

Re: Stable versions of Tomcat/JDK

2007-04-24 Thread Rashmi Rubdi
Hi Will, Please only reply to the list. I chose to install from the ZIP file on Windows XP, but some install the Windows Service. If you are using tools like Apache Ant along with Tomcat then it is advisable to install it to a directory that doesn't have spaces , for example C:\dev\tomcat\ is

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Martin Perez <[EMAIL PROTECTED]> wrote: Hi Rémy, Actually, without using Object*Stream everything seems to work. I'm currently using raw I/O streams and the communication is ok. I guess people on the list would be interesting to know that currently doesn't work with Object*Streams,

charset encoding bug

2007-04-24 Thread Sean Bridges
Hello, I originally posted this as a comment to bug 32499, (http://issues.apache.org/bugzilla/show_bug.cgi?id=32499), and was told to send it to the users mailing list. Bug 32499 was marked as a duplicate of 24970, but it is not a duplicate. Bug 24970 was marked as wont fix, which is appropria

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Martin Perez
Hi Rémy, Actually, without using Object*Stream everything seems to work. I'm currently using raw I/O streams and the communication is ok. I guess people on the list would be interesting to know that currently doesn't work with Object*Streams, either when Object*Streams are not specially famous f

RE: Problem with compiling tomcat native

2007-04-24 Thread Fargusson.Alan
This look right to me, in that /bin/sh is actually bash. So I don't understand why it doesn't work. Perhaps there is some incompatibility in different versions of bash. Is it possible that this work in bash 2.x and not in bash 3.x? Perhaps you can do a "bash -version" on a system ware the co

Re: Memory Leak with Comet

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Reich, Matthias <[EMAIL PROTECTED]> wrote: I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. For each browser I run, I have at most 3 active connections at a time. I think, acually there are at most 2 active connections p

Re: http header setting problem in servlet

2007-04-24 Thread Huseyin Sinecan
Hello, Thanks for the answer.. Here is the complete code of doGet method: protected void doGet(HttpServletRequest theRequest, HttpServletResponse theResponse) throws ServletException, IOException { theResponse.reset(); theResponse.resetBuffer();

Authenticating to ActiveDirectory from webapp

2007-04-24 Thread David Kerber
What is a good java package that I can use with my webapp to let my customers authenticate against their active directory installation, from my Tomcat 5.5.15 webapp? Right now, I'm authenticating against my app's built-in database, but that's not very extensible, even though it works ok so far

Re: Problem with compiling tomcat native

2007-04-24 Thread Orlando Reis
I am almost sure you are right about the problem, it is a shell problem. I will try having a look at this later but for now I don't have any clues to what might be causing this, I'm going try make some debugging of the script. vserv-deb:~# locate sh|grep bin|grep -v runner|grep -v locale|grep -v

RE: Memory Leak with Comet

2007-04-24 Thread Reich, Matthias
I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. For each browser I run, I have at most 3 active connections at a time. I think, acually there are at most 2 active connections per browser, because by default both IE and FireFox don't

Re: http header setting problem in servlet

2007-04-24 Thread Hassan Schroeder
On 4/24/07, Huseyin Sinecan <[EMAIL PROTECTED]> wrote: I want to set header parameters of http response in my servlet. Are you sure you're working on the right response object? Perhaps you can post a simple but complete example that fails... I just tried the following file as a JSP: -

Re: Comet question. Problem reading from http input stream

2007-04-24 Thread Rémy Maucherat
On 4/23/07, Martin Perez <[EMAIL PROTECTED]> wrote: Any suggestions? I would try to avoid using directly Object*Stream, to see what happens, and verify the validity of the data which is sent and received. Rémy - To start a ne

Re: Memory Leak with Comet

2007-04-24 Thread Rémy Maucherat
On 4/24/07, Reich, Matthias <[EMAIL PROTECTED]> wrote: If memory allocation of Tomcat continues until I see messages like org.apache.coyote.http11.Http11NioProcessor: Error processing request java.lang.OutOfMemoryError: Java heap space There are leaks that have been fixed in the NIO connector,

Re: Problem with compiling tomcat native

2007-04-24 Thread Orlando Reis
Ok, I understand your point of view, I've checked it and /bin/sh on debian 4 points to /bin/bash, you might be right, question is, how do I do fix this. When I say you might be right is because there are other scripts in jni/native/build which are bourne shell scripts. Those scripts are called wh

RE: How do I create a single jar of tomcat embedded on the Mac?

2007-04-24 Thread risky57
Caldarale, Charles R wrote: > > > > The jar should have a META-INF/MANIFEST.MF file in it (the names must be > upper case). Within this file, there should be a line declaring the > Main-Class of the application. What does yours have in it? > > - Chuck > > i have included the Main-Cla

Re: How do I create a single jar of tomcat embedded on the Mac?

2007-04-24 Thread risky57
Martin Gainty wrote: > > please display the name of the class which is missing (from > ClassDefNotFound) which should be displayed in either > %CATALINA_HOME%/logs/localhost.-MM-DD.log > %CATALINA_HOME%/logs/stdout_MMDD.log > > M-- > > when i try to run the recentley created jar

Regarding the advantages and disadvantages of apache tomcat versus other server formats

2007-04-24 Thread saravanan ragothman
Dear sir/madam, This is Saran doing good as an admin, and I have few questions about the Apache Tomcat Server after reading the documentation. In my workplace we are using the Tomcat server version 5.0.28 for the web applications(for reports and scorecards especially) but have plans to move to O

Re: http header setting problem in servlet

2007-04-24 Thread Martin Gainty
I assume you've seen this post on implementing httplib? http://www.ethereal.com/lists/ethereal-users/200512/msg00203.html In the meanwhile Curl implements this feature with curl_setopt http://us2.php.net/curl M-- This email message and any files transmitted with it contain confidential informati

Memory Leak with Comet

2007-04-24 Thread Reich, Matthias
Hello, I am sorry that I did not address the memory leak issue to the users list first, before sending this bug report: http://issues.apache.org/bugzilla/show_bug.cgi?id=42217 I am aware of the fact that memory allocation occurs in Java progams, and that Tomcat will exploit some resource pools be

http header setting problem in servlet

2007-04-24 Thread Huseyin Sinecan
Hello all, I want to set header parameters of http response in my servlet. I set parameters as below: ** theResponse.reset(); theResponse.resetBuffer(); theResponse.setHeader("Request Version", "HTTP/1.1"); theResponse.setStatus(200);

Re: SEVERE: Invalid message received with signature

2007-04-24 Thread Rainer Jung
This is an unexpected protocol error between mod_jk and Tomcat. As far as I know, there is no open bug concerning the protocol. Can you reproduce it? Does it only occur during high load? If you can easily reproduce it without high load, set your JkLogLevel to trace and post the full log file for a

SEVERE: Invalid message received with signature

2007-04-24 Thread Sakke Wiik
Recently I've had lots of ajp-errors with Tomcat. Any idea what causes these?: --- org.apache.coyote.ajp.AjpMessage processHeader SEVERE: Invalid message received with signature 8224? --- Number after "signature" varies. Environment: Win Server 2003 Standard x64 + Service Pack 1, Intel Xeon 64

Re: Imposible set default application out of ROOT environment with TOMCAT-5.5.20?

2007-04-24 Thread Markus Schönhaber
aordin schrieb: > I'm looking for set my application(jetspeed2 portal) like default into > Tomcat 5.5.20, i find some messages spoken about put the application > into /webapps/ROOT/ and it works but works quite bad because my > application show a lot of problems with Javascript. > Is it possibl

Re: Listener vs. load-on-startup

2007-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lizhg, lizhg wrote: > Hi all, I have some problem with Listener and load-on-startup, I search > on google and I find this article below, it do a lot good to me, but I > still want to ask , using the init() [and destroy()] of a servlet > [is the same

Re: Restrict access to ip/contextpath (Tomcat 4.x)

2007-04-24 Thread Mark Thomas
Peder Larsen wrote: >> If you can provide the functionality is to separate contexts then you >> can you the built-in Tomcat features. > > What do you mean? Nesting contexts? Yes. > Do you have/know of a simple example for this? No. For the nested context, the war needs to be outside your hosts a

Imposible set default application out of ROOT environment with TOMCAT-5.5.20?

2007-04-24 Thread aordin
Hi list! I'm looking for set my application(jetspeed2 portal) like default into Tomcat 5.5.20, i find some messages spoken about put the application into /webapps/ROOT/ and it works but works quite bad because my application show a lot of problems with Javascript. Is it possible to specify that

Re: Restrict access to ip/contextpath (Tomcat 4.x)

2007-04-24 Thread Peder Larsen
If you can provide the functionality is to separate contexts then you can you the built-in Tomcat features. What do you mean? Nesting contexts? Do you have/know of a simple example for this? Peder Peder Larsen wrote: > So i wonder if it is possible to restrict access to not only IP addresses

Re: Listener vs. load-on-startup

2007-04-24 Thread Jon Wingfield
The order of events is: Startup: All listeners get called. All filters, load-on-startup servlets get inited. Shutdown: All filters, servlets get destroyed. All listeners get called. So, it is possible for the combination of load-on-startup init + contextDestroyed to do the same job as just using

Re: Tomcat does not stop if the deployment fails

2007-04-24 Thread Mark Thomas
Tim Lucia wrote: > You can't, and generally don't want to stop Tomcat (the server) when an > application is mis-configured. Instead, you can stop (mark unavailable) > your application. One way to do this is to throw an exception inside a > ServletContextListener, if it detects wrong values inside

Re: Restrict access to ip/contextpath (Tomcat 4.x)

2007-04-24 Thread Mark Thomas
Peder Larsen wrote: > So i wonder if it is possible to restrict access to not only IP addresses, > but also to certain paths within a webapp. Tomcat does not provide this functionality. You would have to write your own custom code. > If i have a webapp, /thewebapp, and i want to restrict the acces

Re: Tomcat http 408 error

2007-04-24 Thread Mark Thomas
Cain Marko wrote: > Will it cause tomcat to send down and error page to client with the error > message? Yes - assuming the client is still there. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mai

RE: Tomcat does not stop if the deployment fails

2007-04-24 Thread Tim Lucia
You can't, and generally don't want to stop Tomcat (the server) when an application is mis-configured. Instead, you can stop (mark unavailable) your application. One way to do this is to throw an exception inside a ServletContextListener, if it detects wrong values inside the configuration file:

Webserver after webseal

2007-04-24 Thread guido . annaert
Hello, My Tomcat webserver will be placed after the WebSeal. The users on the workstations will authenticate on the WebSeal and will then have the possibility to open a web application on the Tomcat server. I want to configure my web application so that the login is done automatically with the

Re: Classloader Concept

2007-04-24 Thread David Delbecq
Sorry Leon but you are wrong. What Thomas looks for is common/lib, not server/lib according to http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html it's common/lib that is loaded in common classloader. server/lib is loaded in catalina classloader which is not visible for webapps. To an

Restrict access to ip/contextpath (Tomcat 4.x)

2007-04-24 Thread Peder Larsen
Hi, I've been reading the docs and found some info about the use of Remote Address Filter. However, my findings is that it only supports restricting access to a whole webapp to given IP addresses. So i wonder if it is possible to restrict access to not only IP addresses, but also to certain pat

Re: Classloader Concept

2007-04-24 Thread Leon Rosenberg
i thinks its server/lib you are looking for (or common/endorsed) but i'm not sure whether java mail has some static fields which will be screwed by sharing them among all apps. leon On 4/24/07, Thomas Papke <[EMAIL PROTECTED]> wrote: I need some help to the classloader concept of tomcat... (ve

Re: tomcat process getting killed... Please Help...

2007-04-24 Thread Gregor Schneider
We are using Tomcat version 5.5.12 and JDK 1.4.2_12-b03 Just a shot from the hip, but I guess, that's you're problem. Tomcat 5.5 need JDK 1.5 and up, or you'll have to download and install the JDK 1.4 Compatability Package from http://tomcat.apache.org/download-55.cgi Cheers Greg -- what's pu

Classloader Concept

2007-04-24 Thread Thomas Papke
I need some help to the classloader concept of tomcat... (version 5.5.) Our Tomcat has about 60 webapps running - right now every webapps have in their Web/lib directory the libs for activation and java mail (among other libs). As I understand, right now this libs are 60times loaded into Permg