Re: How to use digital certificates

2003-06-20 Thread Antonio Fiol Bonnín
Do you mean... ? X509Certificate[] certs; certs=(X509Certificate[])request.getAttribute(javax.servlet.request.X509Certificate); if(certs!=null) { X509Certificate crt = certs[0]; // Use the cert here. String subjectDNName = crt.getSubjectDN().getName();

Re: getRemoteUser is returning null

2003-06-20 Thread Antonio Fiol Bonnín
AFAICT, getRemoteUser() returns a user name only if that user name has been sent via HTTP. Not with certificates. For certificates, see my post 1 minute ago. Antonio Fiol seera naveen wrote: Hi, When I try to retrieve request.getRemoteUser() in Tomcat 4.1.24, it is returning null. I am not

Re: How to use digital certificates

2003-06-20 Thread Mario Ivankovits
I have developed a solution, where you can use client-certificates for user authentication. You can find information at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831 Currently an implementation for Standard LDAP and Windows-2000 ActiveDirectory is available. Using W2K-AD you might have

Re: web.xml init param

2003-06-20 Thread Dominic Parry
My Guess is that you've Misplaced, or misspelled the ShowMessage class somewhere. Remember that it is Case Sensitive. The other thing is that you have packaged it so you should be calling /conserv/servlet/TestPkg/ShowMessage Hope this helps Cheers Dom - Original Message - From:

Query on Connection Time out??

2003-06-20 Thread Bikash Paul
Hi all friends, I am using tomcat4.1.24 for my uploading software(swing for client interface and servlet).Iam facing problem with connection broken,During uploading of file if connection between local computer and remote computer broken then my software will give a message to user through pop up

Re: How to use digital certificates

2003-06-20 Thread Bill Barker
Ok, everyone else is signing their replies. I can do that too ;-). Out-of-the-box, TC 4.1.24 has very limited support for x509 auth. Only the (deprecated) MemoryRealm actually supports it. Also, only the Stand-Alone JSSE Connector will correctly retrieve the x509 certs in the current release

installing a servlet

2003-06-20 Thread Tony Grant
Hello again, Yesterdays question was asked because I am unable to install and run a servlet (form mail servlet) from an apache Jk-Coyote enabled Tomcat 4.1.24. I have tried all the possible and imaginable paths and it always returns 404. If I run Tomcat standalone the servlet works just fine. I

TomCat Daemon on Linux

2003-06-20 Thread K.J.L.
I currently develop on a Win2K box where I simply run Tomcat in its own dos box. But I want to deploy on a linux Box, and following on from Yoav's advice that Tomcat can do everything I want, I don't need to worry about Apache. What I'm not sure on is how to start Tomcat as a daemon/service on

Re: TomCat Daemon on Linux

2003-06-20 Thread Kwok Peng Tuck
The rpm installation of tomcat includes a start up script that is placed in /etc/rc.d/init.d/ which allows tomcat to be started up on reboot. However, the service is not added by default. Tomcat can be made to start up by using chkconfig It's possible to write your own script, if you want to

Re: How to use digital certificates

2003-06-20 Thread appa rao
Thanks for the reply.. let me clearly tell you the problem.. we use certificates generated by iPlanet Certificate Server. All the client(user) certificates are on a swipe card which are read by Gemplus card reader using USB port The problem is when the user swipes it, user should

useURIValidationHack

2003-06-20 Thread Euan Guttridge
What is the connector param useURIValidationHack? I cannot find in documentation. Also can anyone point me to a description of diffs between the old http connector and the coyote connector please? Thanks Euan - To

Re: How to use digital certificates

2003-06-20 Thread Mario Ivankovits
we use certificates generated by iPlanet Certificate Server. All the client(user) certificates are on a swipe card which are read by Gemplus card reader using USB port The problem is when the user swipes it, user should automatically be authenticated..(currently we have another web

Re: TomCat Daemon on Linux

2003-06-20 Thread Florent Zara
Hello, Kwok Peng Tuck wrote: It's possible to write your own script, if you want to have a look at the script I can send you a copy of the script that the rpm installs. I actually runs Tomcat on a Debian, so I did not use the rpm version. I would be very interested in this script. May you

JSP's

2003-06-20 Thread Dylan Swales
Hi I'm getting this error in my logs every time I try to run a JSP. 2003-06-20 10:47:24 Exception: Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:455) at

passing parameters to another JSP page

2003-06-20 Thread Alan Tang
Hi, Any help would be highly appreciated! I'm wondering why it's NOT working passing parameters to another jsp page. I'm using Tomcat 4.0 Here is the sample jsp pages I used: Called.html: html head/head body jsp:include page=callee.jsp / jsp:param name=param2

Re: TomCat Daemon on Linux

2003-06-20 Thread John Turner
Here ya go: http://daydream.stanford.edu/tomcat/tomcatd Thanks to Oscar Carrillo. John On Fri, 20 Jun 2003 09:52:33 +0200, K.J.L. [EMAIL PROTECTED] wrote: I currently develop on a Win2K box where I simply run Tomcat in its own dos box. But I want to deploy on a linux Box, and following on

Re: JSP's

2003-06-20 Thread John Turner
Don't muck with CLASSPATH. Set JAVA_HOME, and CATALINA_HOME, that's all you need. See if that makes a difference. John On Fri, 20 Jun 2003 11:22:16 +0200, Dylan Swales [EMAIL PROTECTED] wrote: Hi I'm getting this error in my logs every time I try to run a JSP. 2003-06-20 10:47:24

corrupt sessions

2003-06-20 Thread Hartwig, Thomas
I have sometimes problems with corrupt sessions. Sometimes tomcat logs a EOFException and the servlet is not responding any more if a user wants to connect who has such a session. The browser is waiting endless for a response. Do you know a way to check the validity of a session and do you have

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
Thanks for the reply. I had never thought of the RAID sub system. My situation is that there is no one I know to advice me in this regard and my company can't affod any highly paid consultancy. That is why asked a question like this here. Another question. Do Tomcat a requires a faster hard

Re: installing a servlet

2003-06-20 Thread John Turner
Please post: - JkMount statements from Apache's httpd.conf (or other file if they are included into httd.conf) - workers.properties - relevant Host section from server.xml - relevant Context section from server.xml - servlet and servlet-mapping tags for this servlet from web.xml John On 20 Jun

Re: worker.properties

2003-06-20 Thread John Turner
Hi - Please clarify: do you have multiple Tomcat instances, or just one? The only time you need to put more hosts in workers.properties is if you have MULTIPLE Tomcat instances. If you only have one Tomcat instance, you only need the following in workers.properties: # BEGIN

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Chong Yu Meng
Antony wrote: Thanks for the reply. I had never thought of the RAID sub system. My situation is that there is no one I know to advice me in this regard and my company can't affod any highly paid consultancy. That is why asked a question like this here. Another question. Do Tomcat a requires a

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread John Turner
The biggest effect on Tomcat's performance will be the architecture and design of your application. You can buy the biggest fastest server in the world, and have lousy performance if your application architecture is poor. If this is a production server, the absolute minimum I would consider

Re: Can tomcat compile JSP's at startup

2003-06-20 Thread John Turner
Yes. John On 20 Jun 2003 18:04:33 +0530, Damnish [EMAIL PROTECTED] wrote: Hi. Can tomcat compile all the JSP's of a webapp at startup. I am using tomcat4.1.24 and want to precompile my all JSP's. Thanks in advance. Damnish -- Using M2, Opera's revolutionary e-mail client:

RE: useURIValidationHack

2003-06-20 Thread Shapira, Yoav
Howdy, From org.apache.coyote.tomcat4.CoyoteAdapter: // Additional URI normalization and validation is needed for security // reasons on Tomcat 4.0.x if (connector.getUseURIValidationHack()) { String uri = validate(request.getRequestURI()); if (uri

2 conainer question

2003-06-20 Thread Peter Kerekes
Hi! I'm running a Tomcat with 2 connectors one secure, one non-secure. I have 2 webapps, and I would like to configure tomcat in such way, that one webapp should be available ONLY on the secure connector, while the other one ONLY on the non-secure connector Is it possible? Thx very much BR,

RE: 2 conainer question

2003-06-20 Thread Shapira, Yoav
Howdy, Sure. There's probably more than one way, but one comes to mind: use two services: Service name=app1Service ... Define connector1, non-secure ... Define host1 ... Define app1 ... /Service Service name=app2Service ... Define connector2, secure ... Define host2 ... Define app2

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
Ours is an intranet business application. So no immediate money is to be expected. Any way I will stress testing of our existing development server. Thanks for the reply regards Antony - Original Message - From: Chong Yu Meng [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent:

server.xml: useURIValidationHack=false ???

2003-06-20 Thread Nico Hoffmann
Hello, i've found no documentation on this attribute for a Connector element in the tomcat server.xml. Whats the meaning of this attribute? Thank you, Nico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
It is production server. I am a staff of the company where I have to deploy the application. We will use the server only at office time. At most 12 hours a day. After that shut it down. I dont know what to name this kind of machines. I want to run the machine to run 12 hours a day and overcome

RE: server.xml: useURIValidationHack=false ???

2003-06-20 Thread Shapira, Yoav
Howy, I just answered this question on another thread on the mailing list ;) Search the archives and look at org.apache.coyote.tomcat4.CoyoteAdapter. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nico Hoffmann [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003

RE: passing parameters to another JSP page

2003-06-20 Thread Mike Curwen
Don't make the opening jsp:include tag a singleton. You have : jsp:include page=callee.jsp / it should be: jsp:include page=callee.jsp -Original Message- From: Alan Tang [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:03 AM To: [EMAIL PROTECTED] Subject: passing

Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Subhojit Roy
Hi All I have installed Tomcat 4.1.24. But when I create my own directories under the webapp directory and add jsp files to the directory I cannot access the jsp file using the url: http://localhost:8080/dir name/jsp file name. I get the HTTP status 404 error with the following message:The

Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Subhojit Roy
Hi All I have installed Tomcat 4.1.24. But when I create my own directories under the webapp directory and add jsp files to the directory I cannot access the jsp file using the url: http://localhost:8080/dir name/jsp file name. I get the HTTP status 404 error with the following message:The

configuration

2003-06-20 Thread Free Bud
Hi, I've been using tomcat in production for servlets for a couple years. I got lost after 4.0. I downloaded 5.0 milestone exe and installed. Much easier than before, even created the service without asking. 2 questions: - I usually copy/paste all the library .jar files into my jdk/lib and

Javax servlets

2003-06-20 Thread Apollinaris B. Mwila, Ph.D
Hi, I am trying to use Tomcat. I have the server running but I can't get to use the simple servlets because it tells me it can't find the javax package. Can you help? Where can I download the packages such as javax servlet.* and javax servlet.http.*? By the way I am using linux Red Hat 8.0.

RE: passing parameters to another JSP page

2003-06-20 Thread Stefan Radzom
There is a little typo in your jsp:include which screws up the rest of your jsp. For your include-action you use an empty-element tag (ending with /) that by definiton contains no child elements. Therefore, the params do not belong to the include and are never passed on to the included jsp. Use

web.xml init param

2003-06-20 Thread Jing Huang
Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please help. I set initial parameters for a servlet in web.xml. When I start the server and run the servlet, the servlet can not get the initial parameters. It seems that the web.xml was not accessed at all. Can you

Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-20 Thread Jim Lynch
That I can do. Thanks Jim. All you can get is their username - using request.getRemoteUser(). To get the rest of their information, you'll have to query the database with handwritten code. Matt -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday,

getRemoteUser() is null SSL Authentication

2003-06-20 Thread seera naveen
Hi, When I try to retrieve request.getRemoteUser() in Tomcat 4.1.24, it is returning null. I am not using any of Realms, but I am having my own logging mechanism. (checking usernames/passwords against LDAP manually). Why is this behaving like this? Is it a known problem? Also, can any body

how to refuse to start a context?

2003-06-20 Thread Mohun Biswas
My Servlet 2.3 webapp has a ServletContextListener which does some initial setup for my database (connection pools, etc). Having established a connection, I now want it to ask the database which version of the schema it's running and compare that to the version of the webapp itself (stored as

RE: [OT] best hardware config for Tomcat

2003-06-20 Thread Angus Mezick
The dual processor just allows multithreaded environments like tomcat to run better because 2 threads can be running at anyone time instead of just one. This is especially useful because the GC can run in one proc while the other proc still handles request threads. (I think) --Angus

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread John Turner
Dual is just a preference. If you are just going to be using it as an intranet server, with a given number of users, for a limited time period each day, I would just buy a desktop with 2 equal size disks and use RAID 1 mirroring. John On Fri, 20 Jun 2003 19:14:17 +0530, Antony [EMAIL

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Graham Reeds
It is production server. I am a staff of the company where I have to deploy the application. We will use the server only at office time. At most 12 hours a day. After that shut it down. I dont know what to name this kind of machines. I want to run the machine to run 12 hours a day and

RE: Javax servlets

2003-06-20 Thread Shapira, Yoav
Howdy, Those packages come with tomcat: they are in the $CATALINA_HOME/common/lib directory, in the serlet.jar file. You can also download it separately from java.sun.com/servlets. You should NOT have this jar in the WEB-INF/lib directory of your web applications, because it's already present

RE: Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Shapira, Yoav
Howdy, Did you bother to write a web.xml file and put it in the WEB-INF directory under dir name? Did you see the error in the tomcat logs that suggested you do so? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Subhojit Roy [mailto:[EMAIL PROTECTED] Sent:

Re: Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread John Turner
You need a Context for your directory. Use the /examples Context in server.xml as an example. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html John On Wed, 18 Jun 2003 05:46:33 -0700 (PDT), Subhojit Roy [EMAIL PROTECTED] wrote: Hi All I have installed Tomcat 4.1.24. But

RE: configuration

2003-06-20 Thread Mike Curwen
Since 4.1.12, the invoker servlet has been turned off by default. Check out the web.xml in the conf directory, you'll see the invoker commented out. -Original Message- From: Free Bud [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:00 PM To: [EMAIL PROTECTED] Subject:

RE: how to refuse to start a context?

2003-06-20 Thread Shapira, Yoav
Howdy, as a context init parameter). The idea is to refuse to run unless the server and database versions match. This part is easy. The problem is that I can't return an error condition since contextInitialized() returns void, and I can't throw a checked exception because the interface isn't

RE: Javax servlets

2003-06-20 Thread Mike Curwen
If you've got Tomcat, you've got those packages. Make sure servlet.jar is in your classpath (for compiling). For runtime, make sure you've set JAVA_HOME and CATALINA_HOME properly. -Original Message- From: Apollinaris B. Mwila, Ph.D [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19,

RE: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-06-20 Thread Roberts, Eric
Hi, If you have declared your database connection pools ast the GlobalNamingResource level, but do not have your contexts declarared in server.xml, you probably need to have context.xml files in your META-INF subdirectory which contain your ResourceLink definitions for the context. HTH

Re: configuration

2003-06-20 Thread John Turner
Tomcat 5 is not ready for production. Just :dropping a servlet into a directory is bad, because it uses the Invoker. http://jakarta.apache.org/tomcat/faq/misc.html#invoker John On Wed, 18 Jun 2003 20:00:11 -0700 (PDT), Free Bud [EMAIL PROTECTED] wrote: Hi, I've been using tomcat in

RE: configuration

2003-06-20 Thread Shapira, Yoav
Howdy, 2 questions: - I usually copy/paste all the library .jar files into my jdk/lib and choose not to overwrite (tools.jar). Then I can compile servlets w/o problem. This is one of those shortcuts that, while apparently harmless, can cause nightmarish headaches. For example, if you override

[ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread John Turner
Greetings - Before posting to the list, please consult the Tomcat documentation, as well as the Tomcat FAQ. Tomcat FAQ: http://jakarta.apache.org/tomcat/faq/index.html Tomcat 3.3 documentation: http://jakarta.apache.org/tomcat/tomcat-3.3- doc/index.html Tomcat 4.0 documentation:

Re: web.xml init param

2003-06-20 Thread Tim Funk
web.xml is defined by Sun's Servlet Specification. You can get it at Sun's site. (java.sun.com) A good servlet book will be very helpful as well as ... http://servlets.com/index.tea http://www.onjava.com/onjava/jsp_servlets/ -Tim Jing Huang wrote: Hi, I am new to Tomcat. This might be a very

Load balancing

2003-06-20 Thread Pierre Maris
Hi, I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on the same machine). Load balancing is provided by mod_jk. My application uses caches, and to purge caches I need to address, explicitly, each of the Tomcat instances. What's the best way to do

RE: Load balancing

2003-06-20 Thread Roberts, Eric
Hi, Can you use the jvmRoute parameter? -Original Message- From: Pierre Maris [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 16:38 To: [EMAIL PROTECTED] Subject: Load balancing Hi, I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on the same machine).

Re: passing parameters to another JSP page

2003-06-20 Thread Alan Tang
Stefan, Thanks so much for your response! It works. I spent almost a whole day trying to figure it out but failed! RGS, Alan Tang - Original Message - From: Stefan Radzom [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:56 PM Subject: RE: passing

RE: Load balancing

2003-06-20 Thread Ben Ricker
On Fri, 2003-06-20 at 09:52, Roberts, Eric wrote: Hi, Can you use the jvmRoute parameter? The above might work; I have not tried it. One thing I did was to turn on the Tomcat web listener and then I can directly access each Tomcat instance by port (Tomcat1 on Server 1 is port 8081 and

RE: TomCat Daemon on Linux

2003-06-20 Thread Phillip Qin
I run tomcat as service on Debian. All you have to do is - create a script tomcat in /etc/init.d, refer to scripts in the same directory, start-startup.sh, stop-shutdown.sh, otherwise exit; - create symbolic links in rcn.d: K15tomcat in rc0.d and rc6.d, S85tomcat in rc2.d thru rc5.d

mod_jk quirk?

2003-06-20 Thread Dave Naden
When I auto-generate the mod_jk directives, I'm finding strange behavior: Even if my workers.properties file contains the name of a worker other than ajp13, the JkMount commands that get generated always have the worker name as ajp13. for example, if I put the following in my

Re: costumize manager

2003-06-20 Thread Reinhard Moosauer
Hello, you don't have to customize the manager to achieve this: Simply include a Realm definition for each manager of each host. Like this: Host myhost1 Context cookies=true crossContext=false debug=0 displayName=Manager docBase=/opt/tomcat/server/webapps/manager

Upgrade or new install?

2003-06-20 Thread Lisa Foister
I'm currently running Tomcat 4.1.18 and mySQL 3.23.54 on Red Hat 8.0. I haven't installed any connectors, and although I am running Tomcat on port 8080, I'm not currently running Apache (Tomcat provides all the web server I really need). This is really a learning/development system on my home

Re: mod_jk quirk?

2003-06-20 Thread John Turner
Hi - AFAIK, Tomcat never reads workers.properties, only mod_jk reads workers.properties. If you use the auto-generation, your worker will always be named ajp13. If you need something else, you need to configure things manually. The ApacheConfig classes are a convenience, not a requirement,

Configuring session Id in URL

2003-06-20 Thread Mike Heckler
Is there a way to tell tomcat to NOT place the session ID in a url (even when the client doesn't support cookies) based on IP or user-agent? The problem I'm having is with search engines (especially google) not indexing my entire site because the URLs have the jsessionid in them. I'd like to

Re: Upgrade or new install?

2003-06-20 Thread John Turner
Hello - I can't really address your questions relating to MySQL, but I can help you out relating to Tomcat. In my opinion, this is how I would proceed given your situation: - stop Tomcat 4.1.18. Make sure it doesn't start on boot by removing the tomcat startup script from the boot sequence

RE: SPAM: Re: mod_jk quirk?

2003-06-20 Thread Dave Naden
OK, I appreciate your response. -Dave -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:23 AM To: Tomcat Users List Subject: SPAM: Re: mod_jk quirk? [Message inserted by SAS Postmaster: ISD is evaluating gateway-level spam defenses. This

Re: [ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread John Turner
I think thats a great idea, but I have no idea how such a thing would be accomplished. Please don't misconstrue my post about the FAQ as an indicator that I had anything to do with the FAQ. Most of that was Tim Funk, and others, not me. John On Fri, 20 Jun 2003 16:28:45 +0100, Andy Eastham

Re: [ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread Tim Funk
I sent an email to the list owner ( [EMAIL PROTECTED] ) to request this change as well as asking that a link to the faq is returned if an email is sent to [EMAIL PROTECTED] -Tim Andy Eastham wrote: John, Top Stuff. Do you think it would be a good idea to add a link to the FAQ into the

RE: worker.properties

2003-06-20 Thread Jose Santiago Oyervides Gonzalez
Thanks John, You were right, I only needed to add localhost in my worker.properties, now it's working. I'm using Tomcat 4.0.6 with one instance and using worker.properties, uriworkermap.properties and isapi_redirector.dll, just configured the localhost in my worker.properties and everything is

Re: worker.properties

2003-06-20 Thread John Turner
No problem, glad I could help. John On Fri, 20 Jun 2003 11:29:37 -0500, Jose Santiago Oyervides Gonzalez [EMAIL PROTECTED] wrote: Thanks John, You were right, I only needed to add localhost in my worker.properties, now it's working. I'm using Tomcat 4.0.6 with one instance and using

Re: Configuring session Id in URL

2003-06-20 Thread Tim Funk
Ouch! But the answer is easy. Filters with HttpServletResponseWrapper. Here is a quick example: public class NoRewriteFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { ; } public void doFilter(ServletRequest

RE: Configuring session Id in URL

2003-06-20 Thread Shapira, Yoav
Howdy, No. Tomcat acts according the to the servlet specification, which says if cookies can't be used (or sometimes even if they can, it's up to the container), jsessionid must be on the URL. You could, of course, not use sessions in your webapps ;) Yoav Shapira Millennium ChemInformatics

mod_jk only loadbalancing to one machine

2003-06-20 Thread Rick Carter
Hi, My problem in brief: one RedHat Linux box running apache with mod_jk trying to do load balancing to four boxes behind it. All requests only get sent to one of the boxes. The logs look good; if I remove that box from the config., it will pick one of the other three and send all requests

Creating mod_jk.so from src for HP-UX

2003-06-20 Thread Insley, Simon (Contractor) (DSIO)
My goal is to have a working version of Apache 1.3.27 that invokes Tomcat 4.1.24 using mod_jk, so that the application's JSP files are invoked correctly from the Apache server. At this point, I have Apache installed and working, Tomcat installed and working, independently, but not the mod_jk. I

RE: mod_jk only loadbalancing to one machine

2003-06-20 Thread Michael Cardon
I had the same problem with load balancing using mod_jk2. I found that changing the lb_factor made a difference. If I set the lb_factor in each of my connector descriptors, all requests went to the last linux box that was defined. I have 3 instances to load balance, this is what I did for now:

RE: Creating mod_jk.so from src for HP-UX

2003-06-20 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
the official HP-UX apache 1.3.27 with mod_jk can be download from http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo .pl?productNumber=B9415AA132702 While this come with tomcat 3.3 you can just rm it if you so choose or

basic logging question

2003-06-20 Thread a b
Hello every one, I need to log messages using either tomcat logger or log4j. I have added Logger className=org.apache.catalina.logger.FileLogger verbosity=1 prefix=localhost_gnomon_log. suffix=.txt timestamp=true/ under the Context tag and System.out.println(msg); works and prints in the above

RE: basic logging question

2003-06-20 Thread Shapira, Yoav
Howdy, the methods of org.apache.catalina.logger.FileLogger or log4j's Logger class so that i can turn logging on and off and can use various levels like debug,info,warn,errors etc. I tried to import org.apache.catalina.logger.FileLogger in java servlet, but it says class not found. I do have

RE: basic logging question

2003-06-20 Thread Mike Curwen
Do you have the log4j.jar file anywhere? It would be difficult to do log4j logging with out it in Tomcat's common/lib Here is a basic configuration file I use, placed under my webapp's WEB-INF/classes: #log4j.properties log4j.rootCategory=DEBUG, filer, chainsaw

FTP server recommendation

2003-06-20 Thread Brian Menke
I know this isn't the most appropriate place to ask this, but I depend on the insight of this group to find out about all kinds of technical stuff that just happens to be part of an email. It's where I heard first about things like Stuts, JSTL, etc. So here's the question. I want to set up a free

RE: FTP server recommendation

2003-06-20 Thread Jeremy Whitlock
Brian, Windows 2000 Server has it's own FTP Server built in. IIS does it very easily. I am all for Open Source but if you paid for it, which you did, might as well use it. HTH, Jeremy -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003

RE: FTP server recommendation

2003-06-20 Thread Brian Menke
Thanks for the input Jeremy. I did pay for it, but it didn't seem intuitive to me to set up users and directory access. Also, I thought that I had to install IIS to use it, and I don't want to do that since I have Apache running on it. -Brian -Original Message- From: Jeremy Whitlock

RE: FTP server recommendation

2003-06-20 Thread Jeremy Whitlock
Brian, You do install IIS but if you have the Web Portion of IIS not running (Disabled), no harm no foul. I understand your use of Apach, nothing better. It's very easy to use for FTP from the IIS Suite though. Setting up users and directories is a snap. I wouldn't advise if I weren't

RE: FTP server recommendation

2003-06-20 Thread Shapira, Yoav
Howdy, I've used WarFTP and it's cool. I wasn't using it for a high-availability / high-capacity site, so I can't comment on how it handles stress. You could also try our brother project, Jakarta FtpServer: http://incubator.apache.org/projects/ftpserver/ Using the Windows2000 one might

Re: mod_jk quirk?

2003-06-20 Thread Larry Isaacs
I believe you can add: jkWorker=my worker name to your Listener ... to specify the name. I think Bill Barker's port of the classes involved is recent enough that the Tomcat 3.3. attributes (not the server.xml element itself) are valid in the Tomcat 4 ApacheConfig Listener. See the Tomcat

Sending xml string as input to servlet

2003-06-20 Thread Vijay Kandy
Hello, When an xml string is passed as an input to a Servlet like: http://server/context/servlet?xmlString=?xml version=1.0 encoding=UTF-8?testHello/test I am not able to read with request.getParameter(xmlString). Looks like Tomcat 4 doesn't like = in the parameter value. (Because it works with

RE: Sending xml string as input to servlet

2003-06-20 Thread Shapira, Yoav
Howdy, You are responsible for URL-encoding the query string. Passing it on the query string is not that good an idea anyways because of the limited length. You're better off passing it as a request parameter (still URL-encoded) in a POST request. Yoav Shapira Millennium ChemInformatics

Re: tomcat-user Digest 20 Jun 2003 20:21:29 -0000 Issue 2964

2003-06-20 Thread Mike Heckler
Tim, Thanks for the quick response. That works perfectly. (if you change the != to == in the canIgnoreRewrite routine.) I figured filters were involved, but I couldn't quite figure it out. Thanks, Mike Subject: Re: Configuring session Id in URL From: Tim Funk [EMAIL PROTECTED] Date: Fri, 20 Jun

Re: FTP server recommendation

2003-06-20 Thread Dov Rosenberg
I have used WAR FTP for the past few years. It is a very good server. It allows you to assign a person to a specific directory based on their login as opposed to MSFT that requires a different IP address for each specific user. The other benefit is you don't need to pollute your windows domain

RE: FTP server recommendation

2003-06-20 Thread electroteque
didnt u just hijack a thread ? norty norty On 6/20/03 4:39 PM, Brian Menke [EMAIL PROTECTED] wrote: I know this isn't the most appropriate place to ask this, but I depend on the insight of this group to find out about all kinds of technical stuff that just happens to be part of an email. It's

please help on load balancer

2003-06-20 Thread Jay Lee
I am using win2k, Tomcat 4.0.x and IIS thru isapi. What I am trying to do is to create two seperate containers with same application on each of them. How can I set it up? so it will do round robin by itself. For example, if user types: http://localhost/examples/servlet/hello, it will go to either

How do I run two tomcat on one NT

2003-06-20 Thread Jay Lee
I am using win 2k, IIS and tomcat 4.0.x. I wonder, could I run two tomcat thru services (i.e. thru registery values)? Mostly import, how could I deal with isapi redirect.dll? I would like to use AJPConnector for both tomcat. I would not like to use HTTPConnector ( I already know how to set

How to serialize an object which is put in the session ?

2003-06-20 Thread Antony paul
I have a class which implements the HttpSessionBindingListener interface. I want to serialize this object and all sessions when the context is reloaded. It is essential because three deveopers are using the same server and if ine user compiles a servlet all users get a nullpointer exception. I

Re: mod_jk only loadbalancing to one machine

2003-06-20 Thread Bill Barker
AFAIK, load balancing only works well with Apache-2 using the 'worker' MPM. With the 'pre-fork' MPM (which includes Apache-1.3.x on *nix systems), each child has it's own view of the current lb state, so they still tend to bunch. The 'pre-fork' problem probably won't be fixed in mod_jk.

custom error pages?

2003-06-20 Thread seera naveen
Hi, I am using FORM based authentication and JNDIRealm. Is it possible to have custom error pages in Tomcat? Apart from Invalid username and password, I want to check for another attribute and if that attribute is not set, I want to throw another message. Thanks Naveen SMS using the

Re: mod_jk quirk?

2003-06-20 Thread Bill Barker
Larry is correct. The worker is configurable. The Jk docs are a mess to navigate at the moment, but the 4.1.x link is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach eConfig. Larry Isaacs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I believe you can