Differences Between Apache and Tomcat

2004-01-06 Thread Kapil Sharma
Hi All

Can you all plz give me any url where I can find the fundamental differences 
between Apache and Tomcat.(If there r any).

Thanks
Kapil Sharma
H/P 00-6-0125678120
http://hindiadventure.tripod.com
http://sget.tripod.com
_
Free transactions in any ATM across India. 
http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here.

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


tomcat dying on solaris

2003-03-21 Thread Kapil Sharma
Hi,
My tomcat process if dying suddenly on Solaris system. I am using tomcat
4.1.12 on Solaris 8. There is nothing in the log files.
Any ideas!!

Thanks
kapil


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



RE: tomcat dying on solaris

2003-03-21 Thread Kapil Sharma
Thanks for your reply. I fixed this problem long time ago by using /bin/ksh
instead of /bin/sh in my startup script.
My tomcat process is dying after 5-6 hours of starting tomcat.

kapil

-Original Message-
From: Carsten Heidmann [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 12:23
To: Tomcat Users List
Subject: Re: tomcat dying on solaris


Hi,
At 21.03.2003 12:16 +, you wrote:
My tomcat process if dying suddenly on Solaris system. I am using tomcat
4.1.12 on Solaris 8. There is nothing in the log files.

I had this problem when starting Tomcat interactively from a telnet/ssh/...
session. When logging of, dies also, whether or not you did start it with
'nohub' or '' If this is your problem try starting tomcat as an 'at' job:

[EMAIL PROTECTED] # at now
at /etc/init.d/catalina start
at EOT
commands will be executed using /sbin/sh
job 1048249391.a at Fri Mar 21 13:23:11 2003No fixed this problem long time
ago. If you made a
[EMAIL PROTECTED] #

This is a known bug (I was told from Sun ;-)

Carsten

Dipl. Geogr. Carsten Heidmann   Bundesanstalt fuer Wasserbau
Tel.: 040.81908.345 - Aussenstelle Kueste -
Fax: 040.81908.373  Wedeler Landstrasse 157
[EMAIL PROTECTED] DE - 22559 Hamburg
http://nokis.baw.de/http://www.hamburg.baw.de/



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

2003-03-21 Thread Kapil Sharma
Hi,
If someone is using tomcat 4 in production environment under heavy loads on
solaris , please send me your server.xml file. I am looking for tomcat
parameter to check my server.xml file on production systems.


Thanks
kapil


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



catalina log

2003-03-18 Thread Kapil Sharma
Hi,
I am getting the following messages in my catalina log file:

2003-03-18 09:42:29 StandardEngine[Main]: Mapping server name 'foo1'
2003-03-18 09:42:29 StandardEngine[Main]:  Trying a direct match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying an alias match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying the default host

Is it a normal message or something is wrong. I hjave disable enablelookups
in server.xml

kapil


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



tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil


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

tomcat manager

2003-03-18 Thread Kapil Sharma
Hi,
I have setup a tomcat manager to view active sessions. It shows the active
sessions for /examples which is in tomcat default webapps base. How can I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


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



RE: tomcat manager

2003-03-18 Thread Kapil Sharma
Hi,
Is it possible to view the active database connection in tomcat database
pool?

kapil

-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 13:30
To: Tomcat Users List
Subject: RE: tomcat manager


Hi,

You will need to put the manager.xml file in that webapps directory. I
don't know where your webapps directory is but you will need to changes
the manager.xml context docBase to point to
{Tomcat_Home}/server/webapps/manager. I am guessing you have another
separate host serving your webapps, besides LocalHost. Note: you
cannot two instances of manager for the same Host.

Hope this helps.
Kal

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:06 AM
To: Tomcat Users List
Subject: tomcat manager


Hi,
I have setup a tomcat manager to view active sessions. It shows the
active
sessions for /examples which is in tomcat default webapps base. How can
I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


-
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: tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi,
More details about my tomcat setup. My apache is using keepalive on

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 12:52
To: Tomcat Users List
Subject: tomcat production conf
Importance: High


Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil




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



RE: tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi,
Can anyone please reply to my queries?

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 12:52
To: Tomcat Users List
Subject: tomcat production conf
Importance: High


Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil




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



RE: tomcat tuning

2003-03-17 Thread Kapil Sharma

Hi,
Please look at my tomcat confirmation below. I am having problems with
database connection now. I am getting the following errors in catalina.out
file:
java.sql.SQLException: Error while trying to retrieve text for error
ORA-12154

I am also unable to login to site. I get the above error. Any solutions?


Thanks
kapil
-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 16 March 2003 20:10
To: Tomcat Users List
Subject: RE: tomcat tuning


Thanks for reply. This answers one of the problem. Another problem is db
connections. I am monitoring db connections and they are just increasing
even if there is no load on the server. The problem is tomcat is not
clearing idle connections or timing out the db connections.
I still cannot understand how tomcat work directory fill up with 6GB of
space in 24 hours.

kapil

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: 16 March 2003 19:43
To: Tomcat Users List
Subject: RE: tomcat tuning


the error is that you have a limited number of file descriptor.
so it doesn't look like your db pool is causing the problem, but your OS
configuration.
Increase the number of file descriptors for your system

Filip

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: tomcat tuning


Hi Guys,
I am facing a performance issue with tomcat 4.1.12 on Solaris. Following is
my setup

apache 1.3.27
tomcat 4.1.12
ajp 13

Following is my server.xml context for database and tomcat-apache connector

ResourceParams name=jdbc/foo
  parameter
nameurl/name
valuejdbc:oracle:oci8:@foo/value
  /parameter
  parameter
namevalidationQuery/name
valueselect 1 from dual/value
  /parameter
  parameter
namemaxIdle/name
value0/value
  /parameter
  parameter
namemaxActive/name
value255/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxWait/name
   value3/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
/ResourceParams

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   acceptCount=20
   bufferSize=2048
   connectionTimeout=2
   debug=4
   enableLookups=false
   maxProcessors=255
   minProcessors=21
   port=8009

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   proxyPort=0
   redirectPort=8443
   scheme=http
   secure=false
   tcpNoDelay=true
   useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/

/Connector

Following are the problems.

I changed some parameters in the server.xml file to match the number of
apache connections. I was also having heavy load on tomcat so I had to
increase the database connections. Now the problem is tomcat is not closing
the database connections and database pool is filling up. Tomcat filled up
the system partition to 100% and threw the following errors for some reason:

exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:335)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


Can anyone help me with this problem and refer me to some good docs for
tomcat setup and performance issues for production heavy loaded servers?

Thanks
kapil



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



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

tomcat tuning

2003-03-16 Thread Kapil Sharma
Hi Guys,
I am facing a performance issue with tomcat 4.1.12 on Solaris. Following is
my setup

apache 1.3.27
tomcat 4.1.12
ajp 13

Following is my server.xml context for database and tomcat-apache connector

ResourceParams name=jdbc/foo
  parameter
nameurl/name
valuejdbc:oracle:oci8:@foo/value
  /parameter
  parameter
namevalidationQuery/name
valueselect 1 from dual/value
  /parameter
  parameter
namemaxIdle/name
value0/value
  /parameter
  parameter
namemaxActive/name
value255/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxWait/name
   value3/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
/ResourceParams

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   acceptCount=20
   bufferSize=2048
   connectionTimeout=2
   debug=4
   enableLookups=false
   maxProcessors=255
   minProcessors=21
   port=8009

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   proxyPort=0
   redirectPort=8443
   scheme=http
   secure=false
   tcpNoDelay=true
   useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/

/Connector

Following are the problems.

I changed some parameters in the server.xml file to match the number of
apache connections. I was also having heavy load on tomcat so I had to
increase the database connections. Now the problem is tomcat is not closing
the database connections and database pool is filling up. Tomcat filled up
the system partition to 100% and threw the following errors for some reason:

exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:335)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


Can anyone help me with this problem and refer me to some good docs for
tomcat setup and performance issues for production heavy loaded servers?

Thanks
kapil



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



tomcat tuning

2003-03-16 Thread Kapil Sharma
Hi Guys,
I am facing a performance issue with tomcat 4.1.12 on Solaris. Following is
my setup

apache 1.3.27
tomcat 4.1.12
ajp 13

Following is my server.xml context for database and tomcat-apache connector

ResourceParams name=jdbc/foo
  parameter
nameurl/name
valuejdbc:oracle:oci8:@foo/value
  /parameter
  parameter
namevalidationQuery/name
valueselect 1 from dual/value
  /parameter
  parameter
namemaxIdle/name
value0/value
  /parameter
  parameter
namemaxActive/name
value255/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxWait/name
   value3/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
/ResourceParams

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   acceptCount=20
   bufferSize=2048
   connectionTimeout=2
   debug=4
   enableLookups=false
   maxProcessors=255
   minProcessors=21
   port=8009

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   proxyPort=0
   redirectPort=8443
   scheme=http
   secure=false
   tcpNoDelay=true
   useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/

/Connector

Following are the problems.

I changed some parameters in the server.xml file to match the number of
apache connections. I was also having heavy load on tomcat so I had to
increase the database connections. Now the problem is tomcat is not closing
the database connections and database pool is filling up. Tomcat filled up
the system partition to 100% and threw the following errors for some reason:

exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:335)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


Can anyone help me with this problem and refer me to some good docs for
tomcat setup and performance issues for production heavy loaded servers?

Thanks
kapil



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



RE: tomcat tuning

2003-03-16 Thread Kapil Sharma
Thanks for reply. This answers one of the problem. Another problem is db
connections. I am monitoring db connections and they are just increasing
even if there is no load on the server. The problem is tomcat is not
clearing idle connections or timing out the db connections.
I still cannot understand how tomcat work directory fill up with 6GB of
space in 24 hours.

kapil

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: 16 March 2003 19:43
To: Tomcat Users List
Subject: RE: tomcat tuning


the error is that you have a limited number of file descriptor.
so it doesn't look like your db pool is causing the problem, but your OS
configuration.
Increase the number of file descriptors for your system

Filip

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: tomcat tuning


Hi Guys,
I am facing a performance issue with tomcat 4.1.12 on Solaris. Following is
my setup

apache 1.3.27
tomcat 4.1.12
ajp 13

Following is my server.xml context for database and tomcat-apache connector

ResourceParams name=jdbc/foo
  parameter
nameurl/name
valuejdbc:oracle:oci8:@foo/value
  /parameter
  parameter
namevalidationQuery/name
valueselect 1 from dual/value
  /parameter
  parameter
namemaxIdle/name
value0/value
  /parameter
  parameter
namemaxActive/name
value255/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxWait/name
   value3/value
  /parameter
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
valuetest/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
/ResourceParams

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   acceptCount=20
   bufferSize=2048
   connectionTimeout=2
   debug=4
   enableLookups=false
   maxProcessors=255
   minProcessors=21
   port=8009

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   proxyPort=0
   redirectPort=8443
   scheme=http
   secure=false
   tcpNoDelay=true
   useURIValidationHack=false
  Factory
className=org.apache.catalina.net.DefaultServerSocketFactory/

/Connector

Following are the problems.

I changed some parameters in the server.xml file to match the number of
apache connections. I was also having heavy load on tomcat so I had to
increase the database connections. Now the problem is tomcat is not closing
the database connections and database pool is filling up. Tomcat filled up
the system partition to 100% and threw the following errors for some reason:

exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:439)
at java.net.ServerSocket.accept(ServerSocket.java:410)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultSe
rverSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java
:335)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:483)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


Can anyone help me with this problem and refer me to some good docs for
tomcat setup and performance issues for production heavy loaded servers?

Thanks
kapil



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



tomcat monitoring

2003-03-16 Thread Kapil Sharma
Hi,
Is there any interface for tomcat similar to apache status module? I want to
monitor the tomcat connections.

kapil


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



tomcat not releasing db connections

2003-03-16 Thread Kapil Sharma
Hi,
I am using the default setting of tomcat with apache 1.3.27. Tomcat does not
release the db connections. I have keepalive on in my apache settings.
Are they related in some way to create this problem?

kapil


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



2 instance of tomcat and port problem

2003-02-26 Thread Kapil Sharma
Hi,
I am running two instance of tomcat on same server. Tomcat version 3.3.1 and
4.1.12. Tomcat 3.3.1 is using ports 8000, 8007 and 8009.
I have changes server.xml and workers.properties file of tomcat 4.1.12 to
change the ports to 8080, 8006 and 8020.
When tomcat starts I can connect to port 8080 without any problem but when I
try to connect to tomcat using apache , it does not work. My apache is
configured properly.
I know the reason of this problem but don't know the solution. The problem
is tomcat does not want to listen on port 8020 even if I changed the port to
8020 in server.xml/ Followings is calalina.out startup output:

Feb 26, 2003 12:36:23 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12-LE-jdk14
Feb 26, 2003 12:37:33 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Feb 26, 2003 12:37:33 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use
Feb 26, 2003 12:37:33 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8010
Feb 26, 2003 12:37:33 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=3/45
config=/export/apps/tomcat/jakarta-tomcat-4.1.12-LE-jdk14/conf/jk2.propertie
s

As you can see in the above logs tomcat selects port 8010 automatically and
listen on this port.

How can I change the port to 8020?

kapil


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



Tomcat startup script

2002-07-10 Thread Kapil Sharma

Hi,
This is my second email. Can anyone send me the tomcat start/stop script
. I am running tomcat as tomcat user and want to start tomcat as tomcat
user on system startup automatically.

Thanks
jerry 



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




Tomcat startup script

2002-07-09 Thread Kapil Sharma

Hi,
I am using Solaris 8 with tomcat 3.3.1+apache 1.3.26. Can anyone send me
a startup script for tomcat. I am also running tomcat as different user
so have to take care of that also. The script should start using that
user..
Cheers
jerry



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




RE: Apache2-Tomcat4 over port 21

2002-07-07 Thread Kapil Sharma

Hi,
But I am using tomcat 3.3.1 and there is no default web.xml file in
$TOMCAT_HOME ?

kapil

-Original Message-
From: Daniel Farinha [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 05:55
To: 'Tomcat Users List'
Subject: Apache2-Tomcat4 over port 21


I've configured Virtual Hosts as you describe under apache1.3/tc2.3 as
well, and they did work ok (i.e. no crossing of context), but haven't
gone around doing it with apache2/tc4 yet. If I do crack it I'll let you
know.

My problem now is to make apache2 in one box speak with tomcat4 in
another box, with the added difficulty that the tomcat box can only
'listen' on port 21 (with the problem of it being  1024), because of a
firewall which separates the 2 boxes (messy, I know).

I added the following rule to ipchains in the tomcat side:
-A input -j REDIRECT 8009 -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 21

which basically forwards incoming requests from port 21 to port 8009 on
the local machine where the ajp13 connector is listening). I tested the
rule by making a test apache server (on the tomcat box) listen to 8009
and accessing it from a remote machine (ie. lynx
hostaddress:21) and it does work.
But when trying the Apache-Tomcat link it doesn't work (I get a 404 not
found)

My server.xml has:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

My workers.properties has the port number configured:
worker.ajp13.port=21

If I could use a port  1024 I'd have no problem, but I'm stuck with 21
for next 3 months.

Any tips on how to make Apache2 speak with AJP13 over port 21 would be
greatly appreciated.

Dan

 -Original Message-
 From: Luminous Heart [mailto:[EMAIL PROTECTED]]
 Sent: 07 July 2002 04:02
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: tomcat_4.0.4 + apache_2.0.39 + mod_jk2 (linux): 
 a failed attempt
 
 
 If you are able to get tomcat4 + apache2 to work with
 VirtualHosts; i.e domain2.com/app1 domain1.com/app2 but not 
 domain2.com/app2 domain1.com/app1. If this seperation of 
 VirtualHosts and Contexts worked for you, please ##PLEASE## 
 let me know how you did it. 
 
 I upgraded from apache1.3+tc2.3 where my virtualhosts
 and contexts did not cross. Now I can not get any
 virtual host or context/application to stay in its
 pin. I have posted three messages on this board with
 this regard, but it seems either noone has ran into a
 problem or no one has done similar work.
 
 So, again, if you are going that path let me know.
 
 Regards.


--
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: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Can someone answer it please...

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 00:03
To: 'Tomcat Users List'
Subject: Tomcat and static content


Hi,
I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there
any way to know that apache is serving all static content like
.html/.gif/.jpeg? My virtual host (in apache) is running very slow and
images are breaking..

Please help?

Cheers
kapil



--
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: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
Well I can see the images and pages request in apache access log. But it
shows request for .jsp as well as images file. So I am still confused
whether the images are served by tomcat or apache?

Cheers
kapil

-Original Message-
From: David Kavanagh [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 17:07
To: Tomcat Users List
Subject: Re: Tomcat and static content


Kapil,
You could look at the apache access log. It will tell when an image has 
been served. There is now way (that I know of) to configure apache to 
trap all image requests that would be handled by a tomcat context. Is 
that what you are trying to do? If so, your web app needs to use paths 
that are not within the web app context. You can set up aliases within 
httpd.conf to make it easier to link images from the web app to some 
convenient path on your httpd server.

Hope this helps.

David

Kapil Sharma wrote:

Can someone answer it please...

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]]
Sent: 07 July 2002 00:03
To: 'Tomcat Users List'
Subject: Tomcat and static content


Hi,
I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there 
any way to know that apache is serving all static content like 
.html/.gif/.jpeg? My virtual host (in apache) is running very slow and 
images are breaking..

Please help?

Cheers
kapil



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




--
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: Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
I can access the static web pages but it is very slow. Images are
loading very slow!!

kapil

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 07 July 2002 17:10
To: Tomcat Users List
Subject: Re: Tomcat and static content


Kapil Sharma wrote:
 Is there any way to know that apache is serving
 all static content like .html/.gif/.jpeg?

[ May be I am missing something fundamental in your question. ]

Can't you just access one of your static web pages from another computer
and see what you get? 

das

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




Tomcat and static content

2002-07-07 Thread Kapil Sharma

Hi,
I have got the following lines in my mod_jk.conf-auto file:

# Static files
Alias /foo /export/home/test/u2/current/foo
 
Directory /export/home/test/u2/current/foo
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm logon.jsp
/Directory

1: What is the meaning of alias here. This means that apache will deal
with this alias to serve static content?
2: Where can I define Indexes? How can I get rid of directory indexing?
I have already made StaticInterceptor listings=false / change in
server.xml, but still indexing is enables?

kapil



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




Tomcat and static content

2002-07-06 Thread Kapil Sharma

Hi,
I have got a problem. I am using apache 1.3.26+tomcat 1.3.1. Is there
any way to know that apache is serving all static content like
.html/.gif/.jpeg? My virtual host (in apache) is running very slow and
images are breaking..

Please help?

Cheers
kapil



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




Tomcat directory listing

2002-07-06 Thread Kapil Sharma


Hi,
I am using tomcat 3.3.1 and apache 1.3.26. I read a lot about how to
disable a directory listing but nine of them works? Still directory
index is enable in tomcat context. I am able to disable it by changing
auto/mod_jk.conf file. How can I do it automatically when the tomcat
starts.

kapil



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