RE: Session Invalidation Not working

2006-11-03 Thread Caldarale, Charles R
> From: me_zeta [mailto:[EMAIL PROTECTED] > Subject: Session Invalidation Not working > > From my jsp page i call session.invalidate(). After > doing this if i check the tomcat active session > through the tomcat manager i find that the number > of active session has not reduced. You may be gett

Session Invalidation Not working

2006-11-03 Thread me_zeta
Hi, From my jsp page i call session.invalidate(). After doing this if i check the tomcat active session through the tomcat manager i find that the number of active session has not reduced. it is same as the before calling of session.invalidate(). Why is this happening? Am i doing the correct t

Locale difference with Console and Windows Service

2006-11-03 Thread maxt
I am using Windows XP, Tomcat 5.5.17, JRE 1.5.0_08. I am in Australia. To test localization, my Windows Region is set to English, US. When using the Console, tomcat5.exe, my localization files work correctly, returning the Locale, en_US. When using Windows Services, the Locale returned is en.A

Re: Thread pool per webapp?

2006-11-03 Thread David Smith
Well I was actually holding off because the internal threading of tomcat isn't my area. But if you insist, I have never seen any configuration parameters that effectively partition threads between webapps. --David Martin Gainty wrote: Boys- Why do you not post your answers? Do you have a so

Re: catalina.sh "==" artifact

2006-11-03 Thread Mark Petrovic
Aha. Thank you. On 11/3/06, Mark Thomas <[EMAIL PROTECTED]> wrote: Mark Petrovic wrote: > I don't think this is a serious issue, if an issue at all. But I point it > out just in case. > > There's a "==" in the catalina.sh script, in this case in Tomcat 5.5.17. > > E.g. > > -Djava.securit

Using Tomcat admin console to configure my WEB app

2006-11-03 Thread ying lcs
Hi, Can you please tell me what do I need to do in my web app so that I can use Tomcat admin console to configure my WEB app? Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PRO

Re: catalina.sh "==" artifact

2006-11-03 Thread Mark Thomas
Mark Petrovic wrote: > I don't think this is a serious issue, if an issue at all. But I point it > out just in case. > > There's a "==" in the catalina.sh script, in this case in Tomcat 5.5.17. > > E.g. > > -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \ > > where I believ

Re: Thread pool per webapp?

2006-11-03 Thread Martin Gainty
In that case we are 2 people separated by a common language Not to steal thunder from this puerile diatribe thread but anyone care for a Programming duel? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipien

Re: Thread pool per webapp?

2006-11-03 Thread Christopher Schultz
Martin, > I have received another blank email from Chris- > > Am i the only person that doesnt see your response??? Yes. Hahahahaha. Ditch your mail client and get something that understands plaintext attachments. -chris signature.asc Description: OpenPGP digital signature

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Mark Thomas
Johannes wrote: > That is really a REALLY good idea! > And if that works the solution is solved. Afraid not. It is a bad idea and won't work. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

RE: Thread pool per webapp?

2006-11-03 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Thread pool per webapp? > > I have received another blank email from Chris- > > Am i the only person that doesnt see your response??? Apparently. Works fine for me, and all of Chris' messages do show up in the archive. Something i

Re: Thread pool per webapp?

2006-11-03 Thread Martin Gainty
I have received another blank email from Chris- Am i the only person that doesnt see your response??? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient,

RE: Thread pool per webapp?

2006-11-03 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Thread pool per webapp? > > > What was Eliza's last name? Could Martin be a relative? > > I'd love to say otherwise, but Wikipedia says "Doolittle". Still apt? > Perhaps. Not sure - I understand Cockney (used to live near Lon

Re: Thread pool per webapp?

2006-11-03 Thread Christopher Schultz
Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: Thread pool per webapp? > > What was Eliza's last name? Could Martin be a relative? I'd love to say otherwise, but Wikipedia says "Doolittle". Still apt? Perhaps. -chris signature.asc

Re: Thread pool per webapp?

2006-11-03 Thread Martin Gainty
Boys- Why do you not post your answers? Do you have a solution or your solution is to whine like 10 year olds? Stay on point and provide an answer M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named

Re: Thread pool per webapp?

2006-11-03 Thread Hassan Schroeder
On 11/3/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Does anyone else suspect that Martin is actually an expert system designed to read and respond to mailing list posts, but is totally failing the Turing test? Yeah, I've been thinking exactly that for a while now. :-) -- Hassan Schroed

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Maurice Yarrow
Rainer (and also, Martin) Thanks, gentlemen. Maurice Rainer Jung wrote: ... for the quotes simply use the predefined xml entity: " Maurice Yarrow schrieb: Hello, again, Tomcat community: I found the answer to my own question below: Use: pattern="%{X-Forwarded-for}i %l %u %t %r %

catalina.sh "==" artifact

2006-11-03 Thread Mark Petrovic
I don't think this is a serious issue, if an issue at all. But I point it out just in case. There's a "==" in the catalina.sh script, in this case in Tomcat 5.5.17. E.g. -Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \ where I believe one would normally expect to find a si

RE: Thread pool per webapp?

2006-11-03 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Thread pool per webapp? > > Does anyone else suspect that Martin is actually an expert system > designed to read and respond to mailing list posts, but is totally > failing the Turing test? Wow. That would explain a lot. I mi

Re: Thread pool per webapp?

2006-11-03 Thread David Smith
Lol! I was starting to get the same impression. :-) --David Christopher Schultz wrote: Tomcat List, Does anyone else suspect that Martin is actually an expert system designed to read and respond to mailing list posts, but is totally failing the Turing test? -chris Martin Gainty wrote: H

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Rainer Jung
... for the quotes simply use the predefined xml entity: " Maurice Yarrow schrieb: > Hello, again, Tomcat community: > > I found the answer to my own question below: > Use: > > pattern="%{X-Forwarded-for}i %l %u %t %r %s %b" > > in the access log valve config. > > Only thing: I would l

Re: Cannot create JDBC driver of class '' for connect URL 'null'"

2006-11-03 Thread David Smith
I'll go further and say mysql discourages the use of autoReconnect. See: http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html the section titled "High Availability and Clustering. " --David Christopher Schultz wrote: Eric, Eric Yin wrote: Hi, I'm u

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Martin Gainty
you can acquire the local IP (%A) and remote IP (%a) if you implement AccessLogValve http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html M- This e-mail communication and any attachments may contain confidential and privileged information for t

RE: How to get fields list in order

2006-11-03 Thread Nelson, Tracy
| From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Sent: Friday, 03 November, 2006 13:41 | | The bottom line to your question is that byte offsets are difficult if | not impossible to predict, and you are better off using getDeclaredField | and getField().getValue() calls. Better yet, write y

Re: obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Maurice Yarrow
Hello, again, Tomcat community: I found the answer to my own question below: Use: pattern="%{X-Forwarded-for}i %l %u %t %r %s %b" in the access log valve config. Only thing: I would like to surround the %r with "%r", as is done in the "common" setup. What byzantine combination of single q

Re: Cannot create JDBC driver of class '' for connect URL 'null'"

2006-11-03 Thread Christopher Schultz
Eric, Eric Yin wrote: > Hi, > > I'm using tomcat5.5.2 and mysql5.0.27 and Connector/J 5.0. > i'm doing the same thing as > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html > and i got this error. Where did you put mysql-connector-*.jar? I suspect that you have it in yo

Re: Cannot create JDBC driver of class '' for connect URL 'null'"

2006-11-03 Thread Martin Gainty
eric- the name of your DB in the URL appears incorrect instead of url="jdbc:mysql://localhost:3306/p6120?autoReconnect=true" use url="jdbc:mysql://localhost:3306/P6120?autoReconnect=true" anyone else? M- This e-mail communication and any attachments may contain confidential and privileged info

Re: Thread pool per webapp?

2006-11-03 Thread Christopher Schultz
Tomcat List, Does anyone else suspect that Martin is actually an expert system designed to read and respond to mailing list posts, but is totally failing the Turing test? -chris Martin Gainty wrote: > Huy > > This RequestProcessor enqueues requests and services on as needed > basisyou can

obtain X-Forwarded-for: client-IP-address in access logs

2006-11-03 Thread Maurice Yarrow
Hello Tomcat community I have tomcat (5.0.28) running behind pound (2.1.3) reverse-proxy-load-balancer. This is a very effective setup, as I have pound also fronting apache and mongrel-rails clusters. Question: Pound adds the following to its request to backend servers: X-Forwarded-for:

Re: Cannot create JDBC driver of class '' for connect URL 'null'"

2006-11-03 Thread Eric Yin
Quoting Eric Yin <[EMAIL PROTECTED]>: Hi, I'm using tomcat5.5.2 and mysql5.0.27 and Connector/J 5.0. i'm doing the same thing as http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and i got this error. i'm using fedora 5 and i download "Linux (non RPM package) downl

Re: Thread pool per webapp?

2006-11-03 Thread Christopher Schultz
Huy, > Let's say I have webapps A and B, and A is more critical webapp. Let's > say my connector's pool size is 100, and there are 100 concurrent > requests destined for A and B each (so total 200 requests here). I > would like to allocate 70 threads to process A's requests, and only 30 > for B'

Re: Thread pool per webapp?

2006-11-03 Thread Martin Gainty
Huy This RequestProcessor enqueues requests and services on as needed basisyou can easily substitute jdbc connections for corba connections http://www.koders.com/java/fid327B70539EF40AE0E75381B058FB06D9B1BFFE61.aspx M- This e-mail communication and any attachments may contain confidential an

Re: Trouble changing Tomcat webapps directory

2006-11-03 Thread D. Alvarado
Would a parse error be indicated on startup? Anyway, I attached my server.xml file, but here are the relevant lines Do these seem in order? Thanks, - Dave On 11/3/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: D. Alvarado [mailto:[EMAIL PROTECTED] > Subject

Re: Error Messages?

2006-11-03 Thread Martin Gainty
Kevin- every Servlet has an init(ServletCinfig) method where you want to make sure you initialise all of the servlet variables Also perform quick sanity checks by initialising as well as printing the variable to make sure it is NOT null and avoid NullPointerExceptions on load e.g. YourServlet e

RE: Re[2]: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Caldarale, Charles R
> From: Igor Borovkov [mailto:[EMAIL PROTECTED] > Subject: Re[2]: Communication with a standalone java program > from servlets (embedded tomcat). RMI? > > Sorry. I am not perfectly familiar with embedding tomcat > server at present time You have it right; Martin's question doesn't make any sen

Thread pool per webapp?

2006-11-03 Thread Huy Vo \(hvo\)
Hi, I am wondering whether Tomcat supports thread pool configuration for each webapp. My understanding is that all webapps share the pool configured for the connector. Let's say I have webapps A and B, and A is more critical webapp. Let's say my connector's pool size is 100, and there are 100

RE: Re[2]: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Robert Harper
The big thing is scalability. If you leave them separate, you can put Tomcat in one system and have your app running in another. This will help with loading if either process ends up using a lot of CPU. Using RMI you can make it loosely coupled where only the interface is known. As long as the inte

RE: Trouble changing Tomcat webapps directory

2006-11-03 Thread Caldarale, Charles R
> From: D. Alvarado [mailto:[EMAIL PROTECTED] > Subject: Trouble changing Tomcat webapps directory > > 08:29:46 ERROR 400: No Host matches server name localhost. This would indicate a mismatch between the defaultHost attribute in your and the name attribute on your . I wonder if you have some

Re[2]: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Igor Borovkov
> Igor- > when you say 'tomcat' should be embedded ..does this imply that of > these tomcat constructs should be embedded? > Servlet? > Manager? > MBean? > Internals? Sorry. I am not perfectly familiar with embedding tomcat server at present time I just ment starting tomcat server from the java

Re: haaving trouble html in tomcat 5.5.20

2006-11-03 Thread Zeina Aoun
ONce again thank u for ur response and help. I appreciate it! - Original Message From: Edoardo Panfili <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Friday, November 3, 2006 2:09:55 PM Subject: Re: haaving trouble html in tomcat 5.5.20 Edoardo Panfili ha scritto: > Zeina Aoun ha sc

Re[2]: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Igor Borovkov
> I don't know of anything that requires you to embed Tomcat in your app. They > should be able to communicate just find as separate entities. You could also Thanks for your reply. We thought about embedding tomcat (to startup it from the java program) to simplify whole application and improve i

Trouble changing Tomcat webapps directory

2006-11-03 Thread D. Alvarado
I just installed Tomcat 5.5 on Fedora Core 5 Linux. Everything works fine if I make absolutely no changes to anything, including server.xml with this host element ... However, I want to change the default webapps directory. I notice when I change to any other directory (the one below exi

RE: Error Messages?

2006-11-03 Thread Caldarale, Charles R
> From: Kevin Mullin [mailto:[EMAIL PROTECTED] > Subject: Error Messages? > > I say that these LOOK like errors, but the server does come > up and nothing seems amiss. They are errors. At least one of your webapps is not running properly. Individual webapp failures do not normally affect the c

Re: How to get fields list in order

2006-11-03 Thread Christopher Schultz
David, >> I'm sorry to say it (again), but I think you're just asking for >> trouble, here. What do you have implemented in Java that's so >> useful and difficult to port to Delphi or VM or (even better) C#? > > What's VM? Whoops. That should have been "VB". > I would really prefer to have this

Re: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Martin Gainty
Igor- when you say 'tomcat' should be embedded ..does this imply that of these tomcat constructs should be embedded? Servlet? Manager? MBean? Internals? Yes RMI uses RPC under the covers while providing complete and seamless (Complex) Object transmissions as well as fully supporting multi-thre

Error Messages?

2006-11-03 Thread Kevin Mullin
I am using Tomcat, and just starting the server, I see these messages that look like error messages: SEVERE: Servlet /ibi_html threw load() exception   java.lang.NullPointerException                     and SEVERE: StandardWrapper.Throwable java.lang.NullPointerException     log4j:ERROR setFi

RE: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Robert Harper
I don't know of anything that requires you to embed Tomcat in your app. They should be able to communicate just find as separate entities. You could also maybe wrapper some OS specific IPC with JNI. We use RMI both internal to a machine and externally to other machines just fine and you don't have

Re: problem all virtual host of a domain to a single context

2006-11-03 Thread mast
i see i have read all subjets thanks, so tomcat still doesn't support it i guess, too bad it would be very useful - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, November 03, 2006 7:58 PM Subject: RE: problem all virtual host o

Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Igor Borovkov
Hello! I have a standalone java program permanently running on a server. I need to communicate with that java program from servlets. Could you suggest me a simplest solution how to do that. I think I should use RMI. But there is one requirement – apache tomcat should be embedded to that program.

Re: haaving trouble html in tomcat 5.5.20

2006-11-03 Thread Edoardo Panfili
Edoardo Panfili ha scritto: Zeina Aoun ha scritto: I am having trouble with html in tomcat. I am using the Apache Tomcat 5.5.20 Server The problem is hard to describe. I am trying to enable some video clip files to be downloaded by users, but unfortunatley instead of downloading it opens up

RE: problem all virtual host of a domain to a single context

2006-11-03 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: problem all virtual host of a domain to a single context > > Hi i would like to setup a virtual host in the manner of > apache : i mean *.mydomain.com on this context > i have try : > *.mydomain.com > but this doesn't work, is there a way to do

Re: Request for WMV file to machine name doesn't work

2006-11-03 Thread Zeina Aoun
Hi! I am having the same problem and had posted my question earlier. I have installed 2 media files 1 is .wmv and the other is .rmvb, both of the files open as text in the browser for some starnge reason. Ppl told me to set the correct mime in web.xml, but I am just a basic user, I did not und

Re: Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Clemens Eisserer
Thanks a lot for the hint Chuck, I think I know what happened, tomcat ran out of heap so the JVM tried to agressivly free some space and wasted some minutes. When there was enough free space to complete the request, the connection already had timed out. Its just a thought but seems quite realisti

problem all virtual host of a domain to a single context

2006-11-03 Thread mast
Hi i would like to setup a virtual host in the manner of apache : i mean *.mydomain.com on this context i have try : *.mydomain.com but this doesn't work, is there a way to do this on tomcat ? - To start a new topic, e-mail:

Re: How to get fields list in order

2006-11-03 Thread David Kerber
Christopher Schultz wrote: ... I read the data from the structures, load it into my classes, do all my processing in java with those regular classes, then write the data back out of the classes into the structures, and pass it back to the calling prog. I'm sorry to say it (again), but I

Re: virtual host getRealPath

2006-11-03 Thread Christopher Schultz
Peter, > I'm trying to figure out why I get repeated directory names when calling > "application.getRealPath(request.getRequestURI())" from an index.jsp > file. Clearly there's something about virtual hosts and contexts that > I'm missing. I suppose you /could/ do this, but usually URIs and dire

Re: How to get fields list in order

2006-11-03 Thread Christopher Schultz
Dave, David Kerber wrote: >> JavaDllBuilder looks like it should be used to call Java from another >> language. Are you using this package backwards? > > No, I'm using it to make a .dll in java that I can call from VB and > Delphi. Okay, that makes way more sense. This might be a better question

Cannot create JDBC driver of class '' for connect URL 'null'"

2006-11-03 Thread Eric Yin
Hi, I'm using tomcat5.5.2 and mysql5.0.27 and Connector/J 5.0. i'm doing the same thing as http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and i got this error. i'm using fedora 5 and i download "Linux (non RPM package) downloads /linux (x86)" of mysql and install

virtual host getRealPath

2006-11-03 Thread Peter Warren
I'm trying to figure out why I get repeated directory names when calling "application.getRealPath(request.getRequestURI())" from an index.jsp file. Clearly there's something about virtual hosts and contexts that I'm missing. Using Tomcat 5.5 & 6.0 in standalone mode under Windows XP, I see the fo

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Johannes
That is really a REALLY good idea! And if that works the solution is solved. To bad that I have to go home now and I'll have to wait until Monday to try it. But this sounds like the solution! I'll get back with the answer on Monday. ~Johannes -Originalmeddelande- From: Pid [EMAIL PROTEC

Re: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Martin Gainty
you're definitely targetting the most resource intensive and tangential use case Although there seems to be a bit of a disconnect that where exception logic shuts-down the server its running on BTW putting a system.exit(0) in your catch block will shutdown tomcat as well... albeit not gracefull

Re: How to get fields list in order

2006-11-03 Thread David Kerber
Christopher Schultz wrote: Dave, David Kerber wrote: Christopher Schultz wrote: Wait... I thought you said you were using JNI...?! Or, are you using someone else's JNI package to do some dirty tricks? I thought there was only a C binding for JNI thus far. I'm using a 3rd party

Can log4j logging be configured on a CATALINA_BASE basis?

2006-11-03 Thread Mike Hanafey
If multiple intances of tomcat are running from one CATALINA_HOME and several CATALINA_BASE's it would be nice if tomcat logging (not webapp logging) could be configured differently for the different intances by placing the log4j.properties file somewhere under CATALINA_BASE, but this does not appe

RE: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Joseph Ray
Thanks for the input. Something I forgot to mention. My CTO built a custom App in java. That's why we need tomcat. I believe he did all his programming, and testing on a Mac. I believe your input was more valuable than you first realized. Thanks for the Help, Joseph Ray Network Adminis

Re: How to get fields list in order

2006-11-03 Thread Christopher Schultz
Dave, David Kerber wrote: > Christopher Schultz wrote: >> Wait... I thought you said you were using JNI...?! Or, are you using >> someone else's JNI package to do some dirty tricks? I thought there was >> only a C binding for JNI thus far. > > I'm using a 3rd party package which handles most of th

Re: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Edoardo Panfili
Yaar Schnitman ha scritto: Is there a way to make the failure of a single servlet's initialization stop the initialization of the other servlets, or even stop tomcat with an error? I can't reproduce always the error but some time ago I had a servlet that builds a bitmap (Mac OS X, Tomcat 5.0.

RE: Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Caldarale, Charles R
> From: Clemens Eisserer [mailto:[EMAIL PROTECTED] > Subject: Suddenly server only throws ClientAbortException :-/ > > Tomcat suddenly throws at every request a ClientAbortException, like > the following: > > ERROR 2006-10-30 07:21:17,736 - ClientAbortException: > java.net.SocketException: Conne

Re: How to get fields list in order

2006-11-03 Thread David Kerber
Christopher Schultz wrote: ... I don't know C, and don't have access to a C compiler. Wait... I thought you said you were using JNI...?! Or, are you using someone else's JNI package to do some dirty tricks? I thought there was only a C binding for JNI thus far. I'm using a 3rd party p

Re: FORM based authentication LOGOUT

2006-11-03 Thread Christopher Schultz
John, > When I call request.getUserPrincipal(); I still get the Principal back > and I can still call request.isUserInRole( "Foo" ); and get a valid > response for the currently logged in user. Are you checking those values during the same request in which you killed the session? It's possible th

RE: problems with unpacking ROOT.war

2006-11-03 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: problems with unpacking ROOT.war > > since the manager app is used to implement the decompression > of the war I would set privilieged = "true" Again, bad information from Martin. The privileged setting allows an app to reference c

Re: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Christopher Schultz
Martin, Martin Gainty wrote: > Yaar- > try > > init() > { > try > { > //code here > } > catch(Exception excp) > { > System.exec("/PATH/TO/JAKARTA/bin/shutdown.sh"); > } > } OMG I'm going to vomit. At least you could have used System.exit(). Please, everyone, never do anything like this. -ch

Re: How to get fields list in order

2006-11-03 Thread Christopher Schultz
David, Since you mentioned byte offsets, I have to ask: are you trying to subvert the serialization system? Or, even worse, inspect the object memory from with JNI? >>> The latter, sort of. I'm using a package which puts a wrapper around >>> JNI to make it easier to creat

Re: problems with unpacking ROOT.war

2006-11-03 Thread Martin Gainty
Andrew- since the manager app is used to implement the decompression of the war I would set privilieged = "true" If the decompression error only occurs using Ant deploy task I would ping ant users list user@ant.apache.org Anyone else? M- This e-mail communication and any attachments may contai

Re: Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Clemens Eisserer
Hi again, Could this have something todo with missing free heap space? Some lines later in my log-file I see a OufOfMemoryException happen, although between there have been some sucessful requests. lg Clemens 2006/11/3, Clemens Eisserer <[EMAIL PROTECTED]>: Hello, One of our users is using To

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Pid
If you deploy the webapp inside another directory that is already protected, you can use SingleSignOn to execute login via the parent/ROOT web app? Tim Funk wrote: > Out of the box - there is no Valve in Tomcat which requires > authentication without first consulting web.xml. > > As a simple(

Request for WMV file to machine name doesn't work

2006-11-03 Thread Zachary Wiener
Hello. I have Tomcat 5.0.28 installed on my Windows XP machine. Under webapps I have a website installed, and under the website I have a *.wmv file installed. If I access this file through Internet Explorer as http://:8080/mysite/test.wmv, the file does not open in media player, but displays

RE: problems with unpacking ROOT.war

2006-11-03 Thread andrew . w . cooke
Hi there, I've been having trouble persuading tomcat 5.5 to expand ROOT.war when it is dropped into webapps, and started. The problem seems to go away if ROOT.war contains META-INF/context.xml - but since we deploy this war file to different environments, shipping it with a context file isn't an

Service Options Ignored

2006-11-03 Thread Toby Saville
Hello, I'm running tomcat 5.5 on windows xp. I'm trying to configure tomcat to direct external url connections via our proxy. When I specify the settings in the JAVA_OPTS environment variable, and run tomcat from the command line, the connection can be made properly. However when I use tom

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Tim Funk
Out of the box - there is no Valve in Tomcat which requires authentication without first consulting web.xml. As a simple(?) kludge - you could write your own Valve which forces authentication on anything executed by the Valve: - you'll need to fill in isAuthenticated(...) public class Prote

Re: Could a bad servlet initializtion stop tomcat?

2006-11-03 Thread Tim Funk
It may be better to move the "startup code" to a ServletContextListener. When a ServletContextLister fails on startup - then the webapp is unavailable. When the webapp is unavailable - any HTTP based monitoring tool would pick that up (due the error page returned) -Tim Yaar Schnitman wrote:

Re: Tomcat authenticate with BASIC Auth (Pre: Active directory)

2006-11-03 Thread Johannes
With the lack of reply's I guess that Active directory connections are not used by anyone here. I'm making it a bit more simple then and in step one only protect this service with a simple login / password protection. Setup: One separate engine only accepting HTTPS connections that needs to be

Re: FORM based authentication LOGOUT

2006-11-03 Thread John McPeek
When I call request.getUserPrincipal(); I still get the Principal back and I can still call request.isUserInRole( "Foo" ); and get a valid response for the currently logged in user. John From: John McPeek [mailto:[EMAIL PROTECTED] Subject: FORM based authentication LOGOUT I have tried to in

Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Clemens Eisserer
Hello, One of our users is using Tomcat 4.1.29/java-1.4.2 on w2k3 server, and he has strange problems with our webservice. Tomcat suddenly throws at every request a ClientAbortException, like the following: ERROR 2006-10-30 07:21:17,736 - ClientAbortException: java.net.SocketException: Connectio

Compiling jsp:getProperty in 5.5.17 vs. 5.5.9

2006-11-03 Thread Werno, Peter
Hello, we just upgraded to NetBeans 5.5 which now comes with tomcat 5.5.17 built in. Unfortunately, we are using a couple of tags which were compiled in 5.5.9 as follows: ...handleGetProperty(_jspx_page_context.findAttribute("admin.template.fo rm"), "templateID"))); and in 5.5.17 is now comp