RE: Share session cookie across subdomains

2008-04-24 Thread Reich, Matthias
Hi, I haven't thought about the idea in detail, but would it be possible to wrap the response? The wrapper would have to ensure that cookie replacement is applied before any data is written to the output stream or writer. A remaining issue would be that encoded (redirect-) URLs in the response

What doea SEVERE: BAD packet signature 18245 mean.

2008-04-24 Thread Peter-Frank Spierenburg
Greetings, I've got a CentOS5 box with the standard CentOS5 tomcat5 and jvm packages installed. $ rpm -qa | grep tomcat tomcat5-jsp-2.0-api-5.5.23-0jpp.3.0.2.el5 tomcat5-admin-webapps-5.5.23-0jpp.3.0.2.el5 tomcat5-common-lib-5.5.23-0jpp.3.0.2.el5 tomcat5-servlet-2.4-api-5.5.23-0jpp.3.0.2.el5

Datasource and Hibernate

2008-04-24 Thread Dubois, Fabien
Hi everybody, I'm using tomcat6 and trying to use datasource for mysql connexion (and hibernate). I have looked to the tomcat 6 official documentation, and in the $CATALINA_HOME/conf/context.xml, i have declared : Context path=/appWicket reloadable=true Resource

Re: Can we slow down the speed of servlet response ?

2008-04-24 Thread Wang Han
Hi Chris, Just received the latest version NM software and it works well with Thread.sleep works now. It seems old NM SW bug caused Thread.sleep() failed. the latest NM will send 60 concurrent requests maximum and I configured the Connector element as: Connector

Default servlet doesn't encode URI on redirect?

2008-04-24 Thread Benoit Maisonny
Hi, I see weird URI encoding behaviour from DefaultServlet when a redirect occurs. Context: Tomcat 5.5.25, with the Connector configured with URIEncoding=UTF-8. User wants to list the contents of a directory served by DefaultServlet. The directory's name contains a non-ASCII character (e with

Re: What doea SEVERE: BAD packet signature 18245 mean.

2008-04-24 Thread Mark Thomas
Peter-Frank Spierenburg wrote: Greetings, I've got a CentOS5 box with the standard CentOS5 tomcat5 and jvm packages installed. As has been said many times before on this list - you may want to get a real tomcat distro rather than a repackaged one. Generally these distros cause more hassle

Re: Extending DefaultServlet, broken welcome-file

2008-04-24 Thread Tim Funk
You need to look at org.apache.tomcat.util.http.mapper.Mapper Welcome files belong to the container since jsp's can be used as welcome files and jsps are satisfied by a different servlet. -Tim Fred Toth wrote: Hi all, I'm lost in the woods. Some time ago we built an application that

Re: Datasource and Hibernate

2008-04-24 Thread David Smith
You've been answered. Please take a look at my and Mark's responses. If you can't find them in your email, take a look at the list archives. --David Dubois, Fabien wrote: Hi everybody, I'm using tomcat6 and trying to use datasource for mysql connexion (and hibernate). I have looked to

JNDI Realm nor returning LDAP error codes/exceptions

2008-04-24 Thread Gundersen, Richard
Hi Can anyone help me with the problem below please? I just need a way of getting some kind of error message back to the user to say WHY they couldn't be logged on. The current realm implementations only seem to pass either a SUCCESS/FAIL back. But there could be lots of reasons why login

RE: Datasource and Hibernate

2008-04-24 Thread Dubois, Fabien
Thank you for your help, I have modified my context.xml, like this : Context path=/appWicket-1.0 docBase=appWicket-1.0 reloadable=true crossContext=true Resource name=jdbc/hibernate auth=Container type=javax.sql.DataSource

RE: What doea SEVERE: BAD packet signature 18245 mean.

2008-04-24 Thread Caldarale, Charles R
From: Peter-Frank Spierenburg [mailto:[EMAIL PROTECTED] Subject: What doea SEVERE: BAD packet signature 18245 mean. I've got a CentOS5 box with the standard CentOS5 tomcat5 and jvm packages installed. And therein lies your problem. Mark T suggested using a real Tomcat; I submit that it's

RES: Runtime created files not accessible.Please help.

2008-04-24 Thread Milanez, Marcus
Hi Andreas, We do pretty much the same here and it is working fine. Could you please post some parts of your code, so that we can see how you specify your physical folders? Can you see the folders/files created using a file viewer ? Yours, Marcus Milanez -Mensagem original- De: Andreas

tomcat disappearing...

2008-04-24 Thread Abraham Iglesias
Hi all, something very weird is happening on my tomcat environment. I am running 2 webapps within the servlet container. The tomcat process starts fine in my linux box. However, it stops after some time. This time is random, and it might be 5 min or 20 min, there is no pattern. Does anyone know

Re: Runtime created files not accessible.Please help.

2008-04-24 Thread Andreas
Hello and many thnx for interest and help. Yes, I do see the folders/files created by Java code during runtime with file viewers, they seem all fine. But tomcat won't open/see them, and even if i try to put the URL in my browser I get HTTP Status 404. The code is pretty much basic, Java.IO

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-24 Thread Timothy Washington
Ok, got it. There was a buried 'response.rest()' call that I didn't see before. Whew, thanks a lot for the feedback Tim - Original Message From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, April 23, 2008 5:38:59 PM Subject:

Re: tomcat disappearing...

2008-04-24 Thread Mark H. Wood
First guess: the Linux OOM killer. When memory gets desperately tight, the kernel picks a victim process and terminates it to recover some memory. Large processes lacking controlling terminals, such as Tomcat, tend to be the preferred victims. Check your OS log files to see if there are signs

Re: tomcat disappearing...

2008-04-24 Thread Abraham Iglesias
Hi Mark, thanks for your reply. My linux boxes have 4GB RAM available and there is no trace about a out of memory error. In fact, i run 7 tomcats instances on different ports on the same machine. However it is always the same one who disappears ... quite weird. I can't see anything in

Re: Runtime created files not accessible.Please help.

2008-04-24 Thread Andreas
mmm, I am not sure i got what you mean by listed, but I will try to describe to you the situation. catalina home: C:\Program Files\Apache Software Foundation\Tomcat 6.0 my project folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0\PROTEUS_9 (i build-deploy-run it through

Re: Runtime created files not accessible.Please help.

2008-04-24 Thread Piller Sébastien
Hello, personnally, I noticed that there is a delay between the creation of a folder/file and the moment where this folder/file is available in my webapp... I don't know why, but seems to be related to tomcat Andreas a écrit : mmm, I am not sure i got what you mean by listed, but I will

RES: Runtime created files not accessible.Please help.

2008-04-24 Thread Milanez, Marcus
I don't think so, never noticed it in our applications... -Mensagem original- De: Piller Sébastien [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 24 de abril de 2008 11:22 Para: Tomcat Users List Assunto: Re: Runtime created files not accessible.Please help. Hello, personnally,

RE: Datasource and Hibernate

2008-04-24 Thread Dubois, Fabien
It's working, thank you all for your help :) -Message d'origine- De : Caldarale, Charles R [mailto:[EMAIL PROTECTED] Envoyé : jeudi 24 avril 2008 14:32 À : Tomcat Users List Objet : RE: Datasource and Hibernate From: Dubois, Fabien [mailto:[EMAIL PROTECTED] Subject: Datasource and

Application scope bean destruction?

2008-04-24 Thread nam3l3ss
Hi! I have a JSP page with an application scope bean included (jsp:useBean). This bean uses resources I need to free after the application gets restarted by the manager. The problem is, I have no idea how to do this. I've checked the docs, but I must have overlooked it. I suspected that the

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Timothy Washington wrote: | Ok, got it. There was a buried 'response.rest()' call that I didn't | see before. response.reset? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla -

Re: Tomcat not sending JSESSIONID (servlet session cookie) with new sessions

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, Timothy Washington wrote: | The only thing is that in my real app, I send the response (via | responseWriter) in my facade. Whereas in the EchoServlet, all | processing is done in the servlet proper. I tried moving the response | sending back

Re: JNDI Realm nor returning LDAP error codes/exceptions

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: | Can anyone help me with the problem below please? Did you bother to read my response? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla -

Re: Default servlet doesn't encode URI on redirect?

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benoit, Benoit Maisonny wrote: | I suspect someone forgot to encode the URI in the Location: HTTP header | on the 302 response, but maybe there is something missing in our | configuration? What is the default character set of the running JVM? -

need help with connectionTimeout and connection_pool_timeout

2008-04-24 Thread Pavel Pragin
Hello, 1)I am having an issue withTomcat running out of threads it seems: ps -dfm | grep tomc tomcat 16983 1 0 Apr23 ?00:01:39 /usr/java/bin/java -Xmx2000m -Djava.awt.headless=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Re: tomcat disappearing...

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abraham, Abraham Iglesias wrote: | My linux boxes have 4GB RAM available and there is no trace about a out | of memory error. You won't get an OOME. Your process will simply disappear. | In fact, i run 7 tomcats instances on different ports | on

Re: Application scope bean destruction?

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 nam3l3ss, nam3l3ss wrote: | I have a JSP page with an application scope bean included (jsp:useBean). | This bean uses resources I need to free after the application gets restarted | by the manager. | The problem is, I have no idea how to do this.

hackers sending long URLs to probe site?

2008-04-24 Thread DIGLLOYD INC
I've have to use a deny in a RemoteAddrValve to solve the following problem-- A normal URL for my site might be: http://diglloyd.com/diglloyd/free/Eagles/Eagles.html eg /diglloyd/free/Eagles/Eagles.html (check it out if you want to see some unusual eagle photos) But I see tons of 404

simple way to rewrite simple URL portion

2008-04-24 Thread DIGLLOYD INC
I'm looking for a very very basic URL-rewriting filter--simple text substitution. I suppose I can write my own since the functionality I need is so limited, but I was hoping there was something built-in in Tomcat. For past reasons, I get requests that include the path bike/free. Right

Re: Can we slow down the speed of servlet response ?

2008-04-24 Thread DIGLLOYD INC
Han, I think you're barking up the wrong tree here--use a Mock Object (a dummy) to stub out your app so it thinks it's calling the Servlet. After you've tested your app working, then revert to actually sending the request to Tomcat. If the Servlet provides real data that must come from

Re: Help Needed with Tomcat Stack Traces

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan O'Donovan wrote: | Am I right in saying the following? : | | 1) These are the the most important entries in the stack trace | | - Root Cause - | java.lang.IllegalStateException | at

Re: simple way to rewrite simple URL portion

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: | I'm looking for a very very basic URL-rewriting filter--simple text | substitution. I suppose I can write my own since the functionality I | need is so limited, but I was hoping there was something built-in in | Tomcat.

Re: simple way to rewrite simple URL portion

2008-04-24 Thread DIGLLOYD INC
Thank you Christopher I'll take a look at the link. More than I need now, but maybe there will be other uses too... (I'm just running Tomcat standalone, no httpd in front) On Apr 24, 2008, at 10:01 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd,

Re: hackers sending long URLs to probe site?

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, For future reference, please don't hijack a thread. You replied to another message on the list to ask this one. In the future, please create a brand new message. DIGLLOYD INC wrote: | But I see tons of 404 errors, with someone/thing from

Re: simple way to rewrite simple URL portion

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: | Thank you Christopher I'll take a look at the link. More than I need | now, but maybe there will be other uses too... Anything is better than re-inventing the wheel ;) - -chris -BEGIN PGP SIGNATURE- Version:

Re: Can we slow down the speed of servlet response ?

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: | I think you're barking up the wrong tree here--use a Mock Object (a | dummy) to stub out your app so it thinks it's calling the Servlet. | After you've tested your app working, then revert to actually sending | the

Re: simple way to rewrite simple URL portion

2008-04-24 Thread Hassan Schroeder
On Thu, Apr 24, 2008 at 9:53 AM, DIGLLOYD INC [EMAIL PROTECTED] wrote: I'm looking for a very very basic URL-rewriting filter http://tuckey.org/urlrewrite/ -- Hassan Schroeder [EMAIL PROTECTED] -

RE: JNDI Realm nor returning LDAP error codes/exceptions

2008-04-24 Thread Gundersen, Richard
Hi Chris Urgh, humble apologies. Nope, I somehow managed to delete it. Retrieved it though, and now I see your suggestion to use securityfilter, which sounds perfect for what I need. I'll try it out first thing tomorrow when I get into the office. Sorry if it looks like I dismissed your

Re: hackers sending long URLs to probe site?

2008-04-24 Thread DIGLLOYD INC
Christopher, Thank you. This is helpful. Sorry about the hijacked thread, I didn't think of that. Yes, I've double-checked that my site isn't generating the bad links. It's all static HTML and I've searched for any duplications, ../../ type things, etc. I don't currently generate any

Re: JNDI Realm nor returning LDAP error codes/exceptions

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, Gundersen, Richard wrote: | Urgh, humble apologies. No worries. I'm not insulted ;) | BTW do you have an opinion on JOSSO? Was playing around with that | today and it seems to integrate with Tomcat very nicely. I have never used it. Lots

Re: simple way to rewrite simple URL portion

2008-04-24 Thread Ken Bowen
Take a look at http://tuckey.org/urlrewrite/ I found it very easy to use for exactly the kind of problem you described. P.S. Your eagles are great. On Apr 24, 2008, at 12:53 PM, DIGLLOYD INC wrote: I'm looking for a very very basic URL-rewriting filter--simple text substitution. I

Re: custom timeout/expiry implementation

2008-04-24 Thread mfs
Actually, i need a mean by which i can extend the session (in some cases) if the session is about to expire. I know i can certainly do this with Session.setMaxTimeInternal() but thats only possible with some client event (i.e. when the servlet/filter is invoked), which doesn't satisfy my needs.

RES: custom timeout/expiry implementation

2008-04-24 Thread Milanez, Marcus
Hello, We've implemented a similar solution for that, which consists on opening a modal dialog in the browser asking for user password again, thus extending session duration if he correctly enters it, one minute before the user session expires. We've used regular javascript setInterval to

Re: Runtime created files not accessible.Please help.

2008-04-24 Thread Andreas
Hello Marcus, Hello all. Thank you very for ur help,although i dont seem to get any solution and it's just completely frustrating... Marcus, when you say regular servlet you mean..?? simple JSP ? I am not sure I got it. Coz I also tested through a simple JSP and I got the same problems...

Re: Runtime created files not accessible.Please help.

2008-04-24 Thread Andreas
By the way, do the newly created files have to be in some place specific for tomcat to see them??? - Original Message - From: Andreas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, April 24, 2008 11:05 PM Subject: Re: Runtime created files not

RES: Runtime created files not accessible.Please help.

2008-04-24 Thread Milanez, Marcus
Hello, I meant any class that extends HttpServlet. Have you tried the code I sent you? Marcus Milanez -Mensagem original- De: Andreas [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 24 de abril de 2008 17:06 Para: Tomcat Users List Assunto: Re: Runtime created files not

Re: custom timeout/expiry implementation

2008-04-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Farhan, mfs wrote: | Actually, i need a mean by which i can extend the session (in some cases) if | the session is about to expire. I know i can certainly do this with | Session.setMaxTimeInternal() but thats only possible with some client event |

Wily Introscope

2008-04-24 Thread Vance A. Arocho
Anyone have any experience using Wily Introscope with Tomcat (version 4.1) running under Solaris ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

DOMImplementationRegistry and Tomcat...

2008-04-24 Thread Michael Burbidge
I'm trying to retrieve a DOM implementation from my servlet. The following code works fine when I deploy it to tomcat within JBoss, but when I deploy it to standalone tomcat, the second line returns null. domRegistry = DOMImplementationRegistry.newInstance();

RE: Runtime created files not accessible.Please help.

2008-04-24 Thread Caldarale, Charles R
From: Andreas [mailto:[EMAIL PROTECTED] Subject: Re: Runtime created files not accessible.Please help. By the way, do the newly created files have to be in some place specific for tomcat to see them??? Not in particular, as long as the path used to retrieve the files is known either to

Re: Wily Introscope

2008-04-24 Thread Fred K
Hi, yes (solaris and linux - no difference) note that there is some information about on the http://wilytech.com community (this peer support area is open to all customers). Rgds - Fred On Thu, Apr 24, 2008 at 6:13 PM, Vance A. Arocho [EMAIL PROTECTED] wrote: Anyone have any experience

custom JDBCRealm in Tomcat 5.5

2008-04-24 Thread Ivan Cheung
Hi, I have trying to do some custom authentication I have written myRealm to extend JDBCRealm modify server.xml Realm className=MyRealm add the jar file that contsin MyRealm in tomcat's server/lib directory The only problem is tomcat won't start it keep throwing this exception usage: