Re: Tell me the steps to configure Tomcat

2004-11-08 Thread inr
Hai, This is inr. i am using binary version of Tomcat 5.5. and The Operating system is Windows Xp. Thanks in Advance inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to create a service in TOmcat

2004-11-08 Thread inr
Hai , how to create a service in tomcat and then how to map the Application Base to that service. Thanks and regards inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Doubts with tomcat

2004-11-08 Thread Andrew Miehs
Tomcat starts 5 connector threads, plus the other internal threads that it uses for its own house keeping. Andrew On 08.11.2004, at 08:29, Michael Echerer wrote: 1) When I start tomcat with above server.xml , it creates 9 process with same output on shell. it is I configured tomcat to run

RE: INFO: connection Timeout reached

2004-11-08 Thread Varley, Roger
I've just upgraded to 4.1.31 and I'm getting org.apache.jk.common.ChannelSocket processConnection INFO: connection Timeout received messages at the console every second or so. Everything seems to be working OK so do I need to do anything about these messages? If this is normal

Tomcat 5 in debug Mode

2004-11-08 Thread Akacem Mohammed
Hello I tried to remote debug from eclipse 3.0. but I got this error Message from eclipse: Fail to connect to the VM ( I checked the port which is 8080 an d the host whici is 127.0.0.1 ). How do I start tomcat in debug mode ( I tried startup -debug without success ). thanks for any help

Where to put bean classes

2004-11-08 Thread Majirus Fansi
Hi all, Should anyone know how to configure tomcat for loading bean in a jsp pages? Precisely, where do i put my java classes in tomcat container ? I thank all of you in advance. Ragards, Majirus - Créez gratuitement votre Yahoo! Mail avec 100

Re: Is their any tutorial for optimizing tomcat performance?

2004-11-08 Thread Peter Lin
first we need to know what kind of hardware you're using. there are articles on tomcat's resource page. http://jakarta.apache.org/tomcat/resources.html tuning the performance should take into consideration what kind of load you expect, so if you don't have those written down as requirements, I

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Shapira, Yoav
Hi, Then you have a screwed up design. There's no portable way to get the ServletContext to fit your needs, and there's no way to make Class#getResource read /WEB-INF unless you write a custom ClassLoader. Change your approach. Yoav Shapira http://www.yoavshapira.com -Original

RE: Configuration Management, JSP Recompiles, War Files

2004-11-08 Thread Shapira, Yoav
Hi, One great way to approach production setups for Tomcat is one webapp per Tomcat instance. Restarts are then quick and easy, and no matter what this one webapp does (OutOfMemoryErrors, malicious code, etc.) it can't affect others you have running around because they're in a different JVM.

RE: Configuration Management, JSP Recompiles, War Files

2004-11-08 Thread Peter Crowther
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] One great way to approach production setups for Tomcat is one webapp per Tomcat instance. Restarts are then quick and easy, and no matter what this one webapp does (OutOfMemoryErrors, malicious code, etc.) it can't affect others you have

RE: Logging problem under Tomcat 5.0

2004-11-08 Thread Shapira, Yoav
Hi, do need it. In any event, I don't like the log level changing without knowing why without explicitly allowing it (tho' by deploying some jar or war, I've effectively ok'd it). Yeah, maybe it's what you put in parentheses above, or maybe it's something else, but things don't just change by

RE: change the home directory for ouside access...

2004-11-08 Thread Shapira, Yoav
Hi, Where do I tell what is the home directory. And if it is possible, how do I do it if I want to do it for an axternal access? The home directory for what? Tomcat? The JVM? The user running Tomcat? These are all different. And for the point of web application design, they're all equally

RE: session tracking

2004-11-08 Thread Shapira, Yoav
Hi, Didn't anyone tell you to RTFM? That's a bit surprising... Anyways, RTFM at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html on the cookies context attribute. Try setting it to false. Yoav Shapira http://www.yoavshapira.com -Original Message- From: [EMAIL

RE: User Authentication Problem LDAP

2004-11-08 Thread Shapira, Yoav
Hi, Thank you for posting your findings. These are very helpful to people searching the archives. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Sandeep N [mailto:[EMAIL PROTECTED] Sent: Sunday, November 07, 2004 11:45 PM To: Tomcat Users List Subject: Re: User

RE: Tomcat server.xml configuration

2004-11-08 Thread Shapira, Yoav
Hi, How is server.xml configured on a virtual private server (VPS) web host. Where should appBase point for the virtual hosts? That depends on what exactly you mean. There are a couple of ways to go about this. One is what you posted: an Engine element in server.xml with numerous Hosts. For

RE: Where to put bean classes

2004-11-08 Thread Shapira, Yoav
Hi, You should read a book or tutorial on web application development when you get a chance ;) Tomcat has one called First Webapp or something like that in its docs. Put your beans in a package (e.g. com.mycompany) when developing them. When deploying your webapp, either put the compiled

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Is using JNDI to access a file like this a reasonable approach? I just started using JNDI to name my database connections via a connection pool. And when i saw the simplicity of accessing the JNDI context within my java classes, i got to thinking that i should use it to access many of my

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Shapira, Yoav
Hi, Is using JNDI to access a file like this a reasonable approach? I just It's an OK approach. Not great, but not terrible either. The reasons it's not great are: - It's heavyweight (JNDI resource binding and resolution is typically several times more resource consuming than a static

Re: Connection Timeout

2004-11-08 Thread Andrew Miehs
Does anyone know any way that I can tell tomcat to kill the 'thread' if it isn't back in a ready state within 30 seconds? (waiting for new requests) Thanks Andrew On 05.11.2004, at 16:20, Phillip Qin wrote: Byte recv and byte sent? -Original Message- From: Andrew Miehs [mailto:[EMAIL

RE: Where to put bean classes

2004-11-08 Thread Ben Souther
If you're interested, I've posted a couple of really simple example webapps. SimpleMVC, has beans that are accessed from JSPs. http://www.souther.us/simple. The examples are not tutorials. They are just a quick way to get a working example on your machine. Yoav Shapira's advice about finding

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks for the reply. So the next question of course is, what is a better approach? I understand idea of using putting an object in the ServletContext during application initialization, but that leads to other problems. Well, to be specific, heres the problem i have with that in my application:

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Shapira, Yoav
Hi, public static Book getBook(String bookId) public static void updateBook(Book book) So in order to preserve that cleanliness, the methods have to get the connection path themselves, which was why i was so excited by the JNDI lookup. Having each Bean get its own connection path itself is not

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Ok, thanks i will look into the getResource configuration method, it sounds like that would subsitute for the JNDI lookup cleanly. So one last thing, if you've got the time. You said: Having each Bean get its own connection path itself is not clean, but it's your design, so it's up to you. so how

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Shapira, Yoav
Hi, so how do you handle this? do you pass in the connection info to every DAO method, like this: public static Book getBook(String connection, String bookId) public static void updateBook(String connection, Book book) that seems tedious, and since the all of my database You can have the beans

Renaming WAR problem

2004-11-08 Thread Andrew Watters
I have a WAR which tomcat recognises and unpacks correctly. When I rename the WAR tomcat no longer unpacks it. Is this expected behaviour? I've had a look in the 2.4 servlet spec and haven't been able to find anything on this topic. Is there a work around that will allow me to do this? Thank

Re: Renaming WAR problem

2004-11-08 Thread Ben Souther
What did you rename it to? On Mon, 2004-11-08 at 09:46, Andrew Watters wrote: I have a WAR which tomcat recognises and unpacks correctly. When I rename the WAR tomcat no longer unpacks it. Is this expected behaviour? I've had a look in the 2.4 servlet spec and haven't been able to find

RE: Renaming WAR problem

2004-11-08 Thread Shapira, Yoav
Hi, I have a WAR which tomcat recognises and unpacks correctly. When I rename the WAR tomcat no longer unpacks it. Is this expected behaviour? I've had a look in the 2.4 servlet spec and haven't been able to find anything on this topic. Is there a work around that will allow me to do this?

Re: Renaming WAR problem

2004-11-08 Thread Andrew Watters
Well, that explains something :) So what is tomcat seeing in the WAR that it refuses to unpack it after renaming? Shapira, Yoav wrote: Hi, I have a WAR which tomcat recognises and unpacks correctly. When I rename the WAR tomcat no longer unpacks it. Is this expected behaviour? I've had a look

RE: Renaming WAR problem

2004-11-08 Thread Shapira, Yoav
Hi, Well, that explains something :) So what is tomcat seeing in the WAR that it refuses to unpack it after renaming? A directory with that name already existing. Tomcat won't overwrite such a directory if it exists. If your app is Spec-compliant, considering setting unpackWARs=false for your

Re: Renaming WAR problem

2004-11-08 Thread Andrew Watters
In this case the webapps directory is entirely empty, I delete the ROOT folder as part of the publish procedure and there are no other apps configured except for the manager and admin ones. Shapira, Yoav wrote: Hi, Well, that explains something :) So what is tomcat seeing in the WAR that it

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
On Mon, 2004-11-08 at 09:35, Shapira, Yoav wrote: Hi, so how do you handle this? do you pass in the connection info to every DAO method, like this: public static Book getBook(String connection, String bookId) public static void updateBook(String connection, Book book) that seems tedious,

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Shapira, Yoav
Hi, So the intialization of this sington datasource provider occurs the first time the class is called? and from then on out there's only one instance of the class, owing to its singleton nature? would that look like this: public class AppDBConnector { private static final INSTANCE = new

RE: CGI ...yeah, I know (Tomcat 4.1.29)

2004-11-08 Thread Mark Claassen
Thanks for the reply. We have the debug set to 6 already. We found that it almost seems to alternate with the following error. The script is there, accessible, and executable by the user tomcat is running as. We are not using a security manager. One puzzling thing is that the following path

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks again for the help, this approach is very clean, and i'll be using it. dave On Mon, 2004-11-08 at 10:15, Shapira, Yoav wrote: Hi, So the intialization of this sington datasource provider occurs the first time the class is called? and from then on out there's only one instance of the

Re: Renaming WAR problem

2004-11-08 Thread Andrew Watters
Apologies, I replied before but it never appeared, trying again... I renamed it to ROOT.WAR. The webapp used to be named like this and previously worked fine. It's now called ROOT-1.0.WAR. The new name is a result of moving to maven and it appending the version number. Ben Souther wrote: What

RE: Tomcat as W2K3 service

2004-11-08 Thread Derrick Koes
Using the resource as a global resource solves the problem. -Original Message- From: Derrick Koes Sent: Friday, November 05, 2004 7:56 AM To: '[EMAIL PROTECTED]' Subject: Tomcat as W2K3 service Configuration: W2K3 Server IIS 6.0 JK2 Tomcat 5.0.24 SQL Server 2000 Starting tomcat

Re: Renaming WAR problem

2004-11-08 Thread Ben Souther
try ROOT.war On Mon, 2004-11-08 at 10:27, Andrew Watters wrote: Apologies, I replied before but it never appeared, trying again... I renamed it to ROOT.WAR. The webapp used to be named like this and previously worked fine. It's now called ROOT-1.0.WAR. The new name is a result of moving

Re: Renaming WAR problem

2004-11-08 Thread Andrew Watters
I renamed it to ROOT.WAR. The webapp used to be named like this and previously worked fine. It's now called ROOT-1.0.WAR. The new name is a result of moving to maven and it appending the version number. Ben Souther wrote: What did you rename it to? On Mon, 2004-11-08 at 09:46, Andrew Watters

tomcat 5.0 service boot

2004-11-08 Thread John Byrne
Hi all, I have tomcat on a windows 2000 server. We received a webapp which we have to run on this. This web-app customised some tomcat files. This works fine when I run startup.bat, but when I run it as a service (which I have to do) it doesn't work. The two main files that were modified were

Connection pooling under Tomcat 5.0.28 Probleme

2004-11-08 Thread Akacem Mohammed
Hello every body, I have read in die archive the e-mail exchange about configuring Datasource in Tomcat for connection pooling. ( I also read the Tomcat doc ) the jar file commons-collection- 3.1.jar, commons-dbcp-1.2.1.jar, commons-pool-1.2.jar und the database driver ifjdbc.jar are in the

Re: Renaming WAR problem

2004-11-08 Thread Andrew Watters
Thanks. Sorry that's just my poor typing. It actually is ROOT.war. If I name it back again it unpacks fine! Aaagh, my head hurts now. Ben Souther wrote: try ROOT.war On Mon, 2004-11-08 at 10:27, Andrew Watters wrote: Apologies, I replied before but it never appeared, trying again... I renamed

RE: tomcat 5.0 service boot

2004-11-08 Thread Shapira, Yoav
Hi, You need to go into the Windows Registry and look where the Tomcat service is defined. (I don't remember the exact key offhand). There you can add classpath and other JVM instructions as registry values that are passed to the service. On recent Tomcat versions, the service installer can be

Re: tomcat 5.0 service boot

2004-11-08 Thread Ben Souther
Hi John, Not sure if you meant to send this directly to me or not. I'll assume not and CC the tomcat list. 5.0.29 has a control panel that allows you to edit your java params Start-Programs-Apache Tomcat-Configure Tomcat If you didn't install that part, you will need to edit the registry keys

Re: tomcat 5.0 service boot

2004-11-08 Thread John Byrne
Cheers Ben, I'll try and play around with that John At 16:54 08/11/2004, Ben Souther wrote: Hi John, Not sure if you meant to send this directly to me or not. I'll assume not and CC the tomcat list. 5.0.29 has a control panel that allows you to edit your java params Start-Programs-Apache

Hiding tomcat version numbers

2004-11-08 Thread Mark Claassen
I was told by someone that there was a way to hide the tomcat version numbers on error pages without coding the change everywhere. Does anyone know how do to this? Confidentiality Notice: OCIESERVICE - The contents of this

Tomcat on PDA

2004-11-08 Thread Suleman Butt
Hi , Is there any tomcat release to be installed on a PDA (HP 5500) devise with a specs 400mhz processor and 128mb ram. Actually i want to execute a semantic web service on a pda device. Could anybody help me in suggesting the appropriate set of softwares required. Regards Suleman.

RE: Tomcat server.xml configuration

2004-11-08 Thread Dave Kennedy
Hi Yoav, I need to use the Engine element to host multiple separate domains. I have read the documentation, but my configuration doesn't work properly. Can you share a production Tomcat 4 server.xml file so that I can learn from it? Thanks, Dave -Original Message- From: Shapira, Yoav

RE: Tomcat server.xml configuration

2004-11-08 Thread Shapira, Yoav
Hi, Can you share a production Tomcat 4 server.xml file so that I can learn from it? No, I can't, for two reasons. One, I don't use Tomcat 4 in production any more (and haven't for a long time now). And two, even if I did it'd be confidential and belonging to the company for which I

Re: Tomcat on PDA

2004-11-08 Thread fzlists
I don't think you'll find a native build, but you MIGHT be able to get away with emulation... There are one or two x86 emulator for PocketPC, at least one of which can run Windows 95... If you can get that far, Tomcat MIGHT run in that environment. Performance would be terrible I'd guess, so

RE: Tomcat on PDA

2004-11-08 Thread Mike Jackson
The JVMs aren't terribly complete. The IBM one, for instance, doesn't even come close to implementing the complete java.net library. And you have to be careful with the things that are implemented as they aren't 100% the same as the standard VM's on other platforms. I wouldn't expect to be able

sources for servlet-api.jar

2004-11-08 Thread Charlton_Rose
I am trying to obtain sources for servlet-api.jar, but all my searching around on the web, including Sun's site, has failed to turn up what I'm looking for. Do you know where to look?

RE: sources for servlet-api.jar

2004-11-08 Thread Shapira, Yoav
Hi, The jakarta-servletapi-5 repository on our CVS. For web access, you can use http://cvs.apache.org/viewcvs.cgi/jakarta-servletapi-5/, and for configuration CVS client access, see http://www.apache.org/dev/contributors.html#cvsbasics. Yoav Shapira http://www.yoavshapira.com -Original

RE: FW: Configuring JAAS realm for a web appplication (Catalina c lass loader bug)

2004-11-08 Thread Jacob Kjome
Quoting Reingold Genna [EMAIL PROTECTED]: Jake, Thanks for our reply. I have tried common/lib scenario. As a matter of fact I have started with that option. However it produces the same result. Well, not the same result when you remove the jar from WEB-INF/lib as I recommended as you

RE: jk_nt_service.exe stop service gives BAD packet signature

2004-11-08 Thread Thuy-Linh Chu
Follow-up on this subject: I was able to figure out part of the problem and devised a solution for it. 1) There is a bug in jk_nt_exe that sends an invalid header. I'd patched the code and the 'BAD packet signature' goes away. 2) However, the second problem of the NullPointerException still

What worke on 4.1.27 fails of 4.1.31

2004-11-08 Thread Rob Tanner
I upgraded my development station to tomcat 4.1.31 from 4.1.27 and from j2sdk1.4.2_02 to j2sdk1.4.2_06. The following unchanged snippet now throws a NoSuchMethodError exception: env.put(Context.SECURITY_PRINCIPAL, BIND_DN); env.put(Context.SECURITY_CREDENTIALS, password);

RE: What worke on 4.1.27 fails of 4.1.31

2004-11-08 Thread Shapira, Yoav
Hi, Make sure you only have one version of the servlet API jar in your classpath. It should be in $CATALINA_HOME/common/lib -- make sure there's only one there. Further, make sure you don't have any servlet JARs in your WEB-INF/lib directory. Yoav Shapira http://www.yoavshapira.com

ClassLoader question

2004-11-08 Thread Mark Claassen
What is the difference between the server/lib and shared directories as far as the class loaders are concerned? Background: --- I was having trouble with CGI scripts, so I wanted to creat a new CGIServlet to run some tests. To start the process, I copied source of the tomcat CGIServlet

RE: ClassLoader question

2004-11-08 Thread Shapira, Yoav
Hi, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html. It clearly (in bold, capital letters) says server/lib is not visible to web applications. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent:

RE: What worke on 4.1.27 fails of 4.1.31

2004-11-08 Thread Rob Tanner
That was it. Thank you. --On Monday, November 08, 2004 02:38:08 PM -0500 Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Make sure you only have one version of the servlet API jar in your classpath. It should be in $CATALINA_HOME/common/lib -- make sure there's only one there. Further, make

Session invalidation problem

2004-11-08 Thread fzlists
Hello all. I'm cross-posting this to the Tomcat and Struts lists because I'm not sure where is more appropriate to post it. I have an application that is throwing the following sporadic, but thankfully infrequent, exceptions: stack trace: java.lang.illegalstateexception: setattribute: session

url-pattern with Basic Auth

2004-11-08 Thread Peter Lin
has anyone ever tried to use url-pattern to filter for basic auth beyond /* all? If I do this, it forces all requests to my servlet to authenticate. servlet servlet-nameAuthServlet/servlet-name servlet-classtest.AuthServlet/servlet-class /servlet servlet-mapping

RE: Session invalidation problem

2004-11-08 Thread Phillip Qin
Have you tried session.isNew()? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 8, 2004 2:52 PM To: [EMAIL PROTECTED] Subject: Session invalidation problem Hello all. I'm cross-posting this to the Tomcat and Struts lists because I'm not sure where

Re: ClassLoader question

2004-11-08 Thread e-Denton Subscriber
shared is the right directory for things to be shared by all your web apps (shared class loader). server/lib is for the Catalina class loader. - Original Message - From: Mark Claassen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 08, 2004 1:40 PM

RE: Session invalidation problem

2004-11-08 Thread fzlists
I hadn't thought of that, but it's an interesting thought... I guess the least intrusive way would be to add it to the IF statement... i.e., check if the session is null (which should always be false, but I'm anal so what the hell), check is sessionAlive is null, and check if session it's

RE: url-pattern with Basic Auth

2004-11-08 Thread Mike Curwen
I'd think url-pattern elements (regardless of where they appear) need to conform to the url-patterns specified in the spec (not sure of section). paths: starting with '/' and ending with '/*' extensions: '*.foo' exact: exact matching. The url-pattern I've left from your original message

RE: ClassLoader question

2004-11-08 Thread Mark Claassen
One thing I was going to add to this was that I do have other classes in this directory that work. I have a custom access log value, which works fine, and the only reference to it is in a jar file that is in this directory. And, from what I have read, it properly placed be in this directory.

Problems setting up JDBCStore

2004-11-08 Thread Jeremy Nix
I'm having a little difficulty setting up the JDBCStore session persistence layer. Has anybody had a similar problem? Or do you see anyting wrong in my configuration. Here's the error that I'm getting: 2004-11-08 15:32:11 JDBCStore[/test]: The database connection is null or was found to be

Server.xml optimization question.

2004-11-08 Thread Mufaddal Khumri
Hi, I have got the following connector in my server.xml file: Connector port=9090 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2

Re: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Steven J. Owens
David Evans wrote: so how do you handle this? do you pass in the connection info to every DAO method, like this: public static Book getBook(String connection, String bookId) public static void updateBook(String connection, Book book) that seems tedious, and since the all of my database On

Re: Renaming WAR problem

2004-11-08 Thread Tim Penhey
Andrew Watters wrote: In this case the webapps directory is entirely empty, I delete the ROOT folder as part of the publish procedure and there are no other apps configured except for the manager and admin ones. What about the XML configuration file in $TOMCAT_HOME/conf/Catalina/localhost Does

Re: url-pattern with Basic Auth

2004-11-08 Thread Peter Lin
hehe, I did a search of spec 2.2 and 2.3 on url-pattern and didn't find the definition. I guess I'll have to look at earlier specs for the definition. either that or I missed it. peter On Mon, 8 Nov 2004 14:22:36 -0600, Mike Curwen [EMAIL PROTECTED] wrote: I'd think url-pattern elements

RE: CGI ...yeah, I know (Tomcat 4.1.29)

2004-11-08 Thread Mark Thomas
I think you have run into http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24478 Sorry - this was entirely my fault and has since been fixed. To get around this you can take the servlets-cgi.jar from an earlier/later release if you don't want to upgrade your entire server. Again, please accept

RE: url-pattern with Basic Auth

2004-11-08 Thread Shapira, Yoav
Hi, It's SRV.11.2 in the Spec, and org.apache.tomcat.util.http.mapper.Mapper in the Tomcat source code. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 4:27 PM To: Tomcat Users List Subject: Re:

Re: Configuration Management, JSP Recompiles, War Files

2004-11-08 Thread Peter Johnson
Hi Steven, We run 5 Tomcat servers (still on 4.1.x so not clustered) and use CVS with two tags: 'stage' and 'prod'. When a push script is executed the server pulls the appropriate version from cvs and then performs an ant task to deploy the app, compiling any changed classes. We find that this

RE: session-timeout means tomcat restart

2004-11-08 Thread Steve Kirk
Sorry for not replying sooner, I've been busy for a few days. Can you say more about the crashing? Any evidence from the logs? A bit difficult to be any more specific without more to go on really :) However, I have references to them from the controller so that shouldn't be the problem...

Re: RE: session-timeout means tomcat restart

2004-11-08 Thread agidden
We had a 'hung, and won't work without a reboot problem' and it was two things - we had to update some driver for the intel NIC cards in our server (for RedHat ES) and had to change some settings to get better NIC throughput. Hope it helps. - Original Message - From: Steve Kirk [EMAIL

question on Creating war file

2004-11-08 Thread Daxin Zuo
I am going to pack the application into a war file. I like to use ant. I like to ask: 1) a good document giving instruction. In Tomcat/wabapps/mybase, my app has: /WEB-INF/classes, WEB-INF/lib and I have image folder in Apache/htdocs/images. May I need to move the images to /WEB-INF? 2)

Re: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread Dakota Jack
I am not sure where this discussion is coming from or going, but I have no difficulty with reading resources inside WEB-INF. First, I use a Classpath class and the given classloaders something like the following: package com.whatever.classpath; public final class Classpath {

resource defined in web.xml has null attributes but server.xml is ok

2004-11-08 Thread Nishant Deshpande
When I set up a db resource in web.xml and create it, for some reasons it has null's in its attributes (such as username, url, driverClass, ..). But when I set up the same resource in server.xml, it works fine. From the documentation it wasn't clear to me if both need to be set up the same way.

Re: resource defined in web.xml has null attributes but server.xml is ok

2004-11-08 Thread Peter Johnson
Hi, You need both. You define the resource in the context of the app and then link to the resource from the app. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html PJ Nishant Deshpande wrote: When I set up a db resource in web.xml and create it, for some reasons

RE: Index.jsp

2004-11-08 Thread Steve Kirk
OK no-one's answered so here's an idea. Not sure if this is right but maybe if I get it wrong someone will correct me ;) I think it's that, despite appearances, you are in fact running a precompiled servlet class, which is installed by default, rather than a JSP page via

RE: How to fix: Tomcat responce time gets to 10-200 seconds once a day

2004-11-08 Thread Steve Kirk
My favourite answer to any query about a server being painfully slow: does the slowdown coincide with a slowdown or outage of your DNS service? This can have suprisingly big impact if TC is doing reverse lookups of the IP of every request. At the risk of asking the obvious, are you sure that

Re: How to fix: Tomcat responce time gets to 10-200 seconds once a day

2004-11-08 Thread Peter Johnson
Is that 3-4 connections or 3-4 queries? If it isn't a DNS resolution issue or another task running on a server (both as mentioned in another response) I would suggest you review you DB connection strategy. Does the slowdown occur at the same time as a higher than normal volume of hits?

Tomcat in server mode question

2004-11-08 Thread Mufaddal Khumri
Hi, I am trying to run Tomcat 5.0.27 in server mode on a Win XP Professional machine. Tomcat is installed as a service on this box. I can start and stop it and everything works fine. As soon as I specify the -server option Tomcat wont start I do this by right clicking on the tomcat

Re: resource defined in web.xml has null attributes but server.xml is ok

2004-11-08 Thread Nishant Deshpande
So - I cannot *not* define a resource at the server level (i.e. not touch the server.xml or any other server configuration file) and only define it in the app configuration files - i.e. web.xml ? It seems like thats what you are saying below - just want to be sure I understand clearly. Thanks

Datasource problems on Tomcat 5.5.4

2004-11-08 Thread Mark Fleischman
Hello, After upgrading from Tomcat 5.0.27 to Tomcat 5.5.4 my JNDI datasources are not resolving in 5.5.4 I tried 2 approaches which both work in Tomcat 5.0.27. I am using the same configuration on the 5.5.4 version (that is my libraries and context files have not changed) 1) DBCP

RE: Index.jsp

2004-11-08 Thread Ben Souther
Steve's answer is correct. You can either delete the servlet and servlet-mapping entries in /webapps/ROOT/WEB-INF/web.xml or start your own context. If you're interested, I've got some simple example apps at http://www.souther.us/simple that you can download and run. They're all war files that

jndi realm filter problem

2004-11-08 Thread Xavier Renard
Hi, I'm using the Debian package of tomcat (4.1.30) with ldap auth with the following config: myapplication.xml -- Context path=/myapplication docBase=/path/2/build Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389;

Re: resource defined in web.xml has null attributes but server.xml is ok

2004-11-08 Thread Peter Johnson
Almost, you must define it in a context usually app specific rather than DefaultContext. The bit that makes it almost is that a context (if not DefaultContext) can be defined in the server.xml *or* conf/service/engine/app.xml e.g. catalina home/conf/Catalina/localhost/test.xml If deploying as

Re: session-timeout means tomcat restart

2004-11-08 Thread Eric Wulff
Hi Steve, sorry for lack of details. In any case, problem solved. I am developing a webapp in the MVC style and was referring to the 'C' of the MVC when mentioning the controller. I am using TC as-is however. There was a bug in a data source validity check upon login making it so the data

RE: connection pooling

2004-11-08 Thread Steve Kirk
Worth clarifyig what we are meaning by DBCP. The DBCP I was referring to was the specific implementation of connection pooling that is part of Jakarta Commons: http://jakarta.apache.org/commons/dbcp/ There are other pooling implementations which are alternatives to Commons DBCP. Some DB

Are all TC-managed DataSources pooled?

2004-11-08 Thread Steve Kirk
The docs under 'JDBC Data Sources' at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html say, The J2EE Platform Specification requires J2EE Application Servers to make available a DataSource implementation (that is, a connection pool for JDBC connections). Now, I'm

RE: question on Creating war file

2004-11-08 Thread Daxin Zuo
Sorry, it is much easier than I thought. I did it. -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 2:52 PM To: Tomcat Users List Subject: question on Creating war file I am going to pack the application into a war file. I like to use ant. I

RE: RE: session-timeout means tomcat restart

2004-11-08 Thread Steve Kirk
sorry but no. what about the other points. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday 08 November 2004 22:37 To: Tomcat Users List Subject: Re: RE: session-timeout means tomcat restart We had a 'hung, and won't work without a reboot

Re: How to fix: Tomcat responce time gets to 10-200 seconds once a day

2004-11-08 Thread Steven J. Owens
Roman Zhovtulya [mailto:[EMAIL PROTECTED] asked: Normally the performance is really good, but about once a day it gets really slow (around 1-5 minutes to display the page). It also recovers autocatically to normal response time when you simply wait 5-10 minutes. On Mon, Nov 08, 2004 at

hide source of a page

2004-11-08 Thread Sunitha Kumar
Hi folks: Can viewing the source code of a page be blocked in tomcat? thanks, -sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: connection pooling

2004-11-08 Thread Eric Wulff
Well, my informix driver does support connection pooling as-is so I do not need to use a Jakarta Commons DBCP wrapper in order to take advantage of database connection pooling. Thx for clarifying and for sharing your ResourceParams. I need to study this issue some more in general since I only

Re: url-pattern with Basic Auth

2004-11-08 Thread Peter Lin
well, looks like parameter are not allowed in the map as I had suspected. url-patterns that do not begin with either /, *. are treated at exact matches, which wouldn't work with request parameters, since wild cards are not allowed. oh well, that's life. peter On Mon, 8 Nov 2004 16:33:01 -0500,

Re: RE: session-timeout means tomcat restart

2004-11-08 Thread Eric Wulff
Other points? I posted details when I solved this problem, last Friday, but I only now realized that someone changed the thread, a couple have, and my post is related to that thread. Perhaps you didn't see that. If you're wondering about event listeners, I have not implemented any as of yet.

Re: Configuration Management, JSP Recompiles, War Files

2004-11-08 Thread Steven J. Owens
Peter, Yoav, Thanks for the advice. Now if I could just ask for a letle more... :-) On Mon, Nov 08, 2004 at 01:14:22PM -, Peter Crowther wrote: From: Shapira, Yoav [mailto:[EMAIL PROTECTED] One great way to approach production setups for Tomcat is one webapp per Tomcat

  1   2   >