/ \
Webapp1 Webapp2 ... ---
**GREEDY** CLASSLOADERS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
It is solved.
I put both
Hi,
After changing the timeout to 10 seconds it _seems_ to work. It
was at cero so it could have run out of connections.
It has been 6 hours of uptime. Much better.
thank you for everything,
Borja
On Mon, 19 Sep 2005, Yassine ELassad wrote:
here it
hello everyone,
i found out what was the problem:)
okay the problem is that my jdbc driver was to old and could not comunicate
with my mysql and after finding that out using a java based mysql
administartion tool (dbvisualzer)
i could not login and i was wondering the whole tiome what could
Right, I get it now. Thanks for all your help Tim, Darryl and Nicolas!
Happy Tomcat-ing,
Richard.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 07 September 2005 12:15
To: Tomcat Users List
Subject: Re: Pre-compiled JSPs?
Yes, think of jspf like .h files in c. You
) in
code with the call to this method (same for remove) and I've solved my
problem?
Unfortunately, you also need to change the places that retrieve
attributes from the Session, since the hash map is in a state of flux
during the setAttribute() invocations.
- Chuck
THIS COMMUNICATION MAY
Hi,
After some extra efforts I solved the problem of setting JPDA. In fact I
was very close to the solution.
-Xdebug
-Xrunjdwp:transport=dt_socket,address=5678,server=y,suspend=n
You need an Enter after the -Xdebug.
Easiest way is to use the tool provided Configure Tomcat (tomcat5w.exe
//ES
with it
back on, but that got me going again.
- Original Message -
From: Chris Brown [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, July 21, 2005 4:06 PM
Subject: Re: Apache2+jk+tomcat5.028+uri utf-8 [NOT] SOLVED
Hello, Sorry for not replying
Hello, Sorry for not replying to the thread referenced in my subject (See July
1st, 2005), I'm new to the list and didn't have the email to reply to.
I am having the same trouble that Paul and Steve encountered. (Error connecting
to tomcat from mod_jk). Like Steve I have two similarly
I've essentially done all of this, but I still get the following error in
the browser:
---
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform
Subject: Re:
Apache2+jk+tomcat5.028+uri utf-8 SOLVED
01.07.05 09:35
Subject: Re:
Apache2+jk+tomcat5.028+uri utf-8 SOLVED
01.07.05 09:35 Distribute:
Please respond Personal? |---|
to Tomcat Users | [ ] x |
List
] cc:
d.edu Subject: Re:
Apache2+jk+tomcat5.028+uri utf-8 SOLVED
01.07.05 09:35 Distribute:
Please respond Personal? |---|
to Tomcat Users | [ ] x
Install mod_jk. I downloaded it from
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.10/
Copy the jakarta-connector*.so to your apache2 modules directory.
Activate your new module:
I used this two files in /etc/apache/mods-avaliable:
+---+
mod_jk.conf
Hi,
thanks to all who tried to help. In my case the fault was, the Character
Encoding filter was not the first filter in the queue.
The other hints: Setting the URIEncoding in the connectors and so
on are useful as well. Sometimes you also must set the environment
variable LC_CTYPE to something
Problem solved! I wrongfully assumed that apt would store debian packages
with the canonical filename in apt-archives - but the %3a should indeed
be transformed into : before putting stuff online - so the problem had
nothing to do with tomcat. Thanks for all pointers!
--
With Kind Regards / Mit
As pointed out by Mr. Allistair Crossley in his blog
http://www.adcworks.com/blog/ one has to modify server.xml.
For anyone updating their Tomcat to 5.5x I highly recommend Allistairs
blog!
/Thomas
Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED]
26-05-2005 17:42
Besvar venligst til
Hi
just wanted to say I solved the problem by downloading the compat
package. turns out this tomcat version requires JRE 1.5
thanks
Murad Nayal wrote:
Hi,
has anybody been able to get TOMCAT 5.9 running on an SGI workstation: I
have installed the binary distribution 5.9 but can't get
Le 10 mai 05 à 15:56, Eric VERGNAUD a écrit :
Hi,
I'm having problems running Tomcat 5.0.28 using JDK 1.5.0.02.
I'm using 1.5 methods such as Node.getTextContent. This works fine
when run as a standalone app in JDK 1.5, however when run with
Tomcat under the same JDK, execution throws an
We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have
been many complaints about the necessity to restart Tomcat every couple days
due to Out of Memory errors, but no solutions that cured it. Well, the
suggestion to put the single line:
Introspector.flushCaches();
-Original Message-
From: sysdba [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:49 AM
To: Tomcat Users List
Subject: Memory Leak Solved
We have struggled with a memory leak in 5.0.28/5.0.30 for months. There
have been many complaints about the necessity to restart Tomcat every
couple days
Hi,
don't know if you are using it, but there's also a known issue with
5.0.28 and 'swallowOutput' in the Context element. After I turned it
off, I haven't gotten any out of memory errors...
Trond
sysdba wrote:
We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have
been
,
Do you have links to this known issue?
-Mensagem original-
De: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 15 de abril de 2005 11:08
Para: Tomcat Users List
Assunto: Re: Memory Leak Solved
Hi,
don't know if you are using it, but there's also a known issue
to this known issue?
-Mensagem original-
De: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 15 de abril de 2005 11:08
Para: Tomcat Users List
Assunto: Re: Memory Leak Solved
Hi,
don't know if you are using it, but there's also a known issue with
5.0.28
thanks to all for your anwsers
i finaly found that internet explorer was refusing the autentification
cookie on xp (sp2)
for db authentification
[EMAIL PROTECTED]
administrateur http://monteregiechat.org
From: Martin Alvarez Espinar [EMAIL PROTECTED]
Reply-To: Tomcat Users List
http://issues.apache.org/bugzilla/show_bug.cgi?id=33373
On Wed, 23 Mar 2005 19:32:00 +0100, Thomas Chille
[EMAIL PROTECTED] wrote:
Hi,
i declared an anttask which precompiles my JSPs. All works fine with TC
5.0.29.
After upgrading to TC 5.5.7 i got this error:
BUILD FAILED:
Thanks to Tim and Remy for the answers;
For more explanations for those who have the same problem like me :
- see bugs 23211 and 33831 on http://issues.apache.org/bugzilla/
- In my example,
after ctx = ctx.getContext(/myNewContext);
but before dispatcher =
Hi,
I have managed to compile the mod_jk shared object that comes
with jakarta-tomcat-5.5.7-src.tar.gz. That could have been
easier!
Here's a problem I encountered on Red Hat ES 4, just wanted
to share.
If anyone thinks this belongs into bugzilla, I will gladly
add it.
Running ant native yields a
The tcpListenAddress (on the Receiver tag) may also need to be set to
the correct interface/nic (rather than just auto).
- Richard
Joseph Lam wrote:
I have tried that but still got some weird behavior (seems that it was
able to send out broadcast with the proper interface but unable to
listen
I have tried that but still got some weird behavior (seems that it was
able to send out broadcast with the proper interface but unable to listen
broadcast...).
So I gave up that an simply set a static route in the OS for mcast. But
thanks anyway.
Joseph
On Tue, 22 Feb 2005, Filip Hanik - Dev
thanks for your help!
i tried looking for the service.bat in the tomcat/bin folder but it is
not there.
it is an older version 4.1.24 and it was already installed as a
service, i don't know how it was done (without the service.bat file)
but it's there.
i scanned the registry and found the
OK, I just had to re-read the comments in server.xml and think about my
setup a bit more. It still seems like it should have worked the other
way [shrug]. Basically I had to tell the cluster setup to use only the
network adapters that represent the private link between the two servers
(ignoring
OK, yes it turned out to be one of those dumb configuration errors -
BUT also a difference in how Tomcat 5.5.7 (or maybe is is Commons DBCP
1.2.1) behaves under Windows versus Linux.
I had camelcased the username property in the context.xml Resource
tag as userName. This worked under Windows,
In case anyone else ends up with similar problems trying to get session
replication to work for objects that have a commons logging (or other
similar) non-serializable instance variable), here's how I solved it.
I created the following abstract class with the two methods readObject
_
From: Gusti y Viky [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 12:28 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: i solved the problem
I solved the problem, after changing the name of the directory I checked on
the Catalina.out log and saw that some
Chris:
It's working! Thanks a LOT! What you gave me wasn't the full answer, but
it let me eliminate a lot of dead-ends and other mistakes I had made.
One (of several) problems this helped was that I was using AddModule and
not LoadModule, which is also addressed here:
nobody can help me?
On Mon, 7 Feb 2005 09:57:32 +0100, Omar Adobati [EMAIL PROTECTED] wrote:
Thx for ur answers, I have reied what you say about the second
question, but it's do not work. This is how I have changed my
context.xml file:
===
?xml version='1.0' encoding='utf-8'?
Context
Thx for ur answers, I have reied what you say about the second
question, but it's do not work. This is how I have changed my
context.xml file:
===
?xml version='1.0' encoding='utf-8'?
Context privileged=true swallowOutput=true
workDir=work\Catalina\photoalbum\ path=/ cacheTTL=0
changes in server.xml:
===
GlobalNamingResources
Resource type=org.apache.catalina.UserDatabase description=User
database that can be updated and saved auth=Container
name=PhotoAlbum/
ResourceParams name=PhotoAlbum
parameter
namefactory/name
Hi!
I'm happy you could solve your problem now! Seems the reason was the
missing Realm-definition in your context.xml.
To Question 1)
Tomcat offers a separate JNDI-namespace for each web application (so if
you have 4 web applications you will have 4 namespaces). These
namespaces are configured
Hi all,
everyone who isn't able to access the manager / admin applications (access
denied message)
or try to use basic auth with IIS6 and Tomcat 4.x / 5.x should read further.
We had exactly this problem while using the jk2 isapi redirector.
HOW TO SOLVE:
- use the JK ISAPI-Redirector,
Thanks Drew for your suggestion!
It's ok now... =)
-Original Message-
From: Drew Jorgenson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 3:29 PM
To: Tomcat Users List
Subject: Re: Tomcat Bug?
OK, look inside TOMCAT_INSTALL_DIR/work/Catalina/localhost (or whatever
other
You have still to specify the webXmlFragment-attribute. Without this
i'm getting a NullpointerException too.
Thanks to the help of both of you, I finally managed to get it to work.
You'll find my complete Ant target at the bottom of this post.
From the perspective of a user I'd like to provide
Solved.Crazy but true.
When using the Oracle factory:
In a Tomcat 5.0 context file, the url parameter (name, not the value) must be
lower case. In a Tomcat 5.5 context file, the url parameter must be UPPER
CASE.
Works now. Thanks for the help. Sorry for so many mails...
tk
Windows XP, Eclipse 3.1, Web Platform Tools 1.0M2, Tomcat v5.5.
Web Platform Tools is just that - it allows you you Eclipse for java web
development. Inside it, I select a server, and show it the location. All
my console output, browser is inside Eclipse.
Actually, I did find the solution,
Wade Chandler wrote:
Actually what is happening is this You are using a buffered stream.
It is reading past the amount returnedand then the tcp/ip socket is
blocking because you have it open as a keep alive. You have to only
read the number of bytes available and not keep trying to
Garret Wilson wrote:
Wade Chandler wrote:
Actually what is happening is this You are using a buffered
stream. It is reading past the amount returnedand then the tcp/ip
socket is blocking because you have it open as a keep alive. You have
to only read the number of bytes available and
At 04:31 PM 12/30/2004, you wrote:
I hope the links below help.
http://apache.planetmirror.com.au/dist/jakarta/tomcat-connectors/jk/binaries/win32/
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.6/
Glenn Parsons wrote:
Solving my own problem: I managed to get this beast compiled. Through
some ugly trial and error, flogging it with apxs and some Apache src. It
only ate half my day!
Well,
http://jakarta.apache.org/tomcat/connectors-doc/install/apache2.html
States:
[EMAIL PROTECTED] ~ $
For future reference by anyone else facing the same problem (Tomcat changing
the Content-type from text/xml to text/html on 500 server errors - e.g. SOAP
Faults)
The solution I've arrived at is to use getWriter() instead of getOutputStream
and to explicitly close the Writer after writing the
expired session vs. no session? (Solved)
By default:
1. getSession(true)!=null
2. getSession(false)!=null
But if a JSP page contains the tag %@ page session=false %, then:
1. getSession(true)!=null 2. getSession(false)==null
In the last of these 4 cases, do you mean
Yeah, that's my point.
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: December 10, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: How to detect expired session vs. no session? (Solved)
I believe it's because they were trying to figure out whether they had a new
the original question, which Jospeh indicated is now solved, threw up more
questions. at least that's why I was replying !
-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday 10 December 2004 15:12
To: 'Tomcat Users List'
Subject: RE: How to detect expired
Steve Kirk wrote:
By default:
1. getSession(true)!=null
2. getSession(false)!=null
But if a JSP page contains the tag %@ page session=false %, then:
1. getSession(true)!=null
2. getSession(false)==null
In the last of these 4 cases, do you mean that the implicit JSP session
object returns
The behavior of getSession(false) also depends on whether you're
calling it from within a standard Servlet or calling it from the
Request passed to a Stuts Action. getSession(false) always returns
null if a valid session is not associated with the current request
(whether or not the client sent a
In the last of these 4 cases, do you mean that the implicit
JSP session
object returns null, or that request.getSession(false)
returns null? I
could understand the first behaviour but would be surprised
by the second.
actually forget I said that, I made a mistake,
'
Subject: RE: How to detect expired session vs. no session? (Solved)
By default:
1. getSession(true)!=null
2. getSession(false)!=null
But if a JSP page contains the tag %@ page session=false %, then:
1. getSession(true)!=null 2. getSession(false)==null
In the last of these 4 cases, do you
: December 10, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: How to detect expired session vs. no session? (Solved)
I believe it's because they were trying to figure out whether they had a new
session because the old one expired or because they just hit the site for
the first time
By default:
1. getSession(true)!=null
2. getSession(false)!=null
But if a JSP page contains the tag %@ page session=false %, then:
1. getSession(true)!=null
2. getSession(false)==null
In the last of these 4 cases, do you mean that the implicit JSP session
object returns null, or that
Confirmed that request.getSession(false)==null for both expired session
requests and anonymous requests, if I have %@ page session=false % in
my pages.
I just figured out the follow which work exactly what I wanted:
boolean hasSessionID =
(request.isRequestedSessionIdFromURL() ||
PROTECTED]
Sent: Wednesday 08 December 2004 11:23
To: [EMAIL PROTECTED]
Subject: RE: How to detect expired session vs. no session? (Solved)
Confirmed that request.getSession(false)==null for both
expired session
requests and anonymous requests, if I have %@ page
session=false % in
my pages
at that point.
Hope this is useful to someone else and isn't too far off the mark...?
-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Wednesday 08 December 2004 16:25
To: 'Tomcat Users List'
Subject: RE: How to detect expired session vs. no session? (Solved)
I'm
String id = request.getRequestedSessionId();
if (null==id)
{
// there was no jsessionid in the request
}
else if (request.isRequestedSessionIdValid())
{
// there was a valid jsessionid in the request
}
else
{
// there was an invalid jsessionid in the request
}
In
On Thursday 02 December 2004 08:52 am, Allistair Crossley wrote:
i don't know sorry. i can however tell you that i just pasted your
simplified code into one of my JSPs and it works (i.e foo is 1 ..).
you've installed standard.jar and jstl.jar as your forEach is now
working. it's probably very
Phillip,
I didn't have -wT option in my script, but thank you anyway because the
problem was in front and tailing /...
So, if you put / in front or/and in tail of
param-value/WEB-INF/cgi-bin//param-value
You receive this error.
Thank you!
/Sergeyk
(Lab Documentation -
On Tuesday 23 November 2004 15:43, Quinton Delpeche wrote:
Hi,
For those that are interested I manage to solve this problem last night.
This happens because of incorrect permissions on the admin.xml stored
in /etc/tomcat5/base/Catalina/localhost/ directory.
By default SuSE 9.2 sets the
Whatever it was, it doesn't do it in 4.1.31.
Regards
Roger
-Original Message-
From: Varley, Roger
Sent: 29 October 2004 11:32
To: [EMAIL PROTECTED]
Subject: Tomcat fails - Can't read body, waited #0 Seems size related
I have a servlet that recieves data from a client. All the
All,
The problem is solved.
rather than to call perl /usr/PP/perl/auth
I call a ksh script setting the environment and exec perl with the command
line.
It work now.
Many thanks to everybody, specially those who responded.
Regards
Andre Her
BlarenbergLaan,2
2800 Mechelen
Belgium
Tel : +32 (0
Hi
And thanks to you for posting your final approach and solution.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: Her, Andre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 11:03 AM
To: '[EMAIL PROTECTED]'
Subject: problems with LD_LIBRARY_PATH --(SOLVED
thanks QM!
i upgraded to Tomcat 5.0.28 and it got rid of the problem!
woodchuck
--- QM [EMAIL PROTECTED] wrote:
On Sat, Oct 30, 2004 at 02:04:01PM -0700, Woodchuck wrote:
: is there a way i can tell whether it's patched with this fix or
not?
Yes -- search the archives and/or Bugzilla to
Found the problem. Never mind
From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: multiple seperate hosts issue
Date: Wed, 27 Oct 2004 17:43:14 +
I think I almost have it. However I seem to be coming up a
wee
Well, that was an easy fix...
I just changed the redirect port of the Coyote/JK2 AJP 1.3 Connector on
port 8009, to 443 instead of 8443... :)
Fred
On Wed, 2004-10-06 at 22:56 -0500, Fred Blaise wrote:
Hello
I am running apache 2.0.46 with SSL with tomcat/mod_jk2, white box
linux. I do not
beautiful! glad i could help save you some time and suffering :)
On Thu, 23 Sep 2004, Fournier, Pete wrote:
Date: Thu, 23 Sep 2004 13:15:20 -0400
From: Fournier, Pete [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: [Solved
I finally have IIS on two machines serving up load balanced requests to
two Tomcat machines and maintiaining Sticky Sessions.
Below I am including the workers2.properties file that did the trick in
case anyone else is having touble doing this. The only other change I
had to make was to the
Awful typo... works much better when j_user_name is spelled j_username
Issue resolved.
Thanks.
fb.
Quoting Fred Blaise [EMAIL PROTECTED]:
Hello all
I have been trying to set up FORM based authentication, but it only works
half-way.
When I try to get to the protected resource, it
Hi,
i did not change any settings, no restart and no anything; but now the timings are:
67 miliseconds pool
956 miliseconds nopool.
seems it simply takes several minutes until the pool is ready to use.
sorry for asking those stupid questions + thanks for helping,
Henrik
On Fri, 10 Sep 2004
it's an easy mistake to make. the usual trick to benchmark and
performance testing is to prime the server a bit. we've all made
that mistake at some point.
peter
On Fri, 10 Sep 2004 19:35:43 +0200, Henrik Rathje [EMAIL PROTECTED] wrote:
Hi,
i did not change any settings, no restart and no
nyhgan [EMAIL PROTECTED] wrote:Hi,
I fixed the problem. It was because I have a mix of jk and jk2 directives in my
httpd.conf. Everything works after I added the JkUriSet for the servlets and commented
the IfModule block below
Location /*.jsp
JkUriSet worker
QM wrote:
On Mon, Sep 06, 2004 at 02:55:13PM -0700, Garret Wilson wrote:
: I was planning on using the same set of libraries for multiple web
: apps---the jar in question had more than just servlets for a single web app.
There's no need to do this, really. Webapps are supposed to be
I fixed the problem now. The problem was because the path to the apxs I used was from
apache13.
ie, it works after I changed
--with-apxs2=/usr/sbin/apxs
to
--with-apxs2=/usr/local/apache2/bin/apxs
Olivier Jolly [EMAIL PROTECTED] wrote:nyhgan wrote:
I am trying to build the
Thank you so much for your suggestions!
The error is indeed in my code, specifically in a
MultipartRequest-related class that I downloaded from JavaPro
magazine. I never suspected this code because I didn't write it. I
guess there is a bug in their code that I now have to investigate
that; at
I found it!
Thanks to Akash Kava..
to get User: request.getHeader(IIS-REMOTE-USER);
to get Host: request.getHeader(IIS-REMOTE-ADDR);
if you're using Tomcat+IIS thru jspisapi filter..
it make use of NTLM authentication...
no need for jcifs filter.. no need to change server.xml or web.xml or
Marcel Stör wrote:
Bill Barker [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
I don't know of any problems with the Ajp12Connector (other than the
fact that it is old :). It looks like it should get the query string
from Apache fine. I also can't see why the request isn't
:[EMAIL PROTECTED]
Sent: 02 September 2004 08:56
To: Tomcat Users List
Subject: SOLVED! RE: Why request.getRemoteUser() returns NULL ?
I found it!
Thanks to Akash Kava..
to get User: request.getHeader(IIS-REMOTE-USER);
to get Host: request.getHeader(IIS-REMOTE-ADDR);
if you're using
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 7:29 PM
To: Tomcat Users List
Subject: RE: SOLVED! RE: Why request.getRemoteUser() returns NULL ?
Pleased you found a solution. Just to note however that the JK2 ISAPI
filter for IIS does work with just 1 line change to jk2.properties
On Thu, 12 Aug 2004, Jacob Kjome wrote:
| To get the context path at init time, try this
Thanks..! Good to see that others (log4j!!) have this problem!
However, I have been thinking along these lines (the second idea
presented) already, but it then again boils down to that you really
Hi,
No, not all of us will be happy. And it's not simple.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 5:27 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path
Millennium Research Informatics
-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 5:27 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web application?
On Thu, 12 Aug 2004, Jacob Kjome wrote:
| To get the context
On Fri, 13 Aug 2004, Shapira, Yoav wrote:
| Hi,
| And of course, since you can get the source for JSR154, there's nothing
| preventing you from adding this method and running with a custom servlet
| jar in your container. (It's at
| http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/jsr154/,
Per the servlet spec, a j2ee app isn't required to have an app path.
The entire war file can be deployed remotely and run without ever being
unpacked. In a case like that, there would be no path to the application.
On Friday 13 August 2004 10:01 am, Endre Stølsvik wrote:
But, why wouldn't all
Millennium Research Informatics
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Friday, August 13, 2004 10:12 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web application?
Per the servlet spec, a j2ee app isn't required to have an app
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web
application?
Per the servlet spec, a j2ee app isn't required to have an
app path. The entire war file can be deployed remotely and
run without ever being
unpacked. In a case like that, there would be no path
contextPath = path.substring(0, path.lastIndexOf(/));
contextPath = contextPath.substring(contextPath.lastIndexOf(/) +
1);
This looks like a reasonable hack, but isn't it true that the filesystem
path and the context path don't have to match? For example, I can map to
Quoting David Wall [EMAIL PROTECTED]:
contextPath = path.substring(0, path.lastIndexOf(/));
contextPath = contextPath.substring(contextPath.lastIndexOf(/) +
1);
This looks like a reasonable hack, but isn't it true that the filesystem
path and the context path don't have to
On Wed, 11 Aug 2004, David Wall wrote:
| The cause for some of these specs is the fact servlet containers aren't
| required to run on file systems. For example, they may run entirely
| inside a DBMS (and Oracle had such a container for a while), in which
| case you must deploy in a packed
To get the context path at init time, try this
from:
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/InitShutdownController.java
/**
* Retrieves the context path of the web application from the servlet
context.
*
* @param context the current
hai
use
request.getContextPath()
Rajesh
Jacob Kjome wrote:
To get the context path at init time, try this
from:
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/InitShutdownController.java
/**
* Retrieves the context path of the web application
OHH!!. How could we be so stupid???
RTFT! (that last 'T' would be 'thread')
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 8:47 AM
To: Tomcat Users List
Subject: Re: SOLVED: How to get the context path for a web
application?
hai
On Tue, 10 Aug 2004, Shapira, Yoav wrote:
|
| Hi,
|
| Agreed, but my follow-up question was if there was such a call to be
| done
| using a ServletContext/ServletConfig object so that you can get the
| context
| path in initialization servlets, etc., before a request comes in.
|
| No, and an
the expert group yourself, and I'm sure they'll weigh
your concerns seriously.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 5:25 AM
To: Tomcat Users List
Cc: David Wall
Subject: RE: SOLVED
The cause for some of these specs is the fact servlet containers aren't
required to run on file systems. For example, they may run entirely inside
a DBMS (and Oracle had such a container for a while), in which case you must
deploy in a packed WAR and the subset under a server's URL name space is
1 - 100 of 469 matches
Mail list logo