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: 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: 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: 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: '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: 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: 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: 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: 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: 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: 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: 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
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
(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: 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: 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: 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

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: 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 <

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: 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: 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: 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: 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: 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: 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: Tomcat 5.5: Servlet skips FormAuthentication?!?!?

2006-09-13 Thread David Delbecq
The servlet is mapped to / The security constraint is mapped to /* That's your problem. Map your security constraint to * instead Gregor Schneider a écrit : > Dear all, > > we have some very odd behaviour here. > > First the basic: > > - Tomcat 5.5.17 > - Debian Sarge > - Java(TM) 2 Runtime Envir

Re: Restrict Session In One Browser!

2006-09-20 Thread David Delbecq
Hi Alexander. Because tomcat use a session cookie (JSESSIONID), the sessions are already limited to one per browers, except if the user deactivate cookie, in which case only the Url rewriting mecanism is used. In the last mecanism, if the flow of page is interrupted (by accessing an url not rewritt

Re: Restrict Session In One Browser!

2006-09-20 Thread David Delbecq
page within the same > browser if user click) > > Regards, > Alexander Khoo > > > > - Original Message > From: David Delbecq <[EMAIL PROTECTED]> > To: Tomcat Users List > Sent: Wednesday, September 20, 2006 4:40:47 PM > Subject: Re: Restrict Se

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Could you send us a few jvm thread dumps while the CPU usage, i bet this an be more helpful than an os dump. To generate a Thread dump, simply send the signal 3 to the java process (assuming you use a SUN jvm or derivative) Yann Rouillard a écrit : > Did you tried it with Tomcat 5.5.17? >>> >

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
a.await(Catalina.java:615) > at org.apache.catalina.startup.Catalina.start(Catalina.java:575) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.Delegati

Re: problem starting tomcat

2006-09-28 Thread David Delbecq
Several possibilities 1) port 8005 is not available on the machine (not allowed to that user or used by another application already), free it or change it in server.xml 2) you have changed tomcat configuration on a perhaps multi ip machine to bind only on a specific interface (specific ip) and thi

Re: problem starting tomcat

2006-09-28 Thread David Delbecq
taylan kuecuek a écrit : > Raffaele Viola schrieb: > >> Hi all, >> >> I'm trying to start Tomcat but Ihave some problems >> >> This is what I read in the catalina.out, could someone help me? >> >> Thanks a lot >> Raffo >> >> 28-Sep-2006 16:03:28 >> org.apache.catalina.core.AprLifecycleListenerlifec

Re: AW: Re: standard call for servlets does not work under tomcat

2006-10-10 Thread David Delbecq
- Because it way unsecure. It can invoke pretty any class in your webapp class path. This include legacy servlet (like com.company.TheServlet) but also your test servlet, the servlets you developped for quick admin hacks locally and you didn't remove from code. - Invoker servelt is one unique serv

Re: change server default enconding -Where to set JAVA_OPTS in catalina.sh for UTF8?

2006-10-11 Thread David Delbecq
Hi mark, not at all 1) there are 20 results for Djavax.servlet.request.encoding in google ^^ (but am really not sure this parameter really exists in tomcat) 2) URIEncoding="UTF-8" set the encoding used for html link, the default is platform dependent. I "suppose" the Zis wanted to set the default

Re: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread David Delbecq
Just my 2 cents Mysql does authentification not based on username:password but based on [EMAIL PROTECTED]:password Possible the selected user is allowed only for localhost or, even better, that mysql does not listen on any interface other than localhost (default configuration for security reasons)

Re: Tomcat User Permession

2005-10-27 Thread David Delbecq
y-constraint in the web.xml (see http://e-docs.bea.com/wls/docs81/webapp/web_xml.html#1017885) Once again, tomcat is a java web applications server, not a webserver serving static content. If you want to server static content, apache web srver would better suit your needs. regards, David Delbecq

Re: How to share resources across two applications

2005-10-27 Thread David Delbecq
Hi, maybe the problem is not were we thought it was. If you get a NullPointerException a (1) (i mean not somewhere deeper inside 1 but exactly at 1), that can only mean getServletContext() returned false. This may be the case if servelt was not properly initialized. Check your init(ServletConfig co

Re: deploy a war on startup

2005-10-27 Thread David Delbecq
Try removing webapps/webAppName/ and work/Catalina/Hostname/webAppName directories. I don't know if it is a recommanded way, but it give tomcat no other choice than exploding the war again :) Iratxe Etxeberria Sainz-Ezquerra a écrit : > > > > >Hello! >I am using tomcat 5.0.28. When we have the

Re: Deploying Servlet Project from Windows to Fedora

2005-12-01 Thread David Delbecq
PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Delbecq Royal Meteorological Institute of Belgium - Pingouins dans les champs, hiver méchant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Please Help Me

2005-12-02 Thread David Delbecq
Make it your home page! > http://www.yahoo.com/r/hs > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Delbecq Royal Meteo

Re: Many questions are left unanswered.

2005-12-16 Thread David Delbecq
, Bharathi a écrit : > Hi Mark, > > Many questions in this forum are left unanswered . It would be > nice if I , atleast, get a "don't know" answer to some of my mails! > > Thanks & Regards, > Prathibha. > -- David Delbecq Royal Meteor

Re: hex dump

2006-01-04 Thread David Delbecq
Yahoo! DSL – Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] &

Re: Configuration Question

2006-01-04 Thread David Delbecq
permanently' response. > Many thanks, > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Delbecq Royal Meteorolo

Re: Migration

2006-01-06 Thread David Delbecq
ding this. > > Thanks > > > > > > Send instant messages to your online friends http://in.messenger.yahoo.com -- David Delbecq Royal Meteorological Institute of Belgium - Pingouins dans les champs, hiver méchant ---

Re: Session from a tag

2006-01-11 Thread David Delbecq
I have a bean stored there > that I want to use in my tag. How can I retrieve this. I can't find this > information anywhere. > > Thanks. > > Thom Hehl > Heavyweight Software for Heavyweight Needs > www.heavyweightsoftware.com -- David Delbecq Roya

Re: Session from a tag

2006-01-11 Thread David Delbecq
getJspContext().getAttribute("someKey",PageContext.SESSION_SCOPE) Le Mercredi 11 Janvier 2006 16:19, Thom Hehl a écrit : > This explains the code I found. What if you extend SimpleTagSupport. > What's the difference? > > David Delbecq wrote: > > >to expose

Re: forwarding JDOM-Objects

2006-01-13 Thread David Delbecq
WorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > > Is this caused by the single thread? I wortk with Eclipse, and this has no problem finding a class. Hmmm but maybe tomcat. > Anyway I send this mail away. > &

Re: unpack war

2006-01-17 Thread David Delbecq
log." suffix=".txt" > timestamp="true"/> > > > > so what's going wrong here. > > regards, > Mahesh Bhandare > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

Re: Oracle 8i JDBC Driver for jdk1.5?

2006-01-20 Thread David Delbecq
your PATH if you are using the JDBC OCI > driver > > but i'm not getting the info. regarding Oracle 8i JDBC Driver for jdk1.5. > > Kindly help. > > Thanks & Regards, > Vidhi > > > > -----

Re: Oracle 8i JDBC Driver for jdk1.5?

2006-01-20 Thread David Delbecq
I don't think oracle has 1.5 specific drivers. ojdbc14 should suit well on 1.5 jvm Le Vendredi 20 Janvier 2006 12:52, gupta vidhi a écrit : > i'm using jdk1.5.0.02, Tomcat 4.1.31 & JDBC 8.1.7.0.0 on WIN > 2000 & Oracle 8i. > > > > Dav

Re: Why WEB-INF folder has to be in capital letters

2006-01-20 Thread David Delbecq
__ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For

Re: How to capture printf() stdout to stdout_nnn.log?

2006-01-23 Thread David Delbecq
> http://mail.yahoo.com > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Delbecq Royal Meteorological Institute of Belgium - Pingouins dans les champs, hiver méchant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: From Java to C#, ASP.NET [Off Topic]

2006-01-25 Thread David Delbecq
hing of a happy > and exciting revelation. At this point I feel a bit like I did when I > switched from C++ to Java back in 1997. I realize there is always > strong and emotional anti-Microsoft sentiment in these groups for some > reason. All I can say is that when I looked at what each platform > offered, for me, .NET and C# were the winners, based on their technical > merits. I never thought I would leave Java, especially for C#, but so > far I'm not regretting it. > > Good luck to you all. > > -- > Tony LaPaso > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David Delbecq Royal Meteorological Institute of Belgium - Pingouins dans les champs, hiver méchant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

non US-ASCII query parameters

2006-01-30 Thread David Delbecq
not because of accentuated characters in request). Thanks for help. -- David Delbecq Royal Meteorological Institute of Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: non US-ASCII query parameters

2006-01-30 Thread David Delbecq
alves running on production, which we don't have in test environment. But as those two valves are not supposed to decode the parameter, it shouldn't influence decoding process (they only check headers) > -Original Message- > From: David Delbecq [mailto:[EMAIL PROTECTED] &

Re: non US-ASCII query parameters

2006-01-30 Thread David Delbecq
Ok, found out. Tomcat needed a restart after changing the value of "URI Encoding" in connector. Le Lundi 30 Janvier 2006 13:09, David Delbecq a écrit : > Le Lundi 30 Janvier 2006 12:54, Tim Lucia a écrit : > > Are you using the request dumper valve? This will cause decodi

Re: Need tomcat build for Fedora 3 on x86

2006-01-30 Thread David Delbecq
nager tomcat configuration tar -xvzf apache-tomcat-5.5.15.tar.gz cd to tomcat dir set JDK_HOME env variable to where you installed sun jdk (1.5 recommanded) run bin/startup.sh that's all, tomcat is running with output in logs/catalina.out -- David Delbecq

Re: percent sign in URI

2006-02-01 Thread David Delbecq
Hello abdurrahman, Your url is incorrect, replace it with http://localhost:8080/aSite/aPage?query=hi%25everybody According to rfc 1738, 2.2. URL Character Encoding Issues Octets must be encoded ..., if the use of the corresponding character is unsafe, ... The character "%" is unsafe be

Re: percent sign in URI

2006-02-01 Thread David Delbecq
ct of error handling in server. abdurrahman sahin a écrit : >hi David; >I am aware of the case. As I stated before Apache2 server properly handles >that problem and I need that functionality because our customer's system >built on it. > > >-Original Message-

Re: Tomcat and client certificates

2006-02-01 Thread David Delbecq
>To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat and client certificates

2006-02-03 Thread David Delbecq
Markus a écrit : >Ok, when I set clientAuth to "want" the "Exception getting SSL Cert" >goes away. (Wtf is this documented?). > Yes it is documented: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html Section 'Edit the Tomcat Configuration File' > But I still get the 403 - Access >denied erro

Re: Problem in j_security_check

2006-02-03 Thread David Delbecq
This mean you tried to access login form directly. This is not allowed in j2ee specifications. Access to login form should only be triggered by server on demand. You can't force a login. To access login page, simply put a link to saraf/index.html (simple example) Prashant Saraf a écrit : >i have a

Re: Problem in j_security_check

2006-02-03 Thread David Delbecq
ta in server would not be setup and you'll only trigger an exception. Prashant Saraf a écrit : >i created a link which connect to login.jsp then also it not works:( > >On 2/3/06, David Delbecq <[EMAIL PROTECTED]> wrote: > > >>This mean you tried to access login form di

Re: Problem in j_security_check

2006-02-03 Thread David Delbecq
<-- that's the error put this instead Prashant Saraf a écrit : >as i am new i refer tomcat 's jsp-example >my structure of webapp > >webapps-| > | > saraf > | > index.html(which link to login.jsp) > | > protected >

Re: Problem in j_security_check

2006-02-03 Thread David Delbecq
Everything that correspond to the security-constraint on your web.xml is 'protected' and need authentification. When you are authenticated, field request.getRemoteUser() is not null anymore. Be carefull, /saraf/* in security constraint mean the secure area is http:///saraf/saraf/* If your secure

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

2006-02-06 Thread David Delbecq
*outch* This mean i will have to change my web.xml with future tomcat version. How do I allow access to a ressource to all authenticated users now? Mark Thomas a écrit : >Oliver Kohll wrote: > > >>Hi, >> >>I have security for a web application managed by a DataSource database >>realm. Using to

Re: Two DNS Entries Two Sites?

2006-02-06 Thread David Delbecq
If it's 2 names, one IP, one server, you can simply have tomcat do virtual hosting. We did it here like that: Create 2 Give each host a list of alias corresponding to the server the will act on Give each host a different Application Base (like webapps-hostX and webapps-hostY) this will prevent web

Re: Can we stop tomcat using System.exit(int)

2006-02-07 Thread David Delbecq
Just my 2 cents, Have you tried to set priviledged to true in webapp context? Also you may need to play a bit with the security manager as J2EE specs does not endorse the use of System.exit in a webapplication. [EMAIL PROTECTED] a écrit : >Hi, > >My web application requires database pool connecti

Re: Help me

2006-02-09 Thread David Delbecq
your commons-fileupload.jar should go in your webapp's WEB-INF/lib directory Mir Kasim Ali a écrit : >The problem was for package called org.apache.common.fileupload but >when I put the jar file for above package in the C:\Program >Files\Apache Software Foundation\Tomcat 5.5\common\lib directory

Re: webapp under different URLs with different JSP but same java classes

2006-02-10 Thread David Delbecq
Duplicate your classes, one copy in each webapp Lothar Krenzien a écrit : >Hi, > >I'm not sure whether it is possible or not: > >I have a webapp which I want to access under different URL's with different >JSP's but the same java classes. I know that I can define the context URL in >the context

Re: password protection

2006-02-15 Thread David Delbecq
Zohar Amir a écrit : > Hello, > I'm using tomcat 5.5.15 on Win XP. > I have a servlet that is deployed on a certain context. I would like > anyone trying to use that servlet use a username-password. how do I do > this? set a security-constrain in WEB-INF/web.xml > What if I need to protect a jsp

Re: password protection

2006-02-15 Thread David Delbecq
l Message - From: "David Delbecq" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Wednesday, February 15, 2006 2:52 PM > Subject: Re: password protection > > >> Zohar Amir a écrit : >> >>> Hello, >>> I'm using tomcat

Re: password protection

2006-02-15 Thread David Delbecq
s, so that they will all be able > to use request.getPricipal() and have the user name that logged in? When authenticated, request.getPrincipal() returns the authenticated principal > > > - Original Message - From: "David Delbecq" <[EMAIL PROTECTED]> > To: "Tomcat User

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

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: 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: 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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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
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
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 >>

  1   2   3   4   5   6   >