Re: getRealPath and war file

2006-08-10 Thread Romain Quilici
Hello Dies, the working directory would be fine, but my images need to be accessible via a url(which is not the case if they are located inside the temp dir) In fact when an image is generated, I push the url inside the client browser, the new url automatically replaces the previous one in a

Re: Hot code replace

2006-08-10 Thread Ulath
Eclipse 3.2 and java version 1.5.0_06 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) regards -- View this message in context: http://www.nabble.com/Hot-code-replace-tf2078792.html#a5738944 Sent from the

Re: mod_jk log level and logging issues

2006-08-10 Thread Peter Rossbach
Hi Rainer, really good idea to fix the worker logging ++1... === Peter Rainer Jung schrieb: Hi, thanks for the feedback. Good info! fredk2 schrieb: issue 1: With mod_jk 1.2.15 i set my jk log level: JkLogFile logs/mod_jk.log #JkLogLevel info JkRequestLogFormat %w

Re: How to do the precompilation on jsp

2006-08-10 Thread Raju Balugu
Hi All, I have a basic doubt on precompilation .I am doing precompilation using the scripts(jspc.sh) . Its giving the Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/util/FileUtils at org.apache.jasper.JspC.resolveFile(JspC.java:1395) at

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Tomas Hulek
Unfortunately, the fundamentally bad security scheme is how the JS API specification is implemented in Tomcat (when using form-based authentication). When processing a form-based authetication request under HTTPS, Tomcat retains the session ID allocated under HTTP. We have tried invalidating

Measuring traffic pr. virtualhost

2006-08-10 Thread Lars Nielsen Lind
Hi. I need to measure the traffic pr. month/year for each virtualhost. How can I do that with Apache/Tomcat? Lars Nielsen Lind - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: getRealPath and war file

2006-08-10 Thread Mark Thomas
Romain Quilici wrote: Hello Dies, the working directory would be fine, but my images need to be accessible via a url(which is not the case if they are located inside the temp dir) In fact when an image is generated, I push the url inside the client browser, the new url automatically replaces

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Mark Thomas
Tomas Hulek wrote: Any hints how to fix it? Again, do all access to your app under https. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread David Smith
Right. Tomcat stores the original request info in the session before redirecting to the login page. Invalidate the session and the original request url is gone. You could try (and I haven't tried this) is to find the original request info stored in the old session, pull it out of the old

Re: JDBCRealm with Simple Servlet Filter

2006-08-10 Thread David Smith
I believe in BASIC auth, the client already has the auth failed page during authentication. Once authentication fails, that page is displayed. Short of the images and other resources the error page needs, there is not another request to the server hence no filter call. --David Dhiraj

Re: JDBCRealm with Simple Servlet Filter

2006-08-10 Thread Pid
If you're using a JDBC realm then you are using Tomcats authentication, which operates at a higher level than Filters and Servlets, so you can't insert anything into the chain there. With Basic Auth, the browser does the submission of credentials, based on the error codes that the server sends.

JDBCReal drivers

2006-08-10 Thread Zohar
When using JDBCRealm, where should I put my driver jars?

Re: getRealPath and war file

2006-08-10 Thread Dies Koper
Push a url to a servlet which then serves the images from the working directory? In which you could also set the headers (images are temporary, so maybe set Cache-Control, Expires?). Regards, Dies Mark Thomas wrote: Romain Quilici wrote: Hello Dies, the working directory would be fine,

Re: JDBCRealm with Simple Servlet Filter

2006-08-10 Thread David Smith
A little googling confirmed my earlier suspicion. The 401 response contains the error page. This is why you can't redirect a 401 error like a 404 or other error responses. -David Pid wrote: If you're using a JDBC realm then you are using Tomcats authentication, which operates at a higher

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Darryl Miles
Well HTTP Cookies have a solution to this problem. They have a Secure keyword in the Set-Cookie line. This stops the client leaking the cookie outside of a secure channel. The problem is I dont think Tomcat keeps track and flags if a session has been exposed via a non-secure channel or

Re: JDBCReal drivers

2006-08-10 Thread Filip Hanik - Dev Lists
common/lib Zohar wrote: When using JDBCRealm, where should I put my driver jars? No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.8/415 - Release Date:

Re: Modifying saved URL from j_security_check

2006-08-10 Thread Gregor Schneider
Hi Mark, currently it's pretty busy here, therefore I couldn't try your suggestion yet. However, what I've tried so far is: I've subclassed *all* Authenticators from org.apache.catalina.authenticator(Digest, Form and SSL) since I thought that maybe some other Authenticator is being triggered

Tomcat 5.5 Cannot create PoolableConnectionFactory

2006-08-10 Thread jcbf
After successfuly connecting to the databases through JDBC drivers over a proxool pool, I tried to configure JNDI datasources so that my dbforms webapp could cleanly call and implement connections through the JNDI space. In tomcat 5.5 the web context file looks like : … Resource    

Context Timeout???

2006-08-10 Thread Francesco Marelli
Hello, my application runs on Tomcat 4.1.18 and I have implemented a context listener for it implementing the ServletContextListener interface. The contextDestroyed method runs after 30 minutes of inactivity. Why? I would have thought that the contextDestroyed method would run only at Context or

Help in Tomcat's logs

2006-08-10 Thread Viviana Charry López
Hi all, I have a sun server with these specifications: Server Information Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture Apache Tomcat/4.1.31 1.4.1_02a-b01 Sun Microsystems Inc. SunOS 5.9 sparc And the logs dir has all users’ permissions. Tomcat

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Tomas Hulek
We have tried it, but the internal session attributes where Tomcat stores the original request are hidden to application, and are certainly not accessible to javax.servlet.* API (and we do try to write PORTABLE application, relying on the specification and not on the internals of one particular

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Tomas Hulek
Unfortunately, filters are skipped (ie. not called at all) when form-based login page is processed as a result of client requesting a secure area. We tried that too... By the way, the original URL that the client requested is hidden in the session in a way which prevents the web app from

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Long
I wonder if associating (and checking) the request IP with the session would reduce the problem to some acceptable level. What is the chance of a session being hijacked from the same network (face-ip)? Another question is can the original request IP be spoofed? Long - Original Message -

solution to this scenario

2006-08-10 Thread Pratap Parne
can any one tellme how do i implement this using tomcat tomcat would be running on a server.a user would log into the server using ftp and he has his own version of server.xml.he some how starts the tomcat runs his application and shuts it down.when other user logs into the server he should be

RE: solution to this scenario

2006-08-10 Thread Sharma, Siddharth
ftp? You mean telnet or rsh or ssh or something right? Anyhow, create a different instance of tomcat for each user: Recursively copy the following directories from CATALINA_HOME to a new location (say /usr/tomcat/instance_n) to create a new instance: webapps temp shared conf logs Then change

Re: Initializing session in a Filter

2006-08-10 Thread Mohsen Saboorian
Better to change my question: When a session associated with a client is created? Hi, I have a filter (for /*) in which I'm caching something in the session. Here is a piece of code: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Tomas Hulek
In this case the chances are relatively high - imagine a company using a proxy to connect to the Internet. The client IP does not change, a someone in the company sniffing can easily hijack sessions from his/her colleagues. Tomas

Using Tomcat's internal bean server.

2006-08-10 Thread Robert Harper
Ive tried this before so let me rephrase this. I am using Tomcat to perform the authentication and I have an app that is adding new users to the tomcat-users database just fine. The problem is that Id like to get the role and group attributes back. I would rather not keep the

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread David Rees
I wonder if associating (and checking) the request IP with the session would reduce the problem to some acceptable level. What is the chance of a session being hijacked from the same network (face-ip)? Another question is can the original request IP be spoofed? In this case the chances are

Re: solution to this scenario

2006-08-10 Thread Martin Gainty
This is from the javax.servlet.Servlet class (service method) documentation- Servlets typically run inside multithreaded servlet containers that can handle multiple requests concurrently. Developers must be aware to synchronize access to any shared resources such as files, network connections,

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Long
I can also imagine this company gives employees the go-a-head and hijack each others session. It would also reward the idiot(s) that can do it best with double pay... Your imaginary company example doesn't really happen within a real company, does it? Usually there are codes of conduct and

Re: JDBCRealm with Simple Servlet Filter

2006-08-10 Thread Dhiraj Ramakrishnan
Hi , Thanks for the replies, really appreciate that. I am using BASIC because i am authenticating webservice calls. I already have FORM for a sister application which provides web based access. I want to log authentication failures. Is the only option i have is

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Maurice Yarrow
Hello David, Tomas: About two months ago, I tried using the getRemoteAddr() for doing IP check as an addtional auth metric, but found exactly than on local net, this did not discriminate in many cases and only a single IP was returned for hosts on LAN. So I decided that there was too much

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Maurice Yarrow
Long: Thanks for adding this thought. As per my previous note on this subject, in light of your (relative) confidence in using IP, maybe I _should_ reconsider the getRemoteAddr() and simply use it as an addt'l advisory for making session auth decision on successive pages as they transit

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Marc Richards
Supposing that your secure area is using a constantly different URL path than your non-secure pages you could create a filter to modify the default path for the jsessionid cookie to be valid only for non-secure pages. For example, if your non-secure site is at http://mysite.com/public/... and

Re: getRealPath and war file

2006-08-10 Thread Romain Quilici
Sorry, in my previous message, I did not mean the working dir but the temp dir(obtained with javax.servlet.context.tempdir). Romain Mark Thomas wrote: Romain Quilici wrote: Hello Dies, the working directory would be fine, but my images need to be accessible via a url(which is not the case

one tomcat multiple users

2006-08-10 Thread Pratap Parne
here is the situation.there would be one tomcat running on a server.multiple users log into the server .each user should be able to start the tomcat and shut it down without interfering others.they would have their own version of sever.xml.so they loginto the server using telnet start the tomcat

Tomcat container cluster monitoring under Geronimo

2006-08-10 Thread Russell E Glaue
When implementing a tomcat cluster, we can monitor the cluster via JMX. So, if we implement tomcat clustering under the Geronimo hood, what JMX components are available as GBeans to allow us to monitor the tomcat cluster running with Geronimo? Have all the necessary JMX components been made

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Darryl Miles
Tomas Hulek wrote: Unfortunately, filters are skipped (ie. not called at all) when form-based login page is processed as a result of client requesting a secure area. We tried that too... By the way, the original URL that the client requested is hidden in the session in a way which prevents the

Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-10 Thread Darryl Miles
Maurice Yarrow wrote: Thanks for adding this thought. As per my previous note on this subject, in light of your (relative) confidence in using IP, maybe I _should_ reconsider the getRemoteAddr() and simply use it as an addt'l advisory for making session auth decision on successive pages as