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

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

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

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

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

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

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

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

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: 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

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: jdbc context

2006-02-13 Thread Duan, Nick
But this still need to add the jdbc config in the server.xml,right? Can you give me some suggestions? From: Duan, Nick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: RE: jdbc context Date: Mon, 13 Feb 2006 10:11:34 -0500

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: 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

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

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:

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

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

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 HttpSessionListener

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:

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

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]

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

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: Single Thread is deprecated?

2006-01-09 Thread Duan, Nick
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:[EMAIL PROTECTED] Sent: Friday

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

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

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(..). Instead, use

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 Duan, Nick schrieb

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

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

RE: Single Thread is deprecated?

2006-01-06 Thread Duan, Nick
of 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 don't

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. !-- Define an AJP 1.3 Connector

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

2005-11-30 Thread Duan, Nick
and try yours? The same error occured when they were placed side by side (yours on top). Thanks for helping. Luka - Original Message - From: Duan, Nick [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, November 30, 2005 3:58 PM Subject: RE: Problems with Mod JK

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

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

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
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. Regards, Martin --- Duan, Nick [EMAIL PROTECTED] wrote: Tomcat currently

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
: 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? Because it's supposed to run on JRE 1.4 as well

RE: heap size problems (speed) [2]

2005-11-28 Thread Duan, Nick
-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 users@tomcat.apache.org Sent: Monday

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
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 List Subject: RE

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

RE: Session not sticky in 5.5 with load balancer

2005-11-17 Thread Duan, Nick
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

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