Re: Solved my problems with apache to tomcat integration through mod_jk

2003-03-09 Thread Jacob Kjome
Then I noticed one thing... in the how to John says nothing about configuring connectors, but in the default server.xml there is Coyote/JK2 configured but mod_jk should be used with the normal AJP connector. This is incorrect. The CoyoteConnector is a complete replacement for the

Re: Tomcat application redeploy behind Apache server

2003-03-09 Thread Jacob Kjome
I would suggest that you quit using mod_webapp. It is not actively developed any longer. Use mod_jk or jk2. mod_webapp is probably doing some funky cacheing. I couldn't tell you for sure and neither could most people. This is because almost no one uses mod_webapp anymore and you will be

R: Solved my problems with apache to tomcat integration through mod_jk

2003-03-09 Thread Simone Chiaretta
I know it's incorrect, but it works fine both the way (of course just one at time) that's why I cannot understand the behaveour Simo -Messaggio originale- Da: Jacob Kjome [mailto:[EMAIL PROTECTED] Inviato: domenica 9 marzo 2003 9.15 A: Tomcat Users List Oggetto: Re: Solved my

How do I start with a servlet?

2003-03-09 Thread Jim Lynch
I've got a situation where I need to initialize some session variables the first time in. I'd like to start execution with a servlet rather than a .html or .jsp page. I tried to use: servlet-mapping servlet-nameStartServlet/servlet-name url-pattern/*/url-pattern

Re: How do I start with a servlet?

2003-03-09 Thread Manolis Mavrikis
Jim, Create a SetupServlet in your servlets package and use something similar as the below part of my web.xml you can even pass some parameters with the param-value and if I remebmer right you put the load-on-startup tag and it should start it on startup and initiliase whatever you

Tomcat4 with Apache VirtualHost

2003-03-09 Thread Shannon Scott
Hello, I have two domain names that I want to serve from one webserver. I have set up DNS and now the apache is working fine. The webserver serves up the html from the DocumentRoot for both domains, but Tomcat serves pages from the DocumentRoot of the first domains for both the domains. How do

Re: JSP ResourceBundle Tomcat 4.1.18 HTTP 500

2003-03-09 Thread abjett
Thank you, I overlooked the num.SelectResources when I moved the code. Bob - Original Message - From: Tarun Ramakrishna Elankath [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 08, 2003 8:58 AM Subject: Re: JSP ResourceBundle Tomcat 4.1.18 HTTP 500 The properties file

RE: Tomcat 4.1.18 - IIS 5.0 plugin

2003-03-09 Thread Johannes Fiala
Hi all, Thx Mark + Rick for your support. I tried to use your recommended settings and succeeded so far, as the green arrow is now showing after I restart IIS. However, I could not completely decipher the following settings (in Mark's jk2.properties):

RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties

2003-03-09 Thread Johannes Fiala
hi there, here are the properties files I currently use (a merge of Mark's + Rick's configuration files): = jk2.properties = ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE

RE: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties

2003-03-09 Thread Rick Bullotta
Here are a few differences between your configuration and mine: 1) My workers2.properties uses [shm:] instead of [shm]. 2) I found that the 2.0.2 jk2 ISAPI redirector dll does not like forward slash path syntax on Windows (for your SHM file). Try \\. Tomcat Users List [EMAIL PROTECTED]

question

2003-03-09 Thread Paul Hsu
Hi, I know tomcat already provide web server capability, under what knid circustance you need to intergrate apache with tomcat. My thinking is when you want to set up virtual host. I don't know this answer is correct? If any one can give me advice, thank you in advance. Paul

Re: Java mail

2003-03-09 Thread Dan Tran
You need to execute the below code before sending message to setup System authentication Properties props = System.getProperties(); if ( authenticationRequired) --- like if useriD.length != 0 props.put(mail.smtp.auth, true); else

RE: question

2003-03-09 Thread Reynir Hübner
You can set up virtual hosts with tomcat. You should set up another HTTP server (such as apache, IIS) if you want to use apaches capabilities and performance. Obviously having tomcat delivering static documents, such as images and .html can be a waste of resource. Performance is the

Re: question

2003-03-09 Thread Jake Robb
I have heard that Apache is much more robust than Tomcat, in particular from a security standpoint (i.e., it is harder to hack). I run a site in which there are almost no static resources -- one logo image at the top of the page gets cached, and most of the rest is dynamic JSP content. We use

Re: question

2003-03-09 Thread Paul Hsu
Reynir, Thank you for your advice. So the main reason to intergrate with Apache is using Apache to ease the load from Tomcat. In other word, every static content will be rendered by Apache without Tomcat. If a web application use dynamic content mechanism such as JSP/Servlet, then the integration

RE: question

2003-03-09 Thread J Aaron Farr
On Sun, 2003-03-09 at 11:59, Reynir Hbner wrote: You can set up virtual hosts with tomcat. You should set up another HTTP server (such as apache, IIS) if you want to use apaches capabilities and performance. Obviously having tomcat delivering static documents, such as images and .html

RE: question

2003-03-09 Thread Reynir Hübner
I'm running CGI (.pl) programs on a tomcat instance here, there are PHP servlets available so I guess you should be able to run that too.. -reynir.net -Original Message- From: J Aaron Farr [mailto:[EMAIL PROTECTED] Sent: 9. mars 2003 17:26 To: Tomcat Users List Subject: RE:

RE: question

2003-03-09 Thread Reynir Hübner
Hi, In my experience a machine running an application only with jsps/servlets (with no static content) is under more load with apache than without apache configured. I must though add, that my load testing where done at least 6-8 months ago, both with IIS 5 and apache 1.3, but never with

Re: [connector] bad mime type?

2003-03-09 Thread J Aaron Farr
On Sat, 2003-03-08 at 21:24, J Aaron Farr wrote: Hello. I've checked the archives and done several google searches all to no avail, so if someone could point this out to me, I'd be very grateful: Environment: RedHat 8.0 Apache 2.0.4 JBoss 3.0 + Tomcat 4.1.18 Using coyote

Re: How do I start with a servlet?

2003-03-09 Thread Warden, Matt
On Mar 9, Manolis Mavrikis had something to say about Re: How do I start... Jim, Create a SetupServlet in your servlets package and use something similar as the below part of my web.xml you can even pass some parameters with the param-value and if I remebmer right you put the

Re: question

2003-03-09 Thread Georges Roux
You don't need apache, I use iptables to redirect the port 80 to 8080 and 443 to 8443, and Tomcat Standalone isn't root. Georges Reynir Hübner wrote: Hi, In my experience a machine running an application only with jsps/servlets (with no static content) is under more load with apache than

Re: question

2003-03-09 Thread Tim Funk
I just added this to my FAQ. http://tomcatfaq.sourceforge.net/apache.html To keep the noise down, complain to me in private if your opinion differs (or you think I'm wacko) and I'll try to update it accordingly. -Tim Paul Hsu wrote: Hi, I know tomcat already provide web server capability,

Beginner Servlet Question

2003-03-09 Thread Wileynet
I've been racking my brain for days trying to figure out WHY I cannot get this servlet to work. Hopefully someone has an idea. Im running tomcat 4.1 on IIS . From what I've been reading and the directions I'm following from a WROX book is that you don’t need the web.xml file if your inside webapps

Re: Beginner Servlet Question

2003-03-09 Thread Jens Skripczynski
Wileynet: I've been racking my brain for days trying to figure out WHY I cannot get this servlet to work. Hopefully someone has an idea. Im running tomcat 4.1 on IIS . From what I've been reading and the directions I'm following from a WROX book is that you don’t need the web.xml file if your

RE: question

2003-03-09 Thread Brian Menke
This was perfect! Thanks! -Brian -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 11:35 AM To: Tomcat Users List Subject: Re: question I just added this to my FAQ. http://tomcatfaq.sourceforge.net/apache.html To keep the noise down, complain to

Tomcat 4 Clustering,

2003-03-09 Thread Filip Hanik
okey dokey, a pre taste of what tomcat 5 is going to include, a fully working version of clustering for your Tomcat 4.1.x codebase. I wrote this against 4.1.12, but intend to test it with later versions as well. Let me know if you beat me to it. http://www.filip.net/tomcat-clustering.html Tomcat

RE: Beginner Servlet Question

2003-03-09 Thread jsp
This is what I have in my conf/web.xml regarding what you said. servlet servlet-nameinvoker/servlet-name servlet-classorg.apache.catalina.servlets.InvokerServlet/servlet-clas s - init-param param-namedebug/param-name param-value0/param-value /init-param

Re: SMTP Logger

2003-03-09 Thread Chris Gokey
I implemented a class that extends org.apache.catalina.Logger that handles emailing log requests to a given recipient (those which are errors anyhow). Here is my entry in server.xml: Logger className=org.md.catalina.logger.TomcatLogger smtp=mail.attbi.com email=[EMAIL PROTECTED]/ I attached

Re: SMTP Logger

2003-03-09 Thread Chris Gokey
Sorry, I should mention that I'm using a dated version of Tomcat (4.03) and Redhat 8. Chris On Sun, 2003-03-09 at 17:10, Chris Gokey wrote: I implemented a class that extends org.apache.catalina.Logger that handles emailing log requests to a given recipient (those which are errors anyhow).

RE: How does one get/build mod_webapp?

2003-03-09 Thread Barris, Wes (LI, Uni of Queensland)
On Friday, 7 March 2003 4:21 PM Bill Barker spake thusly: Once you've done the CVS check-out, it would help if you actually read the README that comes with it. That will tell you how to generate the 'configure' script. Hi Bill, If you actually read my message you would have noticed that I

Coyote AJP13 Connector Configuration

2003-03-09 Thread Robert Biernat
Hi, I'm currently using Tomcat 4.0.6 with IIS 5.0 on Windows 2000. Have just upgraded to 4.1.18 and am having some problems in my web application obtaining the name of the remote user in my servlets/struts actions using the HttpServletRequest method, getRemoteUser(). In 4.0.6 this works fine.

Problem installing Tomcat 4.06 on Windows 2000

2003-03-09 Thread Venkatesh Brahmadesam
I am new to using Tomcat I followed the instructions and extracted Tomcat to a folder in C:\ I am using JDK 1.2.2 and set JAVA_HOME as the same The CATALINA_HOME is also set to my tomcat directory. When I execute startup a new console opens with Tomcat and then closes. TOmcat doesn't

RE: Beginner Servlet Question

2003-03-09 Thread jsp
That solved the problem. More reading about the change that was made in version 4.1.12 and about the servlet invoker did the trick. Thanks again. -Original Message- From: jsp [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 2:00 PM To: 'Tomcat Users List'; 'Jens Skripczynski'

R: R: Solved my problems with apache to tomcat integration through mod_jk

2003-03-09 Thread Simone Chiaretta
Hello Jinesh, I didn't set up jk2 but just jk(1)... but my problem was not related to the jk configuration (when I access the site from localhost everything works fine... in my configuration the problem was that I was just testing and so I didn't have a real serverName.. so I used one set up in

RE: Tomcat 4 Clustering,

2003-03-09 Thread Filip Hanik
seems to work fine with Tomcat 4.1.18 as well Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect www.filip.net -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 1:18 PM To: Tomcat Users List Subject: Tomcat 4

Passing a Collection object from 1 JSP to another without scoping it to session

2003-03-09 Thread Andrew Latham
Hope someone has had success with this. Basically using Struts the results of a query are returned to a JSP page and accessible via the request object with something like: %java.util.Collection requestCollection = (java.util.Collection) request.getAttribute(classificationlist); % I'm trying to

Re: SMTP Logger

2003-03-09 Thread Chris Gokey
Looks this this was just my imagination. It was communicating fine with my Logger class. I've made some changes, so if anyone else is interested, you can download the latest version from: http://home.attbi.com/~cgokey/java/logger/index.html Although, for some reason it is overriding the

Re: Passing a Collection object from 1 JSP to another without scopingit to session

2003-03-09 Thread Eric Larson
I think that you will find the answer to this to be no. The scope of a request object is the servlet service method, so if you are processing a different request, you are automatically going to have a different request object. On Sun, 2003-03-09 at 21:02, Andrew Latham wrote: Hope someone has

Servlet's Reloading in 3.2.3

2003-03-09 Thread Gavin Everson
Hi Everyone, I have an issue on 2 of my tomcat instances in a series of 10 that are load balanced, but not clustered. I see in the servlet.log file for those 2 nodes that one of my servlets are 'init'-ed twice, while on every other server they are only done once. This second init is performed

debugging tomcat/jvm crash

2003-03-09 Thread
i have been experiencing a serious crash running my webapp on tomcat4.1.18 + j2sdk1.4.1_02 + win2k. the tomcat/java process completely disappears without a trace. nothing is left in any of the logs suggesting what caused the crash and we are unable to reproduce it in our testing environment. can

Error while opening the workers: apache 1.3.27 Tomcat 4.1.18mod_jk

2003-03-09 Thread Albert Lunde
I am trying to use Apache 1.3.27, with Tomcat 4.1.18, and mod_jk on Red Hat Linux 7.0 At the moment I'm getting what look like errors in the setup of mod_jk: two messages in the error_log saying Error while opening the workers, jk will not work. (see below) (We are using Apache 1.3.x rather

RE: Passing a Collection object from 1 JSP to another without scoping it to session

2003-03-09 Thread Andrew Latham
Sounds like the best method is to set the Collection to NULL when I know I don't need it anymore. Cheers -Original Message- From: Eric Larson [mailto:[EMAIL PROTECTED] Sent: Monday, 10 March 2003 13:09 PM To: Tomcat Users List Subject: Re: Passing a Collection object from 1 JSP to

Re: debugging tomcat/jvm crash

2003-03-09 Thread Cameron Hart
I ran Tomcat from the console, when the JVM crashed I got the following message: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x2BE5C46D SIGNAL= -1073741819

Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-09 Thread Joshua Sunil Kumar
Hi I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with multiple tomcat instances with a load balancer. But I am unable to maintain sticky session . The application that I am using has to maintain sessions. But this not happening .When I login the request is JSP so it does

Re: Servlet Mapping with parameters

2003-03-09 Thread Greg Speechley
I was wondering whether it is possible to map parameters to a url besides using init-param in web.xml because I want it to be during normal operation not just when the servlet is initialised eg http://server.mycompany.com/something instead of http://server.mycompany.com/ServletName?task=2 . I have

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-09 Thread Filip Hanik
BlankI remember there being a property called jvmRoute in the server.xml file that would allow the Apache workers to make sure you got the right Tomcat server upon the next request. otherwise, you can just cluster enable your system, and it should work for you.

file renaming using Multipart class.

2003-03-09 Thread Venkat
Hi all, Sorry for posting a jsp related qury rather tomcat one.But i need it badly and i have to finish it with in one hr.I tried jsp interest.Hope some one helps me here. I am tying to upload a file from jsp page using bean MultiPartRequest class that come with oreilly examples. I am using

Re: file renaming using Multipart class.

2003-03-09 Thread Tomcat-RND
Hi, Add time stamp as suffix to the file name that makes the file unique and use the same for each user. Hope it may solve u r problem Regards, Pratt. - Original Message - From: Venkat [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:10 PM Subject: file

RE: file renaming using Multipart class.

2003-03-09 Thread Venkat
Hi all, I am using this package and i need the help badly to rename the file.Can some one help me out http://www.servlets.com/cos/ my code snippet is below. % MultipartRequest multi=new MultipartRequest(request,.,5*1024*1024); % How do i rename the file? Thanks in advance venkat -Original

Pls help me !! Urgent!

2003-03-09 Thread zafar Ahsan
hello Can any one pls let me know how to deals with null that result set returns when quering from an oracle database. its display null when using rset.getString() method and i want it to be either 0 or (nothing).Am novice to java and tomcat and null being a special literal in java cosing me

Re: Pls help me !! Urgent!

2003-03-09 Thread Kwok Peng Tuck
For columns that return null values why don't you check if the rset.getString() returns null? If you installed tomcat with the exe rather then there is a option for you to install tomcat as a service. I think the program that tomcat uses to do this is freely available but escapes me at the

RE: Pls help me !! Urgent!

2003-03-09 Thread Bill Lunnon
Zafar, You need to test for the null after you have retrived the parameter from the query, via jdbc ResultSet.wasNull() Code might look like CallableStatement cs; // setup the callable statement stuff prior to here ResultSet rs = cs.executeQuery(); while (rs.next()) { String param =

Re: Pls help me !! Urgent!

2003-03-09 Thread Giorgio Ponza
Hi Zafar I wrote this very simple method public final static String getString(String pOriginal) {if (pOriginal == null) return new String();return pOriginal;} and i use it to retrieve strings that can be null, getting in this case a new string. bye bye Giorgio - Original Message -