RE: mod_jk performance

2005-09-15 Thread KEREM ERKAN
-Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 8:53 PM To: Tomcat Users List Subject: Re: mod_jk performance KEREM ERKAN wrote: Tomcat is harder to configure and -sadly- it has a far worse documentation than Apache (for

RE: Scripting variable is not generated

2005-09-15 Thread Wei Zhao
Hi Mark: Thank you for your response. That definitely answered my question. Do you know what's the status on this issue? Is Tomcat not going to support the relevant code before 4.1? It will be a huge effort (if possible) to work around the problem using either of the ways described in the bug

RE: Problem making my servlet the default servlet (instead of ROOT)

2005-09-15 Thread Allistair Crossley
Hi, To make this URL work http://localhost/cart.faces - error 404 You need to just define your context as path= (although I use path=/ROOT with no problem). You URI mappings for JK would need to include (if no other wildcard mapping exists) /*.faces=ajp13 to ensure traffic with faces

Re: How to get user name after login

2005-09-15 Thread Caroline Jen
I think it is getRemoteUser(); --- ±ç¬±³õ [EMAIL PROTECTED] wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Immedidate help needed multiple hosts

2005-09-15 Thread Lalitha Prasad
Hi, We are getting DataSources problem while setting multiple hosts with tomcat-5.5.Also we using MS SQL Server for database. Server.xml entry .. HOST name='xyz.org' appBase='/home/abc/' Aliaswww.xyz.org/Alias /Host in conf/catalina/ we have xyz.org folder in that we have context.xml. It

Apache + mod_jk + Tomcat ... SSL Problems

2005-09-15 Thread Oliver Schoenwald
Hello, we are using the following versions: Apache 2.0.47 mod_jk (not mod_jk2) Tomcat 5.5.9 The SSL-Feature is backed by openssl 0.9.7c. We configured mod_jk to send the SSL information to the tomcat engine: JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER

EFBFBDEF in sample JSP class files?

2005-09-15 Thread Edward Hibbert
I've downloaded and built Tomcat 5.5.9. The samples it builds (e.g. ./webapps/servlets-examples/WEB-INF/classes/filters/ExampleFilter.class) seem to be bad class files - they have EFBFBDEF rather than CAFEBABE at the start. Anyone seen this? Regards, Edward.

Re: Session timeout issues

2005-09-15 Thread James Shaw
On 14/09/05, James Shaw [EMAIL PROTECTED] wrote: I have two issues relating to sessions: 1) Sessions seem to be expired too soon. This happens very infrequently for me (perhaps 1 in 1000 requests). I'm adding some HttpSessionListeners and HttpSessionAttributeListeners to attempt to locate

How to define paths to inidividual user directories

2005-09-15 Thread Michael Sullivan
I've recently installed Tomcat and linked it to Apache with the mod_jk connector. It seems to be working - I can type a filename.jsp script and save it in a file in /opt/tomcat5/webapps/ROOT and then navigate to www.espersunited.com/filename.jsp and it works. I have a number of users at

A good place to leanr how to use digest authentication

2005-09-15 Thread Chandan Gupta
Hi, Im trying to use Digest authentication with an AXIS web service hosted on Tomcat 5.0.28. The problem is in setting up Digest authentication for Tomcat. I did as was written in HOW-TO setting up a JDBC realm, I tried to connect the URL configured on the secure realm from IE 6.0. Presto

Re: tomcat 5.0.24 crashes silently when clustering turned on

2005-09-15 Thread Chandan Gupta
We could try upgrading our JVM from 1.4.2 but I'm concerned with going to 5.0 in case that causes other things to break. Will TC 5.0.24 run on a 5.0 JVM? --- It does, im running it on 5.0 on win platform Regards, Chandan On 9/12/05, Mike Noel [EMAIL PROTECTED] wrote: Which platform/OS?

Re: How to get user name after login

2005-09-15 Thread Sonja Löhr
It is: request.getUserPrincipal().getName(); To check for a special role, use: request.isUserInRole(rolename); Am Donnerstag, den 15.09.2005, 03:49 -0700 schrieb Caroline Jen: I think it is getRemoteUser(); --- ±ç¬±³õ [EMAIL PROTECTED] wrote: After implementation of JDBCRealm, how

Security manager w/ manager app

2005-09-15 Thread Ryan Daly
All: Is it possible to start Tomcat w/ the security manager enabled if I were to use the Tomcat Web Application Manager? -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Virtual Hosts

2005-09-15 Thread Durfee, Bernard
I am having trouble configuring virtual hosts in Tomcat 5.5.9. I have two applications app01 and app02. I have 2 DNS entries app01.myserver.com and app02.myserver.com that both point to the machine on which Tomcat is running. How do I configure Tomcat to serve from app01.war when

RE: Virtual Hosts

2005-09-15 Thread Allistair Crossley
Simplistically ... Configure Host elements inside your Engine. Create a folder for each application within webapps. Set the Host docBase to each. Check out the online ref. -Original Message- From: Durfee, Bernard [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 17:07 To:

RE: Virtual Hosts

2005-09-15 Thread Durfee, Bernard
Okay, so I created two host elements in my server.xml... Host name=app01.myserver.com appBase=webapps autoDeploy=true deployOnStartup=true deployXML=true unpackWARs=true xmlValidation=false

Unable to redirect from Windows 2003 server 64 bit and IIS 6.0 to Tomcat 4.1.31 using JK2 ajp1.3

2005-09-15 Thread Theby, Steve
Hi everyone, Problem We believe we have all components installed properly but requests for Tomcat are not redirected. There are no errors in the Tomcat stderr or stdout logs, nor are any errors found in either the Windows application or system event logs. Requests to IIS root work and

Order of WebApp Loading

2005-09-15 Thread Peter Menzel
Hi there, I have a question concerning Tomcats webapp loading: What is the order in which tomcats loads its webapps ? I have two webapps configured by /conf/Catalina/localhost/XXX.xml and I need one webapp to be loaded before the other, because it starts the database. How does Tomcat choose

Re: A good place to leanr how to use digest authentication

2005-09-15 Thread bachoo jahnkar
http://www.devx.com/DevX/Article/21911 Chandan Gupta [EMAIL PROTECTED] wrote: Hi, Im trying to use Digest authentication with an AXIS web service hosted on Tomcat 5.0.28. The problem is in setting up Digest authentication for Tomcat. I did as was written in HOW-TO setting up a JDBC realm, I

5.0.28 chunked input?

2005-09-15 Thread Jim Moy
I am running standalone Tomcat 5.0.28, and am having problems with chunked requests. My servlet is being called before a chunked POST has completed the transfer of its body containing x-www-form-urlencoded data. My servlet calls to getParameter() return empty values, because the chunk containing

Re: A good place to leanr how to use digest authentication

2005-09-15 Thread Jim Moy
On 9/15/05, bachoo jahnkar [EMAIL PROTECTED] wrote: Im trying to use Digest authentication with an AXIS web service hosted on ... connect the URL configured on the secure realm from IE 6.0. Presto whatever I tried I always got 401. Once i changed authentication back to basic, things started

RE: Order of WebApp Loading

2005-09-15 Thread George Sexton
Its not deterministic. Save yourself a lot of time, and don't complain about it and ask it to be changed. You need to re-think your logic so there is not a dependency. A pretty obvious solution would be to have either application check to see if the database is started, and if not start the

Deploying root context

2005-09-15 Thread Durfee, Bernard
Is there a way to use the Tomcat 5.5.9 manager to deploy a WAR file as the root context? If not, how to I munge the deployed web application to make it the root context? Bernie - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Order of WebApp Loading

2005-09-15 Thread Jilles van Gurp
If you define the contexts in the server.xml, they are started in the order that you define them, I think. Regards, Jilles Peter Menzel wrote: Hi there, I have a question concerning Tomcats webapp loading: What is the order in which tomcats loads its webapps ? I have two webapps configured

How to share static content across applications

2005-09-15 Thread Ritchie Gillam
I am not sure if this is suppose to be done in the Tomcat/Java world but here is my question anyway. How do I go about allowing applications to share static content in Tomcat 5.5.7? Some would argue that each WAR file should be self contained but surely there is a way to use the same image

RE: Order of WebApp Loading

2005-09-15 Thread Robert Harper
The case is still that most servlet containers, Tomcat included, are multithreaded and order of processing should not be counted on. One app may be swapped out while the other app runs. It is far better to write your servlets so that there is no dependency on order of operation, order of

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
I typically create a 3rd webapp with those shared images and other similar assets. Otherwise - you can import those shared assets into your webapp at build time by placing all the shared assets into their own version control repository. -Tim Ritchie Gillam wrote: I am not sure if this is

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
In fact that is sort of what I am doing. I am creating a new Context element for the shared assets but the problem is by putting the Context element directly in the server.xml file, I am not longer able to undeploy and redeploy the shared assets application without restarting the server

Re: How to share static content across applications

2005-09-15 Thread Maurice Yarrow
Hello Tim Saw your posting on the tomcat user's list. I have a question about your response: So how do you access the static resources, i.e., images, from the other two web apps? This is what I tried and it does not work: I created a separate webapp context with images, and placed into

Re: How to share static content across applications

2005-09-15 Thread Hassan Schroeder
Ritchie Gillam wrote: I am creating a new Context element for the shared assets but the problem is by putting the Context element directly in the server.xml file, I am not longer able to undeploy and redeploy the shared assets application without restarting the server... OK, so don't do

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
My situation is quite different but here is what I am currently doing: In my server.xml file I have ... Context docBase=/data0/...webapps/sharedHRM path=/sharedHRM/ Context docBase=/data0.../webapps/sharedHRM path=/DPCSI/sharedHRM/ Context docBase=/data0.../webapps/sharedHRM

Re: How to share static content across applications

2005-09-15 Thread Ritchie Gillam
In the applications that need the shared assets, I already have a Context defined in the context.xml file for each app and I can only have the one. Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902)

Re: How to share static content across applications

2005-09-15 Thread Hassan Schroeder
Ritchie Gillam wrote: In the applications that need the shared assets, I already have a Context defined in the context.xml file for each app and I can only have the one. ? An application *is* a Context; the point is to create a single shared asset Context and reference it from wherever. As

SSL 8443

2005-09-15 Thread Lalit Batra
Hi! My current implementation for SSL on tomcat 5.5.9 is https://mytomcat.com:8443/blah.html Is there any way I can have to do without enetering 8443 port number. https://mytomcat.com/blah.html Thanks, Lalit - To

RE: SSL 8443

2005-09-15 Thread Caldarale, Charles R
From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: SSL 8443 Is there any way I can have to do without enetering 8443 port number. Change the port attribute of the SSL connector in your server.xml file. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

Re: SSL 8443

2005-09-15 Thread Robert F Hall
Caldarale, Charles R wrote: From: Lalit Batra [mailto:[EMAIL PROTECTED] Subject: SSL 8443 Is there any way I can have to do without enetering 8443 port number. Change the port attribute of the SSL connector in your server.xml file. - Chuck And use port number 443. - Robert

RE: SSL 8443

2005-09-15 Thread Wick, Daniel
If you use port 443, you won't be required to specify the port in the browser. The browser will auto-request on 443 because you've specified ssl. If you don't want ssl, use port 80. --Dan -Original Message- From: Lalit Batra [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15,

Re: Two Service elements problems

2005-09-15 Thread Steve Dodge
I couldn't find it in your post, so let me ask. Do you have 2 network interfaces on the machine? How are you establishing 2 ip addresses? This topic sparked my interest because I will also be doing the same thing. Now, to answer your question more definitively.I put together a mock

Any procrun gurus here?

2005-09-15 Thread jjrobert
Pardon the cross-post, but I was hoping there might be some procrun knowledge on this list. Thanks, -Jeff - Forwarded by J. Jeff Roberts/Lex/Lexmark on 09/15/2005 04:52 PM - |-+ | | J. Jeff Roberts | | |

Re: Virtual Hosts

2005-09-15 Thread Steve Dodge
You probably want to change the appBase. You can control the contexts by creating a context snippet in conf/[Engine name]/[Host name] or add it to META-INF/context.xml in each war. Hope that helps, Steve Durfee, Bernard wrote: Okay, so I created two host elements in my server.xml...

RE: Two Service elements problems

2005-09-15 Thread Barnett, Brian W.
Thanks Steve. I will try that. Regarding your question to me, I have tried two different approaches. My first approach was to bind an additional IP address to the one NIC I had in the XP box using the Advanced button in TCP/IP setup for the NIC. I struggled through that for a few days, then

Any procrun gurus here?

2005-09-15 Thread jjrobert
Aha! The *3* dashes before Classpath were the major culprit. (Is there any way to specify all of these parameters via an XML file?) Now it's running my main(), but the service exits immediately, apparently because my main doesn't do anything. I guess I'll go take another look at what Tomcat's

Re: How to share static content across applications

2005-09-15 Thread Tim Funk
If the thing being shared are browser sepefic such as images - I create a new webapp. For example: for all my common images I could create an images webapp. Context path=/images .../ Then my webapps which refernce those images can link to /images directly (and take it on faith that there is an

Can anyone help with a MySQL ConnectorJ prob pls?

2005-09-15 Thread Kyle
Hi All, I am using the com.mysql.jdbc.Driver to connect to MySQL. I have managed to retrieve an apache.commons.dbcp.PoolableConnection to my MySQL server and retrieve results with a server.xml Resource like so; Resource name=jdbc/iws auth=Container type=javax.sql.DataSource/

Wher do I get binary of Tomcat

2005-09-15 Thread MaciekSKontakt
I have browsed Jakarta page and have found rather confusing bunch of non-described links with cryptic names for files to download. 1. Is there any information what those files are for or you have to become Tomcat expert without Tomcat in order to know what file to downloads and know what they

Re: Wher do I get binary of Tomcat

2005-09-15 Thread Parsons Technical Services
-alpha Potential for bugs and possibly lots of them and/or major ones. -beta They think that most of the bugs are squashed. No suffix stable and should run without major issues. As for the other extensions try the readme file at the top of each section.

RE: Wher do I get binary of Tomcat

2005-09-15 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Wher do I get binary of Tomcat 2. Where can I get Tomcat that works on MacOS X or Windows (let's say old good win98)? Tomcat is pure Java, so you can use the standard .zip or .tar.gz download on any platform. Once expanded,

RE: Wher do I get binary of Tomcat

2005-09-15 Thread Caldarale, Charles R
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Subject: Re: Wher do I get binary of Tomcat For your needs the exe package for Win 98 would be a good bet. I don't think that's true. The .exe download installs Tomcat as a service only - the startup and shutdown scripts aren't

How to change the SSL port

2005-09-15 Thread Stephen Caine
All: Is there any way I can change the default SSL port from 8443 to 443? Change the port attribute of the SSL connector in your server.xml file. And use port number 443. yup, I tried this. It doesn't work. I tried edits to server xml connector from 8443 to 443 - 443 port unresponsive

RE: How to change the SSL port

2005-09-15 Thread Iannis Hanen
Check your tomcat log file. If tomcat could bind properly on the SSL port you mentioned, it should show up in the log file (one of the first lines on the top). If not (e.g. because the port is already in use), it will show you a bind error message there as well. If the log says that the port is

RE: How to change the SSL port

2005-09-15 Thread Caldarale, Charles R
From: Stephen Caine [mailto:[EMAIL PROTECTED] Subject: How to change the SSL port I tried edits to server xml connector from 8443 to 443 - 443 port unresponsive after tomcat restart. What does netstat say about who's listening on which ports? Tried 8442 also. No joy. Only plays with

Re: How to change the SSL port

2005-09-15 Thread Stephen Caine
Lannis, Check your tomcat log file. If tomcat could bind properly on the SSL port you mentioned, it should show up in the log file (one of the first lines on the top). If not (e.g. because the port is already in use), it will show you a bind error message there as well. If the log says

Re: How to change the SSL port

2005-09-15 Thread Stephen Caine
Charles, What does netstat say about who's listening on which ports? Will check this out. Tried 8442 also. No joy. Only plays with 8443. There is another setting somewhere Really, there isn't. Sounds like you're not editing the server.xml file that's actually being used by

Re: Wher do I get binary of Tomcat

2005-09-15 Thread Parsons Technical Services
That's why I don't gamble.:) Doug - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, September 15, 2005 9:29 PM Subject: RE: Wher do I get binary of Tomcat From: Parsons Technical Services

RE: How to change the SSL port

2005-09-15 Thread CommonGround Softworks/Phil McNamara
Guys, Thank you. Stephen posted the original question on my behalf. I am just now joining the list. Iannis and Chuck thank you for your feedback. Maybe I can provide some more info. Appreciate any further suggestions. I did ports scans before and after the server.xml edits to ports 443 and

Re: How to change the SSL port

2005-09-15 Thread Hassan Schroeder
CommonGround Softworks/Phil McNamara wrote: The tomcat log does show a bind error message after my server.xml edit to port 443. Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Permission denied:443 Are you

RE: How to change the SSL port

2005-09-15 Thread Caldarale, Charles R
From: CommonGround Softworks/Phil McNamara [mailto:[EMAIL PROTECTED] Subject: RE: How to change the SSL port It would seem to me that this demonstrates that I am editing the correct server.xml instance. Agreed. Sounds like something else has grabbed or disabled 443, especially since

Re: How to change the SSL port

2005-09-15 Thread Jason Bainbridge
On 9/15/05, Hassan Schroeder [EMAIL PROTECTED] wrote: CommonGround Softworks/Phil McNamara wrote: The tomcat log does show a bind error message after my server.xml edit to port 443. Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing

Re: How to change the SSL port

2005-09-15 Thread Parsons Technical Services
What OS are you on and what services are running? It sounds like something else has the port tied up. If you can post a list of the services maybe someone might spot it. If you are on windows there are some apps out that can map the app/service to the ports being used. If on Linux, which

RE: Wher do I get binary of Tomcat

2005-09-15 Thread MaciekSKontakt
Thanks. I will follow your tips. I am transitioning my network to MacOSX and getting rid Win98 so that was one of last chances for Windows to be useful to me. I need Tomcat to get a skill with Servlets and JSP. I think I could go with Eclipse (it works on MacOSX). Would it be a good

Re: Two Service elements problems

2005-09-15 Thread Steve Dodge
Brian, On more follow up. I found a usb wireless network adapter that I forgot I had. The server.xml snippet below stayed the same, except I had to add the address attribute on the original http connector element. I opted to use the Ip addresses instead of messing with /etc/hosts this

Specify work folder for each application

2005-09-15 Thread Anto Paul
Hi all, Is it possible to specify work folder for the web application. What I need is to add generated source and class files of JSP's into Eclipse proect classpath. I am using Eclipse 3.1. I couldn't find a way to map an external folder into Eclipse classpath. -- rgds Anto Paul

RE: Specify work folder for each application

2005-09-15 Thread rahul
Eclipse Poject - Properties- Java Build Path - Source -Add folder... --RahulJoshi -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 11:08 AM To: Tomcat Users List Subject: Specify work folder for each application Hi