Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-30 Thread Per Johnsson
I downloaded Tomcat 6 (the alpha I presume) the zipped version and I I noticed there was no directory for shared/lib, common/ and no conf/Catalina. I Googled and read the doc and got no clue if there is some changes in the lib structure which you should be aware of. Is the conf/Catalina created w

RE: Two apps with different hosts?

2006-10-30 Thread Per Johnsson
Hi! I may be missinformed but I was told there may be issues with the loading of the shared libs if using pluto (jsr-168) if the appbase was outside the webapps directory and there could be other issues as well. /Per Jonsson -Original Message- From: Christopher Schultz [mailto:[EMAIL PR

RE: StandartSession.accessCount bug?

2006-10-30 Thread Michael Kantarovich
Guys, Did you consider to use java.util.concurrent.atomic.AtomicLong ? From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tue 10/31/2006 7:13 AM To: Tomcat Users List Subject: Re: StandartSession.accessCount bug? Christopher Schultz wrote: > I posted a commen

RE: StandartSession.accessCount bug?

2006-10-30 Thread Michael Kantarovich
Thanks! From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tue 10/31/2006 3:22 AM To: Tomcat Users List Subject: Re: StandartSession.accessCount bug? Michael Kantarovich wrote: > Hi, > > I'm using version 5.5.12. I noticed that sometimes sessions doesn't > expi

RE: JDK

2006-10-30 Thread Caldarale, Charles R
> From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: RE: JDK > > Tthe jk connector has changed and it would create a lot of > work for me to modify each webapp. I'm confused; although I don't use the AJP connector, I wasn't aware of any incompatible changes in it between 5.5.4 and 5.5.20, espe

Re: StandartSession.accessCount bug?

2006-10-30 Thread Mark Thomas
Christopher Schultz wrote: > I posted a comment on that bug that points out that you didn't provide > context for your numbers. Was that +50ms timing taken when you were > using a single thread, or multiple threads? Contended locks are much > slower, so it's important to know. It was contended. I h

Re: StandartSession.accessCount bug?

2006-10-30 Thread Christopher Schultz
Mark, > The problem is adding the sync hammers performance to the tune of > about 50ms for every request (at least in my system - YMMV). I posted a comment on that bug that points out that you didn't provide context for your numbers. Was that +50ms timing taken when you were using a single thread

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
Hi, I am using my own log handler which is application server independent. the pattern you use for dealing with proxy is ok, in some case, we try to find an approach to be adaptive for both cases that with or without proxy. It's good to hear that you solve your problem. Li On 10/31/06, Rashmi R

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
Hi Li, In my case my *website* itself is behind a proxy, that's why no matter who (remote or local) made the request it always shows the local IP 127.0.0.1, I have no choice but to use the x-forwarded-for header. As long as the site is behind a proxy I'll have to settle with x-forwarded-for .

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
Hi Rashmi, What you use is ok, but it wont work for every case, in case of no proxy used, %{x-forwarded-for}i; may not work ... Regards On 10/31/06, Li <[EMAIL PROTECTED]> wrote: Hi Rashmi, Thank you for sharing. Have a nice day. Li On 10/31/06, Rashmi Rubdi <[EMAIL PROTECTED] > wrote: >

Re: StandartSession.accessCount bug?

2006-10-30 Thread Mark Thomas
Christopher Schultz wrote: > Can someone explain why "unsynchronized data" + "threaded access" != > "non-threadsafe code"? > > It doesn't take a genius to see that the accessCount variable there is > not threadsafe. And since Tomcat ought to be implemented such that > multiple threads can run succ

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
Hi Rashmi, Thank you for sharing. Have a nice day. Li On 10/31/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: Hi Li, I'm sorry I should have re-referenced the AccessLogValve documentation earlier. I can still get this to work with the AccessLogValve custom pattern itself by adding the request

Re: StandartSession.accessCount bug?

2006-10-30 Thread Christopher Schultz
Mark, Mark Thomas wrote: > Michael Kantarovich wrote: >> Hi, >> >> I'm using version 5.5.12. I noticed that sometimes sessions doesn't >> expire after a "session-timeout". >> >> What do you think? > > That is http://issues.apache.org/bugzilla/show_bug.cgi?id=37356 Wow. Some real yelling and

Re: Servlet Mappings

2006-10-30 Thread Bill Barker
"ben short" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I just tried changing the /images/* to *.jpg and it works > Yes, Tomcat's default servlet won't work with a prefix map. It requires either a suffex map, or a default map. > On 10/30/06, ben short <[EMAIL PROTECTED]> wrot

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
Hi Li, I'm sorry I should have re-referenced the AccessLogValve documentation earlier. I can still get this to work with the AccessLogValve custom pattern itself by adding the request header in this pattern element %{xxx}i , where xxx is the request header. The following also worked, as shown

RE: JDK

2006-10-30 Thread Jim Weir
From: "Caldarale, Charles R" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: RE: JDK Date: Mon, 30 Oct 2006 12:53:47 -0600 > From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: RE: JDK > > It's 5.5.4.. That's pretty old, and a lot of fixes have gone in since

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > >default >/images/* > Thanks for the example. With that, turning on debugging, and looking at the code in DefaultServlet.java, I finally figured out what's going on. Turns out the stan

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
Hi Rashmi, You can creater your own log handler and pack it as jar and put it under tomcat lib dir, modify the loggin.properties file to have your handler work. Also, you can create your own request processor or intercepter to retrieve source ip from header and pass to logger. Regards On 10/3

Re: StandartSession.accessCount bug?

2006-10-30 Thread Mark Thomas
Michael Kantarovich wrote: > Hi, > > I'm using version 5.5.12. I noticed that sometimes sessions doesn't > expire after a "session-timeout". > > What do you think? That is http://issues.apache.org/bugzilla/show_bug.cgi?id=37356 I have some ideas for a fix. It might get in to 5.5.21 if I get

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: installing the admin on 5.5 > > download admin.zip from here > http://tomcat.apache.org/download-55.cgi Martin, please pay attention to the threads. He already did that, and it's successfully installed. > be sure to put commons-mod

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples" > JkMount /jsp-examples/*.jsp ajp13 > JkMount /jsp-examples/j_security_check ajp13 These three ought to do the trick. Which files aren't being served by Apache httpd? Can you give an example of a URI that sho

Re: installing the admin on 5.5

2006-10-30 Thread Martin Gainty
Good Evening Michael- download admin.zip from here http://tomcat.apache.org/download-55.cgi be sure to put commons-modeler.jar into $TOMCAT_HOME/webapps/admin/WEB-INF/lib HTH, M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the d

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
I think my web site is behind a proxy, I was told that request.getHeader("x-forwarded-for") should work instead of request.getRemoteAddr() , and it does work when I try it. The site correctly shows the remote client's IP Address. I guess there's no pattern element in Access Log Valve for captur

RE: installing the admin on 5.5

2006-10-30 Thread Michael Hencin
Excellent, thank you that all worked fine. I was not aware, nor was able to find any documentation "Easily" available to instruct me as to where and how to put those files. The structure in the zip did look very much like the tomcat install, but there is no "Read me" in the zip to instruct as so. T

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: installing the admin on 5.5 > > I did use all the apache org tomcat distributions. Nothing > third part. Good. > I never did edit the tomcat-users.xml. During the 5.5 install > I did create an "admin" users and password. I can use

RE: installing the admin on 5.5

2006-10-30 Thread Michael Hencin
I did use all the apache org tomcat distributions. Nothing third part. I never did edit the tomcat-users.xml. During the 5.5 install I did create an "admin" users and password. I can use this to access the tomcat manager application just fine. But I cannot gain access to any sort of login page at

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: installing the admin on 5.5 > > I am having a bear of a time installing the admin application > for 5.5. I downloaded and unzipped the apache-tomcat-5.5.20-admin.zip, > expanded the contents. That's all you need to do - if you expand

installing the admin on 5.5

2006-10-30 Thread Michael Hencin
I am having a bear of a time installing the admin application for 5.5. I downloaded and unzipped the apache-tomcat-5.5.20-admin.zip, expanded the contents. Then using the tomcat manager application deployed the files OK. But when I try to access the admin app, I get this error. HTTP Status 5

maxPostSize configuration in Tomcat connector?

2006-10-30 Thread toadie D
from the config guide in 5.5, http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html, there's a way to configure the size of the data handled by Tomcat when processing request with Content-Type : application/x-www-form-urlencoded The default value is 2Meg. From a best practice perspective in r

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
Hi Li and Pid, Thanks again for your replies. You are right, I also tried printing request.getRemoteAddr() in a JSP, and it always lists 127.0.0.1 As you have suggested my site could be behind a proxy, but I don't know this for sure. I've asked the host provider if this is the case and waitin

String cache setting - looking for documentation and cause of out of memory error

2006-10-30 Thread Ellen O'Sullivan
I'm looking for more information about the String cache configuration in the Catalina.properties file. I've searched through Tomcat documentation and I can't find any details about this. We have a servlet that processes requests that can be large, sometimes over 2MB (we have set the MaxPostSize t

Re: Very basic web server hosting question

2006-10-30 Thread Pid
I was being polite, (if a little indirect), as I'd noticed that it wasn't the first time that you'd posted the question. List members normally respond if the question is interesting, even if it's not relevant - which is the case here. It's not a Tomcat problem, ergo the Tomcat Users List membersh

Re: Servlet Mappings

2006-10-30 Thread ben short
Heres the web.xml mapping to a simple servlet.. Archetype Created Web Application test Test 1 default /images/* test / The Servlet public class Test extends HttpServlet { protected void doGet(HttpServletRequest httpServl

Re: Very basic web server hosting question

2006-10-30 Thread David Smith
I understand the frustration, but at the same time, this is a more or less basic web/network administration question. You need to read your cable router manual for how to forward traffic to a specific port (80) to a specific machine on the inside of your firewall or setup your server system to

Re: Servlet Mappings

2006-10-30 Thread ben short
I deploy this test webapp via the tomcat manager to http://myhost/test. The appBase in the sever.xml is set, as default, to webapps. The directory structure is webapps - ROOT - Currently another applicaiton I have setup. - test - The test application. When deploying to the root, just name the

Re: Very basic web server hosting question

2006-10-30 Thread Martin Gainty
Canada- record the dynamic IP that the Tomcat server is running on and have the other boxes reference that IP in browser e.g. Tomcat server = 192.168.1.100 now other machines reference by going to http://192.168.1.100:8080 if you dont want IPs then publish a hosts file somewhere e.g /hosts 192.1

Re: Tab library question...

2006-10-30 Thread David Smith
I would think there are two ways: 1) Write a jsp with the custom tag in it. The custom tag only does the work and exposes result beans to the jsp for rendering. Keep the whole thing in it's own jsp and then use to bring the end result into the main page. Beans in this case only need be exp

Re: Very basic web server hosting question

2006-10-30 Thread David Kerber
Use your router's instructions to set "port forwarding". You will need to specify the port the outside world will connect to, and what port on your machine those connections will be forwarded to. The details vary by router manufacturer and model, so we can't give you specific instructions. H

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > Im deploying a war file. Im also using spring. I havent touched the > web.xml. I have litrally downloaded and un tared the file from the > apache tomcat website. I'm not familiar with configuring spring, so so

Re: Tab library question...

2006-10-30 Thread Rahul Akolkar
On 10/30/06, Nathan Wilhelmi <[EMAIL PROTECTED]> wrote: Hello - This may be a bit off topic, and if so any recommend pointers to the right place would be great. I really like the reuse aspects of tag libraries, however I don't like doing all the println statements to emit HTML. Feels like there h

Re: Very basic web server hosting question

2006-10-30 Thread EDMOND KEMOKAI
CANADAFAST INC. who ever you're, getting obnoxious isn't going to get your issue resolved. As was pointed out by the previous responder, your problem isn't a Tomcat one, this is a Tomcat mailing list. If you know what you're doing you should no trouble accomplishing your task, I have a similar set

RE: Very basic web server hosting question

2006-10-30 Thread Rick Fisk
The point is, whether you were using Apache, IIS, or Tomcat, the problem you are trying to resolve is generic and not related to tomcat itself. Thus, this probably isn't the proper forum to direct your question. -Original Message- From: CANADAFAST INC. [mailto:[EMAIL PROTECTED] Sent: Mond

StandartSession.accessCount bug?

2006-10-30 Thread Michael Kantarovich
Hi, I'm using version 5.5.12. I noticed that sometimes sessions doesn't expire after a "session-timeout". I started to debug my application and when I haven't found anything useful I proceeded to Tomcat's code. It looks that there is a synchronization bug during the update of the "StandardSess

Re: Very basic web server hosting question

2006-10-30 Thread CANADAFAST INC.
I don't care if anyone finds this question interesting or not. I just want a solution, if it were in the linksys manual then I would not have posted the question, I tried solving the problem by calling the linksys tech support, also had a chat session with them, but they don't understand the pr

Tab library question...

2006-10-30 Thread Nathan Wilhelmi
Hello - This may be a bit off topic, and if so any recommend pointers to the right place would be great. I really like the reuse aspects of tag libraries, however I don't like doing all the println statements to emit HTML. Feels like there has to be a better way. What I would really like, I th

Re: Servlet Mappings

2006-10-30 Thread ben short
I just tried changing the /images/* to *.jpg and it works On 10/30/06, ben short <[EMAIL PROTECTED]> wrote: Charles, Im deploying a war file. Im also using spring. I havent touched the web.xml. I have litrally downloaded and un tared the file from the apache tomcat website. Here is the layout

RE: JDK

2006-10-30 Thread Caldarale, Charles R
> From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: RE: JDK > > It's 5.5.4.. That's pretty old, and a lot of fixes have gone in since then. I'd suggest moving up. > How do I remove the 1.4 Compatibility Package? In 5.5.20, the Compatibility Package adds three jars: bin/jmx.jar commo

RE: servlet not found since i replace tomcat 4.1.30 by tomcat 4.1.34

2006-10-30 Thread Asensio, Rodrigo
Please, post your stacktrace to give you a better idea -Original Message- From: Philippe Couas [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 1:30 PM To: tomcat-user@jakarta.apache.org Subject: servlet not found since i replace tomcat 4.1.30 by tomcat 4.1.34 Hi I want rep

RE: JDK

2006-10-30 Thread Jim Weir
From: "Caldarale, Charles R" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: RE: JDK Date: Sun, 29 Oct 2006 22:57:39 -0600 > From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: JDK > > I recently upgraded to jdk1.5.0_09, now when I start tomcat I > get this i

servlet not found since i replace tomcat 4.1.30 by tomcat 4.1.34

2006-10-30 Thread Philippe Couas
Hi I want replace tomcat 4.1.30 by tomcat by tomcat 4.1.34 I have error 404 class not found on my servlet ?? It always in lib directory , where is my mistake Regards Philippe

Re: Very basic web server hosting question

2006-10-30 Thread Pid
The reason no-one is finding this an interesting question is that it's not really anything to do with Tomcat. Your LinkSys router probably has a manual, or at least some basic instructions for how to map external ports to the internal server. CANADAFAST INC. wrote: > Hello! > > > I a

Re: Servlet Mappings

2006-10-30 Thread ben short
Charles, Im deploying a war file. Im also using spring. I havent touched the web.xml. I have litrally downloaded and un tared the file from the apache tomcat website. Here is the layout of the test app;lication i have setup to try it out. test - images - test.jpg - WEB-INF - web.xml - test-s

Re: Changing port for tomcat5.5

2006-10-30 Thread Pid
Start here: http://tomcat.apache.org/tomcat-5.5-doc/ Then read all of: http://tomcat.apache.org/tomcat-5.5-doc/config/index.html Then find "conf/server.xml" and change the port 8080 to 80 CANADAFAST INC. wrote: > > Hello! > > My tomcat 5.5 is running on port 8080 on my pc(windows xp)

Changing port for tomcat5.5

2006-10-30 Thread CANADAFAST INC.
Hello! My tomcat 5.5 is running on port 8080 on my pc(windows xp), how should I configure to chage it to run on port 80? thank you - Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

Very basic web server hosting question

2006-10-30 Thread CANADAFAST INC.
Hello! I am a new tomcat 5.5 user. I have created some JSPs and they run perfectly in my PC using tomcat. I want to make my PC a webserver, so that ppl from outside can access my JSPs through tomcat 5.5 running on my system. My PC is connected to a router and my router is co

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I tried that but no good... I'vre tried this and still nothing: # The following line makes apache aware of the location of # the /jsp-examples context Alias /jsp-examples "/srv/www/tomcat5/base/webapps/jsp-examples" Options Indexes FollowSymLinks AllowOverrid

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > But when I use "JkMount /jsp-examples ajp13" doesn't this tell Apache that > everything inside /jsp-examples "goes" to Tomcat? No, it doesn't. JkMount does two kinds of matching: exact and wildcard. Exact: JkMount /jsp-examples ajp13 This will map the URI "/jsp-examples" to Tomcat,

Re: mod_jk configuration

2006-10-30 Thread bcochofel
But when I use "JkMount /jsp-examples ajp13" doesn't this tell Apache that everything inside /jsp-examples "goes" to Tomcat? Christopher Schultz-2 wrote: > > Bruno, > >> I have one more question, let's take /jsp-examples to explain... >> I want *.jsp send to tomcat for processing but all stat

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > I have one more question, let's take /jsp-examples to explain... > I want *.jsp send to tomcat for processing but all static contents processed > by apache, how can I do this? This should be the default. Anything for which you do not explicitly have a "JkMount" directive will be served b

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > Well I've tried adding DirectoryIndex index.html index.htm index.jsp but no > good... Can you post the relevant portions of your httpd.conf? > Does jk.cong overrides my apache conf? jk.conf is just included in httpd.conf (right?), so it can certainly override your httpd.conf. -chris

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Subject: RE: Servlet Mappings > > What's the directory structure under ROOT? Is ROOT under > your 's appBase? For that matter, what's the > directory structure under appBase? Should have mentioned that your images directory should be un

Re: mod_jk configuration

2006-10-30 Thread bcochofel
I had JkMount /jsp-examples worker1 and now the problem is gone... Thanks I have one more question, let's take /jsp-examples to explain... I want *.jsp send to tomcat for processing but all static contents processed by apache, how can I do this? Sorry for all the question but I'm new to

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > My webapp is deployed as ROOT. What's the directory structure under ROOT? Is ROOT under your 's appBase? For that matter, what's the directory structure under appBase? > If I chop all of the mappings out of

Re: Servlet Mappings

2006-10-30 Thread ben short
Yes I really have a error subdir under the images directory. this is what i see in the access log. 192.168.6.185 - - [30/Oct/2006:15:16:51 +] "GET /images/error/logo.gif HTTP/1.1" 404 1018 192.168.6.185 - - [30/Oct/2006:15:16:51 +] "GET /favicon.ico HTTP/1.1" 302 - 192.168.6.185 - - [30/

Re: mod_jk configuration

2006-10-30 Thread Martin Gainty
Bruno- box: login as root to the box tomcat: login with tomcat-user (such as admin or manager) that already has admin,manager privs M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I would appreciated... Jorge Cabrera wrote: > > Hi, > > Christopher Schultz wrote: >> Bruno, >> >> >>> when I try >>> http://localhost/jsp-examples http://localhost/jsp-examples (without >>> the /) >>> I get this error: >>> >>> Forbidden >>> You don't have permission to access /jsp-e

Re: mod_jk configuration

2006-10-30 Thread bcochofel
Well I've tried adding DirectoryIndex index.html index.htm index.jsp but no good... My Apache configuration has this and all the links work with or without the / Does jk.cong overrides my apache conf? Christopher Schultz-2 wrote: > > Bruno, > >> when I try >> http://localhost/jsp-examples http

Re: mod_jk configuration

2006-10-30 Thread Jorge Cabrera
Hi, Christopher Schultz wrote: Bruno, when I try http://localhost/jsp-examples http://localhost/jsp-examples (without the /) I get this error: Forbidden You don't have permission to access /jsp-examples on this server. Additionally, a 403 Forbidden error was encountered while trying to us

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > I changed the mapping to as follows but no joy. Although the problem > seems to of changed slightly. When I try to request an images > http://myhost/images/error/logo.gif i get a 404. I have double checked > an

Re: Servlet Mappings

2006-10-30 Thread ben short
Hi, I changed the mapping to as follows but no joy. Although the problem seems to of changed slightly. When I try to request an images http://myhost/images/error/logo.gif i get a 404. I have double checked and the image is definatly in the correct location. testerror /error/*

Auto-deploying to multi-level context paths

2006-10-30 Thread Johnson, David
Is there any way to set up an application so that the auto-deployer will place it at a context path containing more than one level? For example, I want my application at /hr/policies. I can setup the context like this in server.xml, but this is bad because I would need a server restart to change

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Servlet Mappings > > > testerror > /error/* > The above is correct; note the trailing "/*". > > test > / > This one says to send everything that doesn't match something else to th

Re: Servlet Mappings

2006-10-30 Thread Christopher Schultz
Ben, > With this setup requests that start with /error go to the testerror > servlet, all other requests go to the test servlet. Just a guess, but I would try putting this catch-all servlet mapping: test / at the end of the mappings. Or at the beginning if that doesn't wo

Re: Question with the Apache/Tomcat interface...

2006-10-30 Thread Kim Albee
Here's what we figured out the issue was, after MUCH research... I'm providing it into the mailing list in case others have issues with Apache and Tomcat connection getting the error: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=p2 failed er

Re: mod_jk configuration

2006-10-30 Thread Christopher Schultz
Bruno, > when I try > http://localhost/jsp-examples http://localhost/jsp-examples (without the /) > I get this error: > > Forbidden > You don't have permission to access /jsp-examples on this server. > Additionally, a 403 Forbidden error was encountered while trying to use an > ErrorDocument to

Re: Two apps with different hosts?

2006-10-30 Thread Christopher Schultz
Per, > So if we want to have more applications inside webapps and with > different hosts we get several instances, so our only solution was to > use a dummy appBase for one of the applications and point out the off > the apps directly (which if I'm not misinformed can have behavior on the > libs i

mod_jk configuration

2006-10-30 Thread bcochofel
I'm new to tomcat and mod_jk and I have a question abou the configuration... I can access http://localhost:8080/jsp-examples http://localhost:8080/jsp-examples and http://localhost/jsp-examples/ http://localhost/jsp-examples/ but when I try http://localhost/jsp-examples http://localhost/jsp-e

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
Hi Rashmi, if there is problem with retrieving correct remote IP address, log4j will not solve problem ... it seems like this: remote user ---(send request) ---> your proxy (or maybe you use some connector or forwardor) > tomcat if 127.0.0.1, seems your connector or forwardoer is located i

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Pid
Do you have a local proxy between the tomcat instance and the requestor? Rashmi Rubdi wrote: > Li, > > Thanks for the reply. > > As indicated in your illustration, in your case the remote IP address (IP of > the client browser) is correctly displaying. > > But in my case, for some reason

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
Li, Thanks for the reply. As indicated in your illustration, in your case the remote IP address (IP of the client browser) is correctly displaying. But in my case, for some reason even when my website is accessed remotely it always shows local IP Address (the website's IP address) and not t

Re: Monitor Tomcat

2006-10-30 Thread Dan Baumann
On 30.10.2006, at 11:21, Thomas Nowotny wrote: I use a lot of tomcat in differnt systems with different jobs. Now I like to monitor them. I'm realy intressted in values like hit per s/ m/h or something like that. I can not parse the logfiles and I don't want to use jmeter so I need another way

Servlet Mappings

2006-10-30 Thread ben short
Hi I am having some trouble with setting up my servlet mappings. I am replacing a legacy webapp but need to keep the same urls. The current webapp uses cocoon. Here is my web.xml http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLo

Monitor Tomcat

2006-10-30 Thread Thomas Nowotny
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I use a lot of tomcat in differnt systems with different jobs. Now I like to monitor them. I'm realy intressted in values like hit per s/m/h or something like that. I can not parse the logfiles and I don't want to use jmeter so I need ano

Re: Tomcat Security

2006-10-30 Thread Maurice Yarrow
Hi Chuck Yes, you are perfectly correct. Security-constraint via web.xml allows fine grain definition of the URI path: agreed. And also, yes, because paths/URI's are fully specified in the .., their is an inherent static nature to this. As such, this is not suitable to the particular require

Two apps with different hosts?

2006-10-30 Thread Per Johnsson
We have two different applications running on tomcat 5 today with different hosts, one is inside the webapps directory and one did we put outside. Before we had both the applications in webapps but that made tomcat run several instances of the apps due to we declared the http://www.mysite.com> " ap

Re: Tomcat unable to find the apr library

2006-10-30 Thread Rolf Herzog
I have exactly the same problem on RHEL 4: I compiled tomcat-native.tar.gz from tomcat 5.5.20 and installed the resulting dynamic library into /usr/local/apr/lib. Then I added CATALINA_OPTS="-Djava.library.path=/usr/local/apr/lib" to my tomcat start script. I still get the message: The Apache T

RE: [Isapi filter] jsessionid filtering

2006-10-30 Thread Remy.Coqueugniot
Anyone got some ideas ? Thanks, RC > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 27 octobre 2006 09:48 > À : users@tomcat.apache.org > Objet : [Isapi filter] jsessionid filtering > > Hi everyone, > > My environment: win2003 / Tomcat

Re: Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Li
what you defined is correct ... a simpler way is using default setting the result should be (if you are testing from same host) 127.0.0.1 - - [18/Oct/2006:18:54:48 +0800] "GET /site/ HTTP/1.1" 200 306 127.0.0.1 - - [18/Oct/2006:18:54:48 +0800] "GET /site/Welcome.do HTTP/1.1" 200 1775 (if your u

Is it possible to log IP Address of requestor with custom AccessLogValve pattern?

2006-10-30 Thread Rashmi Rubdi
Hello, My site is hosted on Tomcat 5.5 and I'm trying to log the IP Address of search engine bots that crawl the site. After reading the following documentation here, which is written very nicely btw http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html http://tomcat.apache.org/tomcat-5.5-