RE: apache2+mod_jk + ssl: howto

2005-06-07 Thread faisal
1. The default httpd that ships in with FC3 i dont exactly remember its
version but it's 2.x.x or something.
2. mod_jk2.
3. What i meant was when ur switching between ports in ur web application.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Monday, June 06, 2005 3:28 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:

Apache web server's SSL certificate was already configured by our client so
i did't ve to configure anything on apache. But we did configure SSL on
tomcat.

When redirecting, redirect through apache web server's port instead of
tomcat's port, because now your requests are being processed by apache web
server not tomcat. I also made this mistake of redirecting to tomcat's
ports
whenever switching between SSL to Non-SSL ports.

We are using tomcat 5.5.9.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 4:27 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:



i used mod_jk2 when i was integrating tomcat with apache2. i also tried my
hands on mod_jk and i find mod_jk2 a bit simpler of the two.



I have been using mod_jk2 to forward requests on the httpd2 web server
to tomcat4 successfully - but this was before I tried to implement SSL.
Now that I am looking at how to configure things, I read that jk2 is no
longer supported and that all the new features unique to jk2 have been
included in jk. Seeing as you have it working,  lets assume for the rest
of this thread that I still want to get it working with jk2.



regarding SSL, ur gonna ve to enable SSL on both server.



Does that mean generating the key stuff on both machines?



apache2 on fedora
core 3 comes SSL ebabled so i did't ve to do anything there.



I thought my httpd was SSL-enabled too but I couldn't find any ssl.conf
on my htttp machine. I found a mod_ssl.so file but no config. I didn't
know what to do about it.



my java web
application used SSL for user logins so i had to configure my tomcat to
enable SSL (java jeystore and tomcat server.xml and stuff.)



This I did too and could access the tomcat install and successfully use
SSL in my app but I was still (and still am) stuck with setting up an
ssl-enabled httpd server and configuring it to act as a front to my
tomcat servlet engine.



be carefull when redirecting user requests to HTTP to SSL or SSL to HTTP
port on ur tomcat. use Apache web server ports instead of tomcat's
port(which are 80 for http and 443 for https.)




why?



how ur gonna integrate Apache web server - tomcat??
u dont. AJPConnetor13 does it for u.

u only ve to configure ur apache server to use mod_jk2 for ur web app
requests. tomcat handles everything out of box(atleast newer one which we
uses.)




which version of tomcat are you using?

Thanks!
jfc



-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 1:54 PM
To: tomcat-user
Subject: apache2+mod_jk + ssl: howto


Hi,

My environment: linux 2.4.22, httpd2 running on its own machine with an
appropriate mod_jk module, tomcat4.1.24+jboss3 running on a seperate
machine.

I have searched this list for an answer to my question but so far have
come up empty handed. My question is simply, 'If I want to front an
instance of tomcat with an instance of apache httpd and to enable my
java webapps to use ssl, do I need to configure httpd for ssl or do I
need to configure tomcat for ssl?'.

Any help will be much appreciated.

jfc


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





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









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





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




ok, let me just get a few things straight.

1. What version of Apache httpd are you using?
2. What version of mod_jk are you using?
3. When you say 'redirect' do you mean the directives in the workers
properties file?

Thanks
jfc


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





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



RE: apache2+mod_jk + ssl: howto

2005-06-05 Thread faisal
Apache web server's SSL certificate was already configured by our client so
i did't ve to configure anything on apache. But we did configure SSL on
tomcat.

When redirecting, redirect through apache web server's port instead of
tomcat's port, because now your requests are being processed by apache web
server not tomcat. I also made this mistake of redirecting to tomcat's ports
whenever switching between SSL to Non-SSL ports.

We are using tomcat 5.5.9.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 4:27 PM
To: Tomcat Users List
Subject: Re: apache2+mod_jk + ssl: howto


faisal wrote:

i used mod_jk2 when i was integrating tomcat with apache2. i also tried my
hands on mod_jk and i find mod_jk2 a bit simpler of the two.

I have been using mod_jk2 to forward requests on the httpd2 web server
to tomcat4 successfully - but this was before I tried to implement SSL.
Now that I am looking at how to configure things, I read that jk2 is no
longer supported and that all the new features unique to jk2 have been
included in jk. Seeing as you have it working,  lets assume for the rest
of this thread that I still want to get it working with jk2.


regarding SSL, ur gonna ve to enable SSL on both server.

Does that mean generating the key stuff on both machines?

apache2 on fedora
core 3 comes SSL ebabled so i did't ve to do anything there.

I thought my httpd was SSL-enabled too but I couldn't find any ssl.conf
on my htttp machine. I found a mod_ssl.so file but no config. I didn't
know what to do about it.

my java web
application used SSL for user logins so i had to configure my tomcat to
enable SSL (java jeystore and tomcat server.xml and stuff.)

This I did too and could access the tomcat install and successfully use
SSL in my app but I was still (and still am) stuck with setting up an
ssl-enabled httpd server and configuring it to act as a front to my
tomcat servlet engine.


be carefull when redirecting user requests to HTTP to SSL or SSL to HTTP
port on ur tomcat. use Apache web server ports instead of tomcat's
port(which are 80 for http and 443 for https.)


why?

how ur gonna integrate Apache web server - tomcat??
u dont. AJPConnetor13 does it for u.

u only ve to configure ur apache server to use mod_jk2 for ur web app
requests. tomcat handles everything out of box(atleast newer one which we
uses.)


which version of tomcat are you using?

Thanks!
jfc

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 1:54 PM
To: tomcat-user
Subject: apache2+mod_jk + ssl: howto


Hi,

My environment: linux 2.4.22, httpd2 running on its own machine with an
appropriate mod_jk module, tomcat4.1.24+jboss3 running on a seperate
machine.

I have searched this list for an answer to my question but so far have
come up empty handed. My question is simply, 'If I want to front an
instance of tomcat with an instance of apache httpd and to enable my
java webapps to use ssl, do I need to configure httpd for ssl or do I
need to configure tomcat for ssl?'.

Any help will be much appreciated.

jfc


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





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







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





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



RE: apache2+mod_jk + ssl: howto

2005-06-04 Thread faisal
i used mod_jk2 when i was integrating tomcat with apache2. i also tried my
hands on mod_jk and i find mod_jk2 a bit simpler of the two.

regarding SSL, ur gonna ve to enable SSL on both server. apache2 on fedora
core 3 comes SSL ebabled so i did't ve to do anything there. my java web
application used SSL for user logins so i had to configure my tomcat to
enable SSL (java jeystore and tomcat server.xml and stuff.)

be carefull when redirecting user requests to HTTP to SSL or SSL to HTTP
port on ur tomcat. use Apache web server ports instead of tomcat's
port(which are 80 for http and 443 for https.)

how ur gonna integrate Apache web server - tomcat??
u dont. AJPConnetor13 does it for u.

u only ve to configure ur apache server to use mod_jk2 for ur web app
requests. tomcat handles everything out of box(atleast newer one which we
uses.)

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 1:54 PM
To: tomcat-user
Subject: apache2+mod_jk + ssl: howto


Hi,

My environment: linux 2.4.22, httpd2 running on its own machine with an
appropriate mod_jk module, tomcat4.1.24+jboss3 running on a seperate
machine.

I have searched this list for an answer to my question but so far have
come up empty handed. My question is simply, 'If I want to front an
instance of tomcat with an instance of apache httpd and to enable my
java webapps to use ssl, do I need to configure httpd for ssl or do I
need to configure tomcat for ssl?'.

Any help will be much appreciated.

jfc


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





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



RE: Tomcat/mod_jk rpm for FC3

2005-06-03 Thread faisal
believe me man u'd much rather build it for fc3 instead of looking for rpm.
i looked for rpm myself for a day or two without much luck and then built
it. it only took one and half hour for me to figure out how to build it.

-Original Message-
From: mbneto [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 7:07 AM
To: Tomcat Users List
Subject: Tomcat/mod_jk rpm for FC3


Hi,

I am looking for rpms for tomcat/mod_jk that work with FC3.   Any tips ?

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





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



tomcat 5.5.x J2EE Connector

2005-06-02 Thread faisal
I found this
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg73629.html on
the archive but this thread is very old and I am wondering if newer tomcat
5.5.x version implements JCA.



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



apache-tomcat-mod_jk-ssl

2005-05-24 Thread faisal
hi guyz
i ve just configured to use my tomcat 5.5.x running on win2k machine with
apache web server 2.0.49 running on fedora core 2 machine. my application
are running perfectly well. infact i m noticing a certain level of increase
in performance. however, i get into troubles as soon as i take my login page
to SSL. i get the error The connection was refused when attempting to
contact myserver:8443.

i will appreciate any help or any pointer to any thread.
P.S. i did try to search through those hundreds of threads.

Thanx in advance



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



Re: [OT] RE: 24X7 deployment tips

2005-01-14 Thread Faisal Abdullah
I guess there is. By fixing the code.

On Tue, 11 Jan 2005 18:05:42 +, Mark Benussi
[EMAIL PROTECTED] wrote:
 The reason this is off topic is that I was wondering if anyone has ever
 found a way of recovering leaked memory, without restarting the JVM?


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



Re: Benefit of multiple workers?

2005-01-13 Thread Faisal Abdullah
I'm using mod_jk 1.2.5 with Apache2.
The benefit is to balance the load between multiple app servers in a
round robin manner, with a certain factor you can set for each worker
with say, for example have different hardware specs.

Regards,
Faisal


On Thu, 13 Jan 2005 18:24:27 -0500, John Martyniak
[EMAIL PROTECTED] wrote:
 I am preparing to set up my first production Tomcat using mod_jk.
 
 So what is the benefit of multiple workers?
 
 I can see that you can specify one worker per host, so the advantage would
 be that you could have one Webserver drive several app servers.
 
 I also read on this list, that you could use mod_jk2 to do load balancing.
 (is the same true for mod_jk 1.2.x?)
 
 Are these the only benefits?
 
 Or am I completely missing the point?
 
 -John
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

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



Re: Tomcat monitoring scripts

2005-01-12 Thread Faisal Abdullah
On demand restarts with:
http://wrapper.tanukisoftware.org





On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite right
 on my system but I was looking for a starting point.
 
 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and probes
 at set intervals and takes remedial action if necessary.. i just wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

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



problem setting up JNDI

2005-01-02 Thread faisal
hi guys.
I m getting some problems setting up JNDI for mysql db. i ve copied 
mysql driver in tomcat-dir\jakarta-tomcat-5.0.19\common\lib.
i ve attached my hibernateApp.xml which is placed under my 
tomcat-dir\jakarta-tomcat-5.0.19\conf\Catalina\localhost.

i m using jakarta-tomcat-5.0.19 which is embedded in Netbeans 3.6.
upon excecuting index.jsp i m getting following exceptions.
javax.servlet.ServletException: Name jdbc is not bound in this Context
   
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
   
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
   org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)

please help me.
?xml version='1.0' encoding='utf-8'?
Context path=/hibernateapp docBase=hibernateapp
	Resource name=jdbc/inventory scope=Shareable type=javax.sql.DataSource/
	ResourceParams name=jdbc/inventory
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		!-- DBCP database connection settings --
		parameter
			nameurl/name
			valuejdbc:mysql://localhost:3306/inventory/value
		/parameter
		parameter
			namedriverClassName/name
			valueorg.gjt.mm.mysql.Driver/value
		/parameter
		parameter
			nameusername/name
			valuefaisal/value
		/parameter
		parameter
			namepassword/name
			valuefaisal/value
		/parameter
		!-- DBCP connection pooling options --
		parameter
			namemaxWait/name
			value3000/value
		/parameter
		parameter
			namemaxIdle/name
			value100/value
		/parameter
		parameter
			namemaxActive/name
			value10/value
		/parameter
	/ResourceParams
/Context/*
 * inventoryDB.java
 *
 * Created on January 1, 2005, 4:52 PM
 */

package com.inventory;

/**
 *
 * @author  faziz
 */
public class inventoryDB {

private javax.naming.Context context=null;
private javax.sql.DataSource dataSource=null;
private java.sql.Connection connection=null;

/** Creates a new instance of inventoryDB */
public inventoryDB() throws Exception {
javax.naming.Context initContext=new javax.naming.InitialContext();
context=(javax.naming.Context)initContext.lookup(java:comp/env);
if(context==null) throw new Exception(No Environment Context);

dataSource=(javax.sql.DataSource)context.lookup(jdbc/inventory);  
  
}   
}

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

Re: Clustering in Tomcat

2004-11-25 Thread Faisal Abdullah
I don't know the answer to that, but here's a Cluster/Session
Replication HOWTO, in case it might help.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Regards,
Faisal


On Thu, 25 Nov 2004 09:36:52 +0530, Gaurav Vaish [EMAIL PROTECTED] wrote:
 Hi,
 
I am facing an issue with Tomcat Clustering. With the details
 provided on the website, I implemented it. The session (session-ID) is
 not lost when the machine serving it goes down however all
 session-data (attributes in session) is lost.
 
What can be the issues?
 
To  start with, I had two Tomcat on the same machine with only
 their port numbers changes (4001 and 4002 for cluster).
 
 --
 Happy Hacking,
 Gaurav Vaish
 http://gallery.mastergaurav.org
 ---
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

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



Re: Performance issue

2004-10-12 Thread Faisal Abdullah
 So what's your complaint?  That it's GC'ing too much?  
I don't know if its GCing too much or not. I haven't any idea what the ideal 
GC should be like. But thanks for your comments on that.

That it's not
 handling enough concurrent clients?  Those connection reset messages
 that were in your log?  Do you have defined performance goals are you
 simply trying to make it not sluggish ?
 

Those connection resets - I don' t know if they're normal or not.
Should I be worried about it?
I guess I'm trying to find the *reason* why this performance issue exists.
Once I'm able to identify it, hopefully i'll be able to do something about it.

Regards,
Faisal

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



Re: Performance issue

2004-10-11 Thread Faisal Abdullah
Hi, thanks for the insights.
I've done what you suggested, and the load does look better, but still sluggish.

The machine's are not swapping, simply JVM's max memory is 2GB. Our
RAM is 4GB. Any attempt to assign larger max memory to java, will
cause failure in starting tomcat. A friend has tried doing this on
FreeBSD and Gentoo Linux as well with the same results.

By the way, we are having connection timeouts at high peaks:

[EMAIL PROTECTED] root]# tail -F -n 100 /usr/local/tomcat/bin/wrapper.log |
grep connection
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:37 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:41 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:44 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:45 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:52 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:33:55 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:11 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:17 | INFO: connection timeout reached
jvm 1| INFO: connection timeout reached
INFO   | jvm 1| 2004/10/11 15:34:23 | INFO: connection timeout reached


On another server, were getting these messages:

INFO   | jvm 1| 2004/10/12 10:33:11 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:13 | INFO: server has been
restarted or reset this connection
INFO   | jvm 1| 2004/10/12 10:33:59 | INFO: server has been
restarted or reset this connection

And here's a GC log:

43421.932: [GC 1704578K-1569670K(2073856K), 0.8122640 secs]
43436.720: [GC 1756038K-1612010K(2073856K), 0.7409810 secs]
43449.488: [GC 1798378K-1648439K(2073856K), 0.6549710 secs]
43453.472: [GC 1834807K-1679482K(2073856K), 0.5872020 secs]
43481.034: [Full GC 1865850K-809682K(2073856K), 8.6202320 secs]
43502.707: [GC 996050K-851676K(2073856K), 0.5027510 secs]
43523.369: [GC 1038044K-879605K(2073856K), 0.5389870 secs]
43542.764: [GC 1065973K-883973K(2073856K), 0.2121380 secs]
43569.000: [GC 1070340K-895005K(2073856K), 0.1536880 secs]
43591.007: [GC 1081336K-917841K(2073856K), 0.4391310 secs]
43619.284: [GC 1104209K-953106K(2073856K), 0.6477030 secs]
43658.215: [GC 1139474K-985160K(2073856K), 0.5575750 secs]

Any ideas?

Regards,
Faisal

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



Performance issue

2004-10-06 Thread Faisal Abdullah
Hi,

I have 4 *really* sluggish Tomcats. All 4 are load balanced:
Tomcat Version:4.1.30
Java: Sun 1.4.2_02
SMP: 4 CPU Xeon 2GHz 
Memory: 4GB 
OS: Redhat AS 3.0

Users can reach 500 at peak time (about 150 per server).
It takes about 2-4 minutes to load.
And we're also having session time-outs.
Previously, JVM died quite often, so now we're using a wrapper to
restart it after it crashes.

I have 128M initial memory, and 2GB max memory for JVM.

Is this normal? Is this a Tomcat issue, a tuning issue, or a very
badly written app?
Appreciate the help.

Regards,
Faisal
-- 
There are many ways of going forward, but there is only one way of
standing still.

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



Re: Performance issue

2004-10-06 Thread Faisal Abdullah
The OS responds fine even when tomcat responses are slow.
The kernel is configured (max connections, file descriptors,
semaphores, shared memory, etc). Though i'm not sure whether the
tuning is optimal or not.

I think its probably its how the app manages connection, and probably GC?
DBCP and Cayote HTTP1/1 isn't configured by the way. Would these help?
If I configure DBCP, would it effect the code?

Sorry for the lame questions, I'm considerably new at this. And thanks
for all your fast responses.

Regards,
Faisal

On Wed, 6 Oct 2004 14:52:13 +0200, Nitschke Michael [EMAIL PROTECTED] wrote:
 It could be that you catch a maximum open handles error.
 If you are using the standard linux distribution it is set to 1200
 connections.
 And if you have 500 users and every user opens an connection you are up
 to 1000 and the remaining 200 are very quickly used up.
 The result is that all java app's (tomcat, console, what ever) crashes
 instantly.
 But the other system tasks keep running.
 You should recompile the linux kernel with about 12,000 connection or
 more (max is 65000, we use this).
 You could also use the latest kernel which has no limit for connections.
 
 mfg
 Michael Nitschke
 
 
 -Original Message-
 From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 06, 2004 1:49 PM
 To: Tomcat Users List
 Subject: RE: Performance issue
 
 sounds like an App problem, cause your hardware is sure powerful,
 assuming
 you configured your connector threads to handle enough concurrency
 
 Filip
 
 -Original Message-
 From: Alex [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 06, 2004 6:20 AM
 To: Tomcat Users List
 Subject: Re: Performance issue
 
 How big is your average session?
 
 On Wed, 6 Oct 2004, Faisal Abdullah wrote:
 
  Date: Wed, 6 Oct 2004 17:20:05 +0800
  From: Faisal Abdullah [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   Faisal Abdullah [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Performance issue
 
  Hi,
 
  I have 4 *really* sluggish Tomcats. All 4 are load balanced:
  Tomcat Version:4.1.30
  Java: Sun 1.4.2_02
  SMP: 4 CPU Xeon 2GHz
  Memory: 4GB
  OS: Redhat AS 3.0
 
  Users can reach 500 at peak time (about 150 per server).
  It takes about 2-4 minutes to load.
  And we're also having session time-outs.
  Previously, JVM died quite often, so now we're using a wrapper to
  restart it after it crashes.
 
  I have 128M initial memory, and 2GB max memory for JVM.
 
  Is this normal? Is this a Tomcat issue, a tuning issue, or a very
  badly written app?
  Appreciate the help.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.768 / Virus Database: 515 - Release Date: 9/22/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.768 / Virus Database: 515 - Release Date: 9/22/2004
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

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



Re: Cluster Pure Tomcat with Hardware Load Balancer

2004-10-05 Thread Faisal Abdullah
Here are 2 interesting articles:
http://www.onjava.com/pub/a/onjava/2004/03/31/clustering.html
http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html?page=1

Since  you do have a hardware load balancer, the article may not make
much sense. However, if your concern is mainly session persistency, I
guess you should refer to your hardware load balancer vendor for
possible configurations to support megaproxy ISPs.
 
Unless you want to opt for Tomcat's clustering feature, it would
replication the session throughout all cluster nodes, which *could*
solve your problem.

Regards,
Faisal Abdullah

On Mon, 4 Oct 2004 18:09:19 -0400, MITCHELL TEIXEIRA
[EMAIL PROTECTED] wrote:
 Hello to the group - I am desperately searching for information about
 clustering Tomcat 5 in a pure environment without Apache in front of it. I
 have a hardware load balancer in front of two Tomcat servers that I want to
 join in a cluster in order to avoid/reduce broken shopping cart sessions
 experienced by customers coming from so-called megaproxy ISPs like AOL.
 Since we can't depend on SSL session ID via the hardware load balancer
 (thanks to Microsoft IE5+) we believe that we must make clustering work. The
 problem is scarce/non-existent web documentation of Tomcat Clustering.
 
 Any help is appreciated.
 MitchellT
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
There are many ways of going forward, but there is only one way of
standing still.

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



Re: Drops and Spikes in Tomcat responses

2004-10-05 Thread Faisal Abdullah
On Tue, 05 Oct 2004 14:03:48 -0700, Kaleb Pederson
[EMAIL PROTECTED] wrote:
 We are using a commerical servlet that seems to keep getting overloaded.  We
 wrote a little script that monitors a number of things about the process -
 the number of open file descriptors, sockets, java threads, mysql
 connections, misc. hit types/second and memory sizes.  

Is it possible you share that script you wrote? I'm having performance
problems too, and I'm really new with all this. I need all the help I
can get.

Thanks.

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



query

2002-12-03 Thread faisal shabbir







Hi,
  I have just implemented ssl on tomcat4.0 by using jsse. Now
on running my application i found that ssl is working on all of the  pages. 
Problem is that i want ssl to work on the pages that contains sensitive 
information. How can i turn ON and OFF ssl on jsp pages.

Thanks.





 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail





_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Re: Context.getResource( ) problem

2002-08-01 Thread faisal

Thanks for the reply Shapira
I apologize for  sending the same email four times
As you noted out  it is a Jboss problem not Tomcat's. I got the same error
with Jetty .
Respect

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 01, 2002 6:11 AM
Subject: RE: Context.getResource( ) problem


Hi Faisal,
It may have been just me, but I got four copies of your message.  Please
post only once.

As to your question: the technical cause for the exception is obvious ;)
You can't form a URL to a java.io.ByteArrayInputStream.  My guess is
something (the TemplateServlet?  Is that your servlet or a JBoss one?
If it's yours, you'll need to post its code so we can help more) is
trying to de-serialize your xml file, while something else is trying to
read that same XML file through a URL.

I've never seen a URLMappingsXmlDAO error in tomcat before ;)  Is it a
JBoss internal thing?  If so, the JBoss forums might be a better place
to post this question.

It may also help if you could change the layout pattern for the log file
so that you see the class and method where the exceptions occur.  Add %m
%n to your layout pattern if using log4j...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: faisal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 7:39 AM
To: [EMAIL PROTECTED]
Subject: Context.getResource( ) problem

Hi all
Recently I run into a problem reguarding Tomcat4.04 and the
Context.getResource( ) .I have two  XML files in WEB-INF
screendefinition_en_US.xml  screendefinition_ja_JA.xml .When I try to
deploy my application on JbossTomcat the TemplateServlet which is
supposed
to init and load the screens can't find the XML files and this exactly
what
I get in Jboss console:

04:26:01,241 INFO  [Engine] invoker: init
04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error:
java.net.MalformedURLException:
no protocol: java.io.ByteArrayInputStream@4a0ac5
04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no
protocol:
java.io.ByteArr

Any clue or suggestion please
thank u
Faisal

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


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




Context.getResource( ) problem

2002-07-31 Thread faisal

Hi all 
Recently I run into a problem reguarding Tomcat4.04 and the Context.getResource( ) .I 
have two  XML files in WEB-INF
screendefinition_en_US.xml  screendefinition_ja_JA.xml .When I try to deploy my 
application on JbossTomcat the TemplateServlet which is supposed to init and load the 
screens can't find the XML files and this exactly what I get in Jboss console:

04:26:01,241 INFO  [Engine] invoker: init
04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error: java.net.MalformedURLException:
no protocol: java.io.ByteArrayInputStream@4a0ac5
04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol: 
java.io.ByteArr

Any clue or suggestion please
thank u 
Faisal





Context.getResource( ) problem

2002-07-31 Thread faisal

Hi all
Recently I run into a problem reguarding Tomcat4.04 and the
Context.getResource( ) .I have two  XML files in WEB-INF
screendefinition_en_US.xml  screendefinition_ja_JA.xml .When I try to
deploy my application on JbossTomcat the TemplateServlet which is supposed
to init and load the screens can't find the XML files and this exactly what
I get in Jboss console:

04:26:01,241 INFO  [Engine] invoker: init
04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error:
java.net.MalformedURLException:
no protocol: java.io.ByteArrayInputStream@4a0ac5
04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol:
java.io.ByteArr

Any clue or suggestion please
thank u
Faisal

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




Context.getResource( ) problem

2002-07-31 Thread faisal

Hi all
Recently I run into a problem reguarding Tomcat4.04 and the
Context.getResource( ) .I have two  XML files in WEB-INF
screendefinition_en_US.xml  screendefinition_ja_JA.xml .When I try to
deploy my application on JbossTomcat the TemplateServlet which is supposed
to init and load the screens can't find the XML files and this exactly what
I get in Jboss console:

04:26:01,241 INFO  [Engine] invoker: init
04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error:
java.net.MalformedURLException:
no protocol: java.io.ByteArrayInputStream@4a0ac5
04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol:
java.io.ByteArr

Any clue or suggestion please
thank u
Faisal

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




Context.getResource( ) problem

2002-07-31 Thread faisal

Hi all
Recently I run into a problem reguarding Tomcat4.04 and the
Context.getResource( ) .I have two  XML files in WEB-INF
screendefinition_en_US.xml  screendefinition_ja_JA.xml .When I try to
deploy my application on JbossTomcat the TemplateServlet which is supposed
to init and load the screens can't find the XML files and this exactly what
I get in Jboss console:

04:26:01,241 INFO  [Engine] invoker: init
04:26:01,271 ERROR [STDERR]  4 URLMappingsXmlDAO error:
java.net.MalformedURLException:
no protocol: java.io.ByteArrayInputStream@4a0ac5
04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol:
java.io.ByteArr

Any clue or suggestion please
thank u
Faisal

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




JavaBeans Classpath

2002-03-22 Thread Faisal Shareef

Dear All,

I am really struggling in configuring the classpath for JavaBeans in Tomcat 
3.2.4. I've already spent a whole week in solving this puzzle but cannot get 
to anywhere. Please help me giving some advice about the variables and 
classpaths to be added/modified in Tomcat Batch files. I would be very 
thankful to you. Regards

Faisal

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: SOAP Tutorial

2002-01-29 Thread faisal

check  the www.java.sun.com. A soap pack was just released today
- Original Message -
From: Magnus Jansson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 25, 2002 7:45 AM
Subject: OT: SOAP Tutorial


Hi!

I'm very new to SOAP and I have no idea what it is. Is there a small
tutorial or other description or article what SOAP is.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




IIS redirect

2001-04-11 Thread Faisal Mehtab Hussain

Hello,

I have installed tomcat-3.2.1 (release) in my NT machine, I have defined all
the possible setting that the document defined for Tomcat IIS how to?,
Tomcat running fine with its given servlets and jsp examples as
http://localhost:8080/examples/jsp/index.html, but when I try to access it
through IIS it doesn't work. The following error occurs in IIS log file.

127.0.0.1, -, 4/11/01, 11:58:31, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,
127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 0, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,
127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,

Please, help me to solve this problem.

Regards,
Faisal Mehtab Hussain
Internet Programmer
OgerTel Internet Services
Tel: (966-1) 465-0300 Ext.(138)
Fax: (966-1) 464-5200
Email: [EMAIL PROTECTED]




Need help! :( (XALAN CONFIG )

2001-02-14 Thread Nazir Faisal-LFN003

Hello

We are trying to configure Tomcat to work with Xalan (the XSLT engine).
We have set up the servlet (XSLT.class) in the webapps directory ie 
D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class 

we have also configured the 'web.xml' in 
D:\tomcat\webapps\faisal\WEB-INF

this file looks like :

- web.xml 
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"

web-app
servlet
  servlet-name
 XSLT
  /servlet-name
  servlet-class
 XSLT
  /servlet-class
/servlet
/web-app

-eof web.xml --

We can run simple example servlets however, when using the
XALAN API, we keep getting the following errors:

tomcat.log--

Context log: path="/examples" Adding context path="/examples"  
docBase="webapps/examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"  docBase="webapps/test"
Context log: path="/faisal" Adding context path="/faisal"  docBase="webapps/faisal"

Starting tomcat. Check logs/tomcat.log for error messages

Starting tomcat install="d:\tomcat" home="D:\tomcat" 

classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar;
d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar;
d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;
D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.;
D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar;
D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar"

Context log: path="/admin" Automatic context load docBase="D:\tomcat\webapps\admin"
Context log: path="/admin" Adding context path="/admin"  
docBase="D:\tomcat\webapps\admin"

file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3; 
java.lang.NoSuchMethodError
  at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)   
at org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
  at org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)
  at 
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:432)
  at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
  at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
  at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
  at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
  at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
  at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
  at java.lang.Thread.run(Thread.java:484)

-eof tomcat.log--

The servlet compiles ok and the all the Xalan jars are placed in the correct 
directories,
however, there seems to be a problem with Tomcat finding the above Xalan API method 
call.

We've tried doing many things already and are urgently needing some help.

Here's the simple servlet that we've been working on :

XSLT.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import org.w3c.dom.*;


public class XSLT extends HttpServlet {
public void init(){
TransformerFactory trFactory = TransformerFactory.newInstance();
File xmlFile = new File("birds.xml");
File xslFile = new File("birds.xsl");
try
{
  Transformer transformer = trFactory.newTransformer(new 
StreamSource(xslFile));
  transformer.transform(new StreamSource(xmlFile), new 
StreamResult(new File("result.out")))
    }
    catch (Exception et)
{
  System.out.print(String.valueOf(et));
}
}
}

eof 
XSLT.java

 Nazir Faisal-LFN003.vcf 

 Nazir Faisal-LFN003.vcf

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


RE: Need help! :( (XALAN CONFIG )

2001-02-14 Thread Nazir Faisal-LFN003


hi

thanks for all help, we just been looking at the archives
and it would appear the we posted an already well known problem.
Thanks for the quick response people, we really appreciate all help

rob  fazza




-Original Message-
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2001 15:33
To: '[EMAIL PROTECTED]'
Subject: RE: Need help! :( (XALAN CONFIG )


Hi

This question comes up alot on this list. The fix is to put your xml parser
before the tomcat one in the CLASSPATH. ie xalan.jar;xerces.jar;xml.jar
This will avoid the less functional classes in xml.jar being used when you
really want the newer classes. You can make the change in tomcat.[sh|bat]
for tomcat 4.0 In 4.0 I think the WEB-INF/lib is 
automatcally searched b4 the system classpath, so no problems like this.


If you want more detail search the list archive.

-Original Message-
From: Nazir Faisal-LFN003 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 3:24 PM
To: '[EMAIL PROTECTED]'
Subject: Need help! :( (XALAN CONFIG )


Hello

We are trying to configure Tomcat to work with Xalan (the XSLT engine).
We have set up the servlet (XSLT.class) in the webapps directory ie 
D:\tomcat\webapps\faisal\WEB-INF\Classes\XSLT.class 

we have also configured the 'web.xml' in 
D:\tomcat\webapps\faisal\WEB-INF

this file looks like :

- web.xml 
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"

web-app
servlet
  servlet-name
 XSLT
  /servlet-name
  servlet-class
 XSLT
  /servlet-class
/servlet
/web-app

-eof web.xml --

We can run simple example servlets however, when using the
XALAN API, we keep getting the following errors:

tomcat.log--

Context log: path="/examples" Adding context path="/examples"
docBase="webapps/examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"
docBase="webapps/test"
Context log: path="/faisal" Adding context path="/faisal"
docBase="webapps/faisal"

Starting tomcat. Check logs/tomcat.log for error messages

Starting tomcat install="d:\tomcat" home="D:\tomcat" 

classPath="d:\tomcat\classes;d:\tomcat\lib\webserver.jar;
d:\tomcat\lib\jasper.jar;d:\tomcat\lib\xml.jar;
d:\tomcat\lib\servlet.jar;c:\jdk1.3\lib\tools.jar;
D:\tomcat\lib\servlet.jar;D:\xalan\stylebook-1.0-b3_xalan-2.jar;.;
D:\xalan\xalan.jar;D:\xalan\xerces.jar;D:\xalan\xalanj1compat.jar;
D:\xalan\xalan2jdoc.jar;D:\xalan\xalanservlet.jar"

Context log: path="/admin" Automatic context load
docBase="D:\tomcat\webapps\admin"
Context log: path="/admin" Adding context path="/admin"
docBase="D:\tomcat\webapps\admin"

file:///D:/tomcat/webapps/faisal/fruit.xml; Line 3; Column 3;
java.lang.NoSuchMethodError
  at org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)   
at
org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
  at
org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)
  at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:432)
  at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:193)
  at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
  at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
  at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
  at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
  at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
  at java.lang.Thread.run(Thread.java:484)

-eof tomcat.log--

The servlet compiles ok and the all the Xalan jars are placed in the correct
directories,
however, there seems to be a problem with Tomcat finding the above Xalan API
method call.

We've tried doing many things already and are urgently needing some help.

Here's the simple servlet that we've been working on :

XSLT.java---
-
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import org.w3c.dom.*;


public class XSLT extends HttpServlet {
public void init(){
TransformerFactory trFactory =
TransformerFactory.newInstance();
File xmlFile = new File("

Re: mod_jk and apache 1.3.12

2000-12-23 Thread Faisal Mahdi

Did you verify that there is no syntax error in your httpd.conf ?
apachectl -configure ?

-Original Message-
From: Boon Yeo [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: December 23, 2000 5:51 AM
Subject: mod_jk and apache 1.3.12


I have compile mod_jk with no errors.  I have place
it in /etc/httpd/libexec (redhat 6.2 directory structure).
I have modified httpd.conf to include

LoadModule jk_module libexec/mod_jk.so

But my apache 1.3.12 won't start.  There are no error
messages (not even in error_log) which I could use
to debug what's going wrong.

Any ideas?

Thanks,
-Boon