Re: How do I force getContextPath to return ""

2005-11-18 Thread Martin Gainty
Your answer For servlets in the default (root) context, getContextPath method returns ""... Sorry for the thread hike! Martin- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do I force getContextPath to return ""

2005-11-18 Thread Martin Gainty
Good Evening Gentlemen: How do I load admin.war in Tomcat 5.5.7? Many Thanks, Martin- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat has 2 webapps - confused which classes to load

2005-11-18 Thread Shankar Unni
John MccLain wrote: OK...So, correct me if I am wrong, but is this because the JVM can't load 2 classes with the same package/class name? The JVM *can* (and in this case, *does*) load classes with the same name, as long as they are in different classloaders (which they are, for the two diff

Tomcat has 2 webapps - confused which classes to load

2005-11-18 Thread John MccLain
I have 2 web applications underneath Tomcat/webapps. some of the classes, such as the lifecycle listeners for both projects, have exactly the same package/class names. I kick off Tomcat from eclipse, and put a breakpoint in the lifecycle listener for project2. Project1 loads first, and eclipse brea

RE: Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread PHIL CAVAZOS
Thanks, you're right. I tried this earlier, but it didn't work because I hadn't provided the complete LDAP role name. It needs to match exactly what the role name is in the context.xml file. Confidentiality Notice: The information contained in this email and any attachments may be legally priv

Re: SSL w/Tomcat

2005-11-18 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Re: How do I force getContextPath to return ""

2005-11-18 Thread Hassan Schroeder
hv @ Fashion Content wrote: > Is there a way have getContextPath return "" other than setting it up as > ROOT context Not that I know of -- why is the obvious "fix" undesirable? > I have that old problem of rewriting URLs to get rid of the pesky context > path. OK, I'll bite: What "old proble

Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe
I see it, and it looks like the right answer, I'll try it on Monda.y Thanks - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, November 18, 2005 4:49 PM Subject: RE: How to see a Word or WordPerfect document in Tomcat? > From: B

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Bob Grabbe [mailto:[EMAIL PROTECTED] > Subject: Re: How to see a Word or WordPerfect document in Tomcat? > > Being new to the list, though, could you point me toward the > mail archives ? Read the FAQ and look at the information on this page: http://tomcat.apache.org/lists.html I pref

Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe
Actually, you're right, it is IE. Being new to the list, though, could you point me toward the mail archives ? Ie, how to access them ? Thanks Bob Grabbe [EMAIL PROTECTED] - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, Nove

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Bob Grabbe [mailto:[EMAIL PROTECTED] > Subject: Re: How to see a Word or WordPerfect document in Tomcat? > > The mime mapping is in the web.xml, but if I have the > security-constraint section in web.xml to force everything to > use https I get the same "resource not available" error.

RE: Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread Duan, Nick
I think the standard way for including role in your programming logic (e.g. if user is of role manager, dispatch the manager.jsp; if user is an employee, dispatch the employee.jsp, etc), is to use the isUserInRole method of HttpServletRequest. This solution doesn't depend on which realm you are us

Re: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Bob Grabbe
On a related question, I have a problem with viewing .csv files with msexcel. The mime mapping is in the web.xml, but if I have the security-constraint section in web.xml to force everything to use https I get the same "resource not available" error. It works fine without the security constrain

Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread PHIL CAVAZOS
Does anyone know how to grab user roles from the JNDIRealm authentication classes once a user logs in to a servlet context? I'm attempting to dynamically present content based on the user roles the user authenticates with. Another way to put my question is if there is a way to grab the LDAP auth

Re: tomcat on gnu gij

2005-11-18 Thread Tom A
On 11/18/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Tom A [mailto:[EMAIL PROTECTED] > > Subject: Re: tomcat on gnu gij > > > > The GNU Classpath implementation only supports Java 1.4 so you'll have > > to stick with Tomcat 5.0.x for the time being. > > Why do people keep perpetua

RE: tomcat on gnu gij

2005-11-18 Thread Caldarale, Charles R
> From: Tom A [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat on gnu gij > > The GNU Classpath implementation only supports Java 1.4 so you'll have > to stick with Tomcat 5.0.x for the time being. Why do people keep perpetuating this myth? Too lazy to read the documentation? Tomcat 5.5 runs pe

Re: tomcat on gnu gij

2005-11-18 Thread Tom A
On 11/17/05, Randall Smith <[EMAIL PROTECTED]> wrote: > Can anyone point me to resources on running Tomcat on the GNU gij runtime? > > Thanks. Thanks, you prompted me to give it a try :-) The GNU Classpath implementation only supports Java 1.4 so you'll have to stick with Tomcat 5.0.x for the tim

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Caldarale, Charles R
> From: Ritchie Gillam [mailto:[EMAIL PROTECTED] > Subject: How to see a Word or WordPerfect document in Tomcat? > > If I try to do this specifying a application path, for example, > http://localhost:8084/Documents/test.wpd I get a > "...resource it not available error". Can this be > accomp

How to see a Word or WordPerfect document in Tomcat?

2005-11-18 Thread Ritchie Gillam
I have an application that has a few WordPerfect documents associated with it. If I run this directly in a Browser without using Tomcat, IE opens WordPerfect and displays the document perfectly. If I try to do this specifying a application path, for example, http://localhost:8084/Documents/te

Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Tim Funk
Something is fishy with your server (or configuration) I cannot reproduce that issue with 5.0.28 on windows. -Tim Brian Buchanan wrote: Upgrade. In a short test on two of my servers, 5.0.28 on windows has this WEB-INF. vulnerability, but 5.5.7 did not. -Original Message- From: "Alla

Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Ben Souther
I just tested on 5.0.28 and can't see anything under WEB-INF. Are you using Tomcat as a standalone or with a connector? On Fri, 2005-11-18 at 14:15, Brian Buchanan wrote: > Upgrade. In a short test on two of my servers, 5.0.28 on windows has this > WEB-INF. vulnerability, but 5.5.7 did not. > >

Re: How to set restrictions on the retreival of files from some directories

2005-11-18 Thread Brian Buchanan
Upgrade. In a short test on two of my servers, 5.0.28 on windows has this WEB-INF. vulnerability, but 5.5.7 did not. -Original Message- From: "Alla Winter" <[EMAIL PROTECTED]> To: Date: Thu, 17 Nov 2005 14:19:13 -0600 Subject: How to set restrictions on the retreival of files from some

RE: Managing concurrent high memory processes

2005-11-18 Thread Wade Chandler
> -Original Message- > From: BB Commish [mailto:[EMAIL PROTECTED] > Sent: Friday, November 18, 2005 12:50 PM > To: users@tomcat.apache.org > Subject: Managing concurrent high memory processes > > We have a Struts application running on Tomcat where > a few actions > within > the app can

RE: Managing concurrent high memory processes

2005-11-18 Thread Duan, Nick
You may want to find out where the bottlenecks are before deciding on clustering or lb tomcat. For instance, if the bottleneck is your backend database, clustering tomcat won't help at all. One easy way to find out the bottleneck is to turn on the debugging or just use the operating system monito

RE: Managing concurrent high memory processes

2005-11-18 Thread Richard Mixon
BB, It sounds like you are talking about what used to be called "batch processing". The workload is simply kicked off from a web request. Does it (attempt) to return a request to the user? Are timeouts and issue? As far as available RAM - the obvious solution here is to move to a 64-bit OS. We've

Re: Managing concurrent high memory processes

2005-11-18 Thread Peter Lin
sounds like you have a heafty reporting process, which loads a ton of data and generates a large report. I definitely wouldn't recommend running these processes within a single instance of Tomcat. You'll easily eat all the available RAM and get OOME. A better approach would be to off-load the proc

Managing concurrent high memory processes

2005-11-18 Thread BB Commish
We have a Struts application running on Tomcat where a few actions within the app can invoke processing that consumes 300+ MB of RAM and can run for several hours. The issue is how to make the application more scalable to accommodate multiple concurrent 'high load' processes and also make better

How do I force getContextPath to return ""

2005-11-18 Thread hv @ Fashion Content
Is there a way have getContextPath return "" other than setting it up as ROOT context I seem to remember working, but it doesn't seem to have any effect in 5.5.9 I have that old problem of rewriting URLs to get rid of the pesky context path. Cheers, Henrik -

Re: Security not on, so why do I get an AccessControlException?

2005-11-18 Thread JBorn
Can anyone help me with this? If not what other information is needed to understand what is going on? Thanks, jb [EMAIL PROTECTED] [EMAIL PROTECTED] 11/15/2005 10:11 AM Please respond to "Tomcat Users List" To users@tomcat.apache.org cc Subject Security not on, so why do

Re: jsp pages do not run in tomcat

2005-11-18 Thread Aparna Ramakrishnan
Hello, thnx for ur reply. Now the jsp pages work fine. i deployed them as a .war file. but now, the problem is with the compiler. when i type javac -help, i get Jikes Compiler . (I use Debian LINUX in which jikes comes bundled with kaffe VM.) But earlier when i was not using

Re: Package naming

2005-11-18 Thread Ajay Arjandas Daryanani
Thanks a lot, Peter (again). Regards, Ajay Peter Crowther wrote: >>From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] >>i've written a authorization filter for Tomcat. The question is: is >>there any convention about package naming? Can I use, for example, >>'package es.mydomain.myname;'?

Re: Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .
OK, the problem was exatly the reverse, the classes (jars) of shared/lib didn't find log4j and the ClassNotFoundExcepcion was caused by that. - Original Message - From: "Andrés Glez." <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, November 18, 2005 11:04 AM Subject: Shared

RE: Package naming

2005-11-18 Thread Peter Crowther
> From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] > i've written a authorization filter for Tomcat. The question is: is > there any convention about package naming? Can I use, for example, > 'package es.mydomain.myname;'? Or it's better to use 'package > filters;'? The conventional Java

Package naming

2005-11-18 Thread Ajay Arjandas Daryanani
Hi all, i've written a authorization filter for Tomcat. The question is: is there any convention about package naming? Can I use, for example, 'package es.mydomain.myname;'? Or it's better to use 'package filters;'? Regards, Ajay

Re: jsp pages do not run in tomcat

2005-11-18 Thread Santosh Asbe
check whether .java & .class files for the JSP are being created in the work folder. Work folrder is located at /work/Standalone/localhost/. If class files are not being created here for the JSP then check ur JSP for extra semi colons which sometime creates problems for compilation. On 11/18/05,

Tomcat and Lomboz: access to SQL drivers?

2005-11-18 Thread Thomas Nybro Bolding
I am building a project using eclipse and Lomboz for Tomcat 5.5 in which I need to access a SQL server. In the project web.xml I have added resource-ref as I would on the Tomcat server. On Tomcat I would then modify the context xml file in conf/Catalina/localhost and add Context and Resource par

jsp pages do not run in tomcat

2005-11-18 Thread Aparna Ramakrishnan
Hello, I am running tomcat4. when i start Tomcat using /etc/init.d/tomcat4 start using JAVA_HOME=/usr/lib/kaffe, tomcat stops to run almost immediately but says the pid file still exists. Now if i export JAVA_HOME=/usr/j2sdk1.4.2_09, and start tomcat again, it runs comfortably. B

cross context failing on Tomcat 5.5.9

2005-11-18 Thread irene_hall
Cross context failing on moving from Tomcat 4.1.27 to 5.5.9 I have an application which consists of several application wars all within the same virtual host. Each application is configured with the same servlet filter which gets the context for the main part of the application. I have crossCon

Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .
Something strange happened to my tomcat yesterday: I have two webApps which use some shared jars that i put in $TOMCAT_HOME/shared/lib Yesterday i decided to remove the log4j.jar from shared/lib and put it on each webApp WEB-INF/lib dir. Log4j works great now, and one of the WebApps also ru

RE: session replication errors

2005-11-18 Thread Richard Mixon
And does this have to do with "session replication errors"? At least when hijacking a thread remember to change the Subject line. But better still create an entirely new email and address it to the list. This will make it easier on those of us that use threaded mail readers. Concerning your quest

Re: Tomcat 5.5 problem - container not serving up web content

2005-11-18 Thread Michael Niemaz
I have the same message when I try to deploy a war file that already exists. I have to shutdown, remove the old war file and its deployed dir, copy the new war file and then re-start Linux Tomcat. This probably has nothing to do with your problem but ... we never know ;-) --mike Jorge Rodrigue

Re: Session not sticky in 5.5 with load balancer

2005-11-18 Thread Dominik Drzewiecki
"Duan, Nick" <[EMAIL PROTECTED]> wrote" > I am running an Apache httpd server as the load balancer with two tomcat > instances. All servers are on the same windows XP machine. The load > balancing works fine, but I am not able to make user sessions sticky > with either one of the tomcat instances