RE: Deploy or install .war

2002-09-29 Thread Bryan Dollery
Hi Marty, I am very new at this. I have tomcat running and I can view the index.jsp in my browser set to localhost: 8080 That's a good start. Now I want to deploy or install (not sure which one) a .war I put the .war in webapps and tried to use the manager command of both deploy and

4th day offline, getting desperate, please help

2002-09-29 Thread David Wynter
To fix a IllegalStateException with Apache 1.3.23 and Tomcat 4.0.4 I have ended up with apache 2.0.42 and Tomcat 4.1.12. I finally got tomcat 4.1.12 to display it's index.jsp on localhost. I changed the host names to my domain name (www.roamware.com) and added a Context for my war file. Now I get

[Security] - using a connection pool with the jdbc realm

2002-09-29 Thread Alex Birch
Hi, I want to use a jdbc realm with my application in tomcat 4.1 the problem is that I want to utilise a connection pool for authentication, but only want the connection pool jar file to have web app scope (in a war file). I can go DriverManager.getConnection(poolURL) once I have loaded the

Re: 4th day offline, getting desperate, please help

2002-09-29 Thread Remy Maucherat
David Wynter wrote: To fix a IllegalStateException with Apache 1.3.23 and Tomcat 4.0.4 I have ended up with apache 2.0.42 and Tomcat 4.1.12. I finally got tomcat 4.1.12 to display it's index.jsp on localhost. I changed the host names to my domain name (www.roamware.com) and added a Context

RE: 4th day offline, getting desperate, please help

2002-09-29 Thread David Wynter
Hi, Over the last 4 days I have tried coyote, mod_jk and was one of the first to use the release 1.2.0. I had built the 1.2.0 from scratch 3 days ago and used th enew binary yesterday. I am not sure that is where the problems lie. I am happy to forgo using the connector at all and just let a

jdbc driver installation

2002-09-29 Thread Frank Liu
for mysql jdbc driver, I just copied mysql-connector-java-2.0.14-bin.jar to the tomcat/common/lib directory and restart tomcat. the application can find the driver without a problem. Is this the right way to install the jdbc driver? or shall it copy it to the application's own WEB-INF/lib

Need Help ASAP w. Tomcat install!

2002-09-29 Thread Steven Burrus
Hello all, I need some pretty urgent help/assistance with installing tomcat!!! I am trying, specifically, to install the version 4.1.12 of it. I keep on getting a damned error message when I try to start it up in DOS saying that the CATALINA_HOME environment variable is either not properly set

JAVA accessing Ora CLOB's and BLOB's

2002-09-29 Thread Arthur Chan
Hi All. This is a bit out of context, please do not take offence. I managed to stream documents of various docFlavour into and out of BLOBs e.g .doc, .gif, .jpg etc but have difficulties getting Ora's CLOB to write the content from the database to a file. Both BLOB and CLOB fields are in the

How to deploy servlets in Tomcat?

2002-09-29 Thread Mike Markovich
Hi All, I would really appreciate some help this... I am on an NT box with Tomcat 4.1.12. My problem is that I am having trouble deploying servlets in Tomcat. Worse, I seem to go through this each time I upgrade to a new version of Tomcat. Friday night I upgraded to version 4.1.12. Each

Servlet's contexts and other Tomcat's topics.

2002-09-29 Thread Luca Ventura
Hello everybody! I have Tomcat 4.x as Web Server and I would like to to the following two things but I don't know how to do: 1) I need to share the same Servlet Context MyContext between all the servlets and jsp-pages of my web application. 2) I would like that my web server does something

Re: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Mike Markovich
Hi Steve, You set the environment variables in NT by going to the control panel and then selecting System and then Environment. Other Windows environments should work in a similar manner. Once you select the Environment tab you should see a variable input area and value input area. In the

error pages

2002-09-29 Thread Felipe Schnack
I addes these lines to my web.xml error-page exception-typejava.lang.Exception/exception-type location/ponto/error.jsp/location /error-page With this, any thrown exception must be redirected to /ponto/error.jsp, right? Well, it seems that when an Servlet generates an

Re: 4th day offline, getting desperate, please help

2002-09-29 Thread Remy Maucherat
David Wynter wrote: Hi, Over the last 4 days I have tried coyote, mod_jk and was one of the first to use the release 1.2.0. I had built the 1.2.0 from scratch 3 days ago and used th enew binary yesterday. I am not sure that is where the problems lie. I am happy to forgo using the connector

RE: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Lance Smith
Steven, Couple of things to try, no spaces in the directory structure to Tomcat. Don't set any env vars except JAVA_HOME which should point to the base directory of you're jdk. Run startup.bat in the bin directory of Tomcat from the command line. Once the command line works then start working on

RE: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Steven Burrus
Lance, this is Steve Burrus, and I appreciate your attempt to help me. You say that there should be no spaces in the dir. structure to tomcat, but the tomcat 4.1 installation folder is in the apache group (1 space) folder!! How do I niftily work around this problem anyway?!

RE: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Lance Smith
Steve, I don't run under Apache as I run Tomcat stand alone. I overrode the installation directory as this has been a long standing issue with Tomcat. Not sure as this is you're problem but it has caused many issues on the list. Lance -Original Message- From: Steven Burrus [mailto:[EMAIL

Best Practices Question

2002-09-29 Thread Barry Moore
I have not used Tomacat in a couple years. The last time I used it, our companies policy was to integrate with Apache and get Apache to do the serving duties and just use Tomcat as the jsp processor. With Tomact 4 is this still considered a good practice for high traffic sites? Thanks, Barry

Re: Best Practices Question

2002-09-29 Thread achana
Unequivocally : yes if u r serving up only jsp and servlets ! I use 4.0.4 Barry Moore wrote: I have not used Tomacat in a couple years. The last time I used it, our companies policy was to integrate with Apache and get Apache to do the serving duties and just use Tomcat as the jsp

Best practices for Tomcat and server load

2002-09-29 Thread Bill Blackmon
I'm getting complaints from my host about excessive CPU usage in my web app. I'm unable to use connection pooling in the servers environment so I'm using a new connection for each DB call (and there are quite a few). The connections are promptly closed afterwards. Is it a better idea to use a

Re: How to deploy servlets in Tomcat?

2002-09-29 Thread Jacob Kjome
The default servlet invoker was disabled by default for security reasons which is why you are getting a 404 error. It can be re-enabled by uncommenting the mapping for the url pattern /servlet/* in $TOMCAT_HOME/conf/web.xml. You will need to restart Tomcat after doing this. !--

Re: Correctly configuring server.xml?

2002-09-29 Thread Jacob Kjome
Hi David, You app is not getting auto-deployed because you defined a context in the server.xml. If you didn't define a context, Tomcat would expand the .war to a directory of the same name and create a context for you. You have a couple of options... 1. Don't define your context. You

Re: Best practices for Tomcat and server load

2002-09-29 Thread achana
snip connection pooling in the servers environment so I'm using a new connection for each DB call I should think that's the most expensive bit : setting up a connection each time. connection for each session and check to see if its still valid each time it is needed? There are many lookup

Re: 4th day offline, getting desperate, please help

2002-09-29 Thread David W Rhodes
Hi David - I've not played with AJP and the mod_jk modules yet, but if you're trying to get back to serving pages directly from Tomcat, it looked as though you had removed the connector definition for the http 1.1 connector on port 8080 from your server.xml. Putting that section back in

Re: filter to change jsessionid cookie almost done, but need littlehelp

2002-09-29 Thread Craig R. McClanahan
On Sat, 28 Sep 2002, Phillip Rhodes wrote: Date: Sat, 28 Sep 2002 13:51:18 -0400 From: Phillip Rhodes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: filter to change jsessionid cookie almost done, but need little help I am writing a

Re: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Jacob Kjome
Hi Steve, I'm really a bit perplexed that you are still having issues and continuing to ask the same questions that have been answered for you by many a Tomcat user on this list. I'll make one more attempt here, but you are going to need to hire someone to show you the way if this doesn't

Re: Best practices for Tomcat and server load

2002-09-29 Thread Bill Blackmon
Thanks - any idea where to get a quick code sample on how to create my own connection pooling? I'm using MySQL as a database for the first time. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 6:02 AM Subject: Re:

Re: How to deploy servlets in Tomcat?

2002-09-29 Thread Mike Markovich
Hi Jacob and thanks for your response. I tried your suggestion regarding servlet mapping and it helped - I can now execute servlets in the default package but I get the same message when try to access a servlet that is not in the default packageoh yes Tomcat is shutdown while I deploy my

Re: Best Practices Question

2002-09-29 Thread V. Cekvenich
I think there is no reason to use Apache. Tomcat can do it all and it is simpler this way. Plus Tomcat can do JSPs, etc. V. Barry Moore wrote: I have not used Tomacat in a couple years. The last time I used it, our companies policy was to integrate with Apache and get Apache to do the

JDBC Connection pool sample code; was Re: Best practices for Tomcatand server load

2002-09-29 Thread V. Cekvenich
A FAQ is what is good practice for JDBC connection pooling and how to use it with Java Beans. My Ans, with working source code: (A good practices is: a property that has a getter/setter in a bean, and a bean has a DAO it delegates to.) You could have a DAO with a class/static initialize that

Re: Best Practices Question

2002-09-29 Thread Kent Perrier
On Sun, Sep 29, 2002 at 08:31:32PM -0400, V. Cekvenich wrote: I think there is no reason to use Apache. Tomcat can do it all and it is simpler this way. IF you want tomcat running at root, assuming that you want tomcat to answer requests on port 80. I, personally, prefer to have apache on

Re: Best Practices Question

2002-09-29 Thread achana
V. Cekvenich wrote: I think there is no reason to use Apache Tomcat can do it all and it is simpler this way. Apache is by far the more mature and robust of the two and was designed with the web in mind. Whereas it is true Tomcat can take over from Apache to some extend it was designed as a

HELP! getRemoteUser()/getUserPrincipal() returns Null

2002-09-29 Thread Dinesh P
Hi, I am running Tomcat 4.1.12 and using Struts 1.0 framework. I am doing form based authentication and unable to get the logged in user name in my servlet code. I have tried both request.getRemoteUser() and request.getUserPrincipal() and they return 'null'. Please help.

Re: Best Practices Question

2002-09-29 Thread achana
Kent Perrier wrote: On Sun, Sep 29, 2002 at 08:31:32PM -0400, V. Cekvenich wrote: I think there is no reason to use Apache. Tomcat can do it all and it is simpler this way. IF you want tomcat running at root, assuming that you want tomcat to answer requests on port 80. I,

Re: Best Practices Question

2002-09-29 Thread achana
[EMAIL PROTECTED] wrote: Kent Perrier wrote: On Sun, Sep 29, 2002 at 08:31:32PM -0400, V. Cekvenich wrote: I think there is no reason to use Apache. Tomcat can do it all and it is simpler this way. IF you want tomcat running at root, assuming that you want tomcat to answer

Re: 4th day offline, getting desperate, please help

2002-09-29 Thread Matthew Hannigan
On Sun, Sep 29, 2002 at 07:19:26PM -0500, David W Rhodes wrote: Hi David - I've not played with AJP and the mod_jk modules yet, but if you're trying to get back to serving pages directly from Tomcat, it looked as though you had removed the connector definition for the http 1.1 connector on

Re: JDBC Connection pool sample code; was Re: Best practices for Tomcat and server load

2002-09-29 Thread Bill Blackmon
Thanks - all of the DAO classes are static. I don't think that is the immediate problem. I'm having a concurrent list modification that occurs on a single record. Since there are no nested select statement in MySQL, I'm having to use a lot of list and select statements. It really sucks.I just

Re: Best Practices Question

2002-09-29 Thread Craig R. McClanahan
On Sun, 29 Sep 2002 [EMAIL PROTECTED] wrote: Kent, I think we are on the same track , Apache was designed for that purposes , is more robust and mature and certainly has less security related issues. Regarding maturity, I presume you're talking about 1.3, right? The Apache 2.0 code is

Re: JDBC Connection pool sample code; was Re: Best practices forTomcat and server load

2002-09-29 Thread V. Cekvenich
OT: Conside postgreSQL! It is FREE, ansi SQL compliat, etc. etc. Bill Blackmon wrote: Thanks - all of the DAO classes are static. I don't think that is the immediate problem. I'm having a concurrent list modification that occurs on a single record. Since there are no nested select statement

Re: JDBC Connection pool sample code; was Re: Best practices for Tomcat and server load

2002-09-29 Thread Bill Blackmon
Unfortunately, my host doesn't support it. Next time I will if I ever get this finished! - Original Message - From: V. Cekvenich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 29, 2002 9:59 PM Subject: Re: JDBC Connection pool sample code; was Re: Best practices for

Serialization of beans

2002-09-29 Thread Bill Blackmon
I'm getting the following error for all of my bean classes under Tomcat: 2002-09-29 20:28:37 StandardManager[/EGPS] IOException while loading persisted sessions: java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.egps.beans.GroupFocusBean

4.1 examples

2002-09-29 Thread Glen Eustace
I installed the 4.1.10 rpm, but it didn't seem to have any of the examples. I downloaded the 4.1.12 tar file and moved the webapps directory into place. I have restarted tomcat4 several time but I can not get any othe the examples to run. The web pages displayes the following;

Re: Best Practices Question

2002-09-29 Thread Oskar Bartenstein
Sun, 29 Sep 2002 18:39:54 -0700 (PDT) Craig R. McClanahan [EMAIL PROTECTED] said: IMHO, anyone who goes to all the extra effort of configuring Apache+Tomcat, instead of Tomcat alone, is nuts unless they need it. Valid reasons to need it include: I am pondering one more: reducing interruption

Connection Pooling - with multiple pools shared by all servlets/jsp's

2002-09-29 Thread Nicholas Orr
Hi, I hope the tite is descriptive enough. I was wondering what people are using for Connection Pooling /w multiple pools shared by all servlets/jsp's, within one webapp (context), not tomcat (host). Is there a project or something (poolman, dbConnectionBrpker, etc) that anyone knows

RE: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Steven Burrus
I am STILL having or encountering no success whatsoever in getting Tomcat 4.1 up and running!!! Here is the whole error msg., in its' entirety, in DOS when I tried/attempted to activate it: C:\Apache Group\Tomcat 4.1\binstartup The JAVA_HOME environment variable is not defined correct This

RE: Need Help ASAP w. Tomcat install!

2002-09-29 Thread Gary Henson
Hi Steve. Firstly, remove the ; from the JAVA_HOME env variable, it's not needed. Secondly, as previously mentioned, tomcat shouldn't be in a directory that has spaced in the path. I have in the past seen applications install themselves in directories like this, and then fail to run... makes

Re: Best Practices Question

2002-09-29 Thread Craig R. McClanahan
If you have stuck servlets (which I take to mean you've got bugs in your app that causes your servlets to stop responding), how would calling those exact same servlets through Apache be any different? If the problem is really the servlet, it's going to cause runaway threads (without a concise