RE: making rules for passwords/handling password expirations in Tomcat Container Managed security

2006-12-15 Thread Caldarale, Charles R
> From: Ferindo Middleton [mailto:[EMAIL PROTECTED] > Subject: making rules for passwords/handling password > expirations in Tomcat Container Managed security > > Is there a way to configure Tomcat's built-in container managed > security for requiring rules for passwords and implementing > pas

Re: Servlet with POST Request

2006-12-15 Thread Hassan Schroeder
On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: Hm, the reason I asked, is because of a test I ran. strLine is always null. Here's the simple test method I used: protected void doPost(HttpServletRequest request, HttpServletResponse response) throw

Re: problem: need to build tomcat 5.0.28 from source and missing jars

2006-12-15 Thread Bill Barker
http://mx4j.sourceforge.net/ The version declared for 5.0.28 may not be available, but the newer versions are better anyway. You can also use the JMX RI instead, if you prefer. "Bill Milbratz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > to clarify the problem: tomcat 5.0.28 b

Re: Servlet with POST Request

2006-12-15 Thread Scott Carr
Hassan Schroeder wrote: > On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: >> Does a servlet require the use of a Content-Length for the Reader to be >> populated? > > A pretty cursory test seems to indicate not, but I could just be lucky > :-) > >> ...and I want to read each line as they come in

Re: How to update Certificate Revocation List (CRL) without taking down Tomcat Server

2006-12-15 Thread Bill Barker
This isn't currently supported in any Tomcat version. "Daniel Yeung" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Or is this option supported in Tomcat 5.x or 6.0? > > Thanks. > > DY > > - > To start a new topic,

Re: Servlet with POST Request

2006-12-15 Thread Hassan Schroeder
On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: Does a servlet require the use of a Content-Length for the Reader to be populated? A pretty cursory test seems to indicate not, but I could just be lucky :-) ...and I want to read each line as they come in, and handle the request on a line by

making rules for passwords/handling password expirations in Tomcat Container Managed security

2006-12-15 Thread Ferindo Middleton
I'm not a Java developer but I do develop JSPs for web apps. I can install and implement Tomcat Container managed security. Is there a way to configure Tomcat's built-in container managed security for requiring rules for passwords and implementing password expiration for non-programmers. I'm curr

Re: Servlet with POST Request

2006-12-15 Thread EDMOND KEMOKAI
Assuming a client would be requesting data via your servlet, I don't believe there is a limit. Your sevlet calls PrintWriter.write(..) and that implements buffering that would flush onces the buffer is full. On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: Does a servlet require the use of a

Re: 404 error when a newly created file is requested

2006-12-15 Thread EDMOND KEMOKAI
I ran into a similar problem in trying to serve static content with tomcat, tomcat had trouble retrieving dynamically created content unless it was already in the webapp at start, at least that was my experience. Since you're trying to create a jsp, why don't you create one jsp and pass it your pr

Servlet with POST Request

2006-12-15 Thread Scott Carr
Does a servlet require the use of a Content-Length for the Reader to be populated? I trying to use Tomcat instead of writing my own Socket Server. I have a set of lines that I am trying to parse, but I don't have any idea how much is going to be sent up front. It may be 1000Kb, or it may be

404 error when a newly created file is requested

2006-12-15 Thread Carl
Environment: Tomcat 5.5.17, Windows XP Background: I have a jsp page that contains a javascript rich text editor that I use to create snippets of HTML code that are stored in a database and later displayed on other pages. Since the snippets can contain some custom tags, I have a 'Preview' bu

Re: TC 5.5.15 - Internet Explorer firing multiple form submits? - Solution - thanks

2006-12-15 Thread Frank McLean
Thanks Chris, that works. I think this used to be a simple button, rather than a submit. Sincerely, Frank McLean Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank McLean wrote: I have a couple of submit buttons similar to the following: You

Re: Decipher Error

2006-12-15 Thread Jim Reynolds
Got it, I actually removed the app.war files that were under root, and it started. I will go through each one, and see which one is bad, but that got me rolling. Again, Many thanks. On 12/15/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Jim Reynolds [mailto:[EMAIL PROTECTED] >

RE: Decipher Error

2006-12-15 Thread Caldarale, Charles R
> From: Jim Reynolds [mailto:[EMAIL PROTECTED] > Subject: Decipher Error > > I thiought it was a jar file It is a corrupted .jar or .war file, probably within the default (ROOT) app. Can you read the jar/war with WinZip? > Anyone ever get this? Once, when I broke zip file handling in our plat

Decipher Error

2006-12-15 Thread Jim Reynolds
Hello, I am moving some code via ant to a new deployment area on the server, and I am experiencing the following error: (below). I am running Tomcat 5.5.20 on XP. I thiought it was a jar file, but I have been throwing them away, doing the build, restarting, and I still get this message. A google

On Tomcat 5.5.9, can't flush the buffer or reduce buffer size < 8192

2006-12-15 Thread Richard Mundell
I'm trying to work around a timeout problem which one of my user's proxy server has. The proxy's timeout is set to 1 minute. Should it not receive any HTTP traffic for 1 minute it disconnects. One of my JSPs takes >1 minute to perform processing and return results. What I'm trying to do is...

Using 2 Realms for authentication and access control

2006-12-15 Thread Workman, Joe
I have an application that runs on tomcat that by default uses a JDBCRealm to query a database for authentication. I would like to use Kerberos for the user password authentication but still use my JDBCRealm for access control through roles. I was hoping you could point me in the right direction.

Apache SSL + mod_jk

2006-12-15 Thread Bijan Vakili
Hi, I've been trying to get mod_jk to work where 1) Users connect to the Apache server via HTTPS 2) All requests are proxied to Tomcat via mod_jk using AJP1.3 I have been able to get this to work with HTTP. However, when I switch to using HTTPS, the HTML content returned by T

Re: How To Migrate

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eugene, Eugene Poole wrote: > Also, I see that what > worked for mod_jk no longer works well. Is there some documentation > available for migrating apache version 2.0.47 to version 2.2.3? As for migration Apache httpd, mod_jk does still work. You wi

looking for example using Mbean to for session management across multiple applications

2006-12-15 Thread [EMAIL PROTECTED]
Hi, I'm looking for an example of using Mbeans to access the org.apache.catalina.Manager interface to manage HttpSessions. First off, however: is this possible? We're interested in using this approach for managing single signon between multiple web applications. (where accessing one session

Bind after authentication with authenticated users credentials

2006-12-15 Thread Christopher Buffington
I want to use a webapp to create modify and delete objects in an Active Directory Application Mode instance. I use form based authentication to protect the webapp. In this configuration the user logs into the webapp and can then navigate to the user management page. from there the webapp must rebi

How To Migrate

2006-12-15 Thread Eugene Poole
I've recently moved from fedora core 4 to fedora core 6 and during that process the tomcat being used is version 5.5.17. I kept a backup of my original tomcat version 5.0.28. I would like to know is there some documentation on migrating from 5.0.x to 5.5.x? Also, I see that what worked for m

"Page cannot be displayed"

2006-12-15 Thread Fabian Arocena
Hi All! I installed tomcat 5.5.17 on a Unix solaris box and deployed a war file there. Everything works fine, except for the fact that I get a "page cannot be displayed " page from time to time. This happens randomically and usually going back one page and forth again, solves it, sometimes I have

Re: Should I manually buffer my streams I get from the servlet-container?

2006-12-15 Thread Tim Funk
Do not perform your own buffering - its already done by the container. The streams are not synchronized - but they don't need to be. -Tim Clemens Eisserer wrote: Hello, I wonder wether I should manually buffer the streams I get from HttpRequest/HttpResponse by wrapping it in an BufferedS

Should I manually buffer my streams I get from the servlet-container?

2006-12-15 Thread Clemens Eisserer
Hello, I wonder wether I should manually buffer the streams I get from HttpRequest/HttpResponse by wrapping it in an BufferedStream? Is does Tomcat (and whats about other servlet containers) take care about Buffereing? Furthermore are the streams provided by Tomcat synchronized? Thank you i

RE: Installing Tomcat and IIS

2006-12-15 Thread Simon Renshaw
And once it is installed, how is it supposed to work? That part is missing from the article :) -Original Message- From: LiuYan 刘研 [mailto:[EMAIL PROTECTED] Sent: 14 décembre, 2006 23:22 To: users@tomcat.apache.org Subject: Re: Installing Tomcat and IIS That article is good, I've integr

RE: Help: Enabling SSL

2006-12-15 Thread Caldarale, Charles R
> From: Bijan Vakili [mailto:[EMAIL PROTECTED] > Subject: RE: Help: Enabling SSL > > Again, it would have been nice of the 6.X distribution logged the fact > that it couldn't find the keystore file. I suspect that without the SSLEnabled attribute it wasn't even looking for the keystore file. -

RE: Help: Enabling SSL

2006-12-15 Thread Bijan Vakili
Hi Hassan, Yes that was the other piece that was missing. I now have v6.X working on both Windows and Solaris 10. So it seems my problem was twofold: (a) SSLEnabled="true" was missing and (b) unable to locate the .keystore file (solved by explicitly stating its location using 'keystoreFile'

RE: Help: Enabling SSL

2006-12-15 Thread Bijan Vakili
All, It's the keystore file. Tomcat was unable to locate it. On 5.X, it seems that Tomcat's default path is C:\.keystore while my JRE's default path is my user directory. I switched back to Tomcat 5.X and the log finally indicated the problem. I used the keystoreFile attribute and it found it.

Re: Help: Enabling SSL

2006-12-15 Thread Hassan Schroeder
On 12/15/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: For 6.0, you need the attribute SSLEnabled="true" in your element: Ah, and that's missing from the sample 8443 Connector config in the 6.0.2 distribution, though it's in 6.0.4. -- Hassan Schroeder [EMAIL PR

RE: Help: Enabling SSL

2006-12-15 Thread Scott Purcell
What does your server.xml look like for the ssl, could you post? -Original Message- From: Bijan Vakili [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006 10:13 AM To: Tomcat Users List Subject: RE: Help: Enabling SSL Hi Scott, No I don't see a DLL called tcnative-1.dll. Actuall

RE: Help: Enabling SSL

2006-12-15 Thread Caldarale, Charles R
> From: Bijan Vakili [mailto:[EMAIL PROTECTED] > Subject: RE: Help: Enabling SSL > > Actually, I'm encountering this same problem on Solaris 10 as well. I > actually am indifferent to using JSSE or APR...I just want > SSL enabled! For 6.0, you need the attribute SSLEnabled="true" in your elem

RE: Help: Enabling SSL

2006-12-15 Thread Bijan Vakili
Hi Scott, No I don't see a DLL called tcnative-1.dll. Actually, I'm encountering this same problem on Solaris 10 as well. I actually am indifferent to using JSSE or APR...I just want SSL enabled! Thanks! Bijan Vakili Senior Software Developer Cryptologic Inc. 55 St-Clair W, 3rd floor, Tor

RE: Help: Enabling SSL

2006-12-15 Thread Scott Purcell
Seems like the same thing that was going on with myself the other day on 5.5.20 Tomcat. In Tomcat/bin directory is there a dll called tcnative-1.dll? Here is an email from Charles who helped me: If you used the .exe download for Tomcat, you may have APR installed. Its SSL configuration is rather

Getting the Tomcat Native library to work under Fedora

2006-12-15 Thread Martin Dubuc
I guess most of us have wondered at one point or another what this message means: "INFO: The Apache Tomcat native library which allows optimal performance in production environments was not found on java.library.path" in the catalina.out log. Only recently have I spent time trying to figure out

Help: Enabling SSL

2006-12-15 Thread Bijan Vakili
Hi everyone, I follows the instructions on the Tomcat website for enabling SSL: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html However, if I attempt to connect from the local host as follows: https://localhost:8443 The server just stalls. The log ou

Re: JspServlet classpath init param is ignored

2006-12-15 Thread Werner Loibl
Thx, I filed a bug -> http://issues.apache.org/bugzilla/show_bug.cgi?id=41182 I also adapted my local tomcat source in JspRuntimeContext:335 to always add the classpath from the servlet init param to the classpath provided by the container (the WebappClassloader classpath) just to see whether

Filter with "HTTP Negotiate"/SPNEGO/Kerberos against Active Directory with LDAP

2006-12-15 Thread Morten Mortensen
Regarding "HTTP Negotiate", - I am on the lookout for people interested in SSO from a browser to Tomcat and against a Windows Domain Controller/Active Directory through LDAP with the purpose of creating a stand-alone servlet filter. Configuration on network: 1) Active Directory (Windows Domain

Re: using a dll in a webapp - Fixed!

2006-12-15 Thread Abid Hussain
Hi again, I think I solved the problem. Like I wrote, using System.loadLibrary("win32com.dll"); didn't work, neither did CommDriver commDriver = (CommDriver) Class.forName("com.sun.comm.Win32Driver").newInstance(); commDriver.initialize(); But initializing the driver using Class clazz = this

Re: using a dll in a webapp

2006-12-15 Thread Martin Gainty
2 ways place the dll in jre\bin add folder where win32com.dll is located to LD_LIBRARY_PATH in jvm.cfg? restart M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity

How to update Certificate Revocation List (CRL) without taking down Tomcat Server

2006-12-15 Thread Daniel Yeung
Or is this option supported in Tomcat 5.x or 6.0? Thanks. DY - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tomcat 4.1 Issue - Strange - Fixed

2006-12-15 Thread Bruno Vilardo
Hello All, We resolved the problem. The OS is 64 Bits and the Java version was 32 Bits, so after we installed java 64 Bits. Our Tomcat is not shutting down anymore !!! And it is pretty much stable, it has been running for 2 days now. We will keep monitoring it but we believe the issue is resolved

Re: using a dll in a webapp

2006-12-15 Thread Abid Hussain
Hi again, sorry, I should have said that before. Adding the path without the filename (using String win32com = new File(this.getClass().getClassLoader().getResource("win32com.dll").toURI()).getParent();) also doesn't work. Loading the dll using CommDriver commDriver = (CommDriver) Class.forN

problem: need to build tomcat 5.0.28 from source and missing jars

2006-12-15 Thread Bill Milbratz
Hi, I'd need to build-from-source tomcat-5.0.28. I currently have the following problem: -Some jars do not exist on the net. The tomcat 'net build' script tries to download them, but cannot find them. Currently 'jmx- I had the following problem, but got around it by commenting out the cvs-u

Re: using a dll in a webapp

2006-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Abid, Abid Hussain wrote: > I want to establish a connection to a serial port from my webapp by > using the javax.comm package which uses the win32com.dll (on windows > systems). > > I resolve the path of the dll in my webapp: > String win32com = new

using a dll in a webapp

2006-12-15 Thread Abid Hussain
Hi everybody, I want to establish a connection to a serial port from my webapp by using the javax.comm package which uses the win32com.dll (on windows systems). In most cases, it seems to be the common way to place the dll in the /bin directory. But I want to have all needed libraries in my

Re: How make a Windows shortcut to to start and stop Tomcat servcie on windows

2006-12-15 Thread Werner Loibl
you can start/stop a windows service from the command line with net start "Service Name" net stop "Service Name" create a .bat file each and there are your shortcuts! hth, werner David Smith wrote: The Services section of the computer management mmc is the best suggestion I can offer. You

using a dll in a webapp

2006-12-15 Thread Abid Hussain
Hi everybody, I want to establish a connection to a serial port from my webapp by using the javax.comm package which uses the win32com.dll (on windows systems). In most cases, it seems to be the common way to place the dll in the /bin directory. But I want to have all needed libraries in my

Re: Tomcat localhost server page won't open on XP PC with bitdefender 10

2006-12-15 Thread David Smith
1) What do you get when you attempt to access tomcat at home? 2) Try looking at the tomcat logs to be sure it started normally 3) SysInternals TCPMon (free at www.sysinternals.com) can show if tomcat is listening on the ports you expect. 4) Consult the Bit Defender documentation on how to configu

Re: How make a Windows shortcut to to start and stop Tomcat servcie on windows

2006-12-15 Thread David Smith
The Services section of the computer management mmc is the best suggestion I can offer. You can get to it by right clicking on My Computer and choosing Manage If you really want a shortcut, try this: Click Start -> Run and type mmc. Hit Ok When the Microsoft Management Console starts, c

Tomcat localhost server page won't open on XP PC with bitdefender 10

2006-12-15 Thread Ragnar Moller \(MA/EAF\)
I installed the Tomcat windows package as-is on both my work and home computer. The work computer is Win 2000 The home computer is XP SP2 with an additional Bit defender firewall The local Tomcat page load on my work PC But not on my home pc which is XP with bitdefender 10. It should be a firew

RE: How make a Windows shortcut to to start and stop Tomcat servcie on windows

2006-12-15 Thread Ragnar Moller \(MA/EAF\)
Hi Mark, You mean with that distro I avoid the use of windows services altogether ? I was more looking for a shortcut that would act on the service (I suppose I need to ask in a windows forum for that). Ragnar -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: vendr

RE: Feature request: Server level character encoding instead adding afilter for each web application.

2006-12-15 Thread LiuYan 刘研
Thanks a lot Chuck, the global web.xml is very good stuff. I misunderstood the function of the global web.xml before, I thought it was only applied when a web application does not have a web.xml before. I read the introduction message in the web.xml file after i saw your hint. now I put the SetCh

Re: Character encoding

2006-12-15 Thread Mester József
Hello Mark >This is unlikely to help you and may be read-only on your JVM. >You don't say what doesn't work but generally the following is required: >set URIEncoding="UTF-8" on the connector >set the the correct response encoding on every response (you can do >this per page or use a filter to do

Re: JspServlet classpath init param is ignored

2006-12-15 Thread Mark Thomas
werner loibl wrote: > Mark, > > thanks for looking into this! I changed the classpath param according to > your suggestion but still it's not working. > > Are you sure the source considers the classpath property in a typical > web setup? In JspRuntimeContext on line 335 the code says: Having loo

RE: JspServlet classpath init param is ignored

2006-12-15 Thread werner loibl
Mark, thanks for looking into this! I changed the classpath param according to your suggestion but still it's not working. Are you sure the source considers the classpath property in a typical web setup? In JspRuntimeContext on line 335 the code says: String cp = (String) context.getAttribute(Co