Advice me

2006-05-26 Thread Ahmed . AlGhafri
Hello all, How can i make the Tomcat opens to my servlet once i call it, using this call "http://localhost:8080"; ??? What i wan to say that i want me own servlet be the default page, and I am using apache-tomcat-5.5.17 Thanks

Re: How do I configure Tomcast HTTP server to generate working links for French file names in Tomcat Directory Listing?

2006-05-26 Thread Filip Hanik - Dev Lists
you can create a filter that does response.setContentType("UTF-8") or whatever encoding you need filip Ramez Ghazzaoui wrote: Hi, I have exposed a specific Windows file system folder on my Tomcat HTTP 5.5.9 server box's local hard drive so I can access files in that folder remotely. For sim

Re: HOWTO remove username/password from logging to tomcat logs

2006-05-26 Thread Filip Hanik - Dev Lists
this is JK/AJP connector, and it sucks, cause you can't remove it. later versions of tomcat its only logging this under debug. Filip Terry Orechia wrote: How do I control the logging of username/password in tomcat logs when a user logs into the tomcat website. There are no logging statement

Re: Tomcat Web admin

2006-05-26 Thread Georg Sauer-Limbach
The admin application is by default protected by security-constraints which are defined in its web.xml file. In the delivery version, the admin application required a user with the "admin" role. You may remove the security constraints (not recommended except for development purposes) or create a

Tomcat Web admin

2006-05-26 Thread Mario Henley Becerril Geldis
Hi, I have installed tomcat 5.5.17 and web administration tool. After to put login and password, I get that error: HTTP Status 403 - Access to the requested resource has been denied type Status report messag

Re: Tomcat 5.0.28, Socket hanging on sending 20KB data for 16 minutes -Fixed!!

2006-05-26 Thread Kumar Pandey
OK we finally pinnned the issue down to a client's proxy server. We have few ajax refreshes happening on our html pages. Under certain conditions IE sends a RST when its unable to serve these requests (you can quickly verify this by running ethreal while viewing new Yahoo pages with real time updat

RE: Tomcat 5.0.28 reaches OS open files limit

2006-05-26 Thread mnoel
> I have a problem with some tomcat servers that regularly start thowing > exceptions about too many open files (the stacktrace is in a network socket > aperture). One solution is increasing the ulimit but would disabling http > keepalives reduce the open file count? Do you use Runtime.getProce

Re: can the servlet instantiation be patched?

2006-05-26 Thread Leon Rosenberg
Thanx tim, I have one last question, which would be probably the hardest to answer... How do I now _which_ servlet is behind me in the chain? regards Leon On 5/26/06, Tim Funk <[EMAIL PROTECTED]> wrote: Yes you will ... doFilter(...) { // log and set other timing variables try { cha

How do I configure Tomcast HTTP server to generate working links for French file names in Tomcat Directory Listing?

2006-05-26 Thread Ramez Ghazzaoui
Hi, I have exposed a specific Windows file system folder on my Tomcat HTTP 5.5.9 server box's local hard drive so I can access files in that folder remotely. For simplicity, let us say I've inserted the following Context in my server.xml: trusted="false" crossContext="

Re: can the servlet instantiation be patched?

2006-05-26 Thread Tim Funk
Yes you will ... doFilter(...) { // log and set other timing variables try { chain.doFilter(...) } finally { /* servlet done executing - log some more */ } } If the filter is invoked on includes and forwards too - you can also get more granually logging. -Tim Leon R

Re: HOWTO remove username/password from logging to tomcat logs

2006-05-26 Thread david.delbecq
Are you sure this is your config? Your mail: "I am using .Form Based Authentication using Memory Realm via tomcat-users.xml file" Your web.xml: " FORM JDBCRealm " also, might be good if you check / send the context.xml of your webapp. This all looks to me like a request dump valve has bee

Re: can the servlet instantiation be patched?

2006-05-26 Thread Leon Rosenberg
I'm not sure I will have control of the end of the servlet execution with the filter, would I? regards Leon On 5/26/06, Tim Funk <[EMAIL PROTECTED]> wrote: You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper()

Re: Re: [help] blank index.jsp on Tomcat 5.5.9

2006-05-26 Thread Hassan Schroeder
On 5/26/06, Garner Shawn <[EMAIL PROTECTED]> wrote: I thought the welcome page had to be a .jsp or .html according to the servlet spec? ? Where do you see that in the spec? -- Hassan Schroeder [EMAIL PROTECTED]

Re: can the servlet instantiation be patched?

2006-05-26 Thread Tim Funk
You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper() might help too) -Tim Leon Rosenberg wrote: Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation i

Re: Re: [help] blank index.jsp on Tomcat 5.5.9

2006-05-26 Thread Garner Shawn
I tried a and it worked. I thought the welcome page had to be a .jsp or .html according to the servlet spec? I'll try removing the white space before the redirect or forward and see if that works. Shawn -- Forwarded message -- From: "Garner Shawn" <[EMAIL PROTECTED]> To: users@

can the servlet instantiation be patched?

2006-05-26 Thread Leon Rosenberg
Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation in tomcat the easiest way? The background is, that I'd like to insert an own class (via java.lang.reflect.Proxy) between the connector and the actual servlet instance to perform some addit

Re: problem in GC tuning

2006-05-26 Thread Michael Echerer
Prashant kumar wrote: > Hi All, > > 1) Is there any means by which GC takes less CPU, I mean that it > can take longer time to complete its one cycle (as memory is not a > constraint) ? You've set quite a lot of heap 3400m. Do you really need that much memory? The more you set, the more t

Re: Tomcat on a Memory Stick

2006-05-26 Thread Michael Echerer
Dirk Moolman wrote: > A quick question about CATALINA_HOME and JAVA_HOME - I do not have both > set in my profile on my server. I only set the JAVA_HOME - will this > cause a problem for me in future ? No... catalina.bat or .sh (at least TC 5.x+) can guess CATALINA_HOME by simply checking what dir

Re: Tomcat on a Memory Stick

2006-05-26 Thread Michael Echerer
Hi, somehow I don't get it. Why not simply assume that JAVA_HOME is properly set on every environment you want to run Tomcat? You need a proper Java installation anyway. Then there should not be any need to "configure" JAVA_HOME yourself. It looks different in case you want to get independend als

Re: Tomcat Memory Leak

2006-05-26 Thread Rocio Alfonso Pita
El Jueves 25 Mayo 2006 22:47, Wade Chandler escribió: > I'm sure it's a different case. If you would like to > ask a question it would be polite not to hijack > someone elses thread. Please create your own email to > the list with a specific subject and message/question. Sorry. I think i

Re: Tomcat on a Memory Stick

2006-05-26 Thread Hadraba Petr
Hi, I have no experience with Windoze, but I see one solution to detect drive letter: what about to use small script written in Perl??? Install perl distribution on to your Memory Stick; under UNIX systems is perl always present (99%). Perl has more features then CMD.EXE... Only idea Good lu

HOWTO remove username/password from logging to tomcat logs

2006-05-26 Thread Terry Orechia
How do I control the logging of username/password in tomcat logs when a user logs into the tomcat website. There are no logging statements in my servlet to print this data and there is no code to catch the login request . Each time a user logs into the website , the username and password are

RE: Native connector startup problem

2006-05-26 Thread Fenlason, Josh
Are you talking about the thread I had started regarding build the native connector on HP? http://marc.theaimsgroup.com/?l=tomcat-dev&m=113156765527679&w=2 If so, I don't believe that is relevant to my current issue. , Josh. > -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTEC

Re: Native connector startup problem

2006-05-26 Thread Martin Gainty
Good Morning Josh- You asked Yoav Shapira (from Apache) on a very similar topic and he provided a suggestion last November I would be interested to know what were the results when you followed his suggestion? Thanks, Martin -- *

RE: jsessionid

2006-05-26 Thread Gilbert, Antoine
I tried too, no success :p -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: May 26, 2006 9:16 AM To: Tomcat Users List Subject: Re: jsessionid Oh yeah! Parameters are case sensitive. You need to make sure the case is the same as what is produced automatically. I do

Re: jsessionid

2006-05-26 Thread Marc Farrow
Oh yeah! Parameters are case sensitive. You need to make sure the case is the same as what is produced automatically. I don't recall it being all lowercase. On 5/26/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote: Tried these without success http://myurl;jsessionid=xx?otherparams http://myur

Re: Native connector startup problem

2006-05-26 Thread Marc Farrow
Then I am way off base. On 5/26/06, Fenlason, Josh <[EMAIL PROTECTED]> wrote: I don't follow what you're getting at. I'm just trying to get Tomcat to startup. Apache isn't up yet. I have Tomcat's HTTP connector disabled. The only two ports that Tomcat is using is the shutdown port and the aj

RE: jsessionid

2006-05-26 Thread Gilbert, Antoine
Tried these without success http://myurl;jsessionid=xx?otherparams http://myurl?jsessionid=xx&otherparams http://myurl?otherparams;jsessionid=xx -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: May 26, 2006 9:10 AM To: Tomcat Users List Subject: Re: jsessionid shou

RE: Native connector startup problem

2006-05-26 Thread Fenlason, Josh
I don't follow what you're getting at. I'm just trying to get Tomcat to startup. Apache isn't up yet. I have Tomcat's HTTP connector disabled. The only two ports that Tomcat is using is the shutdown port and the ajp port. I know that nothing else is using those ports. Thanks. , Josh. > -O

Re: jsessionid

2006-05-26 Thread Marc Farrow
should not the jsessionid be just another parameter like the rest? have you tried this? http://myurl?jsessionid=xx&otherparams On 5/26/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote: Hi I have a problem related to http sessions. I have an image tag in a page. Using JavaScript I change

Re: Native connector startup problem

2006-05-26 Thread Marc Farrow
I am making a blind stab in the dark here, but it seems as though your Tomcat AJP connector is listening is on another port than what your actual AJP is running on. On 5/26/06, Fenlason, Josh <[EMAIL PROTECTED]> wrote: Thanks for the suggestion, but the port isn't in use. If I disable the nati

jsessionid

2006-05-26 Thread Gilbert, Antoine
Hi I have a problem related to http sessions. I have an image tag in a page. Using JavaScript I change the source of the image and calling a servlet hosted by tomcat 5. In this particular case I have to specify the jsessionid in the url to bind the call to an existing session. http://my

RE: Native connector startup problem

2006-05-26 Thread Fenlason, Josh
Thanks for the suggestion, but the port isn't in use. If I disable the native connector, Tomcat starts up fine. I ran netstat and nothing was using that port. Changing the AJP port to something else that I know is open doesn't fix it either. I'm pretty sure there is something fishy going on (at

Re: Tomcat on a Memory Stick

2006-05-26 Thread Andrew Miehs
The issue is, he doesn't know which drive letter he is being assigned in windows the start.sh script would need to call DIRECTORY = `cd` and then base JAVA_HOME on this but don't ask me how to do this in deMeSDOS Andrew On 26/05/2006, at 1:15 PM, Harshal Joshi wrote: Hi, I am

RE: Tomcat on a Memory Stick

2006-05-26 Thread Harshal Joshi
Hi, I am sending sample command which u can write in bat file... cd\ set JAVA_HOME = C:\jdk142_04; set CATALINA_HOME = C:\Tomcat 5_0_28; just write appropriate path of your Java & Tomcat in above code...now save above file with ext. of bat & run it... I hope this is what you want & will help y

Re: Tomcat on a Memory Stick

2006-05-26 Thread Chris Lear
* Markus-Alexander Metz wrote (26/05/06 11:51): > Hi Andrew > > Thanks for your feedback. I'm running the stick under windows based systems. > Java (jre and SDK) is also installed on the stick. You wrote: > >> Why do you not define JAVA_HOME and CATALINA_HOME in the startup scripts? > > This wou

Re: Tomcat on a Memory Stick

2006-05-26 Thread Markus-Alexander Metz
Hi Andrew Thanks for your feedback. I'm running the stick under windows based systems. Java (jre and SDK) is also installed on the stick. You wrote: Why do you not define JAVA_HOME and CATALINA_HOME in the startup scripts? This would be the solutions I was seeking. But how does this script ha

Re: Is custom realm using user/role data in webapp possible?

2006-05-26 Thread Jon Wingfield
You can do it. But there are a few quirks. Your Realm classes have to be accessible to the server class loader. This means another layer of indirection is needed to keep all your webapp specific classes out of the common/server classloader. What we did, where: Common Classloader: An interfac

RE: Tomcat on a Memory Stick

2006-05-26 Thread SayedA . Rahman
You must set CATALINA_HOME. Variable Name: CATALINA_HOME Variable Value: C:\Tomcat 4.1 Tomcat 4.1 is the main directory. >A quick question about CATALINA_HOME and JAVA_HOME - I do not have both >set in my profile on my server. I only set the JAVA_HOME - will this >cause a problem for me in fut

RE: Tomcat on a Memory Stick

2006-05-26 Thread Dirk Moolman
A quick question about CATALINA_HOME and JAVA_HOME - I do not have both set in my profile on my server. I only set the JAVA_HOME - will this cause a problem for me in future ? -Original Message- From: Markus-Alexander Metz [mailto:[EMAIL PROTECTED] Sent: 26 May 2006 11:07 AM To: Tomcat

Re: Tomcat on a Memory Stick

2006-05-26 Thread Andrew Miehs
I am not sure I understand the problem? Are you running on Windoz or a UNIX(tm) based system? Why do you not define JAVA_HOME and CATALINA_HOME in the startup scripts? How do they start TOMCAT in your scenario - why don't you just do a 'pwd' and base the other variables relative to that? I

Re: Tomcat on a Memory Stick

2006-05-26 Thread Bruno Georges
Markus One possible solution would be to use something else than a Memory Stick. You could set a Virtual Private Server with a popular provider like Spinweb, Webappcabaret or EApps for a small monthly fee, then set your home and work dev environment to point to it. I currently run something simila

Re: Tomcat on a Memory Stick

2006-05-26 Thread Markus-Alexander Metz
Hi David Thank you very much for your feedback :-) ... I have no problems when running tomcat on my memory stick ... the problem is another one. For getting running tomcat you have define CATALINA_HOME and JAVA_HOME. This values have to be defined on every pc, on which I wanna run tomcat. So the