Enable SSL stack trace within Apache Tomcat service

2005-08-05 Thread tam wei
Hi all, I am trying to log the handshaking process of SSL. I have added in the Java debug options (-Djavax.net.debug=all) in the Apache Tomcat Service configuration window; however i can't see any SSL handshaking msg in the log files. I am running Tomcat as services. My tomcat version is

load on startup

2005-08-05 Thread Nicolas Schwartz
Hi all, I need an object to be instanciated on the startup of my tomcat. So I did a servlet the creates an instance of it and put my servlet in the web.xml of a webapp with the loadOnStartup parameter. The constructor of my object is called twice so there must be 2 instances of it ... which is

RE: anonymising Tomcat

2005-08-05 Thread Peter Crowther
From: Paul Singleton [mailto:[EMAIL PROTECTED] Is it possible to configure Tomcat (5.5.9) so that a moderately able hacker couldn't figure out what is serving up our web apps? It's possible to add the 'server' attribute to the connector definition for the HTTP connector; server=BogoMAX v0.1

frames and mod_jk on Windows

2005-08-05 Thread Frédéric Viollet
Hi all, Is anyone aware of a problem with using frames and mod_jk on windows? I'm using Apache 1.3.33 - mod_jk 1.2.14 and I've got the folowing problem: I'm trying to access an HTML page with frames in it. Only the first frame is correctly displayed; the other says Internal Server Error My

RE: load on startup

2005-08-05 Thread Marius Hanganu
Hi, You could have two instances of your object because of an improper mapping in web.xml. For example if in your servlet mapping the url-pattern for your servlet is /*, any access to your app will access this servlet thus resulting in two instantiations. You should initialize your object in the

RE: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-05 Thread ajith.skumar
Can any one help me out in this issue? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 11:27 AM To: tomcat-user@jakarta.apache.org Subject: RE: How to turn off perssitent sessions in Tomcat 4.1? I am waiting for a good response. Can

Http Keep-Alive

2005-08-05 Thread Jamie Spurr
Does anyone know the property in the server.xml file on Tomcat for switching off http keep-alives? I'm using version 3.2.1. I can't find a listing for this deprecated version - Thanks, Jamie. **

Re: load on startup

2005-08-05 Thread Jon Wingfield
Use a ServletContextListener, they were added to the Servlet 2.3 spec for this very purpose. You set up your object in the contextInitialized(...) method of your implementation and tear it down in contextDestroyed(...). For it to be used you need to add it to your web.xml. The container is

Directory Listing using JSP

2005-08-05 Thread Rakesh Kumar
Dear Users, I am using Tomcat 5.0.28. For a web application called testweb, I have made DirectoryListing true so that I can view the directory contents of this webapp. I am able to see the Directory Listing for testweb. My qustion is : how to achieve the same in JSP ? Is there any method to do

Re: frames and mod_jk on Windows

2005-08-05 Thread Frédéric Viollet
Frédéric Viollet a écrit : Hi all, Is anyone aware of a problem with using frames and mod_jk on windows? I'm using Apache 1.3.33 - mod_jk 1.2.14 and I've got the folowing problem: I'm trying to access an HTML page with frames in it. Only the first frame is correctly displayed; the other

Re: anonymising Tomcat

2005-08-05 Thread Paul Singleton
Peter Crowther wrote: From: Paul Singleton [mailto:[EMAIL PROTECTED] Is it possible to configure Tomcat (5.5.9) so that a moderately able hacker couldn't figure out what is serving up our web apps? It's possible to add the 'server' attribute to the connector definition for the HTTP

Help: IndexOutOfBoundsException using JMX management

2005-08-05 Thread Tom
Hi, I want to monitore and manage my tomcat instance using JMX. I use tomcat-5.4.4 and a JDK-1.5 under suse linux. I do the actions specified in the official documentation (Monitoning and managing tomcat). ~/bin/startup.sd export CATALINA_OPTS=-Dcom.sun.management.jmxremote \

Re: How to turn off perssitent sessions in Tomcat 4.1?

2005-08-05 Thread Christoph Kutzinski
Only put objects into the session that are serializable. This is a best practice anyway. Tomcat complains about CoyoteRequestFacade not being serializable because it isn't. If you need data from the request (parameter, attributes etc.) in your session then extract them and put them alone into

Tomcat 5.X Apache 2.X

2005-08-05 Thread Rodrigo Andrade Pádua
Anyone know where I can get an howto to configure Tomcat 5.X and Apache 2.X using mod_jk on Debian. Thanks in advance, -- Rodrigo Andrade Pádua M.I. Montreal Informática Ltda (31) 3280-7649 - To unsubscribe, e-mail: [EMAIL

Jakarta - taglibs

2005-08-05 Thread Kane Wilson
hi , Can we use jakarta Tag Libs to connecting to a database via JNDI and select an images from BLOB data field ? and aslo can we use that tags to having Links for each images ? That Links also stored in the database ? Can we display images randomly with the appropriate links ? if it is

Re: anonymising Tomcat

2005-08-05 Thread David Smith
Servlet spec 2.4 describes what you're looking for in section SRV 9.9.2 with more info in SRV.13.4 on how to configure it. Essentially you're looking for this in web.xml: error-page error-code404/error-code location/some/error/page.jsp/location /error-page There's also a version for dealing

Tomcat 5.X Apache 2.X

2005-08-05 Thread Rodrigo Andrade Pádua
Anyone know where I can get an howto to configure Tomcat 5.X and Apache 2.X using mod_jk on Debian. Thanks in advance, -- Rodrigo Andrade Pádua M.I. Montreal Informática Ltda (31) 3280-7649 - To unsubscribe, e-mail: [EMAIL

Tomcat Install from Source File.zip is bad

2005-08-05 Thread Mark Leone
I'm trying to install Tomcat 5.5.9 from the source distribution on Win XP. The build fails because the following file can't be expanded \usr\share\java\file.zip When I try to unzip it manually I get an error that it's not a valid archive file. Anyone know where I can get a proper copy of

Re: Tomcat Install from Source File.zip is bad

2005-08-05 Thread Mark Leone
More info on this: The ant command that downloads the file that can't be unzipped is antcall target=downloadzip param name=sourcefile value=${junit.loc}/ param name=destfile value=${junit.jar}/ param name=destdir value=${base.path}/ /antcall There's no value defined for

RE: Tomcat Install from Source File.zip is bad

2005-08-05 Thread Spors, Jeffrey R
I believe the problem is that the mirror the ant script defaults to does not have all the correct files for some reason. This is just my assumption. I solved this problem by changing the Sourceforge location in jakarta-tomcat-5.5.9-src/Jakarta-tomcat-5/build.properties.default Look for the

Re: Tomcat Install from Source File.zip is bad

2005-08-05 Thread Mark Leone
Okay, I faked it out by getting my own copy of JUnit and putting it in the \usr\java\share directory. But now it's choking on jaxen, saying the file is not in gzip format. I downloaded a copy of jaxen and placed it in teh directory, but this time it didn't work. Am I missing something here,

Re: Tomcat Install from Source File.zip is bad

2005-08-05 Thread Mark Leone
Thanks, that solved it. -Mark Spors, Jeffrey R wrote: I believe the problem is that the mirror the ant script defaults to does not have all the correct files for some reason. This is just my assumption. I solved this problem by changing the Sourceforge location in

Major fopaw

2005-08-05 Thread Jef Sullivan
I have made a major mistake and need some help from the group. I have my system setup to run Jboss and Tomcat applications simultaneously. I am having problems with one of my Tomcat programs and need to access the manager section of Tomcat. Unfortunately, I cannot remember my username and

RE: Major fopaw

2005-08-05 Thread Raghupathy,Gurumoorthy
Go to tomcat\conf\tomcat-users.xml -Original Message- From: Jef Sullivan [mailto:[EMAIL PROTECTED] Sent: 05 August 2005 17:10 To: 'Tomcat Users List' Subject: Major fopaw I have made a major mistake and need some help from the group. I have my system setup to run Jboss and Tomcat

RE: Major fopaw

2005-08-05 Thread George Sexton
You mean Faux pas http://en.wikipedia.org/wiki/Faux_pas George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Jef Sullivan [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 10:10 AM To: 'Tomcat Users List' Subject: Major

Re: Major fopaw

2005-08-05 Thread Dakota Jack
I cannot see how you set it up and are in this dilemma. That sounds odd. How'd that happen? On 8/5/05, Jef Sullivan [EMAIL PROTECTED] wrote: I have made a major mistake and need some help from the group. I have my system setup to run Jboss and Tomcat applications simultaneously. I am having

OutOfMemoryError

2005-08-05 Thread Steve Sheerin
From: Steve Sheerin Sent: Thursday, August 04, 2005 2:29 PM To: '[EMAIL PROTECTED]' Subject: OutOfMemoryError I have a new Tomcat based server that is coming up with this error when communicating with the server. Most of the time it works great, but every now and then we get this

loading resources from the servlet.

2005-08-05 Thread Maciej Stoszko
I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass().getClassLoader(); InputStream stream = cl.getResourceAsStream(/data/x.properties); It works just fine from my JUnit test for X. Now, I would like this class to be

Re: loading resources from the servlet.

2005-08-05 Thread Jon Wingfield
http://wiki.apache.org/jakarta-tomcat/HowTo#head-45c3314139cb900ddd43dde2ff671532e6e844bc HTH, Jon Maciej Stoszko wrote: I have a class X which needs to load a .properties file. Here is a code snippet: ClassLoader cl = this.getClass().getClassLoader(); InputStream stream =

Re: OutOfMemoryError

2005-08-05 Thread Patrick Thomas
Hi Steve, We're probably going to need a little more context in order to give you any help. Approximately how often does this happen? Have you been able to isolate a particular page or servlet that causes it consistently? What shows up in the log file/console window when it happens? Does it kill

RE: Major fopaw

2005-08-05 Thread Jef Sullivan
I have been working in Jboss for the most part and simply forgot. The username/password that I wrote down is not correct. As it turns out it isn't even in the tomcat-users.xml file That I was referred to by Mr. Raghupathy. That has resolved my problem by the way, thanks. Jef Sullivan

RE: Major fopaw

2005-08-05 Thread Jef Sullivan
KEWL!!! (I mean cool) Thanks for the spelling lesson. :-) Jef Sullivan Programmer IKANO Communications, Inc. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Friday, August 05, 2005 10:32 AM To: 'Tomcat Users List' Subject: RE: Major fopaw You mean

RE: loading resources from the servlet.

2005-08-05 Thread Maciej Stoszko
Thx Jon, I had already looked at the wiki entry you graciously pointed me to. I need a bit more. The class X, I mentioned, is already packaged and I am looking for a way of using it without changing it (unless there is no other way.) It makes the assumption that the ../data folder is in the

RE: Using more than one SSL cert in keystore?

2005-08-05 Thread Jef Sullivan
Can keytool be used to make a wildcard SSL Key for similar URLs? I know it can be done using apache. Jef Sullivan Programmer IKANO Communications, Inc. -Original Message- From: Paul Singleton [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 8:21 AM To: Tomcat Users

Re: Which Oracle JDBC Drive for JDK 1.5?

2005-08-05 Thread Jeff Duska
Like Paul said, it shouldn't be problem unless you're using specific Oracle 10 features or if you have synonyms or views linked to older Oracle databases. I've had a few synonyms that were linked to Oracle 7 and 8 tables that required using an older driver. If you run into problems, Oracle may

Tomcat application won't start with MySQL Connection Pooling

2005-08-05 Thread James Adams
I have tried adding connection pooling for a MySQL database in Tomcat 5.5 by following the steps described [URL=http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html]here[/URL]. Now when I start Tomcat my application fails to load. The only message I can find in

RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-05 Thread Caldarale, Charles R
From: James Adams [mailto:[EMAIL PROTECTED] Subject: Tomcat application won't start with MySQL Connection Pooling I have tried adding connection pooling for a MySQL database in Tomcat 5.5 by following the steps described [URL=http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-data

RE: Tomcat application won't start with MySQL Connection Pooling

2005-08-05 Thread James Adams
I'm curious: why are you using the documentation for an older level to configure the current version? Things have changed in this area (among others) between 5.0 and 5.5. You bring up a very good point, thanks for spotting that for me. I have now created a context.xml according to the

Logon with SSL

2005-08-05 Thread Konrad Billewicz
Hello, I would like to make a login process SLL protecred. I am using a Tomcat authentication with FORM method. I know how to protect my service using security-constraint but I have no idea how to connect it with Tomcat build-in login bacause it is not mapped in security-constraint's. I wish

Re: load on startup

2005-08-05 Thread Behrang Saeedzadeh
You can also use the Singleton pattern, so no matter what happens, you'll only have a single instance of your object. - Behi On 8/5/05, Jon Wingfield [EMAIL PROTECTED] wrote: Use a ServletContextListener, they were added to the Servlet 2.3 spec for this very purpose. You set up your object in

Re: Http Keep-Alive

2005-08-05 Thread Bill Barker
As I recall, TC 3.2.x only has a HTTP/1.0 Connector. In particular, it never respects HTTP keep-alives. Jamie Spurr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone know the property in the server.xml file on Tomcat for switching off http keep-alives? I'm using version

Re: load on startup

2005-08-05 Thread Ming Han
You can use Singleton pattern, but care must be taken. For example if ( singleton == null ) { singleton = new SingletonObj(); } There might be a case where few thread running concurrently on the null checking, then multiple singleton object will be created more than one.