RE: In-Process Tomcat

2007-06-24 Thread Duan, Nick
In-process Tomcat is to have Tomcat running in the same process space as Apache HTTPD, IIS, or other web server. Since most of the web servers are implemented in C/C++, you will have to use JNI to integrate with Java-based Tomcat, and create a "mod_tomcat" like module for Httpd. Definitely the i

RE: TomcatProbe 1.1 released

2006-03-06 Thread Duan, Nick
What are the differences between Tomcat Manager and TomcatProbe? Thanks! ND -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 7:51 AM To: users@tomcat.apache.org Subject: TomcatProbe 1.1 released Hello guys, I thought that you might be i

RE: Using a configuration file without path for an application deployed on tomcat

2006-03-06 Thread Duan, Nick
How about packaging the config.xml file within the jar file and import it to your application via resource stream? See Class.getResourceAsStream() or ClassLoader.getResourceAsStream() for more details. The limitation of this approach is that the configuration parameters have to be predefined prior

RE: Forward to another URL

2006-02-28 Thread Duan, Nick
Are you trying to forward an http request from one servlet to another via the RequestDispatcher API? Or trying to figure out a way to forward a request in tomcat via configuration? Forwarding an http request is really a feature of the servlet API. The http protocol doesn't support request forw

RE: Tomcat servlet load handling

2006-02-24 Thread Duan, Nick
I assume that your web app was dealing with a backend database. In that case, it is quite possible that your JDBC data source is running out of connections. So the timeout is not necessarily caused by the servlet, but by the connection pool. One option is to increase the number of connections in

RE: Need help with click streams

2006-02-24 Thread Duan, Nick
You may be interested in the open source product http://www.opensymphony.com/clickstream/ ND -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 7:31 AM To: 'Tomcat Users List' Subject: RE: Need help with click streams Tomcat has an access log m

RE: Where to place JNDI sections for customer deployment

2006-02-17 Thread Duan, Nick
If you (or someone else) have full control of the database configuration, not your customers, you may consider using a true JDNI server. The JNDI implementation provided by Tomcat (or most of the app servers in the market today) are not true JDNI services, but only a look-up table, because objects

RE: Client Cert

2006-02-17 Thread Duan, Nick
What do you want to accomplish? SSL is the only (I mean one that is established) way to ensure a secure session. ND -Original Message- From: Luis Henrique [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 10:11 AM To: users@tomcat.apache.org Subject: Client Cert Is there anywa

RE: Multiple Sessions per user

2006-02-16 Thread Duan, Nick
In your situation, you probably don't want to mess around with the HttpSession object. The session object is designed for sharing info within the same session, not the same user. If sharing info among multiple sessions is desired, use ServletContext instead. One solution would be store your user

RE: jdbc context

2006-02-13 Thread Duan, Nick
? >From: "Duan, Nick" <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" >To: "Tomcat Users List" >Subject: RE: jdbc context >Date: Mon, 13 Feb 2006 10:11:34 -0500 > >You should be able to add the context info in your web.xml file. In >other

RE: Encrypting ajp13 traffic

2006-02-13 Thread Duan, Nick
Another option would be to create your own proxies that do encryption/decryption on both ends (apache and tomcat). It should be quite straightforward if using JSSE. Or if simple encryption is sufficient (SSL is quite expensive in terms of performance), apply your own symmetric encryption algorith

RE: jdbc context

2006-02-13 Thread Duan, Nick
You should be able to add the context info in your web.xml file. In other words, instead of making the JDBC resource available to all web apps, you make it only to particular applications. If this JDBC connection is only used by the workflow web app, defining it in web.xml is actually preferred.

RE: problems with Clusters or apache connector not sure which one

2006-02-13 Thread Duan, Nick
It looks like a network problem to me. Is there any firewall between the apache and your tomcat server? Or did your IT dept reconfigure the network recently? ND -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:27 AM To: Tomcat Users List

RE: Tomcat, Security, Anonymous Authentication

2006-02-13 Thread Duan, Nick
Anonymous authentication is an additional feature that you need to create in your web application. It doesn't come by default in any app servers. So there is no need to disable it when configuring Tomcat. There is a good article in JavaWorld discussing about anonymous authentication in J2EE.

RE: tomcat + certificate

2006-02-10 Thread Duan, Nick
Without knowing the details of your problem (you may want to provide a stack trace next time), I think the problem is in the java client. Did you use JSSE to implement the client? The java sockets for accessing http are not the same as https. ND -Original Message- From: news [mailto:[EM

RE: Realm and Authentication with Tomcat 5.0, Apache 2 and mod_jk 1.2

2006-02-10 Thread Duan, Nick
Sorry for jumping into the discussion. The comment I'd like to make is that you can't really separate the security realm from authentication. In other words, a security realm is an integral part of user authentication. If user authentication is done by apache, the "realm" (the term realm is kind

RE: socket read errors

2006-02-03 Thread Duan, Nick
Are you using Solaris? Is it possible that your MTU at the OS level wasn't set to a large number? ND -Original Message- From: James Rome [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 9:30 AM To: Tomcat Users List Subject: socket read errors My servlet that verifies presente

RE: BUG in Tomcat 4.3.31 with Oracle 9?

2006-02-01 Thread Duan, Nick
Could you publish the stack trace for this? ND -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 8:06 AM To: users@tomcat.apache.org Subject: BUG in Tomcat 4.3.31 with Oracle 9? Hi! I tried the following code from a jsp-page one tim

RE: Tomcat and client certificates

2006-02-01 Thread Duan, Nick
The clientAuth attribute of the connector has to be set to true. Then you will need a client cert to access resources under /html/*, but not other pages. See the Tomcat SSL guide on how to create the client cert. ND -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: Wednes

RE: Application sign-in

2006-01-27 Thread Duan, Nick
: Application sign-in I need to call database only whe user login with j_security_check It's is valid other users have a session in the application but they are not authenticated (guest users) regards 2006/1/27, Duan, Nick <[EMAIL PROTECTED]>: > > One option is to create your own HttpSe

RE: Application sign-in

2006-01-27 Thread Duan, Nick
One option is to create your own HttpSessionListener and implement the method sessionCreated(), where you can add objects to HttpSession. Please refer to the javadoc of javax.servlet.http.HttpSessionListener API for more details. ND -Original Message- From: Luis Gervaso [mailto:[EMAIL PRO

RE: Asynchronous messaging in tomcat

2006-01-27 Thread Duan, Nick
Spawning your own threads in a web app is usually not recommended. The correct way is to create and use a JMS message listener, like in Jakarta common messenger. http://jakarta.apache.org/commons/sandbox/messenger I am not sure how easy it is to integrate with Tomcat 5. ND -Original Messag

Spam:RE: Spam:RE: stdout/logging

2006-01-24 Thread Duan, Nick
The redirection operator should work, but with one more detail: You need to modify the catalina.bat file to enable the redirection. ND -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:04 AM To: Tomcat Users List Subject: Spam:RE:

RE: Connection Pool Woes

2006-01-20 Thread Duan, Nick
The only way to close db connections is to do within your servlet/jsp application, i.e. java.sql.Connection.close(). But remember, the sql connections in the web apps are not the physical connections. The physical connections are maintained by the db pool and they will remain open after the conne

RE: problem with lost request parameters

2006-01-19 Thread Duan, Nick
Do you do any request processing before invoking request.getParameter in your servlet (e.g. getting and reading the input stream)? Do you use any filters in your web app? ND -Original Message- From: Jair da Silva Ferreira Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:

RE: Easiest Open Source Shopping Cart Fnctnlty to plug into Tomcat

2006-01-14 Thread Duan, Nick
Sourceforge.net may be your answer (search for e-commerce). The latest spring framework also contains a very simple shopping cart app called jpetstore as an example. It works well on Tomcat. http://www.springframework.org. ND -Original Message- From: Kyle [mailto:[EMAIL PROTECTED] Se

RE: Size of session bean

2006-01-14 Thread Duan, Nick
The initial posting sounds like an EJB question instead of one that is Tomcat related. Tomcat is considered a web application server and it uses session objects (HttpSession) to represent user sessions. It doesn't handle EJBs at this point. Session beans are exclusive terms for EJB servers (e.g.

RE: How to redirect incoming requests?

2006-01-11 Thread Duan, Nick
Couple of ways you may consider: - Ask your network administrator to change your DNS mapping or IP address mapping. - Use the build-in balancer of tomcat as a proxy to redirect the traffic (see the load balancer section of tomcat doc). - Apache or HW load balancer. ND -Original Message-

RE: Problem with servlets from upgrade (Tomcat to SunOne)

2006-01-11 Thread Duan, Nick
Without knowing how your web.xml file was defined, it seems to me a context root problem. Sun has its own way to define the path of a context root in its sun-web.xml file, unlike tomcat which uses the application name as the default root path. If you use Sun's Studio to package and deploy your

RE: JDBC Session Persistence in a cluster problem/question

2006-01-10 Thread Duan, Nick
Could this be the reason that the failover can't succeed? Tomcat HOWTO on session replication: Make sure your web.xml has the element or set at your ND -Original Message- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 1:45 AM To: users@tomcat.apache.org Sub

RE: AW: JSessionID

2006-01-09 Thread Duan, Nick
Tomcat handles user sessions (HttpSession) separately from SSL session. In other words, JSessionID is being generated independently from SSL. There is no relationship between an SSL session and the user session at the application level. You still have to use the same JSessionID (either implemented

RE: Single Thread is deprecated?

2006-01-09 Thread Duan, Nick
ization on HttpSession in tomcat is unnecessary. ND -Original Message- From: GB Developer [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 6:33 PM To: 'Tomcat Users List' Subject: RE: Single Thread is deprecated? > -Original Message- > From: Duan, Nick [mailto

RE: Single Thread is deprecated?

2006-01-06 Thread Duan, Nick
HttpServlet, why bother to sync them? ND -Original Message- From: Michael Echerer [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 5:44 PM To: Tomcat Users List Subject: Re: Single Thread is deprecated? Duan, Nick wrote: > HttpServlet is inherently thread-safe as long as you do

RE: How does Tomcat log by default?

2006-01-06 Thread Duan, Nick
Check catalina.out file under the log dir. ND -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9:59 AM To: users@tomcat.apache.org Subject: How does Tomcat log by default? I am playing around with a Hibernate project, and created a war file

RE: Single Thread is deprecated?

2006-01-06 Thread Duan, Nick
HttpServlet is inherently thread-safe as long as you don't use any instance and class variables in your code. There is also no need to sync around the session object, because there is only one servlet that is active at a time. The only sync you have to do is with app context objects. If you want

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
By type casting I mean: Document mydoc = (Document) req.getAttribute("yourobjname"); Viel Glueck! ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 11:16 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
Don't forget type casting the object. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 10:06 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects Duan, Nick wrote: >You shouldn't use req.getParameter(..). Ins

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
You shouldn't use req.getParameter(..). Instead, use the setAttribute and getAttribute methods in HttpServletRequest. No need to pack/unpack JDOM. You can pass an object via request. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9

RE: Comparing Tomcat Performance on Windows vs. Linux

2006-01-05 Thread Duan, Nick
Thanks Michael for the info. J2EE performance testing depends on many different factors. Some questions/suggestions for your consideration: 1. It wasn't clear from your report what the HW/SW spec of your test clients (load workstation). Base on your test scenario, it looks like each load works

RE: Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Duan, Nick
Well, the problem seems to be that you were using AJP 1.2 on the apache site whereas tomcat was configured with AJP 1.3 (default for 5.5). Interim solution: reconfigure tomcat to use AJP 1.2. Best solution: Upgrade Apache to version 2 and AJP to 1.3. ND -Original Message- From: Raja Ne

RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-12-02 Thread Duan, Nick
jk_handler::mod_jk.c (1993): Could not find a worker for worker name=ajp13w What else could it be? Thanks, Luka - Original Message - From: "Duan, Nick" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 30, 2005 8:45 PM Subject: RE: Probl

RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-30 Thread Duan, Nick
ssage - From: "Duan, Nick" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, November 30, 2005 3:58 PM Subject: RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9) Well, the log msg is complaining about not able to find the worker. Apparently your tomcat

RE: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-30 Thread Duan, Nick
Well, the log msg is complaining about not able to find the worker. Apparently your tomcat wasn't configured for listening to ajp13 request from httpd. A connector entry for ajp13 should be added to server.xml file. At least it was not listed in your email. ND -Original Message--

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
t: Re: Certificate Revocation Lists in Tomcat 5.5 Caldarale, Charles R wrote: >>From: Duan, Nick [mailto:[EMAIL PROTECTED] >>Subject: RE: Certificate Revocation Lists in Tomcat 5.5 >> >>Tomcat 5.5 supposed to run on JDK 1.5. Why was it compiled with JDK >>1.4? > > >

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
mpiled are: > org.apache.tomcat.util.net.jsse.JSSE15Factory and > org.apache.tomcat.util.net.jsse.JSSE15SocketFactory > classes. > - The crlFile property needs to be added inside your > SSL Connector in the server.xml file. The value is the > location of the CRL file on your system. &g

RE: Sharing session across http and https connections

2005-11-29 Thread Duan, Nick
You can't do this if both sites are on different machines since tomcat user ID (defined as a cookie by default), is tied to an url. If both sites are on different machines, you may have to use url-rewritting for session tracking instead of using the default cookies. ND -Original Message-

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
Tomcat currently doesn't support cert validation against CRL. You may want to use Apache's mod_ssl to do the CRL checking. You will have to use mod_jk to connect Apache web server with tomcat. SSL is very computational intensive. Use Apache's httpd to do the SSL work is more efficient than to u

RE: heap size problems (speed) [2]

2005-11-28 Thread Duan, Nick
adays. ND -Original Message- From: Cristian [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 1:27 PM To: Tomcat Users List Subject: Re: heap size problems (speed) [2] - Original Message - From: "Duan, Nick" <[EMAIL PROTECTED]> To: "Tomcat Users List"

RE: heap size problems (speed) [2]

2005-11-28 Thread Duan, Nick
Were you using the right JVM? There were two JDK download for LINUX on Sun's web site. The main problem may be your AMD Duron processor which has a very small cache size (I believe it's about 512K). Once the processor cache reaches its limit, increasing the JVM heap size won't be very effective.

RE: Where should I store my static content in a clustered environment

2005-11-23 Thread Duan, Nick
A simple solution would be to have all static pages hosted on an Apache httpd server in front of tomcat clusters. If you need more performance, just cluster the httpds. Tomcat is not really designed to server static pages. Apache httpd can also serve as a LB. In this case, certainly you have to

RE: Calling EJBs

2005-11-22 Thread Duan, Nick
ember 21, 2005 11:17 AM To: 'Tomcat Users List' Subject: RE: Calling EJBs Nick (and others), Do you know which mailing list is for JBoss? Thank you, Milan -Original Message----- From: Duan, Nick [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 4:49 PM To: Tomcat Users L

RE: Inter-webApp communication?

2005-11-22 Thread Duan, Nick
Since all your web apps are running on the same JVM, you can just use simple Java object to communicate with each other. Two questions should be considered. One is how to locate the common object by individual web apps. The simplest way is to just use a static object instance or singleton object

RE: Calling EJBs

2005-11-21 Thread Duan, Nick
1. If you access an EJB app from another server, your EJB client, in this case JSP, has to use remote component interface to access your EJB, not local interface. Make sure your EJB publishes remote interfaces. 2. You need to have JBoss generate the EJB client stub classes, or in J2EE's term, the

RE: Grabbing JNDIRealm Authentication Roles

2005-11-18 Thread Duan, Nick
I think the standard way for including role in your programming logic (e.g. if user is of role manager, dispatch the manager.jsp; if user is an employee, dispatch the employee.jsp, etc), is to use the isUserInRole method of HttpServletRequest. This solution doesn't depend on which realm you are us

RE: Managing concurrent high memory processes

2005-11-18 Thread Duan, Nick
You may want to find out where the bottlenecks are before deciding on clustering or lb tomcat. For instance, if the bottleneck is your backend database, clustering tomcat won't help at all. One easy way to find out the bottleneck is to turn on the debugging or just use the operating system monito

RE: robust Failover, mod_jk

2005-11-17 Thread Duan, Nick
Apparently mod_jk does support several load balancing algorithms other than round-robin. You may want to set the "method" property of load balancer to Request or Traffic. See instructions on worker properties for details. http://tomcat.apache.org/connectors-doc/config/workers.html I think this

RE: Session not sticky in 5.5 with load balancer

2005-11-17 Thread Duan, Nick
--Original Message----- From: Duan, Nick [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 11:02 AM To: tomcat-user@jakarta.apache.org Subject: Session not sticky in 5.5 with load balancer I am running an Apache httpd server as the load balancer with two tomcat instances. All servers

Session not sticky in 5.5 with load balancer

2005-11-17 Thread Duan, Nick
I am running an Apache httpd server as the load balancer with two tomcat instances. All servers are on the same windows XP machine. The load balancing works fine, but I am not able to make user sessions sticky with either one of the tomcat instances. The test was done using is the session exampl