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-

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

2006-10-30 Thread Rashmi Rubdi
0800] "GET /site/Welcome.do HTTP/1.1" 200 8893 ... On 10/30/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: > > 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 readi

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

2006-10-30 Thread Rashmi Rubdi
IP address or hostname if not 127.0.0.1, seems the request comes from proxy On 10/30/06, Pid <[EMAIL PROTECTED]> wrote: > > Do you have a local proxy between the tomcat instance and the requestor? > > > > Rashmi Rubdi wrote: > > Li, > > > > Thanks for th

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

2006-10-30 Thread Rashmi Rubdi
Access Log Valve for capturing the x-forwarded-for. I might have to log it with Log4J. Sincerely -Rashmi - Forwarded Message ---- From: Rashmi Rubdi <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, October 30, 2006 5:03:44 PM Subject: Re: Is it possible to log IP Addres

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

2006-10-30 Thread Rashmi Rubdi
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/31/

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

2006-10-30 Thread Rashmi Rubdi
r 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 th

Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project.

2006-11-09 Thread Rashmi Rubdi
I'm working on 2 different projects and I'm having problems while trying to switch between 2 projects that are both set up at the ROOT context. My Environment: Tomcat 5.5, Windows XP On the development environment there are 2 ROOT.xml context files under: \apache-tomcat-5.5.12\conf\Catalina\loca

Re: Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project.

2006-11-09 Thread Rashmi Rubdi
T context deletes the source folder of the 2nd project. On 11/9/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: > I'm working on 2 different projects and I'm having problems while trying to > switch between 2 projects that are both set up at the ROOT context. The first ques

Re: Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project.

2006-11-10 Thread Rashmi Rubdi
mber 9, 2006 2:35:52 PM Subject: Re: Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project. On 11/9/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: > But, my problem only applies to the development envrionment. I tried to set >

Re: Path mapping...

2006-11-10 Thread Rashmi Rubdi
Peter, I'm not too sure if this will help but, you might want to try URL Rewriting, if you have Apache as the web server you could use it's rewrite features. I don't think Tomcat5.0 has a Rewrite feature built in but I came accross this one: URLRewriteFilter http://tuckey.org/urlrewrite/ it wo

How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Rashmi Rubdi
I have 2 separate projects set up as virtual hosts http://projectA:8080/ http://projectB:8080/ so that each of them can be run from the ROOT context in the development environment. Just to make it easier to switch between them. HTTP Session was working before I set up Virtual Hosts on Tomcat 5.5

Re: How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Rashmi Rubdi
, the problem seems to be something else. Thanks for pointing out the context path. -Rashmi - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Saturday, November 11, 2006 9:15:03 AM Subject: Re: How do I enable HTTP Sessions after se

Re: How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Rashmi Rubdi
copying of it or its contents - Original Message - From: "Rashmi Rubdi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, November 11, 2006 1:36 PM Subject: Re: How do I enable HTTP Sessions after setting up Virtual Hosts? Sorry I didn't explain the te

Re: How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Rashmi Rubdi
I was able to solve the problem of HTTP Session with Virtual Host configuration on Internet Explorer 6.0 . I'd like to re-state the problem I was facing in a clear manner in case someone else has the same problem, they might find this useful. In IE 6.0 I was able to set and get the value stored

Re: How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Rashmi Rubdi
ou have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Rashmi Rubdi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, November 11, 2006 3:2

Re: mod_rewrite - round robin

2006-11-11 Thread Rashmi Rubdi
Hi Mary, This is the Tomcat Users Mailing list. Since your question involves Apache HTTP Server there's a separate mailing list for it. More details about it are here: http://httpd.apache.org/lists.html -Rashmi - Original Message From: "Michael, Mary" <[EMAIL PROTECTED]> To: users@

Re: Is jsp designed for use by large websites

2006-11-26 Thread Rashmi Rubdi
So far I've found only 1 host provider that supports JSPs and WAR files for about the same cost as the PHP hosts - around 6 bucks/mo. but the server crashes/shuts-down quite often; probably because it's over loaded with too many virtual hosts. Everyone else hosts on PHP as you said. There are

Re: Is jsp designed for use by large websites

2006-11-28 Thread Rashmi Rubdi
Yup, I don't think there's anything Tomcat could do to make *small cost* hosting companies to embrace Tomcat. Many big businesses are using Tomcat. But, when it comes to smaller hosting companies I've come accross only one host in the US who supports Tomcat with MySQL everyone else only suppor

Re: UrlRewrite Rule works on tomcat 4.1.34 but fails on tomcat 5.0.28

2006-11-28 Thread Rashmi Rubdi
Hi Ying, I'm using UrlRewrite with Tomcat5.5 and it works fine. I think there's a problem in the rule it mentions deviceCode but I don't really see the words deviceCode in the from URL. There's a group for UrlRewrite filter http://groups-beta.google.com/group/urlrewrite I think if you post y

Re: Is jsp designed for use by large websites

2006-11-30 Thread Rashmi Rubdi
>> With JSPs, it was always: edit, save, deploy to >>Tomcat, go to test launcher page, then click on link/button to launch >>the modified page (refresh didn't always cause a recompile, don't know >>if that was a browser or Tomcat (or Apache->Tomcat) issue). Remy is right, with JSPs also it's possi

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Rashmi Rubdi
> Caldarale, Charles R wrote: > Filter with wrapper ServletResponse is IMO the best solution. > You can apply it to almost every application without touching the code. >>Perhaps that is the /quickest/ solution, but I would argue that the best >>solution is not to create a session if you don't actu

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Rashmi Rubdi
- Original Message From: "Caldarale, Charles R" [EMAIL PROTECTED] >>From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] >> >> There's no jsessionid appended at the end of URLs that the >> bot requests. >Depends on what the value of the cookies at

Re: Web spiders - disabling jsessionid

2006-12-01 Thread Rashmi Rubdi
- Original Message From: "Caldarale, Charles R" [EMAIL PROTECTED] >> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] >> Subject: Re: Web spiders - disabling jsessionid >> >> I think then, setting cookies to "true", or simply leaving >> o

Re: Quick webapp reloading [was : Is jsp designed for use by large websites]

2006-12-02 Thread Rashmi Rubdi
: Saturday, December 2, 2006 1:17:41 PM Subject: Quick webapp reloading [was : Is jsp designed for use by large websites] Hello, listers ! 2006/11/30, Rashmi Rubdi <[EMAIL PROTECTED]>: Remy is right, with JSPs also it's possible to instantly see your changes by > simply refreshi

Re: Quick webapp reloading [was : Is jsp designed for use by large websites]

2006-12-02 Thread Rashmi Rubdi
It's even simpler to simply keep your source files in your original project directory independent of Tomcat and simply change the Context file's docBase attribute to point to where your project is located. This way your project is independent of Tomcat upgrades etc, and all project files are o

Re: Quick webapp reloading [was : Is jsp designed for use by large websites]

2006-12-02 Thread Rashmi Rubdi
5:04:09 PM Subject: Re: Quick webapp reloading [was : Is jsp designed for use by large websites] Hi ! Yes, it does work !! This plus my discovery of yesterday (Eclipse's working sets) et voila ! My productivity increases. But just three things to add : 2006/12/2, Rashmi Rubdi <[EMAIL

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
- Original Message From: brycenesbitt <[EMAIL PROTECTED]> >>The problem in many cases is the author does not care about sessions at all! >>Creating semicolon-based URL strings is the default in Tomcat/Struts. We >>get session ID's not because we want a session, but because we can't figur

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
Or simply leave out the cookies attribute in your Context, this defaults to cookies = "true" anyway. >>No option seems to match the need: >>true -- uses URL-rewriting if the browser does not support cookies. this is >>exactly the problem, as spiders don't use cookies. No. Googlebot and other

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
Original Message From: Eric Haszlakiewicz [EMAIL PROTECTED] >> Perhaps that is the /quickest/ solution, but I would argue that the best >> solution is not to create a session if you don't actually need one. >heh. yeah, not creating the session is definitely NOT the quickest way. :) >e

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
- Original Message >From: brycenesbitt [EMAIL PROTECTED] >>Rashmi Rubdi wrote: >> >>So the solution for Bryce would be to leave the session on on each JSP >> page, and omit the cookies attribute of > true. >>This should solve the problem of jsessio

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
--- Original Message From: Len Popp <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, December 3, 2006 8:10:00 PM Subject: Re: Web spiders - disabling jsessionid On 12/3/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: > No , I'm using Tomcat 5.5. And I've omitted the

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
One thing about search engine bots though is that repairs to jsessionid (removing jsession id) from URLs won't be instantaneous, because they cache all URLs, and on subsequent visits they visit each cached URL. This means that even if you solve the problem of jsessionid now, you will still see

Re: Web spiders - disabling jsessionid

2006-12-03 Thread Rashmi Rubdi
- Original Message From: brycenesbitt [EMAIL PROTECTED] >>A quick google search will show this happens to many other people -- even if >>your webapps are magically immune. http://www.citycarshare.org/ is >>definitely affected. It's not magically immune. It's just built differently fro

Re: How to password protect a directory?

2006-12-05 Thread Rashmi Rubdi
With Tomcat you can also use a URL Rewrite Filter to transparently (HTTP 200) redirect requests to the protected folder to a HTTP 403 status or a password required page. But I can't gurantee if URL Rewriting makes the directory fully secure. - Original Message From: David Delbecq <[EMA

Re: How to password protect a directory?

2006-12-05 Thread Rashmi Rubdi
2006 11:08:15 AM Subject: Re: How to password protect a directory? Rashmi Rubdi wrote: > With Tomcat you can also use a URL Rewrite Filter to transparently (HTTP 200) > redirect requests to the protected folder > to a HTTP 403 status or a password required page. > But it would

Re: JSP pre-compilation at start-up

2006-12-05 Thread Rashmi Rubdi
I would like to add a few things to what Tracy mentioned. You'll need the Jasper ant task. It's very easy to set-up all instructions are here at the bottom of this http://tomcat.apache.org/tomcat-4.1-doc/jasper-howto.html When you use this Ant task, it first creates Java files of all JSPs and

Re: Is jsp designed for use by large websites

2006-12-06 Thread Rashmi Rubdi
- Original Message >>From: Peter Crowther [EMAIL PROTECTED] >>Tomcat and JSP is a perfectly good model for web applications. However, >>if the Java community and the Tomcat developers don't innovate and other >>communities do (for example the PHP community and Microsoft), people >>deplo

Re: JSessionId and Google

2006-12-06 Thread Rashmi Rubdi
Hi Simon, There is a debate about this topic and there are a few threads on this, in the archive. While it is true for some that the jsessionid appears in the URL, it's not happening in my case and I don't have a clear explaination as to why. But if you are unable to remove jsessionid from

Re: Trailing slash added

2007-01-14 Thread Rashmi Rubdi
I think you can customize it with URL Rewriting Filters. Google URLRewriteFilter to find pre-built packages, or you can write your own. -Rashmi - Original Message From: Tim Funk <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, January 14, 2007 12:26:39 PM Subject: Re: Trailing

Re: Trailing slash added

2007-01-14 Thread Rashmi Rubdi
k the handling of relative URLs on those pages. When the user clicks on a link with a relative URL, the browser has to convert that to an absolute URL. If the browser doesn't know that the current page is a directory it will calculate the absolute URL incorrectly. -- Len On 1/14/07, Rashmi

Re: Questions about JSP programming

2007-01-14 Thread Rashmi Rubdi
I recommend SDN's JSP forum : http://forum.java.sun.com/forum.jspa?forumID=45 And for JSP Tag Libraries this mailing list : http://jakarta.apache.org/taglibs/#MailingLists 1) I tested your jsp: include, both files returned the same size when tested with Firefox's page size extension tool. I got

Re: Questions about JSP programming

2007-01-14 Thread Rashmi Rubdi
ROTECTED]> To: Tomcat Users List Sent: Monday, January 15, 2007 2:28:00 AM Subject: Re: Questions about JSP programming Hi, Rashmi, thanks for replying. On 1/15/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: > I recommend SDN's JSP forum : http://forum.java.sun.com/forum.jspa?

Re: Questions about JSP programming

2007-01-15 Thread Rashmi Rubdi
Zack, I don't think it's the include directive alone causing a memory error. I'm guessing that there might be a lot of processes in his application running on Tomcat, eventually causing an out of memory error or may be the system does not have minimum required memory to run Tomcat. With Tomc

[OT] Trailing slash added

2007-01-15 Thread Rashmi Rubdi
- Original Message From: Len Popp <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, January 15, 2007 12:06:09 PM Subject: Re: Trailing slash added >>If you move a file you will have to fix some links, no matter what >>sort of URLs you use. If nothing else, the links that referred

Re: Trailing slash added

2007-01-15 Thread Rashmi Rubdi
Could you explain to us, why you want to get rid of the trailing slash ? >Could anyone please expand a little more on what's meant by the two >statements below? >>Len Popp wrote: >> >> It doesn't matter if it's done by URLRewriteFilter or some other >> method because it's the browser that inter

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
Hello Jeanna, A quick search gave me this page: http://www.checkupdown.com/status/E505.html which explains the 505 error in detail They recommend upgrading one's browser. What browser are you using on your Laptop, and what is the version of that browser? If it is too old then it's time to up

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
Also what version of Tomcat/ Web Server are you using? - Original Message From: Rashmi Rubdi <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, January 15, 2007 7:53:25 PM Subject: Re: HTTP Error 505 Hello Jeanna, A quick search gave me this page: http://www.checkupdo

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
ks for the reply Rashmi. I've been searching and saw that page as well; both the desktop and laptop are running Mozilla Firefox v.2.0.0.1 and Tomcat v.5.0.28 as well. Unfortunately, that bit o' information is all our program is returning on the error... -Original Message- From: R

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
this REQUEST GET/HTTP/1.1 RESPONSE HTTP/1.1 200 OK If either request or response show a different http version then, it'll help in investigating this further. -Rashmi - Original Message ---- From: Rashmi Rubdi <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, January 15,

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
searching and saw that page as well; both the desktop and laptop are running Mozilla Firefox v.2.0.0.1 and Tomcat v.5.0.28 as well. Unfortunately, that bit o' information is all our program is returning on the error... -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent

Re: HTTP Error 505

2007-01-15 Thread Rashmi Rubdi
ell. > > Unfortunately, that bit o' information is all our program is returning on > the error... > > -Original Message- > From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Sent: Monday, January 15, 2007 6:53 PM > To: Tomcat Users List > Subject: Re: HTT

Re: context.xml in Tomcat 6

2007-01-16 Thread Rashmi Rubdi
I think if you are using server.xml , you don't have to change context.xml and vice versa. It's enough if you just change the application_name.xml which should be located under \apache-tomcat-5.5.12\conf\Catalina\localhost\ -Rashmi - Original Message From: Wojtek Kusch <[EMAIL PROTE

Re: Trailing slash added

2007-01-17 Thread Rashmi Rubdi
interpreted Len's comments were that it's the server > that does the URL creation/translation, and the browser that does URL > resolution...two different concepts... > There is some long discussion along the same lines http://lists.samba.org/archive/jcifs/2004-December/004395.html &

Re: Change the encoding format of xml outpu

2007-01-20 Thread Rashmi Rubdi
Sarah, I'm just following up on what JV mentioned. The "Content is not allowed in prolog" is caused when there is the BOM - Byte Order Mark character before the prolog To: Tomcat Users List Sent: Saturday, January 20, 2007 2:39:03 PM Subject: Re: Change the encoding format of xml outpu Hi Sa

Re: Change the encoding format of xml outpu

2007-01-20 Thread Rashmi Rubdi
'êtes pas le destinataire de ce document, nous vous signalons > qu'il est strictement interdit de le diffuser, de le distribuer ou > de le reproduire. > - Original Message - > From: "Rashmi Rubdi" <[EMAIL PROTECTED]> > To: "Tomcat Users List"

Re: Large number of active sessions

2007-02-06 Thread Rashmi Rubdi
You can also activate server logs to log both visitor and bot activity by configuring AccessLogValve : http://tomcat.apache.org/tomcat-5.0-doc/config/valve.html . Some bots take up a lot of sessions, you can verfiy this by running a program like Xenu Link Sleuth on your site. Then, you will b

Re: Large number of active sessions

2007-02-06 Thread Rashmi Rubdi
Google Analytics is Javascript based, it won't show bot activity. Some bots also use sessions. - Original Message From: Christer Nordvik <[EMAIL PROTECTED]> To: Tomcat Users List ; [EMAIL PROTECTED] Sent: Tuesday, February 6, 2007 3:46:12 PM Subject: Re: Large number of active sessions

[OT]Re: Large number of active sessions

2007-02-07 Thread Rashmi Rubdi
I agree that many have experienced the jsessionid on URLs accessed by bots, perhaps it happens in a Struts environment or some other environment. In certain set-ups (only JSPs, no servlets, no MVC - session is removed and created freshly on each JSP page) the jsessionid doesn't appear on URLs a

Re: [OT]Re: Large number of active sessions

2007-02-08 Thread Rashmi Rubdi
al Message From: Pid <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, February 8, 2007 8:46:22 AM Subject: Re: [OT]Re: Large number of active sessions Rashmi Rubdi wrote: > I agree that many have experienced the jsessionid on URLs accessed by bots, > perhaps it happens

Re: [OT]Re: Large number of active sessions

2007-02-09 Thread Rashmi Rubdi
In the above cases index.jsp is using sessions, and so are almost all other JSP pages on the web app. So since bots are HTTP/1.1 capable that might explain why I don't see jsessionid appended to the jsp pages in the access logs. -Rashmi - Original Message From: Pid <[EMAI

Re: [OT]Re: Large number of active sessions

2007-02-09 Thread Rashmi Rubdi
This message has been marked as Off-Topic with [OT] , so that it doesn't stand in the way of the main thread. Here's where one can report a bug : http://tomcat.apache.org/bugreport.html (unless it hasn't been reported already). -Rashmi - Original Message From: David Wall <[EMAIL PROT

Re: Servlet/JSP source code to save data in a file

2007-02-11 Thread Rashmi Rubdi
Not sure what you're looking for: <%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="error.jsp" %> <% int test = 5; %> - Original Message From: Teh Noranis Mohd Aris <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Saturday, February 10,

Re: Servlet/JSP source code to save data in a file

2007-02-11 Thread Rashmi Rubdi
Not the best code, but I guess this is close to what you're looking for: ~ index.jsp ~ <%@ page contentType="text/html;charset=UTF-8" language="java" %> The file was written : ~ Wri

Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors

2007-02-12 Thread Rashmi Rubdi
On searching for "index$jsp.java (Permission denied)" one of the results came up with: http://mail-archives.apache.org/mod_mbox/tomcat-users/200209.mbox/[EMAIL PROTECTED] It is probably some security setting (set by your Admin) with Tomcat, to limit access/view permission of the source code o

Re: WEB-INF/lib ignored in Tomcat 6

2007-03-04 Thread Rashmi Rubdi
Did you set the environment variables correctly? CATALINA_HOME , should point to the root folder of Tomcat's installation, and JAVA_HOME to JDK's root folder. Also specify the directory of your project in the docBase attribute of Context definition. Tomcat auto detects the libs under WEB-INF/

Re: The requested resource (/) is not available.

2007-03-12 Thread Rashmi Rubdi
I had a similar problem too, I did a few things that got it resolved. One thing I remember is, setting the directory listings to "true" in server.xml , at that time if there's no index page in the directory it listed the directory listings instead of giving a 404 error. Other possible causes:

Re: How does one configure Plain host domain url to run web app?

2007-03-12 Thread Rashmi Rubdi
I think an application runs on the root context / by default, if it's configured this way in server.xml : server.xml is located at : ..\apache-tomcat-5.x\conf\ On Windows XP , you can try something similar in Unix. -Rashmi - Original Message From: John Mo

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
ex.jsp -Rashmi - Original Message From: John Moore <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, March 13, 2007 4:12:48 PM Subject: Re: How does one configure Plain host domain url to run web app? Rashmi Rubdi wrote: > I think an application runs on the root conte

Re: Turn off Tomcat Version on 404 error.

2007-03-13 Thread Rashmi Rubdi
Custom 404 error pages can be specified in Tomcat's web.xml file located under TomcatFolder\conf\ Add the following to the web.xml: 404 /web/not_found_404.jsp I've also seen this in some project's web.xml , instead of Tomcat's web.xml - but haven't tested it. Some common mi

Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
pp among many on this server.. So if I understand you correctly this will not be possible.. If I have miss understood.. could you clarify..?? John.. Rashmi Rubdi wrote: > If you place your application as ROOT.war , directly under Tomcat's webapps > folder then Tomcat should load it

Re: Is there a better way to do this?

2007-03-14 Thread Rashmi Rubdi
Also, are you performing an Ant build or some sort of a build to move the JSP from your project dir to Tomcat's / webapps dir? If you are, you can change that by keeping the project outside Tomcat, and only specify the absolute path of your project in appBase/docBase in server.xml. With the abo

Re: Strange characters appear in my compiled JSP files

2007-03-15 Thread Rashmi Rubdi
I had a similar problem with one of the JSPs, the only way I could solve it was, copy the original JSP's source code into another plain-text editor like jEdit (or any editor that doesn't alter text, or has unusual encoding) then, delete the JSP file , and re-create a new JSP with the same name

Re: Strange characters appear in my compiled JSP files

2007-03-15 Thread Rashmi Rubdi
The hex characters corresponding to  characters are EF BB BF , which are the the BOM characters. They're not just in the compiled JSP but also in the uncompiled JSP source, but because they usually appear at the start of the document the browser doesn't render them. I was able to see it in

Re: tomcat 5.5

2007-03-15 Thread Rashmi Rubdi
I think trying to increase the memory configuration in any application doesn't necessarily contribute to it's speed because the garbage collector does not perform serious attempts to release memory until the heap size limit is reached. So, having a lower heap size limit (lower max memory setti

Re: tomcat 5.5

2007-03-15 Thread Rashmi Rubdi
lity for any damage caused thereof. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 10:59 AM To: Tomcat Users List Subject: Re: tomcat 5.5 I think trying to increase the memory configuration in any application doesn't necessarily contr

Re: tomcat 5.5

2007-03-15 Thread Rashmi Rubdi
does not perform serious attempts to release memory" -Rashmi - Original Message From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, March 15, 2007 12:05:00 PM Subject: RE: tomcat 5.5 > From: Rashmi Rubdi [mailto:[EMAI

Re: tomcat 5.5

2007-03-15 Thread Rashmi Rubdi
les R" <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Thursday, March 15, 2007 1:18:32 PM Subject: RE: tomcat 5.5 > From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat 5.5 > > "...For instance, running gc might take extremely long time. > In such

Re: Should EL (Expression Language) expressions result in the TagData.REQUEST_TIME_VALUE object?

2007-03-16 Thread Rashmi Rubdi
I don't know about Custom Tag Libraries, but I do know about installing and configuring JSTL 1.1 on Tomcat 5.5.x Have you tried something like this with JSTL , before attempting Custom Tags ? ${someVariable} In the above case do you see "some string value" , or do you see ${someVariable} ?

Re: How does one configure Plain host domain url to run web app?

2007-03-16 Thread Rashmi Rubdi
Thank you for adding the Virtual Hosting how-to, and it is very nicely written too. I find it useful and easy to configure multiple apps in: $CATALINA_HOME/conf/Catalina/ren/ROOT.xml $CATALINA_HOME/conf/Catalina/stimpy/ROOT.xml rather than having the To: Tomcat Users List Sent: Friday, March

Re: Non-Latin Character Display

2007-03-17 Thread Rashmi Rubdi
I haven't been following this thread, and don't know what the original request / problem was but, perhaps you may find this article useful - it's written very well IMHO. Character Conversions from Browser to Database http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html I'

Re: How to increate memory resonably with Tomcat6, java 1.6..system: winxp , help appreciated.

2007-03-18 Thread Rashmi Rubdi
This has some tips on JDK 1.4 - may be different for JavaSE6 http://tomcat.apache.org/articles/performance.pdf - Original Message From: James liu <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, March 18, 2007 3:56:52 AM Subject: How to increate memory resonably with Tomcat6, j

Re: Explicit header definition

2007-03-18 Thread Rashmi Rubdi
Upon searching on Google, I came accross Apache mod_headers. mod_headers This module provides directives to control and modify HTTP request and response headers. Headers can be merged, replaced or removed. If you key the following as-is, you'll see mod_headers for the latest version of Apache:

Re: Can't solve problem: Unable to compile class for JSP

2007-03-19 Thread Rashmi Rubdi
Did you check on your favorite search engine for possible solutions? Reading this might help: http://tomcat.apache.org/tomcat-5.0-doc/jasper/docs/api/org/apache/jasper/runtime/JspSourceDependent.html -Rashmi - Original Message From: Linas Stankevicius <[EMAIL PROTECTED]> To: users@tomca

Re: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-19 Thread Rashmi Rubdi
> Is there a way to config these apps to > redirect to their corresponding subdirectory when Tomcat see path the /foo ? > Any help would be great, thanks. Is there any particular reason why you need them on two separate contexts such as /fooTest/ and /fooProduction/ , instead of having both appl

Re: Possible JSTL/EL bug in 6.0.10

2007-03-20 Thread Rashmi Rubdi
You didn't mention which JSTL version you're using (at least I don't see it in the subject). I've configured JSTL 1.2 , JSF 1.2 on Tomcat 6.0.x which is built to JSP 2.1 (which has Unified EL - supposed to work with both JSTL and JSF) and Servlet 2.5 spec. And EL evaluates fine so far (no

Re: Problems with request encodings

2007-03-20 Thread Rashmi Rubdi
Please read this: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html Ensure that you are using an uniform encoding accross all layers (front-end, middle, database, JSP pages, include pages etc) of your app. -Rashmi - Original Message From: "[EMAIL PROTECTED]"

Re: common JSTL tagging pattern is a problem for Tomcat

2007-03-20 Thread Rashmi Rubdi
It appears that the JSP file is written with JSP XML syntax. < and > are reserved characters in XML , if you must use them then you would use < and > But there is no need to use either of the less than, greater than characters since you can simply write c:out as ${someVariable} , instead of

Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Rashmi Rubdi
Not sure if you read this: http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html I've configured according to Approach #2 , as it makes it easy to switch off projects in the development environment. I was able to set up virtual hosts simply by following the above How-to.** On 3/21/

Re: Can I get your 2 cents?

2007-03-21 Thread Rashmi Rubdi
The error is: Caused by: java.lang.IllegalArgumentException: Object name cannot be null This error occurs when you use Java Reflection to reference an obj. Are you using some frameworks that are based on Reflection such as Struts, Spring, Hibernate etc? Or have your own Reflection code? Someone

Re: Problem in MySQL JNDI Resource..

2007-03-21 Thread Rashmi Rubdi
The closing host tag's case doesn't match the opening Host tags case, I don't know if it matters but just wanted to point it out. It should be and not -Rashmi On 3/21/07, prt <[EMAIL PROTECTED]> wrote:

Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread Rashmi Rubdi
java.net.UnknownHostException Thrown to indicate that the IP address of a host could not be determined. Could you post the snippet of code that throws this error? -Rashmi On 3/21/07, James liu <[EMAIL PROTECTED]> wrote: SEVERE: Servlet.service() for servlet jsp threw exception java.net.Unknow

Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi
Instead of setting CLASSPATH , I set JAVA_HOME to the JDK home folder , CATALINA_HOME to Tomcat home folder in system environment variables. You can try the above and see if Tomcat 6 identifies the JAR files in tomcat's lib folder. -Rashmi On 3/21/07, James liu <[EMAIL PROTECTED]> wrote: Now

Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi
There's a file called RUNNING.txt , which is located under Tomcat's root folder, which gives Tomcat configuration instructions. The RUNNING.txt file mentions setting JAVA_HOME , and doesn't mention any of the other environment variables like TOMCAT_HOME , CATALINA_HOME, CATALINA_BASE, CLASSPATH

Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi
I forgot to mention, don't unset the path and CATALINA_HOME variables, but change $TOMCAT_HOME to $CATALINA_HOME in the path variable you have. set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin $JAVA_HOME/bin $TOMCAT_HOME/bin --

Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi
These errors are SOLR related errors, I don't think they are Tomcat errors. I don't know SOLR at this moment, but it appears that the code is looking for some XML or Schema file and unable to read it possibly due to file read permissions on Unix or it could be due to other reasons such as path se

Re: How to debug tomcat and JSSE

2007-03-22 Thread Rashmi Rubdi
tools.jar is available in JDK's lib folder. There's a RUNNING.txt file in Tomcat's root folder which provides all details on configuring Tomcat. Ant's installation http://ant.apache.org/manual/index.html requires JAVA_HOME ANT_HOME -Rashmi On 3/22/07, Gurdeep Kaur (gurdeep) <[EMAIL PROTECTED]

Re: How to debug tomcat and JSSE

2007-03-22 Thread Rashmi Rubdi
Set these environment variables: ANT_HOME - Ant's root folder CATALINA_HOME - Tomcat's root folder JAVA_HOME - JDK's root folder Set PATH %JAVA_HOME%/bin;%ANT_HOME%/bin;%CATALINA_HOME%/bin According to Ant's manual , Ant expects JAVA_HOME and some other system variables to be set. -Rashmi

Re: Application resources, where ??

2007-03-23 Thread Rashmi Rubdi
On 3/23/07, Jean-Sebastien Pilon <[EMAIL PROTECTED]> wrote: Is there any configurations for avoiding to delete the files within the webapp's directory when > the webapp is redeployed ? When the app is re-deployed old Java/ JSP files are replaced with new, that's why the folder under webapps i

Re: deploying problem

2007-03-24 Thread Rashmi Rubdi
Hi there, I think JSF questions will be appropriate here: http://forum.java.sun.com/forum.jspa?forumID=427 If you are trying to use Unified EL then you need Tomcat 6.0.x because it is built to JSP 2.1 which supports Unified EL. -Rashmi On 3/24/07, Deano!! <[EMAIL PROTECTED]> wrote: 21-Mar-0

Re: deploying problem

2007-03-24 Thread Rashmi Rubdi
I have manually (independent of an IDE) configured Tomcat 6.0.x , JSF 1.2 and have tried a simple JSF example and the example works on Tomcat 6.0.x. I haven't tested on Tomcat 5.5, but I'm sure if everything is configured correctly things should work. Check your log files for additional informat

  1   2   3   4   >