Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread org
Hi John, Ok, I'm going to try show you how I think about this stuff... and I'm often wrong ;) Dont use a redirect... it goes back to the browser and its not cool. Firstly make a servlet and have a look at the CONTEXT.XML file under META-INF Change it to.. ?xml version=1.0

Re: Tomcat: Writing Access-Log to Database-Table?

2007-03-13 Thread Thomas Brudermann
Thanks Peter, that works fine. Best regards, Thomas P.S. for the Archive: The tutorial can be found at http://java.sun.com/products/servlet/Filters.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,

Re: How to develop filter for tomcat ?

2007-03-13 Thread Thomas Brudermann
Hello, you can find a tutorial at http://java.sun.com/products/servlet/Filters.html Best regards, Thomas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

AW: AW: AW: Cannot run JVM in server mode with JSVC

2007-03-13 Thread Peter Neu
Sorry, couldn't get back to this as I had a week off. I set jsvc to debug mode. The problem was: the search path for jvm.cfg was here : .../jdk1.5.0_06/jre/lib/jvm.cfg while the actual file resided here: .../jdk1.5.0_06/jre/lib/i386/jvm.cfg. What I did I just copied the jvm.cfg to the search

RE: Multiple instances problem...

2007-03-13 Thread Peter Björkman
Thanks Christopher, works like a charm! Regards Peter Peter, Peter Björkman wrote: Hi! I'm setting up an environment where I need a lot of differens web containers running, and part of that is setting up tomcat5.0 to run multiple instances. I tried to find a startup/stop

RE: Same version of Tomcat

2007-03-13 Thread p.logaraman
Hi All, I need to clarify a doubt which I have come across.. Can we have two instances of the same version (for eg. Tomcat 4.1.24) running on the same server in parallel. If there is a possibility, pls do let me know what are the ports that need to be changed on the server.xml.

Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello, Please, could you recommend to me some tutorial/howto for chrooting Tomcat? Some special points to take into account? I suppose Tomcat version shouldn't mind but anyway...: [EMAIL PROTECTED]:/usr/local/obs/tomcat/bin# ./catalina.sh version Using CATALINA_BASE: /usr/local/obs/tomcat

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/03/2007, at 11:22 AM, Roman Medina-Heigl Hernandez wrote: Hello, Server version: Apache Tomcat/5.5.17 Server number: 5.5.17.0 OS Version: 2.4.34-grsec-rslabs-k7 JVM Version:1.4.2_10-b03 PS: A 2nd issue (not related to chroot)

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread David Delbecq
Hi, it's, as far as i know, impossible to chroot tomcat after startup (unless some JNI tools to do it exist am not aware about) So, like any other application you would chroot before linking, you need to ensure your chrooted environment contains all libraries needed by the JVM (don't ask me for

Re: Cannot start tomcat5 service with jrockit

2007-03-13 Thread Igor Shevchenko
Why don't u simply try/attempt to get version 6.x of Tomcat by now??? The answer is very simple: customer uses this version of Tomcat and wants no upgrade. Best regards, --- Igor Shevchenko Mr. Steve Burrus [EMAIL PROTECTED] wrote on 13.03.2007 00:59:03: look you say that your Tomcat version

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello, Andrew Miehs escribió: On 13/03/2007, at 11:22 AM, Roman Medina-Heigl Hernandez wrote: Hello, Server version: Apache Tomcat/5.5.17 Server number: 5.5.17.0 OS Version: 2.4.34-grsec-rslabs-k7 JVM Version:1.4.2_10-b03 Look for NPTL and Linux in Google... I liked this

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello David, There are tools/scripts which try to automate the process of chrooting an application, i.e, guessing libraries needed and so on. But they usually require additional work (fine-tunning, etc), trialerror tests, etc. Being Tomcat/Java a common application (at least amongst this list's

RE: Same version of Tomcat

2007-03-13 Thread p.logaraman
Hi, I have resolved the issue which was being faced by me Regards Logu -Original Message- From: P Logaraman -IPEXT Sent: Tuesday, March 13, 2007 3:42 PM To: users@tomcat.apache.org Subject: RE: Same version of Tomcat Hi All, I need to clarify a doubt which I have come

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard
Thanks - I assume any way you want would include the port? I'll have to dive more into Filters. At 01:15 3/13/2007, you wrote: From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Can one map a servlet to a specific connctor? On a stand alone tomcat with more than one connector (port) Is

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard
Damn! I missed that :) Thanks. I assume this is taking it from where the hit arrives in at the server and not the HTTP headers passed in (which could be anything) At 01:32 3/13/2007, you wrote: From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: Re: Can one map a servlet to a specific

Re: The requested resource (/) is not available.

2007-03-13 Thread David Smith
It would except tomcat just serves up folders with out web.xml files as static resources. A WARN might be in order, but that's about it. In addition, tomcat does not chase down sym links. Best practice is to be sure all required resources are contained within the webapp. --David Aditya Prasad

Re: Cannot start tomcat5 service with jrockit

2007-03-13 Thread kjcollins
look you say that your Tomcat version is 5.5.20. Why don't u simply try/attempt to get version 6.x of Tomcat by now??? I mean any kind of version 5 is way too old by now! Capiche? [Understand?] If someone is looking to impliment a new PRODUCTION install of Tomcat for Centric CRM - or

RE: Tomcat 5.5.23 Will Not Unpackage Application

2007-03-13 Thread neilac333
There is nothing in shared/lib. I did, however, find commons-el.jar in common/lib. I removed it, but I continue to get the same result. Here are the remaining contents of common/lib: commons-logging.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar jsp-api.jar

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-13 Thread acec acec
Hi, Remy After I added %@ page session=false % into /apache-tomcat-6.0.10/webapps/examples/jsp/tagplugin/foreach.jsp , I could not reproduce OutOfMemoryError. But if I add %@ page session=false % into my application, my jsp could not get information from session. How can I walk around this

RE: Tomcat 5.5.23 Will Not Unpackage Application

2007-03-13 Thread Caldarale, Charles R
From: neilac333 [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5.23 Will Not Unpackage Application I did, however, find commons-el.jar in common/lib. I removed it, but I continue to get the same result. Don't remove things from common/lib - Tomcat itself needs what's in there. Remove

RE: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Caldarale, Charles R
From: Roman Medina-Heigl Hernandez [mailto:[EMAIL PROTECTED] Subject: Re: Chrooting Tomcat // Linux threading issue Performance, in this case, is not too much relevant. Would I notice big performance improvements if upgrading? I'm curious: if performance isn't relevant, why do you care

RE: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: How does one configure Plain host domain url to run web app? Dont use a redirect... it goes back to the browser and its not cool. Nothing wrong with redirects. They're quite appropriate to allow the browser to properly

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hi Chuck, Not too much relevant != isn't relevant. Performance is always relevant, so it's good to enhance it *if possible*. I mean, if switching to 2.6 could make security worse (I know, this assert could be subjective / questionable but it's one opinion) AND performance is not too much

Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Roman, To be honest I don't really understand your concerns with 2.6, but if you really want to be running anything that uses threads, use a 2.6 kernel. If the Java Tomcat App that you are running is just a frontend to something else, and not

RE: Tomcat 5.5.23 Will Not Unpackage Application

2007-03-13 Thread neilac333
I put commons-el.jar back in common/lib and removed the corresponding jar from my WAR file. I still got the same result. FYI, here is the latest WAR file: META-INF/ META-INF/MANIFEST.MF index.html index.xhtml result.xhtml WEB-INF/ WEB-INF/classes/ WEB-INF/classes/test/

SSO ID in the first request

2007-03-13 Thread Fredrik Tolf
Hi List! We are developing a couple of webapps that need to talk to each other, and to do that, we have been using HTTP to just fetch certain URLs from the other webapps to the requesting webapp. To ensure that the programmatic request is carried out in the context of the user doing the client

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard
I Verified this returns the port indicated by the client in the header. Not the port the request was recieved by at the tomcat instance. Appropriate for a client to send and passed through by proxys, remappers, front ends etc. but not to determine where it ends up. PK At 07:23 3/13/2007, you

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Caldarale, Charles R
From: Peter Kennard [mailto:[EMAIL PROTECTED] Subject: RE: Can one map a servlet to a specific connctor? I Verified this returns the port indicated by the client in the header. You could configure proxyPort in your Connector to some value that you could use as a flag for your particular

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Subject: RE: Can one map a servlet to a specific connctor? Try ServletRequest.getLocalPort() rather than getServerPort(). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only

Re: Cannot start tomcat5 service with jrockit

2007-03-13 Thread bb
Hi, We are running 5.5.17 as a service using JRockit. A couple things to check: 1) if you are using the service.bat to install as a service confirm that the PR_JVM is considering the correct path to the jrockit dll. this should be std in the 5.5.20 service.bat: rem Set the server jvm from

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard
This could be the ticket! At 11:53 3/13/2007, you wrote: You could configure proxyPort in your Connector to some value that you could use as a flag for your particular environment. This will override the header value returned by getServerPort(). Don't know if there would be any undesirable

Tomcat https

2007-03-13 Thread daniel martin
Hi, I'm trying to get my tomcat instance to connect over https to an external server. I have written a test servlet to do this String httpsURL = *https*://*example*.microsoft.com; URL myurl = new URL(httpsURL); HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();

Memory continues to increase (Tomcat5.exe)

2007-03-13 Thread Jayson Enriquez
Hi - I am not a developer. I support an application called EDMS (Electronic Documentum Management System). To run this we too must utilize Tomcat to launch JVM. I restart Tomcat to release memory usage on a daily basis. (Task Manager) We start at 260mb and by the end of the day we are at

Tomcat different docbases multiple context

2007-03-13 Thread kyle999312
we are using Tomcat 5.0.28 and currently we have about 100 different contexts .ie domain/a.. domain/b.. and so on all of which run off of the same code but each domain runs against a different database. Currently everything runs off its own docbase /a looks at /a, /b at /b and so on. I dont

RE: Memory continues to increase (Tomcat5.exe)

2007-03-13 Thread Peter Crowther
From: Jayson Enriquez [mailto:[EMAIL PROTECTED] I am not a developer. I support an application called EDMS (Electronic Documentum Management System). [...] Is there a permanent fix to keep tomcat5.exe memory usage stable? Yes. Tell Documentum to find and fix the memory leak in their

RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard
Try ServletRequest.getLocalPort() rather than getServerPort(). Yes exactly, thanks - that is an addition to the api after the book I read :) eclipse auto-complete and the sun website is your friend :) * Part of all these questions is I am looking to implement a servlet subclass which

Apache - tomcat connection on Suse Lnux

2007-03-13 Thread dianelane
On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 (coonector with Apache2) to run web applicatons. I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors. Java and Tomcat installed from Suse repository via YAst. mod_jk.so downloaded and stored in

Re: Tomcat https

2007-03-13 Thread Markus Schönhaber
daniel martin wrote: I'm trying to get my tomcat instance to connect over https to an external server. I have written a test servlet to do this String httpsURL = *https*://*example*.microsoft.com; The '*'s aren't really in your code, are they? But always get the following exception

Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread Erica Zhang
Hi, Thanks a lot for Thomas and Tim. I know an overview about filter for requests and responses. Now, I am not very clear if a filter could redirect the requests from one servlet, which is originally to handle the request, to another servlet, which is really to handle the request after the

Re: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread David Smith
Looks like the error says it all. Tomcat can't find servlet-api.jar in common/lib. Check that it really exists there and isn't a symlink. Tomcat isn't known for tolerating symlinks all that well. --David dianelane wrote: On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5

HTTPS services will not start (after stopping services)

2007-03-13 Thread Jayson Enriquez
Our server is scheduled to restart tomcat5.exe to relieve memory leaks on a daily basis. Our HTTP site is fine but our HTTPS is not. HTTP status 404 - / is the error message.type Status report - message / description The requested resource (/) is not available. HTTPS services will not start

RE: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread Larry Isaacs
The presence of /usr/share/tomcat5 in the servlet-api.jar path suggests you are using a packaged install of Tomcat. While doing some Eclipse Web Tools testing on SUSE 10.x (I think 10.1), the servlet-api.jar it was installed as a dependency of the Tomcat install and was symlinked as

modjk isapi_redirect.dll denying access to web-inf and meta-inf

2007-03-13 Thread Cory . Bestgen
Windows 2003 server with Tomcat 5.5.20 and modjk 1.2.21 This server is running ViewVC along with having Tomcat serving Hudson and Jira. We have been unable to browse the WEB-INF and META-INF directories of our projects under ViewVC since adding the isapi_redirect.dll. Is there an option to

Re: SSO ID in the first request

2007-03-13 Thread Gregor Schneider
I guess you're talking about JSSOSessionID-Cookie, right? I believe the whole design is not too smart: Since all webapps are sharing the same session, I'd store the needed values as session-attributes (too lazy to look it up right now, but should work like HttpSession session = .;

Re: modjk isapi_redirect.dll denying access to web-inf and meta-inf

2007-03-13 Thread Mladen Turk
[EMAIL PROTECTED] wrote: Is there an option to configure modjk so that it only protects the WEB-INF and META-INF directories when they are part of a url defined in uriworkermap.properties? No, but good point. Is there an option to turn this protection off completely? No. Regards,

Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-13 Thread Horine Travis Contr AEDC/ATA
Just recently upgraded our server to use tomcat 5.5 with JRE 1.6 (was tomcat 4.0 with JRE 1.3). We had several poorly written servlets that still manage to compile under both javac 1.3 and javac 1.6. When I compile them under javac 1.6 they no longer deploy correctly under tomcat 5.5. I have used

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore
Rashmi Rubdi wrote: I think an application runs on the root context / by default, if it's configured this way in server.xml : Engine name=Catalina defaultHost=localhost Host name=localhost appBase=webapps/projectname Context path= docBase=C:\dev\projects\projectname reloadable=true

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore
[EMAIL PROTECTED] wrote: Hi John, Ok, I'm going to try show you how I think about this stuff... and I'm often wrong ;) Dont use a redirect... it goes back to the browser and its not cool. Firstly make a servlet and have a look at the CONTEXT.XML file under META-INF Thank you for taking

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore
Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: How does one configure Plain host domain url to run web app? Dont use a redirect... it goes back to the browser and its not cool. Nothing wrong with redirects. They're quite appropriate to allow

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
If you place your application as ROOT.war , directly under Tomcat's webapps folder then Tomcat should load it on the root context / But if it's named anything else then it will be at the /ProjectName/ context. I have mine set-up like this on a clean install of Tomcat 5.5 (with no additional

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder
On 3/13/07, John Moore [EMAIL PROTECTED] wrote: Problem with this an your solution is that is it messy.. Front-ending Tomcat with Apache is messy :-) If you *must* use Apache for whatever reason, you'd be better off using mod_proxy_ajp in conjunction with mod_rewrite to handle this

Re: Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-13 Thread Boris Unckel
Hello Travis, Horine Travis Contr AEDC/ATA wrote: Just recently upgraded our server to use tomcat 5.5 with JRE 1.6 (was tomcat 4.0 with JRE 1.3). We had several poorly written servlets that still manage to compile under both javac 1.3 and javac 1.6. When I compile them under javac 1.6 they no

Turn off Tomcat Version on 404 error.

2007-03-13 Thread Susan Richards
How does one prevent Tomcat from displaying the Tomcat version in the 404 not found page?

Re: Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread David Delbecq
No you can't really do a redirect from the filter. All the filter can do is alter the request/response/session However, what you an do i a filter for servlet /xyz that, under certain conditions, don't call the rest of filter chain but immediatly tells the browser (HTTP moved temporarily status

Re: Turn off Tomcat Version on 404 error.

2007-03-13 Thread Rashmi Rubdi
Custom 404 error pages can be specified in Tomcat's web.xml file located under TomcatFolder\conf\ Add the following to the web.xml: error-page !-- remember to place this error page node after the last servlet mapping node -- error-code404/error-code

getInnerMostDelegate returns null after 24+ hours

2007-03-13 Thread darrin.edelman
Hello all - Before anyone jumps the gun - we've had an application running in production for the last several months so this isn't the usual issue with setAccessToUnderlyingConnectionAllowed. The issue is transient - occurring sometimes after 24+ hours operation and seem to have started

Re: Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread Hassan Schroeder
On 3/13/07, David Delbecq [EMAIL PROTECTED] wrote: You could do an internal redirect (request - requestDispatcher - forward), but it would short circuit the filter chain, some important filter might not be executed.. which presumably one knows when one's developing the app :-) Just to

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore
Hassan Schroeder wrote: On 3/13/07, John Moore [EMAIL PROTECTED] wrote: Problem with this an your solution is that is it messy.. Front-ending Tomcat with Apache is messy :-) Really.. Why.. ?? - To start a new

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore
Thank you for replying.. This is one webapp among many on this server.. So if I understand you correctly this will not be possible.. If I have miss understood.. could you clarify..?? John.. Rashmi Rubdi wrote: If you place your application as ROOT.war , directly under Tomcat's webapps

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder
On 3/13/07, John Moore [EMAIL PROTECTED] wrote: Front-ending Tomcat with Apache is messy :-) Really.. Why.. ?? By which I meant, httpd is an extraneous complication, unless you really need to have something like PHP or other service outside of Tomcat. Do you? If that's the case,

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
You are right, the set-up I've mentioned only works for one application. Perhaps you want to configure multiple virtual hosts. There's an example on that here: http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts You won't need Apache HTTP connector, just

RE: Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-13 Thread Caldarale, Charles R
From: Horine Travis Contr AEDC/ATA [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 failure to deploy javac 1.6 servlet Basically I have no idea how to cross-reference Signature index 63 from the class file to whatever in the java source code is causing it. Has anybody seen this kind of

Re: DST2007 - 3 Character Time Zone Problems with Java Patch

2007-03-13 Thread Mark Thomas
Sharma, Siddharth wrote: Hi Does anyone know if Tomcat is affected by this? I have Tomcat 5.5.16 with Sun JRE 1.5 patched with TZupdater on RHEL. Thanks Sid Only if your application uses those timezones. Tomcat internals are not affected by any of the daylight savings issues. Mark