Session stickyness mod_jk2 / Tomcat

2004-02-24 Thread laurent . joubert
Hello, I am using Apache 2.0.48 (binary) on a WinXP platform with two Tomcat 4.1.29 (binary also) instances for test purposes, and I am having trouble with session stickyness. The load balancing works great but I don't have any whatever I try. Here is my workers2.properties configuration

RE: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-24 Thread Ralph Einfeldt
No, the first solution should't work: % break; % % case 2: % Will be tranformed to something like: break; out.print(\n); case 2: That doesn't look like valid java syntax to me. These will work: % break; case 2: % % break; %% case 2: % However, I prefer the JSTL

Re: (was: similar problem) Connection Pool Dies

2004-02-24 Thread Harry Mantheakis
This is a follow-up message, for the record. Following Antonio Fiol's kind prompting, I added the following Commons-DBCP elements to the DataSource resource parameters specified in my application's context fragment: validationQuery -- select 'x' from dual testWhileIdle -- true

RE: Apache Tomcat 4.0 vs 4.1

2004-02-24 Thread John Eaton
The jsp page in the work directory is as follows package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; import com.lagan.lagancentre.core.thinclient.common.util.*; import

Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-24 Thread David Rees
Ralph Einfeldt wrote, On 2/24/2004 12:41 AM: No, the first solution should't work: % break; % % case 2: % You're right, missed that one. Anyway, the original poster should get the idea. ;-) However, I prefer the JSTL solution. (But can't use it, a we still use JSP 1.0) JSP 1.0??? Even TC

Re: Client Certificate Tomcat 4.1.19

2004-02-24 Thread Rommel Sharma
The following link will offer you the client code you may find useful: http://rd1.net/present/JSSE-RDC-RJUG.ppt regards, Rommel. - Original Message - From: Juan de Bravo [EMAIL PROTECTED] To: Lista usuarios tomcat (E-mail) [EMAIL PROTECTED] Sent: Monday, February 23, 2004 10:26 PM

RE: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-24 Thread Ralph Einfeldt
We are still using gnujsp. To switch to tomcat isn't that easy. The servlets and the jsp work, but we would have to change our complete automated deployment process. (And there wasn't enough reason to do so by now) -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent:

Re: jk2: [error] mod_jk child init 1 0 with win98

2004-02-24 Thread Florian Ebeling
Hi, has anyone any further insight on this special topic? My error.log is also polluted by this error message. There was no response to the original question quoted, which is from 6. Dec. 2003. Hans-Peter Fier wrote: During Apache-startup an error [error] mod_jk child init 1 0 occurs. Does

Re: One user seeing another user's data

2004-02-24 Thread Anbu
Hello Anotonio, Thanks for your reply. We are using JSPs and invoke java beans from them. We have the scope parameter set to 'application' in JSPs. I will look into the bean source code and check for non-final static variables. Regards, Anbu Antonio_Fiol_Bonnín [EMAIL PROTECTED] wrote:

Re: Viewing errors

2004-02-24 Thread Leonardo Larraquy
Ok, I'll try it, thanks. - Original Message - From: [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 1:01 AM Subject: RE: Viewing errors Leo, You could use log4j and configure it to output to the console. Attached is a

RE: A Tomcast Feature:

2004-02-24 Thread Shapira, Yoav
Howdy, Is a feature for including in Tomcat that would enable me to include config files into the main config. If you mean including other XML files in server.xml, you can use the normal XML inclusion features. If you mean something else, please clarify. Yoav Shapira This e-mail, including

RE: Is Tomcat with JRockit and Intel Xeon Processor okay?

2004-02-24 Thread Shapira, Yoav
Howdy, Vic, if you're still on here, since you're such a huge JRockit fan, have you tried tomcat5/jrockit/intel? Any remarks? Yoav Shapira Millennium ChemInformatics -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Monday, February 23, 2004 5:57 PM To: [EMAIL PROTECTED]

Resend: custom realm administration issue

2004-02-24 Thread sushma
I found in the archives that tomcat admin console doesn't display custom valves/realms. Is this true ? Please help. Is there a workaround ? Thanks sushma --- sushma [EMAIL PROTECTED] wrote: I wrote a custom realm and when I administer this custom realm from the tomcat admin console, I see an

RE: One user seeing another user's data

2004-02-24 Thread Mike Curwen
well uh perhaps I'm misunderstanding something, but 'application' is the completely wrong scope, if you want the javabeans to *not* be shared between all users of your application. -Original Message- From: Anbu [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 5:39 AM

how to set java-environment variables in catalina.sh

2004-02-24 Thread Peter Forster
hi, I want to start tomcat so it knows environment variables. in regular a java-programm, i do that with the -D option (java -DMY_ENV=$MY_ENV). i know i have to do this in the catalina.sh script. i just can't find the correct syntax. can anyone help me or point to a tutorial? thanks pete

Re: [Fwd: Catalina suspends for no reason?!?]

2004-02-24 Thread Sam Seaver
Hey Yoav, when you say 'sockets remain bound', do you mean the hexadecimal addresses? how should I check these sockets? Also, does anyone know a good CPU usage monitor for linux? Cheers S Shapira, Yoav wrote: Howdy, So do you have any idea whats going on? I don't have a good idea. It's

RE: [Fwd: Catalina suspends for no reason?!?]

2004-02-24 Thread Shapira, Yoav
Howdy, when you say 'sockets remain bound', do you mean the hexadecimal addresses? how should I check these sockets? I mean the network sockets: use the netstat command to see if tomcat is still listening on ports (8005, 8080 by default). Also, does anyone know a good CPU usage monitor for

Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Hi, I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP. Occasionally, I will receive the following error: 2004-02-23 15:40:07 CoyoteAdapter Requested cookie session id is A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07 CoyoteAdapter An exception or

tomcat building *.tld mapping at startup

2004-02-24 Thread Adam Hardy
Where can I find out what *.tld files tomcat is finding in its startup procedure when it scans through the webapps? I have a problem with tomcat5 SAR in JBoss. My app works fine in stand-alone, but under JBoss, I get a Jasper Exception: The absolute uri: http://java.sun.com/jsp/jstl/fmt cannot

RE: tomcat building *.tld mapping at startup

2004-02-24 Thread Shapira, Yoav
Howdy, http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s hare/org/apache/catalina/startup/TldConfig.java?rev=1.35view=markup is a good starting point. Yoav Shapira Millennium ChemInformatics -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent:

transport-guarantee question

2004-02-24 Thread John MccLain
I don't understand transport-guarantee; What is it and how is it implemented??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

list of authenticated users question

2004-02-24 Thread John MccLain
Does Tomcat store a collection of authenticated users somewhere, or do I have to do that inside my webapp. If I do, then can someone recommend the best place for this - i.e., a valve, a filter, in the service() method, a listener, etc..

Security and includes question

2004-02-24 Thread John MccLain
IN reading a Tomcat manual, I noticed that security constraints are only applied via client interactions with the secured object. I.E., If you redirect from within a secured object to another secured object, the redirection is not authenticated. Is there a way in Tomcat to secure ALL the objects

Watchdog 4.0 Test failures for Tomcat 5

2004-02-24 Thread Nimish Pachapurkar
Hello, I am trying to run Watchdog 4.0 tests on Tomcat 5. I am aware that Watchdog 4.0 tests the compliance with Servlet 2.3 and JSP 1.2 while Tomcat 5 supports Servlet 2.4 and JSP 2.0. However, it seems to me that the failures I am getting are probably independent of the Servlet and JSP

apache/Jk problems

2004-02-24 Thread Joshua J. Cox
Converting some apache/tomcat systems from Webapp connectors to Jk using ajp13, I'm having problems getting apache/Jk to talk to Tomcat. I believe I've been very careful with the port assignments and whatnot, but continue to get failure, and the following error in the mod_jk.log:

cookies and sessions

2004-02-24 Thread John MccLain
could someone give me a process flow description of how cookies work, i.e., 1)user authenticates - what is actually sent in header???, Is it necessary to authenticate??? 2) cookie issued - Is it sent in the response? 3) user makes request with cookie 4) cookie is recognized - How does this

Installing php into Tomcat

2004-02-24 Thread Damon Cavan
Is it possible to install php into tomcat? I wish to run PHPBB forum software and I need to install php for this to work.

newbie help

2004-02-24 Thread Jason Tesser
I am really confused. I am trying to learn what the best way to build and Deploy my stuff to Tomcat 5.0 I have ant 1.6 downloaded and I downloaded The deployer for Tomcat 5. I have a few questions. 1. How do I actually get these things to work for me? I have set up my environment variable

newbie help

2004-02-24 Thread Jason Tesser
I am really confused. I am trying to learn what the best way to build and Deploy my stuff to Tomcat 5.0 I have ant 1.6 downloaded and I downloaded The deployer for Tomcat 5. I have a few questions. 1. How do I actually get these things to work for me? I have set up my environment variable

newbie help

2004-02-24 Thread Jason Tesser
I am really confused. I am trying to learn what the best way to build and Deploy my stuff to Tomcat 5.0 I have ant 1.6 downloaded and I downloaded The deployer for Tomcat 5. I have a few questions. 1. How do I actually get these things to work for me? I have set up my environment variable

Newbie Help

2004-02-24 Thread Jason Tesser
I am really confused. I am trying to learn what the best way to build and Deploy my stuff to Tomcat 5.0 I have ant 1.6 downloaded and I downloaded The deployer for Tomcat 5. I have a few questions. 1. How do I actually get these things to work for me? I have set up my environment variable

securing a jsp page

2004-02-24 Thread John MccLain
Can a jsp page be secured with role / user based access? If so, then what if it is redirected to from inside a servlet or other jsp page? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

mapping webapps to user home directories

2004-02-24 Thread Jason Keltz
Hi. I'm new to tomcat and have a few questions that I'm hoping someone might be able to help me with. If I map the webapps directory in users home directories as contexts like this in server.xml: Listener className=org.apache.catalina.startup.UserConfig directoryName=webapps

RE: transport-guarantee question

2004-02-24 Thread Mike Curwen
https is the short answer. For this, and pretty much *all* your other questions, I'd recommend reading the servlet spec on top of the Tomcat docs. -Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 11:20 AM To: Tomcat user list

RE: list of authenticated users question

2004-02-24 Thread Mike Curwen
Maintaining this list is implied by the spec, since the container (obviously/probably?) needs to remember who it has authenticated. But there's nothing that says it needs to tell anyone else about it. I'd recommend a Filter, since it's cross-container. -Original Message- From: John

RE: Security and includes question

2004-02-24 Thread Mike Curwen
From the spec: The security model applies to the static content part of the web application and to servlets within the application that are requested by the client. The security model does not apply when a servlet uses the RequestDispatcher to invoke a static resource or servlet using a

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Hmm...I am unable to find anything in google regarding this error. -Original Message- From: Randall Svancara Sent: Tuesday, February 24, 2004 8:48 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.29 CoyoteAdapter Exception Hi, I am running tomcat 4.1.29, apache 2.0.48, with mod_jk

RE: cookies and sessions

2004-02-24 Thread Mike Curwen
-Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 11:37 AM To: Tomcat user list Subject: cookies and sessions could someone give me a process flow description of how cookies work, i.e., 1)user authenticates - what is actually

RE: securing a jsp page

2004-02-24 Thread Mike Curwen
Yes, if you place your JSP's inside certain folder, you can secure the path to the jsp. eg: webapp |- unsecure ||- unsecured.jsp |- admin ||- secure_this_with_admin_role.jsp |- super_admin ||- secure_this_with_super_admin_role.jsp As for redirection, I think if you're redirecting

Re: how to set java-environment variables in catalina.sh

2004-02-24 Thread Nathan Maves
I think either of these will work. I use the second one and it works fine for me #JAVA_OPTS=-Djava.awt.headless=true CATALINA_OPTS=-Djava.awt.headless=true Nathan Maves Sun Microsystems On Feb 24, 2004, at 8:28 AM, Peter Forster wrote: hi, I want to start tomcat so it knows environment

JDBC Realm JDBC Data Source

2004-02-24 Thread Justin Wesbrooks
I'm trying to set up Tomcat 5 to use a JDBCRealm that points to a MS SQL Server 2000 instance. I also have a datasource set up to the same database instance. I can get one or the other to work, but not both together. If I move the JDBCRealm inside my Host or Context tag, the datasource

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Here is my server.xml in full for anyone interested. It is at the end of this email. -Original Message- From: Randall Svancara Sent: Tuesday, February 24, 2004 11:14 AM To: Tomcat Users List Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception Hmm...I am unable to find anything in

Content type for jsp/html files

2004-02-24 Thread Johan Wallinder
Hi. I've want to make a servlet that can display the source of any jsp/html file (not the rendered one). Basically my code is like this: *set content type to text/plain *get PrintWriter object out *get the fileobject as an inputstream *write to the out object *flush/close The code is working

Is the docBase attribute in context.xml required?

2004-02-24 Thread Petr Jiricka
Hi, I have a question about the format of context.xml. Tomcat 5 documentation: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html says that the docBase attribute is required (as it's bolded). Is this really correct? I was able to deploy an application through the manager

RE: Is the docBase attribute in context.xml required?

2004-02-24 Thread Shapira, Yoav
Howdy, I have a question about the format of context.xml. Tomcat 5 documentation: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html says that the docBase attribute is required (as it's bolded). Is this really correct? I was able to deploy an application through the manager

Re: Installing php into Tomcat

2004-02-24 Thread Hans Wichman
hi, you probably have to create a setup where apache (for example) is the main webserver, dispatching jsp to tomcat and php files to the php interpreter. Firepages has a working distribution with php, mysql, apache, I don't know if there is one with tomcat included as well, but you can always do

Re: tomcat building *.tld mapping at startup

2004-02-24 Thread Adam Hardy
Argh. I can't get jboss-tomcat to look in the jars in my war for the tlds. In the logging I can see tomcat building the tld map and extracting the tlds from WEB-INF directory and sub-dirs, but it ignores the jars. And I see it writing the tldCache.ser. In the TldConfig.java, I see there's a

Re: tomcat building *.tld mapping at startup

2004-02-24 Thread Adam Hardy
OK, sorry - forget the JBoss factor. This seems to be a difference between a deploy directory and a WAR. Tomcat isn't looking in the Jars in a War. On 02/24/2004 07:52 PM Adam Hardy wrote: Argh. I can't get jboss-tomcat to look in the jars in my war for the tlds. In the logging I can see

Re: Content type for jsp/html files

2004-02-24 Thread Antonio Fiol Bonnín
Johan Wallinder wrote: Hi. I've want to make a servlet that can display the source of any jsp/html file (not the rendered one). Basically my code is like this: *set content type to text/plain *get PrintWriter object out *get the fileobject as an inputstream *write to the out object

Re: how to set java-environment variables in catalina.sh

2004-02-24 Thread sushma
You can also create a file called 'setenv.sh' and set JAVA_OPTS in this file. setenv.sh gets included in catalina.sh. -sushma --- Nathan Maves [EMAIL PROTECTED] wrote: I think either of these will work. I use the second one and it works fine for me #JAVA_OPTS=-Djava.awt.headless=true

Re: tomcat building *.tld mapping at startup

2004-02-24 Thread Adam Hardy
With the slight hope that someone reading this might have been in this siutation before, I was right first time in what I said below. Tomcat in stand-alone mode finds the tld files in my war as I want. In tomcat as an SAR in jboss, the jars in the war are not being scanned for tld files. Just

Classloader issues

2004-02-24 Thread SH Solutions
Hi I experience problems using 5.0.18 that did not occur running 4.0.6, but I do NOT want to revert to it. Maybe you could help me: Actually I have a system that uses classloaders for loading add-in groups. The two most important functions are: protected Class findClass( String className )

Tomcat 4.1.2 jsps fail with JasperException

2004-02-24 Thread Januski, Ken
org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file This is on a new install of Tomcat 4.1.2. This example fails at localhost:8080. I can get the servlet examples to work by

RE: Tomcat 4.1.2 jsps fail with JasperException

2004-02-24 Thread Januski, Ken
This Tomcat installation was done with a JRE, by someone else, rather than SDK. I installed the SDK an hour or so ago and changed Java_Home to reflect that but I'm wondering if it won't take effect until I reboot server. I'm hoping that the reboot will solve the problem. -Original

Configuring connector (embedded)

2004-02-24 Thread Michael Mangeng
Hi I´ve embedded tomcat within our application. In the embedded class (API-docs) is described: ... Call |createConnector()| to create at least one TCP/IP connector, and then call its property setters as desired. ... The problem is that the Connector interface (

Rollover Web Certificate

2004-02-24 Thread paul . spinelli
Hi, Wondering if anybody has experienced a web cert expiring in their keystore. If so, I was wondering how you go about replacing it without bringing down the server. Can you simply create a new certificate (in a different keystore, I'd imagine) then get it signed via the CSR, then import the

Possible to implement Pubcookie authentication using Tomcat Realm?

2004-02-24 Thread Jonathan Eric Miller
I recently found out about a way to create a single sign-on setup for authentication for Web applications called Pubcookie. The following link has a diagram that shows how it works. If a user hasn't yet authenticated, they are redirected to a separate server that displays a login page. Then, once

RE: Content type for jsp/html files

2004-02-24 Thread Yansheng Lin
Totally! With context type set to text/plain is not going to provent IE doing something on its own. The sure fix is to replace all the with lt;. -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 12:41 PM To: Tomcat Users List

Turkish encoding problem

2004-02-24 Thread Metin Zavrak
Hi, I am working on a project in which I use XML files. I wrote an JavaServlet which reads an XML and an XSL file and creates an HTML file. My XML and XSL files contain Turkish characters (Turkish encoding is ISO-8859-9). These characters are displayed as a question mark (?). I have tried many

RE: Content type for jsp/html files

2004-02-24 Thread Yansheng Lin
typo: context type should be context type. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 3:15 PM To: 'Tomcat Users List' Subject: RE: Content type for jsp/html files Totally! With context type set to text/plain is not going to provent

Tomcat error-page not working (was: RE: Tomcat and checked vs. unchecked exceptions)

2004-02-24 Thread Wendy Smoak
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Try exception-typejava.lang.RuntimeException/exception-type, as that's the superclass for unchecked exceptions and you probably want to handle them all the same (if you want to handle them at all, which apparently you do). I don't understand.

Re: What's the problem with Tomcat 4.1.29 and Switch?

2004-02-24 Thread George Hester
Ah neat. I was wondering how to use the basic idea. I showed it as out.println but I knew there had to be a better way. Thanks much Antonio. -- George Hester __ Antonio Fiol Bonnín [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] George Hester wrote:

Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
Johan, If the purpose is just to see the code, then you can parse the stream and replace each of the symbols with a substitute. This will cause the browser to see everything as plain text. Parse the stream. If character equals then replace with lt; If character equals then replace with gt;

RE: Turkish encoding problem

2004-02-24 Thread Yansheng Lin
try native2ascii your property file first(assuming you saved your files using Turkish character encoding). There were some discussions on this topic a few days ago. Here is the pointer to the answer given by Adma Hardy: http://www.mail-archive.com/[EMAIL PROTECTED]/msg119451.html. Hope that

All jsps fail with JasperException

2004-02-24 Thread Januski, Ken
No luck with a reboot. All jsps are failing to compile with the message noted below. -Original Message- From: Januski, Ken [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 3:51 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.2 jsps fail with JasperException This Tomcat

apache jk2 into tomcat help

2004-02-24 Thread Steve
Where might one look to obtain solid professional assistance with the following: tomcat-4.1.29 apache-2.0.xx mod_jk2 running on solaris 8.. Someone who has prior knowledge experience working hands on with the setup to fine tuning of jk2 from apache into tomcat in a multi tier environment.

You use illegal File Sharing ...

2004-02-24 Thread tomcat-user
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: You use illegal File Sharing ... - Virus Warning!!

2004-02-24 Thread Michael . McGovern
FYI ALL, Norton detected a virus in the previous email thread. Norton AntiVirus removed the attachment: refcode38632.pif. The [EMAIL PROTECTED] threat was - METAmorphosis 2004 META Group's 15th Annual Forum

RE: Content type for jsp/html files

2004-02-24 Thread Johan Wallinder
I've already done that. But than I was thinking. Isn't there an easier way to display plan text files by setting the content type (and not encode the content). -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: den 24 februari 2004 23:28 To: Tomcat Users

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
What would cause the coyote connector to return a null pointer exception. Every time this happens, mod_jk is unable to communicate with tomcat and as a result our web service is unusable. Is this a tomcat bug, or a problem with running tomcat on Windows XP. Anyway, I have looked through

Re: Content type for jsp/html files

2004-02-24 Thread Parsons Technical Services
Yes, if all browsers played fair and treated thing properly. But IE and some others have a mind of there own. They have been written to handle sloppy code and thus often don't follow the rules. Thus we are often forced to work around them. Doug - Original Message - From: Johan

Spelling?

2004-02-24 Thread Nathan Maves
Anyone notice that after every configuration change the message Save Sucessful appears? This should be successful. Just being nit picky :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

security-constraint node question

2004-02-24 Thread John MccLain
How would I get Tomcat to use a database table instead of the web or server .xml files' security-constraint.auth-constraint.role-name to enforce authorization? I would prefer to have objects in my webapp to have configurable authorization applied to them outside of tomcat configuration files; Done

Logger issues

2004-02-24 Thread Nathan Maves
My webapp that is configured for logging work perfect on sun one app server but now nothing show up in the catalina.out on Tomcat 5. Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Servlet-Mapping Question, recursive capable?

2004-02-24 Thread David Erickson
Hi I would like to do something like: servlet-mapping servlet-nameaction/servlet-name url-pattern/docs/**.pdf/url-pattern /servlet-mapping So that anything in the /docs/ folder AND ANY of its subfolders with the .pdf extension gets sent to my action servlet. Is that possible with tomcat

Re: Classloader issues

2004-02-24 Thread Jeanfrancois Arcand
SH Solutions wrote: Hi I experience problems using 5.0.18 that did not occur running 4.0.6, but I do NOT want to revert to it. Maybe you could help me: Actually I have a system that uses classloaders for loading add-in groups. The two most important functions are: protected Class findClass(

Re: security-constraint node question

2004-02-24 Thread Tim Funk
You would need to combine to security philosphies - container based security - programmer based security The first is done via web.xml and mathcing URL's against given roles. When that is not enough, then you need to use programmtic security. You use the HttpServletRequest objects instance

Re: Servlet-Mapping Question, recursive capable?

2004-02-24 Thread Tim Funk
No. You can prefix match or file extension match, but not both at the same time. -Tim David Erickson wrote: Hi I would like to do something like: servlet-mapping servlet-nameaction/servlet-name url-pattern/docs/**.pdf/url-pattern /servlet-mapping So that anything in the /docs/ folder AND

Re: Configuring connector (embedded)

2004-02-24 Thread Jeanfrancois Arcand
Michael Mangeng wrote: Hi I´ve embedded tomcat within our application. In the embedded class (API-docs) is described: ... Call |createConnector()| to create at least one TCP/IP connector, and then call its property setters as desired. ... The problem is that the Connector interface (

Re: Logger issues

2004-02-24 Thread Jeanfrancois Arcand
Nathan Maves wrote: My webapp that is configured for logging work perfect on sun one app server but now nothing show up in the catalina.out on Tomcat 5. Any ideas? Humm...SunOne App Server uses Tomcat 5 and I don't remember fixing such problem when I integrated Tomcat 5 ;-) Are you sure your

attributes of the element web-app?

2004-02-24 Thread George Hester
I downloaded Sun's DTD from here: http://java.sun.com/dtd/web-app_2_3.dtd After cleaning it up (just making it readable linebreaks) I was scanning through it to see what some of the attrributes are for the element web-app. According to this: !ELEMENT web-app (icon?, display-name?,

Re: attributes of the element web-app?

2004-02-24 Thread Tim Funk
The dtd also says: !-- The small-icon element contains the name of a file containing a small (16 x 16) icon image. The file name is a relative path within the web applications war file. The image may be either in the JPEG or GIF format. The icon can be used by tools. Used in: icon Example:

Re: attributes of the element web-app?

2004-02-24 Thread George Hester
OK I'm trying that now. I wasn't sure where the image should have gone. And oh yeah please pardon my XML bastardization. I should of said, child elements of the element web-app not attribute. Crap didn't work. Oh well. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC

Re: apache jk2 into tomcat help

2004-02-24 Thread pavan . k
available @ http://johnturner.com Pavan Kumar Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Steve [EMAIL PROTECTED] 02/24/2004 05:45 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject

Memory leak across contexts?

2004-02-24 Thread Jerald Powel
Hello, I have 4 apps with different contexts running under the one instance of Tomcat. They run fine, but progessively get slower and slower until a server bounce is necessary. After that point, they run fine until they start to be become progressively slower etc. The apps all

Re: attributes of the element web-app?

2004-02-24 Thread David Smith
I'm surprised you didn't get some kind of error in the logs. DTDs also require a specific order to the elements. You appear to have put your icon element at the end when the DTD snippet you quoted clearly requires it at the beginning. Try it at the beginning and see what you get. --David

Re: Logger issues

2004-02-24 Thread Nathan Maves
Where would I set my log level? It seems like there is about 100 different places to set log levels in the Tomcat Administrator. Without changing my webapp all of the logging goes to the standard log file in the S1App Server. When I deploy it to Tomcat 5 nothing appears in the catalina.out.

encodeURL / jsessionid

2004-02-24 Thread Jerald Powel
Hi, I wish to maintain state across contexts and have in app1: % request.getSession().setAttribute(id,2004073258); % a href=%= response.encodeURL(../app2/index.jsp) %app2/a when app2 is loaded the jsessionid is visible in the address bar:

Re: Rollover Web Certificate

2004-02-24 Thread Antonio Fiol Bonnín
[EMAIL PROTECTED] wrote: Wondering if anybody has experienced a web cert expiring in their keystore. If so, I was wondering how you go about replacing it without bringing down the server. Can you simply create a new certificate (in a different keystore, I'd imagine) then get it signed via the

Re: encodeURL / jsessionid

2004-02-24 Thread Antonio Fiol Bonnín
%= request.getSession().getAttribute(id); % Jerald Powel wrote: Hi, I wish to maintain state across contexts and have in app1: % request.getSession().setAttribute(id,2004073258); % a href=%= response.encodeURL(../app2/index.jsp) %app2/a when app2 is loaded the jsessionid is visible in

Tomcat 5 deployer compile errors on %@ includes

2004-02-24 Thread Richard Mixon (qwest)
I am trying to use the client deployer. Our JSP pages use a number of compile time includes such as %@ include file=someCommonCode1.jsp %. The client deployer is trying to compile each of these included files independently. I am getting compile errors all over the place. The reason is that one

Re: Servlet-Mapping Question, recursive capable?

2004-02-24 Thread Daniel Gibby
Too bad though. I really like ant's recursive matching capabilities. I think that eventually a 'rebash' shell will be written that supports ** as recursive so that grep catalina **/docs/*.java would look for only java files in a subdirectory somewhere named docs with the text catalina in it.

FW: Jsp 2, tag files and collections...

2004-02-24 Thread Kimpton, C (Chris)
Hi, I am using jsp2 on Tomcat 5.0.18. I want to a write tag file that is sort of like a specific version of the foreach tag - I want to pass in a collection of objects (not strings). When passing the collection to the tag file it seems to evaluate the toString on each element and then pass this