Apparent problem when adding commons jars to war

2005-10-17 Thread Paul Mahoney
This is very strange. When I add commons jars, e.g. commons-bean-utlis.jar, to my webapp lib directory, the webapp will no longer deploy to tomcat 5.5.12. Take the commons jars out (and restart tomcat) then the webapp will deploy. It won't run of course, because of the missing classes... I've been

Re: How to PreCompile JSPs

2005-10-17 Thread Santosh Asbe
Hi, i have tried to use the code for pre compilation of JSP from the site < http://www.rgagnon.com/javadetails/java-0414.html>. In my Application in the JSP folder , there around 6 sub folders and around 25-30 JSP is each of them. When i run this JSP only few JSP's are complied and then an error

Pre compilation of JSP

2005-10-17 Thread Santosh Asbe
Hi, i have tried to use the code for pre compilation of JSP from the site < http://www.rgagnon.com/javadetails/java-0414.html>. In my Application in the JSP folder , there around 6 sub folders and around 25-30 JSP is each of them. When i run this JSP only few JSP's are complied and then an error

Mail unsubscribe

2005-10-17 Thread Mahesh S Kudva
unsubscribe --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

classloader during tomcat startup

2005-10-17 Thread Santosh Asbe
Hi all, I have couple of questions regarding tomcat startup 1)when the tomcat is started , does it load all the jar file from its lib and create a object of all the classes? 2) if there is a static block in one of the classes , when will it execute..during startup or when first call is made Sant

Re: Tomcat upgrade

2005-10-17 Thread Santosh Asbe
if anyone has done it earlier its better to reuse..i am already working on the same. But is it recommended to upgrade to higher version of tomcat? my current tomcat is curretly stable. Just wanted to get ageneral view or opinion of all the experts in this group Santosh On 10/17/05, George Sexton

Server.xml

2005-10-17 Thread Claudio Veas
Hello group thanks all for all the support you gave me in the last mail.  I have one question. I started to read a book about JSP and TOMCAT and at the beginning it says that I should create a context so the book has a code that I have to write in the server.XML and I have to restart the serv

One login for multiple webapps

2005-10-17 Thread Elaine Sit
Is it possible to have one login for multiple web apps within the same tomcat webapp? That is, I don't need to relogin to web app B if the user have already logged in web app A when the user have the access right in both web app. Thanks.

hacking the tomcat DefaultServlet

2005-10-17 Thread Maurice Yarrow
Hello tomcat users I have hesitated a while before sending up this question, for the presumably obvious reason that hacking the tomcat DefaultServlet is an act of questionable judgement. But there are some good reasons why I experimented with this. In my attempt to get more control over visibi

One package for all Sub domains

2005-10-17 Thread chinnimb-rest
Hi, I am running several domains from my tomcat. I want to add some Custom made packages to all my clients on that server. This package has cutom made CMS. I don't want to expose the code to all my clients by adding a sub directory. How can I do that? Thanks Aditya

SSL ErrorOCSP error

2005-10-17 Thread James Rome
Alas, No extra debugging information appeared for me with the -Djavax.net.debug=ssl:handshake. I still get WARN http-8443-Processor25 gov.sensornet.security.X509Realm - Check OCSP Credentials: CertPathValidatorException: java.security.cert.CertPathValidatorException: javax.net.ssl.SSLException:

Re: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-17 Thread Brad O'Hearne
Mark, Thanks a ton for the reply. I almost want to reply with "you're kidding, right?", as I am kind of speechless that using JAAS (which I am), the Java platform's standard authentication/authorization API, doesn't allow one to use a custom principal. It seems like a major hole in Tomcat sec

Re: IIS security with tomcat

2005-10-17 Thread Jess Holle
That does not sound particularly doable to me. I'd assume that you'd want to look to the latest Tomcat 5.5.x for the best static file handling you can get out of it and essentially take IIS out of the picture. -- Jess Holle Steve Gaunt wrote: HI That;'s what i'm trying to do.. But the us

Tomcat 5.5.9 reject client certificate

2005-10-17 Thread Sara Hugh
Hi all, I have been struggling for two days for trying to find a solution for the problem that my client certificate got rejected by tomcat server. I used openssl to generate the self-signed ca, and tomcat server's and client's, then signed and imported to the server's keystore, and signed th

RE: Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-17 Thread Mark Benussi
If you're implementing JAAS... no. No idea about the rest. Its not supported in Tomcat (But should be). Stick it in the session, and then you have to override the Tomcat HttpRequestProcessor (isUserInRole()) to get your Principal out of the session and call the validation. -Original Message---

Is it even possible to retrieve a custom user principal? (Was: Tomcat user principal)

2005-10-17 Thread Brad O'Hearne
Hello, As this has become a bit of a roadblock in implementing security, I'd like to ask anyone out there two things: 1) Is it even possible to use a custom user princpal within a realm that is retrievable within a servlet (via presumably the request or otherwise) in Tomcat? 2) If the answ

RE: IIS security with tomcat

2005-10-17 Thread Steve Gaunt
Hi Charles, The version of tomcat is 5, the 1 inside jboss 4,01. The problems is after about 10-15 hours of heavy use, the web app with the document root stops fails. All AJP connections get used up and are in the service mode. Even if I do a localhost within the browser, which will use th

RE: IIS security with tomcat

2005-10-17 Thread Caldarale, Charles R
> From: Steve Gaunt [mailto:[EMAIL PROTECTED] > Subject: RE: IIS security with tomcat > > I'm not sure how to do this with the web server, surely there > must be a standard way of achieving this. I've searched > google but unable to find information about this. Perhaps you should consider goi

Re: Can the manager app drop sessions on a start?

2005-10-17 Thread Wendy Smoak
From: "Greg Vilardi" <[EMAIL PROTECTED]> I'm running Tomcat 5.0.28 on Linux, for a development platform. ... If the session serialization hypothesis is correct, I'd like to be able to have the ability to tell manager to ignore these sessions and just start the application. Take a look at Pe

Odd problem with Restart Persistence related to DBCP datasource

2005-10-17 Thread Stanley Bradbury
Has anyone else had problems starting applications that use a DBCP connection pool datasource related to Tomcat's default restart persistence behavior? I set up a global JNDI datasource in Tomcat 5.5.12 to be used by the iBATIS JPetStore demo application. I found that every second time I star

Can the manager app drop sessions on a start?

2005-10-17 Thread Greg Vilardi
I'm running Tomcat 5.0.28 on Linux, for a development platform. After updating an application, Tomcat (or possibly the manager app) can't start the application if it has sessions pending. One of my co-workers thinks that this is a session serialization issue, in that our application keeps lots o

Re: Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Brian Bonner
Thanks. It turns out the problem was related to the userPattern: I had: |((cn={0},ou=Users,dc=thf,dc=net)(cn={0},ou=THFUsers,dc=thf,dc=net)) I had one two many sets of parentheses. I needed: |(cn={0},ou=Users,dc=thf,dc=net)(cn={0},ou=THFUsers,dc=thf,dc=net) and it worked fine. Brian On 10/1

RE: IIS security with tomcat

2005-10-17 Thread Steve Gaunt
HI That;'s what i'm trying to do.. But the user credentials are held within a database. Ideally, I want to forward to tomcat, do the login for the user, and somehow tell IIS all static conent from the session(or user) is allowed. Equally, I dont want the users to bookmark the pdf/html files

Re: IIS security with tomcat

2005-10-17 Thread Jess Holle
Sounds like IIS should be doing your authentication... Steve Gaunt wrote: Hi I have IIS web server servicing static pdf/html content. However, I only want to allow access to these if they have been authenticated by tomcat(using jk2 connector on the AJP connections). I dont want to move the

IIS security with tomcat

2005-10-17 Thread Steve Gaunt
Hi I have IIS web server servicing static pdf/html content. However, I only want to allow access to these if they have been authenticated by tomcat(using jk2 connector on the AJP connections). I dont want to move these static pdf/htmls' onto tomcat(as the folder(s) size at the root is over

Re: My first Aproach

2005-10-17 Thread digby
I would download and install Netbeans 4.1 (http://www.netbeans.org) and create a web project, which will create all the required files and folders for you to start a new project that you can deploy to Tomcat. It will even run your application in its own version of Tomcat so you can debug it and

Re: Tomcat as proxy?

2005-10-17 Thread Hassan Schroeder
Tim Funk wrote: > There is a reverse proxy implemented as a webapp / > http://j2ep.sourceforge.net/ Thanks, didn't see that one (what search string did you use?). Unfortunately it doesn't look like it's going to do it, at least out of the box -- works by URL-rewriting, but only with relative lin

RE: Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Robyne Vaughn
In fact, it sounds like you are connecting to the ADS, and now you need to bind. Robyne Vaughn _ -Original Message- From: Jess Holle [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 9:45 AM To: Tomcat Users List Subject: Re: Authenticating with LDAP against multiple

RE: Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Robyne Vaughn
My ads is on port 389 Robyne K. Vaughn _ -Original Message- From: Jess Holle [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 9:45 AM To: Tomcat Users List Subject: Re: Authenticating with LDAP against multiple organizational units My guess is that you need to direct

Re: Tomcat user principal

2005-10-17 Thread Brad O'Hearne
Response below: Wendy Smoak wrote: From: "Brad O'Hearne" <[EMAIL PROTECTED]> I would have expected that designation of the user class name would have resulted in my being returned the class I specified for the user class name from the requestion.getUserPrincpal() method, but it doesn't. W

Re: Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Jess Holle
My guess is that you need to direct the LDAP URL at the ADS "global catalog", which oddly enough is not on port 389... Brian Bonner wrote: We're having a problem authenticating with Tomcat 5.5.9 against multiple organizational units. Our LDAP server is Active Directory. Here's our current se

Fwd: Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Brian Bonner
I forgot to add. If I use only a single organizational unit and specify this in the user base, it works OK. i.e. ldap://ldapdc.thf.net:389"; userBase="ou=THFUsers,dc=thf,dc=net" userSearch="(cn={0})" userRoleName="memberOf" roleBase="cn=Users,dc=thf,dc=net"

RE: Hijacking the coyote connector

2005-10-17 Thread Dobbins, Michael G
Thanks, Charles and Bill. This has been most helpful. I will be looking and both alternatives. mike -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Saturday, October 15, 2005 5:56 PM To: tomcat-user@jakarta.apache.org Subject: Re: Hijacking the co

Authenticating with LDAP against multiple organizational units

2005-10-17 Thread Brian Bonner
We're having a problem authenticating with Tomcat 5.5.9 against multiple organizational units. Our LDAP server is Active Directory. Here's our current setup: ldap://ldapdc.thf.net:389"; userBase="dc=thf,dc=net" userPattern="|((cn={0},ou=Users,dc=thf,dc=net)(cn={0},ou=THFUsers,dc

RE: SSL Error : Please HELP

2005-10-17 Thread Longson, Robert
You want to put this in the Java tab under Java Options. Best regards Robert. -Original Message- From: James Rome [mailto:[EMAIL PROTECTED] Sent: 17 October 2005 16:00 To: tomcat-user@jakarta.apache.org Subject: SSL Error : Please HELP I tried putting start -Djavax.net.debug=ssl:hands

RE: can JNDIRealm connectionPassword be encrypted?

2005-10-17 Thread Robyne Vaughn
I have managed to get my jndi realm to work in tomcat. I'm not sure I really understand it well, but basically it goes like this: Tomcat connects to AD with its own password and userid because AD will not allow an anonymous connection. Once tomcat is connected, then you bind as the user with

RE: Tomcat upgrade

2005-10-17 Thread George Sexton
You mean you would like someone here to summarize the change logs of 2 major release trees for you so you don't have to do any kind of work on your own? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Santosh Asbe [mailto:[EMA

RE: can JNDIRealm connectionPassword be encrypted?

2005-10-17 Thread Klotz Jr, Dennis
David, Either the documentation is wrong or I am simply being daft, but in one part of the doc (very beginning of the section), it describes the very feature you are talking about where the user name and password at login time, is in fact, used to connect with the AD. I am assuming in that conf

RE: NoClassDefFoundError on Tomcat startup

2005-10-17 Thread Jason Terk
> Hello Jason. It appears that the .jar files in question are not available > to the loader. Is CATALINA_HOME/common/lib defined as a classpath within > Eclipse? I'm not launching Tomcat from Eclipse, just attaching Eclipse to the process to debug. I thought that anything in CATALINA_HOME/common/l

SSL Error : Please HELP

2005-10-17 Thread James Rome
I tried putting start -Djavax.net.debug=ssl:handshake in the Windows 5.5 GUI startup tab under arguments and Tomcat will not start How does one get this to work? Jim - You can pass the option '-Djavax.net.debug=ssl:handshake' to the Tomcat startup, (either set JAVA_OPTS to it if you

Re: NoClassDefFoundError on Tomcat startup

2005-10-17 Thread Asad Habib
Hello Jason. It appears that the .jar files in question are not available to the loader. Is CATALINA_HOME/common/lib defined as a classpath within Eclipse? - Asad On Mon, 17 Oct 2005, Jason Terk wrote: Hi, I'm trying to write an email log handler to use with tomcat 4.1 but am getting a NoCl

Re: where is "catalina.out" defined and enabled?

2005-10-17 Thread Partheeban Boopathy
Hi Andy The document you specifoed is for 5.5 Even i want to find the way how to inform to dump in catalina.out in 5.0.xof tomcat. I think 5.0 and 5.5 had some major changes in logging mechanism. Parthi On 10/15/05, andy gordon <[EMAIL PROTECTED]> wrote: > > Philip, > > Great Question! Go look

NoClassDefFoundError on Tomcat startup

2005-10-17 Thread Jason Terk
Hi, I’m trying to write an email log handler to use with tomcat 4.1 but am getting a NoClassDefFoundError exception as soon as Tomcat attempts to load the log handler class. mail.jar and activation.jar are both in CATALINA_HOME/common/lib and (from debugging through Eclipse) they appear to

Re: OutOfMemory Exception

2005-10-17 Thread Alain Gaeremynck
I think the out of memory is due to the fact that there is no way to unload a class loader from memory. When you restart a context it creates onother class loader for the context and thus after a while pouf no more memory.. I'm pretty sure i saw that somewhere t.n.a. wrote: David Delb

Re: OutOfMemory Exception

2005-10-17 Thread t.n.a.
David Delbecq wrote: If the problem is related to hibernate libs, better check that with them. As I said, I make tapestry/cayenne-based apps, but I don't know if the problem might be related to database connection handling/pooling or something like that stopping the VM from freeing memory

Re: setting the domain of the jsession COOKIE

2005-10-17 Thread Alain Gaeremynck
I read somewhere in the release notes of tomacat 5.5 that itès possible to do that. You can always do it programaticaly by reading the cookie and re - seting it Iratxe Etxeberria Sainz-Ezquerra wrote: Thanks very much!! :-( Iratxe - Iratxe

Re: setting the domain of the jsession COOKIE

2005-10-17 Thread Iratxe Etxeberria Sainz-Ezquerra
Thanks very much!! :-( Iratxe - Iratxe Etxebarria Sainz-Ezkerra Soporte Web External Global Services Tfno: 946 584 773 / 628 717 375 >>> [EMAIL PROTECTED] 10/17 1:42 >>> There is no way to do that. -Tim Iratxe Etxeberria Sainz-Ezquerra wro

Re: setting the domain of the jsession COOKIE

2005-10-17 Thread Enrique Rodriguez
I'm not very sure, but maybe URL rewriting could help you. By this way your aplication will run without cookies but... you have to change all your links and forms :-( Regards, Enrique. El lun, 17-10-2005 a las 07:42 -0400, Tim Funk escribió: > There is no way to do that. > > -Tim > > Iratxe

Re: My first Aproach

2005-10-17 Thread Ritchie Gillam
I would recommend that you look at the newer Technology JSF (Java Server Faces) which sits on top of JSP. This is easier to use and will probably be the future. Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167

Re: OutOfMemory Exception

2005-10-17 Thread David Delbecq
If the problem is related to hibernate libs, better check that with them. t.n.a. a écrit : > Enrique Rodriguez wrote: > >> This is what Peter said to me. I set permgen to 256 MB and i still not >> have any OutOfMemory exception. >> >> Regards, Enrique. >> >> > I've added > JAVA_OPTS="$JAVA_OPTS

Re: OutOfMemory Exception

2005-10-17 Thread t.n.a.
Enrique Rodriguez wrote: This is what Peter said to me. I set permgen to 256 MB and i still not have any OutOfMemory exception. Regards, Enrique. I've added JAVA_OPTS="$JAVA_OPTS -server -XX:MaxPermSize=256m" to my catalina.sh on the devel. server, hope I can get the root on the production

Re: setting the domain of the jsession COOKIE

2005-10-17 Thread Tim Funk
There is no way to do that. -Tim Iratxe Etxeberria Sainz-Ezquerra wrote: Hello! I am using tomcat 5.0.28, and I am searching for a way to set the domain of the session cookie. I need to set the cookie domain to .mydomain.com and not to www.mydomain.com. I have been looking for it in many

Re: Tomcat as proxy?

2005-10-17 Thread Tim Funk
There is a reverse proxy implemented as a webapp which can be used as its own webapp or easily embedded inyour own webapp. (Courtesy of the Google SoC) http://j2ep.sourceforge.net/ -Tim Hassan Schroeder wrote: Before I go reinventing a wheel -- has anyone written a passthrough proxy for Tomca

Re: OutOfMemory Exception

2005-10-17 Thread David Delbecq
Most probably you webapp is not freeing some ressources when unloaded. This is always a tricky problem to solve. The easiest way it to use some profiling tool, then touch you web.xml until you get a outofmemory. When this happens use to profiling tool to track where memory is lost. That is what has

Re: OutOfMemory Exception

2005-10-17 Thread Enrique Rodriguez
This is what Peter said to me. I set permgen to 256 MB and i still not have any OutOfMemory exception. Regards, Enrique. El mar, 11-10-2005 a las 17:11 +0100, Peter Crowther escribió: > > From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] > > What i don't understand is that I "sometimes" get > Ou

Re: JDBCRealm logout and welcome page

2005-10-17 Thread David Delbecq
Hi, (undecipherable name :)) There are 2 kinds of web pages in a webapp: those with a security-constraint (see security-constraint part of web.xml description on the net), and those who have no security-constraints. If you want your welcome accessible without authentification, then it must have no

OutOfMemory Exception

2005-10-17 Thread t.n.a.
Hi everyone, on a 5.5.x(7+) tomcat production server I reload a web app with a touch web.xml command after I upload new versions of classes and after several such reloads, none of the tomcat hosted apps are available and I get the error in the subject line. Any ideas what the problem may be?

Re: can JNDIRealm connectionPassword be encrypted?

2005-10-17 Thread David Delbecq
Klotz Jr, Dennis a écrit : >David, > >Thanks for the reply. > >Maybe this will help. The user name and password are stored as plain text >within the server.xml file. That is how it is today. The documentation >recommends that AD be setup with a very limited Read Only user account that >has pri

Re: Version?

2005-10-17 Thread Bruno Georges
Swanthe If you want to access this information at runtime, I suggest you have a look at the following class: org.apache.catalina.cluster.ClusterMemberInfo The method you could use is: public String getServerVersion() { return(Globals.SERVER_INFO); } Hope this helps. Best Regards Bruno

www user - freebsd chown permissions

2005-10-17 Thread philip brown
Hello, I am running FreeBSD - Tomcat 5.0.3. I am running Tomcat as user "www". I am administering freeBSD-Tomcat as "phil" which is in "www" group. I see that most, if not all file permissions are: rwxr--r-- www www ie. as "phil" I can only read these files as I am in "www" group. I do not

RE: Version?

2005-10-17 Thread Kesavan, Giridharan \(Cognizant\)
--- Begin Message --- you can find that out by using sh version.sh file inside the tomcats bin directory Giridharan.K From: Swanthe Lindgren [mailto:[EMAIL PROTECTED] Sent: Mon 10/17/2005 1:24 PM To: users@tomcat.apache.org Subject: Version? How do I find ou

RE: Version?

2005-10-17 Thread Antonio Albendiz
Put in a brownser: http://127.0.0.1:8080 and then it appears the main page that indicates you which version is running on your computer -Mensaje original- De: Swanthe Lindgren [mailto:[EMAIL PROTECTED] Enviado el: lunes, 17 de octubre de 2005 9:55 Para: users@tomcat.apache.org Asunto: Ve

Version?

2005-10-17 Thread Swanthe Lindgren
How do I find out which version of Tomcat I'm running? //Swanthe

setting the domain of the jsession COOKIE

2005-10-17 Thread Iratxe Etxeberria Sainz-Ezquerra
Hello! I am using tomcat 5.0.28, and I am searching for a way to set the domain of the session cookie. I need to set the cookie domain to .mydomain.com and not to www.mydomain.com. I have been looking for it in many sites and books, but I don t find the way to do it. Can anyone help me? Th