How to set encoding of JavaBean output on JSP?

2003-07-21 Thread Eric Leung
Hi,

Tomcat 4.1.24
After some changes, I configured Tomcat to display GB2312 characters on JSP
nicely.
But the JavaBean output from the JSP scriptlet still showing "rubbish"
characters.

What should I change to fix this problem?
Greatly appreciate for any suggestion

Eric


Need help on upgrading Tomcat from 3.1 to 4.1.x

2003-07-15 Thread Eric Leung
Dear All Tomcat Users,

I'm working on upgrading Tomcat from a very old version to 4.1.x
Currently, we have a servlet being run at the start of the web (specified in
web.xml ).
But this servlet may have some objects obsoleted in ver 4.1.x.

Does anyone know how should I change this servlet in order to make it runs
on Tomcat 4.1.x?

THANKS IN ADVANCE!!

Here is the code:

package com.xxx.common;
.
import 
import 
import 

...
..
.

import java.util.Hashtable;
import java.util.Properties;
import java.io.File;
import java.io.IOException;

import javax.mail.Session;
import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.ServletException;

import org.apache.tomcat.core.Context;
import org.apache.tomcat.core.ServletContextFacade;


/**
 * InitServlet is a "faceless" servlet that is automatically started when
 * the servlet container starts. InitServlet requires only one initial
parameter
 * at startup: config.  This parameter refers to the property that will
contain
 * all the tunables for the site.
 *
 * ...
 * ...
 */
 
public class InitServlet extends GenericServlet {

private static Hashtable obj_table;
private static String CONFIG_NAME = "xxx.properties";


public InitServlet() {
super();
}


/**
 * Initialization routine to startup services for xxx
 *
 * @param conf configuration for this servlet
 * @exception ServletException not used in this method
 */
public void init(ServletConfig conf) throws ServletException {
super.init(conf);

obj_table = new Hashtable();

// Get the context of this servlet
Context context = ((ServletContextFacade) conf.getServletContext()).
getRealContext();

obj_table.put(context.getClass().getName(), context);

String conf_filename = context.getContextManager().getTomcatHome() +

File.separator + "conf" + File.separator + CONFIG_NAME;

if (! new File(conf_filename).exists()) {
// Configuration file doesn't exist; tell user
log("Configuration file: " + conf_filename + " does not
exist");
log("Please make sure file exist for the iSteelAsia.com
application");
System.err.println("Configuration file: " + conf_filename +
" does not exist");
System.err.println("Please make sure file exist for the
iSteelAsia.com application");
return;
}


...
..
.
}

/**
 * Retrieves an object out of the object hash table.
 *
 * @param name the given name of the object
 * @return the actual object
 */
public static Object getObject(String name) {
if (obj_table == null) {
return null;
}

return obj_table.get(name);
}


/**
 * Inserts an object into the object hash table.
 *
 * @param name the name of the object
 * @param key the object itself
 */
public static void setObject(String name, Object key) {
if (obj_table == null) {
return;
}

obj_table.put(name, key);
}

/**
 * The service method is blank, meaning that this servlet will do nothing
other then
 * a faceless init. This servlet will return no data.
 *
 * @param request javax.servlet.ServletRequest servlet request object
 * @param response javax.servlet.ServletResponse sevlet response object
 */
public void service(ServletRequest request, ServletResponse response) 
throws ServletException, IOException { }

} /* InitServlet */



RE: Tomcat 3.3.1

2002-07-30 Thread Eric Leung

Yes, 

I found the jar under $TOMCAT_HOME/lib/container

[isatom@demo container]$ jar tvf jasper.jar |grep JspWriterImpl
  7764 Tue Mar 26 07:41:12 EST 2002
org/apache/jasper/runtime/JspWriterImpl.class

How can I know if the method "flushBuffer " is inside the jar?
But this jar comes with the 3.3.1 binary and the servlet 2.2 spec says this
method "flushBuffer" is inside the class.

What else should I look for?
Thanks,
Eric

-Original Message-
From: Thomas Colin de Verdiere [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 4:03 PM
To: Tomcat Users List
Subject: Re: Tomcat 3.3.1


Did you look at the code :
org.apache.jasper.runtime.JspWriterImpl
is the flushBuffer present?


Thomas


Eric Leung wrote:
> Hi All,
> 
> I'm upgrading an application written for tomcat 3.1.1 to 3.3.1.
> After fixing some bugs on using tomcat internal classes, I can startup the
> application in 3.3.1 with the following message 
> 
> Using classpath: bin/../lib/tomcat.jar
> Using JAVA_HOME: /opt/jdk1.2.2
> Using TOMCAT_HOME: /opt/isa-tomcat
> [isatom@demo isa-tomcat]$
> [isatom@demo isa-tomcat]$ 2002-07-30 10:51:32 - LogEvents: Adding
LogEvents,
> cm.debug=0 true
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.loggers.LogEvents@c562dddb
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.ContextXmlReader@33beddd8
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.ContextXmlReader@2bdaddd8
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.AutoDeploy@2626ddd8
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.AutoWebApp@32aeddd8
> 2002-07-30 10:51:32 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.PolicyLoader@c046dddb
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.mappers.SimpleMapper1@d18edddb
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.session.SessionExpirer@f746dddb
> 2002-07-30 10:51:33 - SessionIdGenerator: Opening /dev/urandom
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.session.SessionIdGenerator@1936ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.LogSetter@cdeddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.LogSetter@48addd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.facade.WebXmlReader@7082ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.generators.ErrorHandler@6226ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.WorkDirSetup@58a2ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.generators.Jdk12Interceptor@5112ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.generators.InvokerInterceptor@46daddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.facade.JspInterceptor@b7ceddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.generators.StaticInterceptor@a722ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.mappers.ReloadInterceptor@9846ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.session.SimpleSessionStore@8e8addd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.aaa.AccessInterceptor@ca3eddda
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.aaa.CredentialsInterceptor@c3f6ddda
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.aaa.SimpleRealm@3832dddb
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.facade.LoadOnStartupInterceptor@311edddb
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.facade.Servlet22Interceptor@26a6dddb
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.mappers.DecodeInterceptor@896eddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.session.SessionId@9d96ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.ApacheConfig@b166ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.IISConfig@4372ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.config.NSConfig@5e36ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.server.Http10Interceptor@7836ddd8
> 2002-07-30 10:51:33 - LogEvents: addInterceptor
> org.apache.tomcat.modules.server.JNIConnecti

Tomcat 3.3.1

2002-07-29 Thread Eric Leung

Hi All,

I'm upgrading an application written for tomcat 3.1.1 to 3.3.1.
After fixing some bugs on using tomcat internal classes, I can startup the
application in 3.3.1 with the following message 

Using classpath: bin/../lib/tomcat.jar
Using JAVA_HOME: /opt/jdk1.2.2
Using TOMCAT_HOME: /opt/isa-tomcat
[isatom@demo isa-tomcat]$
[isatom@demo isa-tomcat]$ 2002-07-30 10:51:32 - LogEvents: Adding LogEvents,
cm.debug=0 true
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.loggers.LogEvents@c562dddb
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.ContextXmlReader@33beddd8
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.ContextXmlReader@2bdaddd8
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.AutoDeploy@2626ddd8
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.AutoWebApp@32aeddd8
2002-07-30 10:51:32 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.PolicyLoader@c046dddb
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.mappers.SimpleMapper1@d18edddb
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.session.SessionExpirer@f746dddb
2002-07-30 10:51:33 - SessionIdGenerator: Opening /dev/urandom
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.session.SessionIdGenerator@1936ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.LogSetter@cdeddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.LogSetter@48addd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.facade.WebXmlReader@7082ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.generators.ErrorHandler@6226ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.WorkDirSetup@58a2ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.generators.Jdk12Interceptor@5112ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.generators.InvokerInterceptor@46daddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.facade.JspInterceptor@b7ceddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.generators.StaticInterceptor@a722ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.mappers.ReloadInterceptor@9846ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.session.SimpleSessionStore@8e8addd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.aaa.AccessInterceptor@ca3eddda
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.aaa.CredentialsInterceptor@c3f6ddda
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.aaa.SimpleRealm@3832dddb
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.facade.LoadOnStartupInterceptor@311edddb
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.facade.Servlet22Interceptor@26a6dddb
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.mappers.DecodeInterceptor@896eddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.session.SessionId@9d96ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.ApacheConfig@b166ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.IISConfig@4372ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.NSConfig@5e36ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.server.Http10Interceptor@7836ddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.server.JNIConnectionHandler@219eddd8
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.server.Ajp12Interceptor@cc5adddb
2002-07-30 10:51:33 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-07-30 10:51:33 - LogEvents: addInterceptor
org.apache.tomcat.modules.config.ServerXmlReader@643edddb
2002-07-30 10:51:33 - PathSetter: home=/opt/isa-tomcat-3.3.1
2002-07-30 10:51:33 - LogEvents: engineInit
2002-07-30 10:51:33 - AutoWebApp: Auto-Adding DEFAULT:/
2002-07-30 10:51:33 - LogEvents: engineState 1
2002-07-30 10:51:33 - ContextManager: Tomcat configured and in stable state
2002-07-30 10:51:33 - LogEvents: addContext DEFAULT:/ROOT
2002-07-30 10:51:33 - WorkDirSetup: Creating work dir
/opt/isa-tomcat-3.3.1/work/DEFAULT/ROOT
2002-07-30 10:51:33 - ContextManager: Adding  DEFAULT:/ROOT
2002-07-30 10:51:33 - LogEvents: contextInit DEFAULT:/ROOT
2002-07-30 10:51:33 - Ctx() : Validating web.xml
2002-07-30 10:51:33 - LogEvents: preServletInit DEFAULT:/ROOT ServletH
InitServlet(SW (null CN=com.isteelasia.common.Ini
tServlet))
2002-07-30 10:51:37 - LogEvents: postServletInit DEFAULT:/ROOT ServletH
InitServlet(SW (null CN=co

RE: default pageEncoding

2002-07-22 Thread Eric Leung

Hi,

yes, just like HTML add a line like this:

 

 
character set

Eric




Hello!

Is it possible to set default pageEncoding for jsps?


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: unsubscribe does not work

2002-07-19 Thread Eric Leung

double check the "send to address", it's a long one, my outlook seems to cut
out the last part also

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 5:51 PM
To: Tomcat Users List
Subject: RE: unsubscribe does not work


I receive a message to confirm that
i want to unsubscribe.
I reply but the reply doesnot work :
i receive this mail :





Hi. This is the qmail-send program at nagoya.betaversion.org.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 10053 invoked by uid 98); 19 Jul 2002 09:48:35 -
Delivered-To: [EMAIL PROTECTED]
X-Antivirus: nagoya (v4198 created Apr 24 2002)
Received: (qmail 10034 invoked from network); 19 Jul 2002 09:48:34 -
Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142)
  by nagoya.betaversion.org with SMTP; 19 Jul 2002 09:48:34 -
Received: (qmail 49922 invoked by uid 500); 19 Jul 2002 09:48:05 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 49915 invoked from network); 19 Jul 2002 09:48:05 -
Received: from unknown (HELO abraracourcix.adeuza.fr) (80.65.236.42)
  by daedalus.apache.org with SMTP; 19 Jul 2002 09:48:05 -
X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: 
Date: Fri, 19 Jul 2002 11:48:16 +0200
Message-ID:
<[EMAIL PROTECTED]>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Index: AcIvCWgMYk4rAtTLQEOXZtYbm4uvBA==
From: "Laurent Michenaud" <[EMAIL PROTECTED]>
To: "tomcat-user-uc.1027072067.lcbonmnbgecebniojnno-lmichenaud="
<[EMAIL PROTECTED]>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N






> -Message d'origine-
> De : Eric Leung [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 19 juillet 2002 11:37
> À : 'Tomcat Users List'
> Objet : RE: unsubscribe does not work
> 
> 
> Hi you should just send a empty mail to 
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> -Original Message-
> From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 5:36 PM
> To: [EMAIL PROTECTED]
> Subject: unsubscribe does not work
> 
> 
> I can't unsubscribe from this mailing list.
> 
> Please tell me how to do it...
> 
> Michenaud Laurent
> - Adeuza -
> [ Développeur Web - Administrateur Réseau ]
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



RE: unsubscribe does not work

2002-07-19 Thread Eric Leung

Hi you should just send a empty mail to 
To unsubscribe, e-mail:


-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 5:36 PM
To: [EMAIL PROTECTED]
Subject: unsubscribe does not work


I can't unsubscribe from this mailing list.

Please tell me how to do it...

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Question about upgrading Tomcat

2002-07-19 Thread Eric Leung

Hi All,

This is my first question post to this mailing list.
I'm trying to upgrade the application written for tomcat 3.1.x to 3.2.4 or
3.3.1
But I found that there are codes written specifically for v3.1 and they are
deprecated.

The following code segment is from a very first servlet called for the web
site.
.
.
.

import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.ServletException;

import org.apache.tomcat.core.Context;
import org.apache.tomcat.core.ServletContextFacade;


public class InitServlet extends GenericServlet {

private static Hashtable obj_table;
private static String CONFIG_NAME = "xxx.properties";


public InitServlet() {
super();
}

public void init(ServletConfig conf) throws ServletException {
super.init(conf);

obj_table = new Hashtable();

// Get the context of this servlet
Context context = ((ServletContextFacade) conf.getServletContext()).
getRealContext();

obj_table.put(context.getClass().getName(), context);

String conf_filename = context.getContextManager().getTomcatHome() +

File.separator + "conf" + File.separator + CONFIG_NAME;

if (! new File(conf_filename).exists()) {
// Configuration file doesn't exist; tell user
log("Configuration file: " + conf_filename + " does not
exist");
log("Please make sure file exist for the xxx application");
System.err.println("Configuration file: " + conf_filename +
" does not exist");
return;
}

.
.
.
}

.
.
.

Since the org.apache.tomcat.core.Context and
org.apache.tomcat.core.ServletContextFacade have been deprecated,
do you know how should I modify the servlet to make it work in 3.2 or 3.3?

Any suggestion, advice, comment, or pointers are greatly appreciated.
Thanks,
Eric Leung




Re: acknowledgment from web client

2001-04-19 Thread eric leung

To make it clear:
My question is how server (SERVLET) knows if (web
browser) finish download 100% of the file. 

If user had downloaded the whole file. user cannot
re-download the file again.  If user click cancel in
the middle or didn't download 100% of a file -->
server will knows it and user can download it again.

Thanks.

--- eric leung <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a servlet serves files for web browser.
> 
> How can I know if the HTTP web browser had:
> 1) finished download 100% of the file, or;
> 2) only downloaded 50% of the file then click
> cancel,
> or;
> 3) only downloaded 70% then reboot the machine
> 
> i think the TCP/IP layer (socket) will keep track of
> acknowlegament send back from client. but how do i
> implement this in my servlet? how do i (servlet)
> know
> how many bytes client had receive? 
> 
> I am now using apache + tomcat.  I heard tomcat has
> problem getting  acknowlegament from client. since
> tomcat is seperated by apache server from client
> (it's
> a tomcat bug also). Any one knows how to fix this
> problem?   
> Web-browser --> apache --> tomcat
> 
> thanks.
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



acknowledgment from web client

2001-04-18 Thread eric leung

Hi,
I have a servlet serves files for web browser.

How can I know if the HTTP web browser had:
1) finished download 100% of the file, or;
2) only downloaded 50% of the file then click cancel,
or;
3) only downloaded 70% then reboot the machine

i think the TCP/IP layer (socket) will keep track of
acknowlegament send back from client. but how do i
implement this in my servlet? how do i (servlet) know
how many bytes client had receive? 

I am now using apache + tomcat.  I heard tomcat has
problem getting  acknowlegament from client. since
tomcat is seperated by apache server from client (it's
a tomcat bug also). Any one knows how to fix this
problem?   
Web-browser --> apache --> tomcat

thanks.


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: AddModule mod_jk.c

2001-04-14 Thread eric leung

thanks jeff,
i had read this already, but i am still not very clear
about difference between the 2. 

what i think is addmodule will add the module to the
list. you can't use the module until you use the
LoadModule command to load the module into memeory.
you don't need to use AddModule before loading it.

would AddModule become pretty much useless?

thanks.

--- Jeff Kilbride <[EMAIL PROTECTED]> wrote:
> Did you try the docs?
> 
> http://httpd.apache.org/docs/mod/core.html#addmodule
> 
>
http://httpd.apache.org/docs/mod/mod_so.html#loadmodule
> 
> --jeff
> 
> - Original Message - 
> From: "brian luk" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 14, 2001 2:16 PM
> Subject: AddModule mod_jk.c
> 
> 
> > Hi,
> > can any one tell me what's difference between the
> 2:
> > 
> > LoadModule jk_module  libexec/mod_jk.so
> > AddModule mod_jk.c
> > 
> > i must load the jk module before i can connect to
> > tomcat.  I think tomcat works without AddModule
> > mod_jk.c, what's AddModule mod_jk.c use for? No
> use?
> > 
> > thanks. 
> > 
> > 
> > P.S.
> > part of the httpd.conf
> > LoadModule env_module libexec/mod_env.so
> > LoadModule config_log_module 
> > libexec/mod_log_config.so
> > LoadModule mime_modulelibexec/mod_mime.so
> > LoadModule negotiation_module
> > libexec/mod_negotiation.so
> > LoadModule status_module 
> libexec/mod_status.so
> > LoadModule includes_module   
> libexec/mod_include.so
> > LoadModule autoindex_module  
> libexec/mod_autoindex.so
> > LoadModule dir_module libexec/mod_dir.so
> > LoadModule cgi_module libexec/mod_cgi.so
> > LoadModule asis_modulelibexec/mod_asis.so
> > LoadModule imap_modulelibexec/mod_imap.so
> > LoadModule action_module 
> libexec/mod_actions.so
> > LoadModule userdir_module
> libexec/mod_userdir.so
> > LoadModule alias_module   libexec/mod_alias.so
> > LoadModule access_module 
> libexec/mod_access.so
> > LoadModule auth_modulelibexec/mod_auth.so
> > LoadModule setenvif_module   
> libexec/mod_setenvif.so
> > LoadModule jk_module  libexec/mod_jk.so
> > LoadModule rewrite_module
> libexec/mod_rewrite.so
> > 
> > LoadModule ssl_module libexec/libssl.so
> > 
> > 
> > ClearModuleList
> > AddModule mod_env.c
> > AddModule mod_log_config.c
> > AddModule mod_mime.c
> > AddModule mod_negotiation.c
> > AddModule mod_status.c
> > AddModule mod_include.c
> > AddModule mod_autoindex.c
> > AddModule mod_dir.c
> > AddModule mod_cgi.c
> > AddModule mod_asis.c
> > AddModule mod_imap.c
> > AddModule mod_actions.c
> > AddModule mod_userdir.c
> > AddModule mod_alias.c
> > AddModule mod_access.c
> > AddModule mod_auth.c
> > AddModule mod_so.c
> > AddModule mod_setenvif.c
> > AddModule mod_jk.c
> > AddModule mod_rewrite.c
> > 
> > AddModule mod_ssl.c
> > 
> > 
> > __
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail. 
> > http://personal.mail.yahoo.com/
> > 
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: mod_jk.so vs mod_jk.dll for Win32 and Apache 1.3.19

2001-04-14 Thread eric leung

I have the same doubt, i use 1.3.17. Why on win32 now,
all module has .so ending?  what i think is .so is for
unix only. am i right?


--- Ellis Teer <[EMAIL PROTECTED]> wrote:
> I currently use Apache1.3.14 + Tomcat 3.2.1 +
> mod_jk.dll on Win32.
>  
> I recently tried to upgrade to Apache 1.3.19.  When
> I try the LoadModule
> command in the server configuration file on mod_jk
> using the mod_jk.dll file the server would not
> start.  If I comment out that one LoadModule command
> the server starts.
>  
> I noticed in the Win32 version ALL the modules now
> have .so endings.  Is this a change in the Win32
> version.  Do I need a mod_jk.so or different
> mod_jk.dll file for Win32?
>  
> -Ellis Teer
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: j_security_check

2001-04-13 Thread eric leung

i am using VPN. it works on normal network connection.
is that matter?

--- eric leung <[EMAIL PROTECTED]> wrote:
> Hi,
> i had set up Form authentication in tomcat.  I used
> apache 1.3.17 + tomcat 3.2.1. And i added this line
> ---
> JkMount /update/j_security_check Ajp12
> ---
> to mod_jk.conf, which will forward all the login
> form
> request to Ajp12 worker.
> 
> It works before. but now. all of a sudden, apache
> return error message saying:
> 404 Not Found
> The requested URL /update/null was not found on this
> server.
> 
> That's very strange that j_security_check had
> changed
> to null.
> 
> my form is like this:
> 
> 
> 
> 
> 
> 
> Username
> Password:
>  name="j_security_check">
> 
> 
> 
> 
> 
> Please help me out 
> thanks.
> 
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



j_security_check

2001-04-12 Thread eric leung

Hi,
i had set up Form authentication in tomcat.  I used
apache 1.3.17 + tomcat 3.2.1. And i added this line
---
JkMount /update/j_security_check Ajp12
---
to mod_jk.conf, which will forward all the login form
request to Ajp12 worker.

It works before. but now. all of a sudden, apache
return error message saying:
404 Not Found
The requested URL /update/null was not found on this
server.

That's very strange that j_security_check had changed
to null.

my form is like this:






Username
Password:






Please help me out 
thanks.

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: Servlet -- SingleThreadModel

2001-04-12 Thread eric leung

David,
Thanks your suggestion.

But I don't think this is a good solution. i have
already 50Kb of code in that servlet class. if i need
to move it to another class. that will be alot of
work.

My question is why implement SingleThreadModel
interface can't handle more than 1 request at a time?
Since i will have only 3 clients. I think
SingleThreadModel is the best solution, without the
need to worry about threading issue.


--- David Crooke <[EMAIL PROTECTED]> wrote:
> Make your connection etc. stack variables instead,
> by creating a class
> to contain them and move all your code into that
> class - then have the
> empty servlet "new" an instance and call the service
> method. This way
> you can use instance variables and the
> Multi-Threaded Model.
> 
> eric leung wrote:
> 
> > I have a servlet implements the SingleThreadModel
> > Interface. But this servlet has problem handle
> more
> > than 1 request at a time.
> >
> > Since I have 1 person on host1 upload a big file (
> >
> > 20MB ) to the servlet.  When the 2nd person on
> host2
> > send a request to that servlet. The servlet will
> not
> > response.
> >
> > Any one had the same problem using
> SingleThreadModel?
> > I am using apache 1.3.17 + tomcat 3.2.1.
> > thanks.
> >
> > P.S. I use SingleThreadModel beause i don't want
> to
> > worry about syncronization of threads, I have
> > Connection as instance variable:
> >
> > public class admin extends HttpServlet implements
> > SingleThreadModel{
> >   private PrintWriter out;
> >   private OracleConnectionCacheImpl pool;
> >   private Connection conn;
> >   private Statement stmt;
> >
> >   ..etc...
> >
> >
> > __
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> 
> --
> David Crooke, Chief Technology Officer
> Convio Inc. - the online partner for nonprofits
> 4801 Plaza on the Lake, Suite 1500, Austin TX 78746
> Tel: (512) 652 2600 - Fax: (512) 652 2699
> 
> 
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Servlet -- SingleThreadModel

2001-04-12 Thread eric leung

I have a servlet implements the SingleThreadModel
Interface. But this servlet has problem handle more
than 1 request at a time. 

Since I have 1 person on host1 upload a big file ( >
20MB ) to the servlet.  When the 2nd person on host2
send a request to that servlet. The servlet will not
response. 

Any one had the same problem using SingleThreadModel? 
I am using apache 1.3.17 + tomcat 3.2.1.
thanks.


P.S. I use SingleThreadModel beause i don't want to
worry about syncronization of threads, I have
Connection as instance variable:

public class admin extends HttpServlet implements
SingleThreadModel{
  private PrintWriter out;
  private OracleConnectionCacheImpl pool;
  private Connection conn;
  private Statement stmt;

  ..etc...
 

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/