Re: Using IBM JSF components on tomcat

2006-09-13 Thread David Delbecq
gt; the code I have copied is placed inside the following tags: > > > > > > > of course, the tags are all properly closed at the end, I'm quite sure > that there is no syntax error

Re: Using IBM JSF components on tomcat

2006-09-13 Thread David Delbecq
Hi Ben, according to your stack trace, the error occurs somewhere below the call of ScriptCollectorTag.doEndTag(), itself called by org.apache.jsp.searchTKS_jsp._jspx_meth_hx_scriptCollector_0, that mean during the 'endTag' steps of the first inside your jsp. However, the JSP code you show us has

Re: Executing binary from Servlet

2006-09-12 Thread David Delbecq
considering where the exception occured, i bet this is not a java security exception (it already passed the security test at that point and is inside the priviledged code, moreover this is an IOException not a SecurityException you get). However, there is a bad code inside UNIXProcess: IOEx

Re: filter or valve to trap successful login?

2006-09-11 Thread David Delbecq
Put a filter on your application, in this filter, check if there is currently a principal, if yes, check if there is already your bean in the session. If not, create it. Then forward to the next of filter chain. As you are in a filter, you will be notified before the servelt / JSP requested by user

Re: Tomcat admin application "HTTP Status 500" problem

2006-09-08 Thread David Delbecq
Please provide exception messages, they should be in catalina.out Garthfield Carter a écrit : > Hello, > > I have an issue with the Tomcat "admin" application. I get "HTTP > Status 500" errors whenever I click on any of the "User Definition" > menu items such as Users, Groups or Roles. The exact er

Re: STARTING MULTIPLE INSTANCES OF TOMCAT

2006-09-08 Thread David Delbecq
Please provide more informations. 1) The rule files you have configured in your balancer 2) The ports on which your various tomcat servers are running, including the one running the balancer 3) Any output that your request could have generated in the catalina.out of any of the running tomcat serve

Re: logging does not work in my webapp

2006-09-05 Thread David Delbecq
Thanks for this clarification :) Boris Unckel a écrit : > Hi, > > Original-Nachricht > Datum: Tue, 05 Sep 2006 11:50:34 +0200 > Von: David Delbecq <[EMAIL PROTECTED]> > An: Tomcat Users List > Betreff: Re: logging does not work in my webapp > >

Re: logging does not work in my webapp

2006-09-05 Thread David Delbecq
ay the doc be wrong about it? could my commons-logging in webapp take precedence of the one in tomcat? // Boris Unckel a écrit : > Hello David, > > my answers are inline: > Original-Nachricht > Datum: Tue, 05 Sep 2006 10:46:07 +0200 > Von: David Delbecq <

logging does not work in my webapp

2006-09-05 Thread David Delbecq
Hello, using tomcat, the logging does not work in my webapp. I am out of idea, so if someone can suggest me something more to test to get my logs. Here is the situation. I followed instructions on ow to setup tomcat for log4j (that is basically adds the commons-logging and log4j jars in common/lib)

Re: how to over come toomanyconnection error when communicatingMYSQL

2006-08-11 Thread David Delbecq
prakash shanmugam wrote: hai all, i have one major issue in my project.. My project is developed using jsp,servlets in Tomcat5 with MySql as database.. i am using type1 driver My project is now used by end users in intranet.. When multiple users are accessing at the same time ,its throwing too ma

Re: unsubscribe please

2006-08-08 Thread David Delbecq
use [EMAIL PROTECTED] to get more informations ahmed qaoud wrote: I sent many emails to [EMAIL PROTECTED] to unsubscribe me and i still receive emails from you . Please unsubscribe me or tell me how can i unsubscribe. color=#99>Assalam Alaykum color=#00>    Kind Regards Ahmed AL

Re: Out Of Memory - String Operation

2006-07-28 Thread David Delbecq
Viks wrote: Hi, My app is running out of app. Code does a lot of string opeartion.It involves fetching records from DB Initially i was using string objects- Program used to finish in about 40-45 min with ~95 cpu usage String concatenation like this String c = a+b; is done in

Re: getting "?" instead of "¢"

2006-07-17 Thread David Delbecq
(Sorry for the double post, alias issue) David Delbecq wrote: This is not a matter of saving the jsp/html file on server with the good charset, this is a matter of using the correct entity reference (¢) which is supposed to be displayable by any html 2.0 compliant browser. Ronald Klop wrote: On

Re: getting "?" instead of "¢"

2006-07-17 Thread David Delbecq
This is not a matter of saving the jsp/html file on server with the good charset, this is a matter of using the correct entity reference (¢) which is supposed to be displayable by any html 2.0 compliant browser. Ronald Klop wrote: On Mon Jul 17 08:55:56 CEST 2006 Tomcat Users List wrote: Hi All

Re: getting "?" instead of "¢"

2006-07-17 Thread David Delbecq
This is not a matter of saving the jsp/html file on server with the good charset, this is a matter of using the correct entity reference (¢) which is supposed to be displayable by any html 2.0 compliant browser. Ronald Klop wrote: On Mon Jul 17 08:55:56 CEST 2006 Tomcat Users List wrote: Hi A

Re: getting "?" instead of "¢"

2006-07-17 Thread David Delbecq
http://htmlhelp.com/reference/html40/entities/latin1.html balaraju mandala wrote: > Hi All, > > I need some help from you. I need to display Cent(¢) symbol on > browser. I am > getting ? symbol instead, what could be the problem, please explain me. > > Thank you. > > balaraju > -

Re: web app application name

2006-07-05 Thread David Delbecq
asaf.lahav wrote: How can I obtain the name of the web application name my listener servlet is running under in Java? request.getContextPath(); Greetings. - To start a new topic, e-mail: users@tomcat.apache.org To uns

Re: AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread David Delbecq
From tomcat docs: You can nest one or more Context elements inside this Host element, each representing a different web application associated with this virtual host. In addition, you can nest a single DefaultContext element that defines default values for *subsequently* deployed web applicatio

Re: AW: Executing Valve before Basic Authentication takes place

2006-07-04 Thread David Delbecq
As it states, the authenticator valve must be attached to the context, not the host. Just put your valve at host level and it should be called before the authentification valve which is automatically added to the context.xml at deployement. Also, take a look at single sign-on valve which doe a

Re: filter increase number of session

2006-06-29 Thread David Delbecq
cookie, neither providing a rewritten url. David Delbecq Enrico Giurin wrote: Yes I have that, I know that in this way if I hadn't a session tomcat makes new one, but If I had one I keep the old session. So why for every request I have a new session on the server, and why only with IVR c

Re: filter increase number of session

2006-06-29 Thread David Delbecq
could we see the code of this filter? Enrico Giurin wrote: Hi at all, I have problem using filter in my web application under tomcat (tomcat 4.1 on Windows 2k OS). Client of the web application is an IVR (Interactive Voice Response) in the context of voice-xml application. I have configured a

Re: 'Black' Icons and Intermittent Page not Found

2006-06-28 Thread David Delbecq
Hi bob There are several ways to try to find where this comes from 0) Check in the tomcat manager the status of memory. You may be running out of java memory and so the garbage collector is running like crazy. 1) When issue arise, go to an AIX console (the timer is ticking, you have 60 secon

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread David Delbecq
Do not write data in the webapplication folder, this folder is supposed to be overwritten when webapplication is redeployed and datas will be lost. Instead choose a folder in system you dedicate to your webapplication datas and store your avatars there. Or best use a database :) Andrea S

Re: How do I pass option to Tomcat on startup only?

2006-06-20 Thread David Delbecq
Hello, JAVA_OPTS is an environnement variable, you can set / unset it at will. Just only set it up when you want to start, not when you want to shutdown. Example 1 (using only 1 bash session) export JAVA_OPTS="-Xmanagement" bin/startup.sh unset JAVA_OPTS bin/shutdown.sh Example 2 (using 2 dif

Re: Problem to download a file from 2 browsers at the time

2006-06-20 Thread David Delbecq
Just ran it out of curiosity here on a tomcat 5.5.17, works perfectly. Only noticeable thing is that the first file get slowed down when you start second file, but it's quite to be excpected. Measured speed: 6M/s, files are not mixed together One thing worth noticing, is that brtowser do t

Re: Download a file from jsp

2006-06-19 Thread David Delbecq
Hi, after a quick lookup, there doesn't seem to be any mistake with your code. Either it's a problem with the jsp, either it's related to database. Anyway, you might want to change this // end try catch(Exception ex) { return false; } Generic catching of except

Re: Tomcat as a standalone webserver. Why not?

2006-06-01 Thread David Delbecq
Mark Hagger wrote: Although I've yet to meet an author of bug free code. Thats my opinion anyway. Mark They were all burned during April 1975 in Albuquerque :D - To start a new topic, e-mail: users@tomcat.apache.org To

Re: ewbie to Tomcat

2006-05-24 Thread David Delbecq
[EMAIL PROTECTED] wrote: Where can I go and look for a solution to this problem. Struts mailing list can be a good start :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Paul Grimwood/GNS is out of the office.

2006-05-24 Thread David Delbecq
This one is timestamped from 13:33 my time. This is perfect :D. I think i will add a special bell on this subject. 4 more and it will be the end of work day bell :D Paul Grimwood wrote: I will be out of the office starting 24/05/2006 and will not return until 29/05/2006. I will respond to you

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread David Delbecq
Ok, i see your problem. However, you must be aware that preventing use of WEB-INF/lib is handicapping for anyone needing java hosting. Frameworks like struts won't work if they are shared amongst webapplications. You might simply endup with your users exploding the .jars and putting their cont

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread David Delbecq
Ok, i suppose by user, you mean the webmaster owning a specific webapp. If so, could you tell me what is the point? It's pretty impossible to do anything without .jar files in a java webapp :) If what you want to avoid is people browsing a uploading .jar files Unless you have a very badly wr

Re: Problems with Realms and authorization

2006-05-22 Thread David Delbecq
Hi Alberto. A user can be in two states in tomcat's point of view. 1) anonymous (that is the user has not yet provided user / password) 2) Authenticated (user has provided user / password) Aside from this, there are 2 kinds of urls for tomcat 1) unrestricted ones (anyone can access them) 2) url

Re: FW: tomcat hangs with error msg-"All Threads are Busy....."

2006-05-18 Thread David Delbecq
or check the servlet status75 75 -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 2:35 PM To: Tomcat Users List Subject: Re: FW: tomcat hangs with error msg-"All Threads are Busy." ok, i bet then you problem is

Re: FW: tomcat hangs with error msg-"All Threads are Busy....."

2006-05-18 Thread David Delbecq
at-JDK and the POSIX lib of solaris? Or can it be that the gc is not able to execute as generally the load on this proxy is very high leading to such a problem. Thanks and regards, Ajit. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 20

Re: FW: tomcat hangs with error msg-"All Threads are Busy....."

2006-05-18 Thread David Delbecq
SIGQUIT to tomcat process, it will force the sun JVM to dump all threads stacks. Regards, David Delbecq Ajit Narayanan wrote: hi, My tomcat 4.1.27 is running on sun Solaris 8 box but ocassionally it hangs out giving the error " All threads are busy, waiting. Please increase maxThrea

Re: Tomcat 5.0 : how to "redirect" a 401 error to a specific page

2006-04-25 Thread David Delbecq
See section 10.4.2 of http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html You have to understand the page user see when he hit cancel has been send by tomcat before the user hit cancel. This is the page which is shown to user to indicate him he requires authentification. If you want to customiz

Re: Tomcat WIKI only in polish??? -> http://wiki.apache.org/tomcat/

2006-04-21 Thread David Delbecq
ROFLMAO!! MichalDziczkowski did the polish translation on 18 april, but it seems he did all his commits on wrong web page :D The english version is still accessible in the page history. http://wiki.apache.org/tomcat/FrontPage?action=recall&rev=21 You probably must warn a wiki maintainer of this

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
Leon Rosenberg a écrit : >I don't know it depends on your implementation of hashCode() method. >Are you using 1.5? > >static int hash(Object x) { >int h = x.hashCode(); <-- your programm is here > >h += ~(h << 9); >h ^= (h >>> 14); >h += (h << 4); >h ^

Re: Java process segfaulting and using 100% CPU

2006-04-21 Thread David Delbecq
d(OgnlRuntime.java:785) at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61) .. Gustavo Noronha a écrit : >Hey David! > >2006/4/20, David Delbecq <[EMAIL PROTECTED]>: > > >>the kill -3 send a signal, that is you must send it to a process (in you >&

Re: Java process segfaulting and using 100% CPU

2006-04-20 Thread David Delbecq
dAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) "VM Thread" prio=1 tid=0x080a0970 nid=0x765d run

Re: Java process segfaulting and using 100% CPU

2006-04-19 Thread David Delbecq
Hi, "or other processes may end up using 100% CPU as well and presenting the same behavior while on strace" If you mean also non java processes have similar problems, randomly, i bet you may have either an OS issue (which affect all processes randomly) either an hardware issue (corrupting RAM seg

Re: multiple tomcat on one server??

2006-04-19 Thread David Delbecq
I confirm the link does not work here too 'host www.adcworks.com unknown' $ nslookup adcworks.com Server: 193.190.249.143 Address:193.190.249.143#53 ** server can't find adcworks.com: NXDOMAIN looking in whois database the reason it does not work is obvious, $whois adcworks.co

Re: Post request to 'j_security_check' after tomcat restart or se ssio n timeout produces error 400

2006-04-18 Thread David Delbecq
ng the sessions (See output at tomcat shutdown/startup and check for session persistence errors) regards, David Delbecq Amol Upadhye a écrit : >Anybody know about the problem I have as described in below email? > >Thanks, >Amol > >-Original Message- >From: Amol Upad

changes in tomcat realms between 5.5.7 and 5.5.16?

2006-04-14 Thread David Delbecq
Hello, I have a webapp here which comes with it's own realms. It's working prefectly in tomcat 5.5.7. I deployed this application and copied the realm files (common/lib/MyRealm-api.jar and server/lib/MyRealm-impl-1.0.jar) to a new tomcat installation. I the deployed to webapp and tried to access a

Re: webapp slow on first access every morning

2006-04-11 Thread David Delbecq
And no mention about a webapp shutdown or other curiosities in catalina.out ? Edward Quick a écrit : > Good idea, but no: > > ovapache 6305 6304 0 Apr 05 ?1:01 > /usr/j2sdk1.4.2_06/bin/java -Xms128m -Xmx256m -Dapp=ovprd01 > -Djava.endorsed.dir > > >> >> Could it simply be your tomcat

Re: webapp slow on first access every morning

2006-04-11 Thread David Delbecq
Could it simply be your tomcat service is restarted let's say at midnight ? Edward Quick a écrit : > Hi, > > We have a third party jsp/servlet application deployed on Tomcat > 4.1.31 (Solaris 2.8). This works fine except for every morning, on the > first access, it's very slow to load up. This is

Re: Tomcat send ThreadDeath to one of it's own Threads

2006-04-10 Thread David Delbecq
Darryl L. Miles a écrit : > David Delbecq wrote: > >> I experienced a strange behaviour of tomcat a few minutes ago. Container >> is configured to do webapp auto reloading when classes changes. I >> updated a few WEB-INF/classes/*.properties. Tomcat decided it's

Tomcat send ThreadDeath to one of it's own Threads

2006-04-06 Thread David Delbecq
Hello, I experienced a strange behaviour of tomcat a few minutes ago. Container is configured to do webapp auto reloading when classes changes. I updated a few WEB-INF/classes/*.properties. Tomcat decided it's time to reload the webapp because classes did change. However, it killed it's own webapp

Re: New to Tomcat

2006-04-05 Thread David Delbecq
root cause Error starting modern compiler org.apache.tools.ant.taskdefs.compilers.Javac13.execute() (/usr/lib/libant-1.6.2.jar.so) org.apache.tools.ant.taskdefs.Javac.compile() check that your JAVA_HOME points to a jdk, not a jre. It may be jasper compiler don't find a suitable

Re: Private variables in custom tags on Tomcat

2006-04-05 Thread David Delbecq
hen it is safe to do so. > Thanks, > Steve > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > David Delbecq - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

restricting webapp reloading on ressources changes

2006-04-05 Thread David Delbecq
Hello, I have configured my developpment tomcat to automatically check for ressoures changes in the webapp folder, making it easier to update JSPs. The webapp is slow to load because of a few servelt i need along with those jsps. during development, i sometimes need to update the resource bundles

Re: getsession if you know the id?

2006-04-03 Thread David Delbecq
Pack you HttpSessions in WeakReference objects so they can be GCed (*not* SoftReferences as suggested because SoftReference are only GCed when outofmemory, while WeakReference are gced about as soon as the object is not reachable anymore by hardreference). http://java.sun.com/j2se/1.5.0/docs/api/j

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread David Delbecq
> > Here a diagram: > > Client sends GET -> Server > Server sends HEADERS (Content Encoding: Chunked) -> Client > Server sends chunks -> Client > Client displays them whenever they arrive. Just one point. If your 'client' is a classical browser it won't work like this out of the box, for the simp

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-03 Thread David Delbecq
Tp a écrit : > Hi, > > we have to develop a high performance chat based only on HTML and HTTP > only for a television company. The chat's output window requires one > open HTTP connection per client, which means that you need at least > 3000 simultaneous ie. open HTTP connections for 3000 chatters

Re: Maximum number of simultaneous HTTP Requests / Performance

2006-04-03 Thread David Delbecq
Tp a écrit : > Hi, > > we have to develop a high performance chat based only on HTML and HTTP > only for a television company. The biggest issue is performance. The > chat's output window requires one open HTTP connection per client. > This means, that when you have 3000 people following the chat

Re: The problem i have met

2006-03-31 Thread David Delbecq
Jay a écrit : > I am pretty new to tomcat. I recently read a post > http://marc.theaimsgroup.com/?l=tomcat-user&m=114372017420869&w=2 > which solved a problem I have been having for tomcat 5.5 also. I > thank that person for posting the solution. I also read some of the > responses from what a

Does tomcat badly handles error in included jsp?

2006-03-27 Thread David Delbecq
Am i correct assuming tomcat is unable to correctly redirect to error page when an error occur in an included jsp? I have an included jsp that most probably generate an error (error was not occuring before inclusion). However, my error page don't get displayed. All i get is a partial jsp page (the

accessing mehods of GenericPrincipal

2006-03-27 Thread David Delbecq
Hello, LDAP Realms (and probably others) in tomcat uses GenericPrincipal as the Principal instance. This GenericPrincipal provides interresting methods like 'getPassword()' which is very usefull when your webapp has to forward the credential to a specific library before using it. Unfortunately, ty

Re: Increasing Tomcat/Java memory

2006-03-24 Thread David Delbecq
Harald Henkel a écrit : > Hello everybody. > > How can I increase the memory Tomcat/Java is using? > > I tried setting CATALINA_OPTS with -server -Xms256m -Xmx512m > but runtime.totalMemory always seems to return a value around 60MB. > that mean the java machine did not require more. the 512M is r

Re: [HELP] how to locate web-app_2_3.dtd on local ?

2006-03-21 Thread David Delbecq
Use http://java.sun.com/dtd/web-app_2_3.dtd";> This header is mandatory in j2ee specs for servlets 2.3. Pham Anh Tuan a écrit : >hi all, > >I have a trouble in setting web-app_2_3.dtd for running on local, don't >connect to internet, I use Tomcat 5.5.9 I did like below: > >I lay web-app_2_3.dt

Re: What, exactly, is meant by "full path" when construction web.xml entries

2006-03-20 Thread David Delbecq
[EMAIL PROTECTED] a écrit : >I've poked at Tomcat for several years now. I find myself looking for a job >and have too much time on my hands, so I've decided to take servlets seriously >and grasp the concepts. > >Yesterday I spent a fair amount of time Googling for how to set up a > pair of el

Re: undeployed admin application in tomcat 5.0.27 by mistake

2006-03-20 Thread David Delbecq
Erdal Akkaya a écrit : >I have undeployed the admin Application by mistake, and I do not know, how >to restore it. > > >anybody help? > >tomcat Version 5.0.27 >OP: HP-UX > >regards >Edgar Miller > > > in webapp/admin of tomcat binary distribution with same version name + corresponding config in

Re: Encoding and Operative System

2006-03-13 Thread David Delbecq
When there is no clue on what the content encoding of a form is and no default value, most framework end-up using the platform default encoding (for debian system, it seems to be iso-8859-1). The problem is most browser do not send the content encoding along with the form, so the solution is gener

Re: what is favicon.ico? what its significance?

2006-03-13 Thread David Delbecq
It's image shown by browser next to site url and in title bar. Pusukuri, Kishore_Kumar a écrit : >what is favicon.ico? what its significance? > >thanks, >kishore > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional com

Re: Fast response, using valves

2006-03-13 Thread David Delbecq
Perhaps because, in the version without valve, you benchmarking tool use the expected behaviour of browsers when they have an active cache: request 'if-modified-since', to which tomcat will respond a 'not modified'. Rumata a écrit : >Hello. > >I'm trying to make Tomcat server response to some kin

Re: error in tomcat

2006-03-13 Thread David Delbecq
gt; >> >> >>> Just change the 'default' to something else like default.test , and >>> check whether the error repeats >>> >>> David Delbecq wrote: >>> >>> >>> >>>> Nope, downgrading to 2.3 servlet

Re: error in tomcat

2006-03-13 Thread David Delbecq
Yes, renaming this does solve the problem, but i can't see in servlet specs where it's stated 'default' is not a valid logical name for a servlet. Vinu Varghese a écrit : > Just change the 'default' to something else like default.test , and > check whether

Re: error in tomcat

2006-03-13 Thread David Delbecq
t; > >hope this helps > >F.S. > >- Original Message - > >From: "David Delbecq" <[EMAIL PROTECTED]> >To: "Tomcat Users List" >Sent: Monday, March 13, 2006 4:48 PM >Subject: Re: error in tom

Re: error in tomcat

2006-03-13 Thread David Delbecq
line 43 contains It corresponds to the following section: ** **default** ** org.apache.catalina.servlets.DefaultServlet ** ** **debug** **0** ** ** **listings** **true** ** **1** ** There is no other default section

error in tomcat

2006-03-10 Thread David Delbecq
Hello, after a restart of tomcat we got this error. This is strange, we didn't have it before. Tomcat is configured with 2 virtual hosts, eahc has his own webapps directory. They share the root webapp (/), the manager (/manager) and the admin (/admin) For some unknown reasons, the root webapp in o

Re: how to get users from tomcat-users.xml

2006-03-10 Thread David Delbecq
Configure memory-realm for you webapp (http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#MemoryRealm) then configure authentification constraints in your web.xml. You have not need to access tomcat-users.xml if all you want to do is authentification. Srivani Ausula a écrit : >Thank u very

Re: JNDIRealm why performing two queries against AD

2006-03-10 Thread David Delbecq
Hi, I think users of this mailing list are more used to java stacktrace then ldap low level protocol :) the JNDIRealm is using the LDAP contextFactory in your case, i suggest you run tomcat in eclipse with breakpoints inside JNDIRealms, and do a step by step to locate which call you think is wrong

Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread David Delbecq
Hadraba Petr a écrit : >Sorry, >for my posting, but > > > >>That's not where security problem lies: >>Let's assume your public site is at >>http:index.jsp >>if casesensitiveness is deactivated and you are using a case sensitive >>filesystem (like the microsoft ones), accessing >> >> > >N

Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread David Delbecq
Buddy wu a écrit : >2006/3/7, David Kerber <[EMAIL PROTECTED]>: > > >> >> >> >thanks a lot. it worked. >and I think someone discussed other problem of these question maybe >right. but my goal is only to let tomcat's URL or URI (I don't kown >which is wright, or all are write) case-insensitiv

Re: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread David Delbecq
ays >>> so. >>> >>> Read this as well, although it says "all case sensitivity checks >>> will be disabled" it doesn't define "case sensitivity checks". >>> >>> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html >>

Re: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread David Delbecq
ct. I > would expect that things defined for /MYNAME would work for /myname if > caseSensitive was false. > > Can anybody tell me definitively how this security risk works? > > > David Delbecq wrote: > >> I suspect a call to /something.JSP will not go thru the

Re: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread David Delbecq
this could cause any security issues, except for > slightly reducing the number of attempts you would need in a > brute-force hacking attempt. > > Dave > > > David Delbecq wrote: > >> Be careful, there are security issues with this (jsp code disclosure!)!! >> Davi

Re: How can I set tomcat NOT Case Sensitive

2006-03-07 Thread David Delbecq
Be careful, there are security issues with this (jsp code disclosure!)!! David Kerber a écrit : > > > > Buddy wu wrote: > >> 2006/3/7, Long <[EMAIL PROTECTED]>: >> >> >>> Buddy wu wrote: >>> I wan't to know there is any way to set tomcat NOT CASE >>> SENSITIVE in URL >>> I mean: when I

Re: [tomcat] : request.setCharacterEncoding ("UTF-8") doesn't work ?

2006-03-07 Thread David Delbecq
sol myr a écrit : >Hi, > > I'm having a problem with HttpServletRequest.setCharacterEncoding("UTF-8"). > Basically, tomcat seems to ignore it completely, and assume "latin1" > encoding. > > request.setCharacterEncoding("UTF-8") must be called prior to any request.getParameter() call. If

Re: Can not look at the Tomcat server from another stations.

2006-03-06 Thread David Delbecq
Hi, Check in server.xml if you have configured a RemoteAddrValve. This is this valve which could refuse remote connection based on ip. If there is no such valve configured, then tomcat should respond to your request, i suggest check firewalling configuration on server os. If there is such a valve

Re: Problems Starting Tomcat

2006-03-03 Thread David Delbecq
Are you sure there are not other error message before? This error means you can't start the userdatabase realm because the realm doesn't find it's datasource (named 'UserDatabase') . Eaither you didn't configure the datasource your userdatabase realm has to use, either it is configured but not sta

Re: Maximum users

2006-03-03 Thread David Delbecq
There is a maximum to the number of http connection tomcat can server at the same time. This is the maximum number of http threads tomcat is allowed to create. This is configured in the http connecter. See documentation there: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Default value i

Re: Quick question

2006-03-03 Thread David Delbecq
Yes, use shared/lib, common/lib is for classes that need to be accessible by webapps and by catalina. see http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html for details David Kerber a écrit : > I thought it was .../shared/lib... ? > > > > Alex Jalali wrote: > >> You would have to a

Re: WHY TOMCAT MEMORY FROM 1G TO 15M IN 10 MINUTES

2006-03-02 Thread David Delbecq
JAVA_OPTS='-Xms256m -Xmx256m' <-- your tomcat memory should never reach 1G with this parameter! the tomcat memory drops severly from 1G to 15M <-- do you mean tomcat memory usage or tomcat free memory? jiang ying a écrit : > Hi. When I run the TPCW bookstore application, I found the server > behav

Re: problem

2006-03-01 Thread David Delbecq
Check for nulls parameter at line com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker._$41797(Adm inWorker.java:2669 Rameez a écrit : >Does anyone know why the following could occur? It happens not infrequently >with our software. This happens in Tomcat 4. > >Thanks in advance fo

Re: Tomcat serving wrong content

2006-02-27 Thread David Delbecq
Should not happen. Could you provide example jsp? M. Schot a écrit : >Hi All, > >I have sent this question a few weeks ago, but got no replies. So lets try >again. > >The problem is that when I request a JSP from Tomcat 5.0.28 which includes >stylesheets and images, also served from the same inst

Re: I got an error on import org.apache.xpath recompiling with Tomcat5 and JDK5

2006-02-24 Thread David Delbecq
There is no org.apache.* in jdk 1.4 It's probable they simply were bundled un servlet.jar of tomcat. Marc Wentink a écrit : > > > >>You are missing the xalan jars: >>http://www.ibiblio.org/maven/xalan/jars/ >> >> > >Yes, and they add the libs removed in JDK1.5 for compiling a servlet under

Re: I got an error on import org.apache.xpath recompiling with Tomcat5 and JDK5

2006-02-24 Thread David Delbecq
You are missing the xalan jars: http://www.ibiblio.org/maven/xalan/jars/ btw, you should not have your compilation depends on any tomcat lib, unless you are building specific tomcat extensions (like realms) Wentink, Marc a écrit : >Dear Group, > >Which jars am I missing, and were can I find th

Re: Multiple webapps using one war file

2006-02-24 Thread David Delbecq
While it is possible to put some of the librarie out of .war, inside common, you must be aware of side effects. Libraries like struts are not designed to run multiple context within a given classloader (The servelt, for example, can only be instanciated once). I don't know for Hibernate and for et

Re: Changing content of response on canceled basic authentication

2006-02-23 Thread David Delbecq
put your response.setHeader("WWW-Authenticate","Basic realm=\"MySystem\""); insode your error page instead of authentification servlet. (I guess sendError() clear all headers) Oliver Schoenwald a écrit : > Hello fellow tomcat users, > > I'm running Tomcat 5.5.4 with Apache 2.0.54 and mod_jk. >

Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)

2006-02-23 Thread David Delbecq
d the loginModule returns always 'true' beacuse it's not >easy to pass some messages 'wrong password', 'validity perdio expired', etc... >to the login.jsp in case of a wrong authentification. >Thanks >PS : Do you have any example of a solution with t

Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)

2006-02-23 Thread David Delbecq
Login module should return false if not authenticated. If you need to store messages for the user, i'll suggest you pass them another way (like by using a ThreadLocal pattern) Vincent Delhommois a écrit : >Hello, I implements a solution with JAAS and userfilter on Tomcat. >the loginmodule return

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
thing? > > Poorna > > David Delbecq wrote: > >> Hello Poornachandran, >> >> as i said webapp X manage authentification all by itself (basically >> using it's own providers, so there is now security constraint and so on >> in the web.xml, webapp doe

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
e to get > not-null from request.getUserPrincipal(). I understand this is how the > container understands that user is logged on or not. > > Poorna > > David Delbecq wrote: > >> Hello, >> >> I probably will have the following webapp structure to configure >> - webapp X

Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
Hello, I probably will have the following webapp structure to configure - webapp X manage authentification all by itself (using forms and so on) but provide a way to configure your own credential using a quite basic checkPassword(user,pass) interface. - Tomcat is able to authenticate all my users

Re: time/date stamp differences

2006-02-20 Thread David Delbecq
You mean the .jsps do not get recompiled after redeploy? What procedure do you follow to rollback? Do you do a 'undeploy/redeploy process'? I think doing a undeploy should remove the associated work directory, where tomcat store all generated jsp source / jsp .class Hall, Scott a écrit : >Hello T

Re: auth-constraint in web.xml in tomcat 5.5.15

2006-02-17 Thread David Delbecq
I was hoping to get something else. Sure our sysadmin will enjoy to put 600 usernames in one line of /etc/groups (assuming HP-UX and NFS allows it)... Mark Thomas a écrit : >David Delbecq wrote: > > >>*outch* This mean i will have to change my web.xml with future tomcat >&g

Re: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread David Delbecq
Marc Wentink a écrit : >Ok, it seems to work putting the class in C:\Program Files\Apache Group\Tomcat >4.1\shared > >The servlet now starts up. > >\shared is, after reading the docs the general place for classes used by all >apps. > > I won't recommand putting classes in /share unless really

Re: Where does Tomcat expect me to put my class file, or jar file?

2006-02-17 Thread David Delbecq
Once again, you must map you servlet in your web.xml Marc Wentink a écrit : >>Where does Tomcat expect me to put my class file, or jar file? >>Is it sufficient to put the servlet class in WEB-INF classes or must you >>install a war file? >> >> > > >I actually tried to put HelloIZ.class in a

Re: How to install a simple servlet in Tomcat?

2006-02-16 Thread David Delbecq
You must put the class in a .jar itself located in the WEB-INF/lib folder of a .war or you must put the class in WEB-INF/classes of a .war You must also setup your servlet un WEB-INF/web.xml Then you must deploy you .war in tomcat (the easiest way is to use the manager: http://tomcat.apache.org/to

<    1   2   3   4   5   6   >