Why 404 instead of dir listing ?

2009-08-19 Thread bobgosling
I have Tomcat 5.5.27 running on Red Hat Enterprise Linux 2.6.9.-87 I have a webapp which seems to work fine for servlets that I have deployed. I have a kind of Application Admin Console which I am developing and from one of my plain html pages I want users to be able to click on a link which

Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts

2009-08-19 Thread java piet
Hi, Just one last update. Nothing changed related to DNS or firewall rules. Tomcat does not work via localhost either. Kind regards and thank you all for the feedback. Piet On Mon, Aug 17, 2009 at 5:39 PM, David Smith d...@cornell.edu wrote: Hmmm ... maybe retour.mycompany.com isn't

Re: Why 404 instead of dir listing ?

2009-08-19 Thread Peter Crowther
2009/8/19 bobgosling robert.gosl...@sc.com: [...] Instead of showing a dir listing I get a 404 error The requested resource ( /raceweb/_links/appserverlogs/YieldCurveServer/) is not available. The appserverlogs in the url is actually a link to a directory elsewhere on the host. [...] Why

Re: Why 404 instead of dir listing ?

2009-08-19 Thread bobgosling
Peter Crowther wrote: 2009/8/19 bobgosling robert.gosl...@sc.com: [...] Instead of showing a dir listing I get a 404 error The requested resource ( /raceweb/_links/appserverlogs/YieldCurveServer/) is not available. The appserverlogs in the url is actually a link to a directory

tomcat 5.5.x and sun java 1.6

2009-08-19 Thread Nikolay Diulgerov
Hello thre, maybe it's there (in the documentation) but was unable to find it. I know tomcat 5.5.x requires java 1.5 and have package to make it to work with java 1.4. My question is, does tomcat 5.5.x work OK with sun java 1.6.x. my first test is that tomcat 5.5.28 works OK and the example

RE: Tomcat Logs and console .

2009-08-19 Thread Mohamed Shah
Hi, Actually the Log file looks to be ok because it is not the complete one. Console Displays the actual errors, But the screen size is small so that we cannot know about the errors. The log file Generated is small in size and does not even contain half of the original stack trace. Please help

Re: pump up memory usage

2009-08-19 Thread Ronald Klop
byte[] b = new byte[100]; Op woensdag, 19 augustus 2009 10:51 schreef Thomas G. Lau thomas@ntt.com.hk: Dear Tomcat Users, how could I pump up memory usage on tomcat? we want to test if tomcat having any problem when changed environment from 32 bit 2GB limitation to 64bit

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Yet everywhere has said put it in the server.xml file? Dean On Tue, Aug 18, 2009 at 2:15 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: Hi I have this so far yet I am confused about where it goes. The Manager element should be placed inside a Context element. The usual place

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread Daniele Development-ML
The JVM actually recognises that the value being set/asked for is 100 as when I shut it down, I get a message saying that a JVM with the specified 100m of memory cannot be created. On Tue, Aug 18, 2009 at 11:48 PM, André Warnier a...@ice-sa.com wrote: Daniele Development-ML wrote: Hi all,

Re: Multi-Level Context Paths

2009-08-19 Thread André Warnier
Caldarale, Charles R wrote: From: Andy Ee [mailto:and...@sysatwork.com] Subject: RE: Multi-Level Context Paths My sg#server#test.xml deployed the sg#server#test.war file and created the project dir as /webapps/sg#server#test/ instead of /webapps/sg#server#test/ I know my eyes are getting

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: Yet everywhere has said put it in the server.xml file? Everywhere being where? The docs say nest it in a Context. Mark Dean On Tue, Aug 18, 2009 at 2:15 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: Hi I have this so far yet I am confused about where

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread Daniele Development-ML
Forgot to mention that when I try with the following command: java -Xms512m -Xmx750m it does succeed in creating the JVM - differently (but obviously), if I try: java -Xms512m -Xmx6750m it fails (as expected). I don't understand why I get different behaviour passing this option the JVM when

Understanding Tomcat User Session persistence

2009-08-19 Thread nodje
We're using Tomcat for an application that has it's authentication/authorization system (based on java.security). We have no Manager defined in the conf and thus should be using the default option. We get annoying error from time to time due to Serialization issues.This is not big deal. But I'd

Re: Request Help

2009-08-19 Thread Ognjen Blagojevic
R.Sriram wrote: I am trying to find out from Network Solution what JDK version they are using to compile. All they are telling me is they use JServ 1.1.2 and JDK compatible to that. That software is 9 years old, and it is not developed anymore. Tomcat supports Servlet spec 2.5, and Jserv

Re: Tomcat Logs and console .

2009-08-19 Thread Ognjen Blagojevic
Mohamed Shah wrote: Console Displays the actual errors, But the screen size is small so that we cannot know about the errors. Scroll back, Mohamed! Scroll back! :) -Ognjen - To unsubscribe, e-mail:

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread Markus Schönhaber
Daniele Development-ML: Forgot to mention that when I try with the following command: java -Xms512m -Xmx750m it does succeed in creating the JVM [...] I don't understand why I get different behaviour passing this option the JVM when starting Tomcat, and when I give directly to the JVM

RE: Tomcat Logs and console .

2009-08-19 Thread Mohamed Shah
Come on buddy -Original Message- From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] Sent: Wednesday, August 19, 2009 4:41 PM To: Tomcat Users List Subject: Re: Tomcat Logs and console . Mohamed Shah wrote: Console Displays the actual errors, But the screen size is small so that we

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: Ok ive put it in my context.xml yet the id isn't getting written in to the database. And does not persist. What have you put in which context.xml located where on your file system? And what do the logs say? Mark Dean On Wed, Aug 19, 2009 at 11:23 AM, Mark Thomas

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
The logs are reporting nothing. And my context.xml is located $CATALINA_HOME/conf/context.xml Dean On Wed, Aug 19, 2009 at 12:20 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: Ok ive put it in my context.xml yet the id isn't getting written in to the database. And does not

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: The logs are reporting nothing. And my context.xml is located $CATALINA_HOME/conf/context.xml OK. That should mean that the Manager .../ element applies to every web application. Assuming you added the Manager .../ element you originally posted... Remove the debug

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread André Warnier
Daniele Development-ML wrote: .. Just a detail about the usage of the list : when you respond, respond to the list only, unless specifically asked to post to the one person in particular. Since we are all subscribed to the list, we all get all the list messages anyway. If you in addition send

Serving JSP who aren't into a physical file.

2009-08-19 Thread gerv...@polymedis.com
if she is a way to provide another connector or extend a class who allow me to read files from a Jar. Thanks __ Information from ESET NOD32 Antivirus, version of virus signature database 4347 (20090819) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

RE: Problem closing datasource when used as JNDI resource

2009-08-19 Thread Mohammed Bin Mahmood
Correction: missing DON'T I looked into the code and I can only see that it destroys the Resource and other references. But DON'T destroy or closes the datasource on a whole. Thanks, Mohammed. -Original Message- From: Mohammed Bin Mahmood [mailto:moham...@sustainlane.com] Sent:

RE: (newbie question) missing classs file?

2009-08-19 Thread Caldarale, Charles R
From: Tena Sakai [mailto:tsa...@gallo.ucsf.edu] Subject: RE: (newbie question) missing classs file? I was getting confused by the fact that a class file was in $CATALINA_HOME/webapps/sample/WEB-INF/classes directory That class file is for the servlet side of the sample app. and yet my

possibility of runtime replication of jkstatus / mod_jk

2009-08-19 Thread Markus Pohle
Hi list members, I am Markus Pohle, new subscriber to this list and long time user of apache tomcat and tomcat connector (with apache httpd). I do have a question according to mod_jk and jkstatus for which I did not find any answer or solution, neither on internet/google nor the mailing

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread Daniele Development-ML
Hey Chuck, I'm sure you are right - and that it was what I was following at the beginning. And the resulting situation was what I describe above: getting a error message in the catalina.out and my application unable to load (404 at the application URL). In addition to this, I got also an explicit

Re: Problem closing datasource when used as JNDI resource

2009-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, On 8/19/2009 8:25 AM, Mohammed Bin Mahmood wrote: When tomcat takes care of creating maintaining datasource, then does it not closes it when server is shut down? According to Filip's comments on the first thread you mentioned, yes: the

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Ok The table was table 2-8 JDBCStore attributes in Tomcat The Definitive Guide. Thats still not fixed it. Dean On Wed, Aug 19, 2009 at 2:07 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: I can't see your columns in the table of what is used in the element. What table? The

Re: mod_jk and jsessionid issue

2009-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lmk, On 8/17/2009 8:40 AM, lmk wrote: I have a 2 tomcat servers load balanced using apache mod_jk, I have a probleme with images on the login page, the image url generate is postfixed by jsessionid, so, the image is not rendered, the user have

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: Ok The table was table 2-8 JDBCStore attributes in Tomcat The Definitive Guide. Thats still not fixed it. I suggest you try using the real documentation rather than what appears to be an out of date book. Given that you have made some changes, what does the configuration

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
Sory forgot to get rid of the session out of the cookies. It writes in to the database. Yet the session is not staying active with the client. Dean On Wed, Aug 19, 2009 at 2:47 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: Ok The table was table 2-8 JDBCStore attributes in

RE: Exception Initializing Page Context

2009-08-19 Thread Gwen Way
Thank you, Mark. I appreciate you taking the time to get back to me on this. I've been doing a little more research and it seems that there were no updates this week for Tomcat and nothing has changed in terms of this CentOS server or are application. It does not seem that a change in network

Installing Tomcat 6.0.20

2009-08-19 Thread Russell Collins
I am using JRockit 1.6.0_11 and I am trying to install Tomcat 6.0.20 using the windows installer that will install a windows service. I have set my Java_home and path correctly because Eclipse runs just fine with the configuration. When prompted for the JRE from tomcat, I put in every path I

RE: Installing Tomcat 6.0.20

2009-08-19 Thread Caldarale, Charles R
From: Russell Collins [mailto:russell.coll...@mclaneat.com] Subject: Installing Tomcat 6.0.20 I am using JRockit 1.6.0_11 and I am trying to install Tomcat 6.0.20 using the windows installer that will install a windows service. That's probably not going to work real well, since the

RE: Installing Tomcat 6.0.20

2009-08-19 Thread Caldarale, Charles R
From: Russell Collins [mailto:russell.coll...@mclaneat.com] Subject: RE: Installing Tomcat 6.0.20 One of the things that it says is to install Tomcat just like you would with Sun JVM, then update the property variables afterwards. Would this approach work also? Don't think so - once the

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: Sory forgot to get rid of the session out of the cookies. It writes in to the database. Yet the session is not staying active with the client. And if you remove the PersistentManager does it it start working again? Mark Dean On Wed, Aug 19, 2009 at 2:47 PM, Mark

Re: Exception Initializing Page Context

2009-08-19 Thread Mark Thomas
Gwen Way wrote: Thank you, Mark. I appreciate you taking the time to get back to me on this. I've been doing a little more research and it seems that there were no updates this week for Tomcat and nothing has changed in terms of this CentOS server or are application. It does not seem that

Re: mod_jk and jsessionid issue

2009-08-19 Thread Adam Gordon
He shouldn't have to set this option. We're using the same configuration, load balanced apache servers and we don't have this configuration set. Additionally, I think you can choose as to whether the session id is cookied vs appending to the request. Unlessare you serving up static

RE: Exception Initializing Page Context

2009-08-19 Thread Gwen Way
Mark Thomas wrote: The only thing I can think of that would change that is a change to your application code. Hmmm... I will check with the developers then, although the three people on my team are theoretically the only ones with access to make changes to the app. Thank you again, Mark.

RE: Installing Tomcat 6.0.20

2009-08-19 Thread Russell Collins
Ok, thanks. I will try the zip Russell Collins Sr. Software Engineer McLane Advanced Technology Do or do not, there is no try. - Yoda -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, August 19, 2009 10:32 AM To: Tomcat Users List

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Dean Chester
No. Yet i have rewrote a test login system and that works i cannot see what is different compared to my application. On Wed, Aug 19, 2009 at 4:34 PM, Mark Thomas ma...@apache.org wrote: Dean Chester wrote: Sory forgot to get rid of the session out of the cookies. It writes in to the

Where should we deploy/put web application patch jar in Tomcat 5.5 ?

2009-08-19 Thread Fang Zhu
As we all know, we can put the web application jar under:/WEB-INF/lib I have abc.jar in the /WEB-INF/lib already, which contains all the application needs. We need to fix the bug inside th abc.jar, we create a patch jar, abcPatch.jar. We need to make sure when tomcat starts, the

RE: Installing Tomcat 6.0.20

2009-08-19 Thread Russell Collins
I have tried the .zip file and I can start the tomcat server manually. However, I am not able to successfully get the service working. Here is what I have done. - Using Vista 32bit - Ran the service.bat command: service.bat install - Service installs in the windows services. - When I start

Re: Enabling Persisting Sessions Tomcat 6

2009-08-19 Thread Mark Thomas
Dean Chester wrote: No. Yet i have rewrote a test login system and that works i cannot see what is different compared to my application. Then the problem lies in your application. LiveHttpHeaders, ieHttpHeaders, Fiddler or one of the many similar tools may prove useful to see what is going on.

Re: Where should we deploy/put web application patch jar in Tomcat 5.5 ?

2009-08-19 Thread Mark Thomas
Fang Zhu wrote: I know I can unpackage the abcPatch.jar and put under /WEB-INF/classes folder, but this is not we are looking for. That is your only option. Mark - To unsubscribe, e-mail:

Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
Problem: 1) /usr/tomcat/conf/Catalina/localhost/t.xml has: Context path=/t docBase=webapps/a / 2) /usr/tomcat/webapps/a exists. 3) /usr/tomcat/webapps/t does not exist. 4) When tomcat starts, org.apache.catalina.core.StandardContext:resourcesStart() throws java.lang.IllegalArgumentException:

Re: mod_jk and jsessionid issue

2009-08-19 Thread André Warnier
I'll just venture another explanation : - considering that it seems that at least 50% of the posters here who use Apache httpd in front of Tomcat, end up proxying everything to Tomcat anyway.. - considering this problem happens on the login page, which users get - presumably - when they are

autodeploying/unpacking ROOT.war

2009-08-19 Thread Christoph Kukulies
What again are the bits to auto-unpack/deploy a file in the webapps directory, e.g. ROOT.war? I looked into server.xml and there is unpackWars=true and autoDeploy=true and still a ROOT.war file I put into /usr/share/tomcat5.5/webapps remains untouched when I start tomcat5.5 again. (It's

Re: mod_jk and jsessionid issue

2009-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André and Adam, On 8/19/2009 3:53 PM, André Warnier wrote: I'll just venture another explanation : - considering that it seems that at least 50% of the posters here who use Apache httpd in front of Tomcat, end up proxying everything to Tomcat

Re: Where should we deploy/put web application patch jar in Tomcat 5.5 ?

2009-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 8/19/2009 1:10 PM, Mark Thomas wrote: Fang Zhu wrote: I know I can unpackage the abcPatch.jar and put under /WEB-INF/classes folder, but this is not we are looking for. That is your only option. One more option: $ mkdir temp $ cd

Re: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
I also tried renaming /usr/tomcat/conf/Catalina/localhost/t.xml to /usr/tomcat/conf/Catalina/localhost/a.xml and now no exception is thrown, and I see via tomcat manager that context /a is created, but whenever I try to access any pages under /t I get error 404. --- On Wed, 8/19/09, Roger

Re: pump up memory usage

2009-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 8/19/2009 5:32 AM, Ronald Klop wrote: byte[] b = new byte[100]; Java limits arrays to 2147483648 elements, so the above shouldn't even compile (and it doesn't for me). Section 2.15.4 of the JLS says: A component of an array is

RE: Where should we deploy/put web application patch jar in Tomcat 5.5 ?

2009-08-19 Thread Martin Gainty
5.5. only WEB-INF/classes WEB-INF/lib then CATALINA_BASE/shared/classes CATALINA_BASE/shared/lib http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: Increasing Heap Size and Max Perm Size

2009-08-19 Thread André Warnier
Daniele Development-ML wrote: Found a solution here: http://www.coderanch.com/t/85725/Tomcat/heap-space-setting-Tomcat-Linux http://www.coderanch.com/t/85725/Tomcat/heap-space-setting-Tomcat-LinuxPractically, everything works when setting the above options through CATALINA_OPTS variable.

Eclipse builtin browser vs system default browser problem

2009-08-19 Thread Tommy Pham
Hi, I'm working a small project seem to run into a snag and can't figure out how to overcome it since my web app doesn't give any exception (log files are clean are error/exception free). The snag is that the eclipse internal web browser shows the desired result while Firefox doesn't...

Question on setting of context path in Tomcat 6

2009-08-19 Thread Roger Powers
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html says, after I removed some unimportant stuff and added some yellow to highlight: Context elements may be explicitly defined: · In individual files (with a .xml extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/

RE: Eclipse builtin browser vs system default browser problem

2009-08-19 Thread Martin Gainty
run FF firebug-plugin and view the DOM on both screens and note the deltas http://joehewitt.com/software/firebug/ view the Request details for both and note the deltas what do the logs say for server? Martin Gainty __ Verzicht und

Re: Question on setting of context path in Tomcat 6

2009-08-19 Thread Mark Thomas
Roger Powers wrote: Thus setting the path in the context xml file does not do anything. Is this correct? Almost. See the final paragraph in the description of path at: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Mark

Gzip compression and caching?

2009-08-19 Thread Andre-John Mas
Hi, I saw the Tomcat can use Gzip compression, though I am curious to know whether there is any built in caching mechanism to cache static content that has been Gzipped, to reduce the server load? André-John - To

Re: Gzip compression and caching?

2009-08-19 Thread David Rees
On Wed, Aug 19, 2009 at 6:06 PM, Andre-John Masaj...@sympatico.ca wrote: I saw the Tomcat can use Gzip compression, though I am curious to know whether there is any built in caching mechanism to cache static content that has been Gzipped, to reduce the server load? No, you'd have to use

RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Caldarale, Charles R
From: Roger Powers [mailto:prog...@yahoo.com] Subject: Problem with respecting docBase in context file in TC 6.0.20? How can I get it to not make such a presumption, and look at the docBase in the t.xml file? You may have already figured this out, but just in case: 1) The path attribute of

RE: Installing Tomcat 6.0.20

2009-08-19 Thread Caldarale, Charles R
From: Russell Collins [mailto:russell.coll...@mclaneat.com] Subject: RE: Installing Tomcat 6.0.20 Is there something that I am missing? Maybe. What does the tomcat6w.exe program show as the JVM location on its Java tab? Also, what is the current structure of the JRockit JVM installation?