Application context configuration datasources

2008-03-27 Thread Charl Gerber
I have 4 Tomcat environments for the same application:
two development machines, 1 test and 1 production.
Development machines are Windows 2000 and Vista, the
others are linux. All 4 machines have Tomcat 6.0.14
installed.

I really have problems getting the application
properly deployed and configured. I have a global
datasource configured in tomcat's server.xml and the
mysql driver jar is in the /lib directory of tomcat.

If I deploy the application by putting it in the
webapps dir or using the ant manager tasks, I get this
exception:

Caused by:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create JDBC driver of class '' for connect URL 'null'
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
... 45 more

If I copy the contents of the application's
META-INF/context.xml into the server.xml, then the
application and datasources loads fine, no problems.
It looks something like:

Context path=/myapp docBase=path_to_war debug=0
reloadable=false antiJARLocking=true
antiResourceLocking=true crossContext=true
  ResourceLink name=jdbc/mydatasource
global=jdbc/mydatasource type=javax.sql.DataSource
/ 
/Context

(I then have a context.xml and the same part in the
server.xml, but it doesn't seem to do harm)

But then I cannot use the ant manager tasks to
redeploy the application:

C:\projects\myapp\build.xml:198: FAIL - Context /myapp
is defined in server.xml and may not be undeployed

On the test and production (linux) servers, its not
that critical, as I do not do a lot of deployments. So
there I have the app configured in server.xml and a
deployment basically means stopping stopping,
unzipping the war to an exploded docbase dir and
starting tomcat again. (The restarting is also
required because I use hibernate and there are some
known memory leak issues there)

So can someone clarify where/how the application must
be configured to be able to use the ant manager tasks,
but also to get the datasource working?

Thanks!

Charl


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application context configuration datasources

2008-03-27 Thread Sameer Acharya
Where is your Resource definition ? seems like the
Driver class name and url is not defined.

-Sameer

--- Charl Gerber [EMAIL PROTECTED] wrote:

 I have 4 Tomcat environments for the same
 application:
 two development machines, 1 test and 1 production.
 Development machines are Windows 2000 and Vista, the
 others are linux. All 4 machines have Tomcat 6.0.14
 installed.
 
 I really have problems getting the application
 properly deployed and configured. I have a global
 datasource configured in tomcat's server.xml and the
 mysql driver jar is in the /lib directory of tomcat.
 
 If I deploy the application by putting it in the
 webapps dir or using the ant manager tasks, I get
 this
 exception:
 
 Caused by:
 org.apache.tomcat.dbcp.dbcp.SQLNestedException:
 Cannot
 create JDBC driver of class '' for connect URL
 'null'
   at

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
   at

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
   at

org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
   at

org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
   ... 45 more
 
 If I copy the contents of the application's
 META-INF/context.xml into the server.xml, then the
 application and datasources loads fine, no problems.
 It looks something like:
 
 Context path=/myapp docBase=path_to_war
 debug=0
 reloadable=false antiJARLocking=true
 antiResourceLocking=true crossContext=true
   ResourceLink name=jdbc/mydatasource
 global=jdbc/mydatasource
 type=javax.sql.DataSource
 / 
 /Context
 
 (I then have a context.xml and the same part in the
 server.xml, but it doesn't seem to do harm)
 
 But then I cannot use the ant manager tasks to
 redeploy the application:
 
 C:\projects\myapp\build.xml:198: FAIL - Context
 /myapp
 is defined in server.xml and may not be undeployed
 
 On the test and production (linux) servers, its not
 that critical, as I do not do a lot of deployments.
 So
 there I have the app configured in server.xml and a
 deployment basically means stopping stopping,
 unzipping the war to an exploded docbase dir and
 starting tomcat again. (The restarting is also
 required because I use hibernate and there are some
 known memory leak issues there)
 
 So can someone clarify where/how the application
 must
 be configured to be able to use the ant manager
 tasks,
 but also to get the datasource working?
 
 Thanks!
 
 Charl
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


All that is necessary for the triumph of evil is that good men do 
nothing. Edmund Burke

-Sameer
http://in.groups.yahoo.com/group/indiaenergy/join


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application context configuration datasources

2008-03-27 Thread Charl Gerber
server.xml:

GlobalNamingResources

Resource name=jdbc/mydatasource 
  auth=Container 
  type=javax.sql.DataSource 
  maxActive=16 
  maxIdle=8 
  maxWait=1 
  username=abc 
  password=xyz 
  driverClassName=com.mysql.jdbc.Driver 
   
url=jdbc:mysql://localhost/mydatabase?autoReconnect=true
/ 

  /GlobalNamingResources


As I said, if I move the META-INF/context.xml contents
into my server.xml, then it works fine, but then I
cannot use ant manager tasks to redeploy.

I have also tried to put the driver jar into the
application war. No luck.


--- Sameer Acharya [EMAIL PROTECTED] wrote:

 Where is your Resource definition ? seems like the
 Driver class name and url is not defined.
 
 -Sameer
 
 --- Charl Gerber [EMAIL PROTECTED] wrote:
 
  I have 4 Tomcat environments for the same
  application:
  two development machines, 1 test and 1 production.
  Development machines are Windows 2000 and Vista,
 the
  others are linux. All 4 machines have Tomcat
 6.0.14
  installed.
  
  I really have problems getting the application
  properly deployed and configured. I have a global
  datasource configured in tomcat's server.xml and
 the
  mysql driver jar is in the /lib directory of
 tomcat.
  
  If I deploy the application by putting it in the
  webapps dir or using the ant manager tasks, I get
  this
  exception:
  
  Caused by:
  org.apache.tomcat.dbcp.dbcp.SQLNestedException:
  Cannot
  create JDBC driver of class '' for connect URL
  'null'
  at
 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
  at
 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
  at
 

org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
  at
 

org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
  ... 45 more
  
  If I copy the contents of the application's
  META-INF/context.xml into the server.xml, then the
  application and datasources loads fine, no
 problems.
  It looks something like:
  
  Context path=/myapp docBase=path_to_war
  debug=0
  reloadable=false antiJARLocking=true
  antiResourceLocking=true crossContext=true
ResourceLink name=jdbc/mydatasource
  global=jdbc/mydatasource
  type=javax.sql.DataSource
  / 
  /Context
  
  (I then have a context.xml and the same part in
 the
  server.xml, but it doesn't seem to do harm)
  
  But then I cannot use the ant manager tasks to
  redeploy the application:
  
  C:\projects\myapp\build.xml:198: FAIL - Context
  /myapp
  is defined in server.xml and may not be undeployed
  
  On the test and production (linux) servers, its
 not
  that critical, as I do not do a lot of
 deployments.
  So
  there I have the app configured in server.xml and
 a
  deployment basically means stopping stopping,
  unzipping the war to an exploded docbase dir and
  starting tomcat again. (The restarting is also
  required because I use hibernate and there are
 some
  known memory leak issues there)
  
  So can someone clarify where/how the application
  must
  be configured to be able to use the ant manager
  tasks,
  but also to get the datasource working?
  
  Thanks!
  
  Charl
  
  
 

-
  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 All that is necessary for the triumph of evil is
 that good men do 
 nothing. Edmund Burke
 
 -Sameer
 http://in.groups.yahoo.com/group/indiaenergy/join
 
 
  


 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search. 

http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



url redirection

2008-03-27 Thread Melanie Pfefer
Hi,

I have 2 web apps deployed on 2 tomcat servers. How to
redirect urls that contains ‘jar’ string from one app
to another?

http://zeus:8085/web/sec:jar:001
to
http://zeus:8086/src/web:sec:jar:001

thanks


  __
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



errors on reload, fine on restart

2008-03-27 Thread John Pedersen
Hi,

I have just got the PayPal NVP stuff working in my app, but getting it to
work required adding quite a few jars that came with the download from
PayPal.

Trouble is, when I try to reload the app, I get a whole list of exceptions
listed. If I restart Tomcat, the app runs fine. I have tried taking out some
of the jars, but then PayPal doesn't work ( and doesn't necessarily throw an
exception telling you has gone wrong!)

Can anyone suggest what might be happening. It isn't a show-stopper, but it
is inconvenient.

Here is a list of the jars I have added:

activation.jar
bcmail-jdk14-128.jar
bcprov-jdk14-128.jar
commons-codec-1.3.jar
commons-discovery-0.2.jar
commons-httpclient-3.0.1.jar
commons-logging-1.0.4.jar
jaxrpc.jar
junit.jar
log4j-1.2.8.jar
log4j.properties
mailapi.jar
paypal_base.jar
paypal_junit.jar
saaj.jar
sax2.jar
xalan.jar
xerces.jar
xercesImpl.jar
xml-apis.jar
xpp3-1.1.3.4d_b4_min.jar
xstream-1.1.3.jar

And here are some of the errors:

{ERROR} startup.TldConfig  Exception processing TLD
META-INF/spring-form.tldin JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:).

{ERROR} startup.TldConfig  Exception processing TLD META-INF/spring.tld in
JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

{ERROR} startup.TldConfig  Exception processing TLD META-INF/c-1_0-rt.tld in
JAR at resource path C:\Tomcat 6.0\webapps\ROOT\WEB-INF\lib\standard.jar in
context
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

{ERROR} startup.TldConfig  Exception processing TLD
META-INF/fmt-1_0-rt.tldin JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\standard.jar in context
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

etc for all the tld files hidden within the jar files

plus

{ERROR} startup.ContextConfig  Parse error in default web.xml
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

{ERROR} startup.ContextConfig  Parse error in application web.xml file at
jndi:/localhost/WEB-INF/web.xml
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

TIA,

John


RES: url redirection

2008-03-27 Thread Milanez, Marcus
Hi,

I'm not completely sure about what you want, but you can redirect urls 
according to a given pattern between tomcat instances using jakarta connectors. 
 Is that what you want? You can have further info here 
http://tomcat.apache.org/connectors-doc/

Yours,

Marcus

-Mensagem original-
De: Melanie Pfefer [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 27 de março de 2008 07:32
Para: users@tomcat.apache.org
Assunto: url redirection

Hi,

I have 2 web apps deployed on 2 tomcat servers. How to redirect urls that 
contains 'jar' string from one app to another?

http://zeus:8085/web/sec:jar:001
to
http://zeus:8086/src/web:sec:jar:001

thanks


  __
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: Application context configuration datasources

2008-03-27 Thread Charl Gerber
 You are not supposed to edit server.xml in order to
 make your pooled connections work. 

You do when its a connection pool shared by more than
one application. How else do you create global
resources?

Anyway, all solved now. Looks like there was a
context.xml from a previous build in the
/conf/Catalina directory that wasn't deleted and it
wasn't correct.


 messages suggest, I would you recomend you put your
 context.xml file inside a META-INF directory, as you
 mentioned. As a matter of an example, here is my
 context.xml file, which is stored inside my app
 META-INF directory and works fine (I'm using SQL
 server 2005):
 
 ?xml version=1.0 encoding=UTF-8?
 Context
 
   Resource 
   name=jdbc/YourJdbcName 
   auth=Container
   type=javax.sql.DataSource 
   username=user
   password=pass 
   driverClassName=net.sourceforge.jtds.jdbc.Driver
   

url=jdbc:jtds:sqlserver://127.0.0.1:1433/YourDataBase;appName=Your
 App;socketTimeout=180;loginTimeout=10; 
   maxActive=30 
   maxIdle=2 
   maxWait=60
   removeAbandoned=true
   maxStatements=2147483647
   removeAbandonedTimeout=200
   validationQuery= SELECT 1 
   LogAbandoned=true
   /
 /Context
 
 Besides that, check whether your driver jar files
 are placed inside catalina_home/lib directory. Along
 with these files, you would also need
 commons-collections-3.2.jar, commons-dbutils-1.1.jar
 and commons-pool-1.3.jar inside that dir too,
 otherwise your pools won't work. The versions
 mentioned in the files are the latest ones, but I
 guess you can use the ones you have.
 
 If it still doesn't work, tell us...
 
 Yours,
 
 Marcus Milanez
 
 -Mensagem original-
 De: Charl Gerber [mailto:[EMAIL PROTECTED] 
 Enviada em: quinta-feira, 27 de março de 2008 04:04
 Para: Tomcat Users List
 Assunto: Re: Application context configuration 
 datasources
 
 server.xml:
 
 GlobalNamingResources
 
 Resource name=jdbc/mydatasource 
   auth=Container 
   type=javax.sql.DataSource 
   maxActive=16 
   maxIdle=8 
   maxWait=1 
   username=abc 
   password=xyz 
  
 driverClassName=com.mysql.jdbc.Driver 


url=jdbc:mysql://localhost/mydatabase?autoReconnect=true
 / 
 
   /GlobalNamingResources
 
 
 As I said, if I move the META-INF/context.xml
 contents into my server.xml, then it works fine, but
 then I cannot use ant manager tasks to redeploy.
 
 I have also tried to put the driver jar into the
 application war. No luck.
 
 
 --- Sameer Acharya [EMAIL PROTECTED] wrote:
 
  Where is your Resource definition ? seems like the
 Driver class name 
  and url is not defined.
  
  -Sameer
  
  --- Charl Gerber [EMAIL PROTECTED] wrote:
  
   I have 4 Tomcat environments for the same
   application:
   two development machines, 1 test and 1
 production.
   Development machines are Windows 2000 and Vista,
  the
   others are linux. All 4 machines have Tomcat
  6.0.14
   installed.
   
   I really have problems getting the application
 properly deployed and 
   configured. I have a global datasource
 configured in tomcat's 
   server.xml and
  the
   mysql driver jar is in the /lib directory of
  tomcat.
   
   If I deploy the application by putting it in the
 webapps dir or 
   using the ant manager tasks, I get this
   exception:
   
   Caused by:
   org.apache.tomcat.dbcp.dbcp.SQLNestedException:
   Cannot
   create JDBC driver of class '' for connect URL
 'null'
 at
  
 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
 at
  
 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
 at
  
 

org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
 at
  
 

org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
 ... 45 more
   
   If I copy the contents of the application's
 META-INF/context.xml 
   into the server.xml, then the application and
 datasources loads 
   fine, no
  problems.
   It looks something like:
   
   Context path=/myapp docBase=path_to_war
   debug=0
   reloadable=false antiJARLocking=true
   antiResourceLocking=true crossContext=true
 ResourceLink name=jdbc/mydatasource
   global=jdbc/mydatasource
   type=javax.sql.DataSource
   /
   /Context
   
   (I then have a context.xml and the same part in
  the
   server.xml, but it doesn't seem to do harm)
   
   But then I cannot use the ant manager tasks to
 redeploy the 
   application:
   
   C:\projects\myapp\build.xml:198: FAIL - Context
 /myapp is defined in 
   server.xml and may not be undeployed
   
   On the test and production (linux) servers, its
  not
   that critical, as I do not do a lot of
  deployments.
   So
   there I have the 

RES: RES: Application context configuration datasources

2008-03-27 Thread Milanez, Marcus

I've never used a pool shared by more than one app, so I'm not the best person 
to offer other options. In this case, you have to stop your server whenever you 
deploy a new version of your app?

-Mensagem original-
De: Charl Gerber [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 27 de março de 2008 09:04
Para: Tomcat Users List
Assunto: Re: RES: Application context configuration  datasources

 You are not supposed to edit server.xml in order to make your pooled 
 connections work.

 You do when its a connection pool shared by more than one application. How 
 else do you create global resources?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
Hi,

thanks for your reply. what I want is to redirect 

http://zeus:8085/web/sec:jar:001

to


http://zeus:8086/src/web:sec:jar:001

The first one is on apache
the 2nd one is on tomcat

thanks again
--- Milanez, Marcus [EMAIL PROTECTED]
wrote:

 Hi,
 
 I'm not completely sure about what you want, but you
 can redirect urls according to a given pattern
 between tomcat instances using jakarta connectors. 
 Is that what you want? You can have further info
 here http://tomcat.apache.org/connectors-doc/
 
 Yours,
 
 Marcus
 
 -Mensagem original-
 De: Melanie Pfefer
 [mailto:[EMAIL PROTECTED] 
 Enviada em: quinta-feira, 27 de março de 2008 07:32
 Para: users@tomcat.apache.org
 Assunto: url redirection
 
 Hi,
 
 I have 2 web apps deployed on 2 tomcat servers. How
 to redirect urls that contains 'jar' string from one
 app to another?
 
 http://zeus:8085/web/sec:jar:001
 to
 http://zeus:8086/src/web:sec:jar:001
 
 thanks
 
 
  

__
 Sent from Yahoo! Mail.
 More Ways to Keep in Touch.
 http://uk.docs.yahoo.com/nowyoucan.html
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  ___ 
Yahoo! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread John . Hart

 From: Caldarale, Charles R [EMAIL PROTECTED]
 From: Caldarale, Charles R [EMAIL PROTECTED]
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: Solaris 10 Tomcat performance maxes out at 2 threads

 We see throughput increase when we go from 1 client thread to
 2 client threads, but when we run more than 2 threads we see
 no additional throughput.

 First off, does your client support more than two connections to the
 same server?  If your client is an untweaked version of IE or Firefox,
 it doesn't.

 Secondly, you may well have some contended resource in your application
 that limits concurrency, such as number of data base connections, data
 base record locks, overly coarse synchronization, etc.  Try profiling
 the app and see where threads are getting stuck.  Also might try
 cranking up the number of concurrent client requests and running jstack
 (a JDK tool) against Tomcat to see where the request processing threads
 are sitting.

 1. The client is a custom application that we can set to spawn threads
 according to a parameter that we set on the command line. I've kicked
 off up to 40 threads each with its own connection to Tomcat.

 2. The application preloads data from its database upon start up. It
does
 write information to our database on a per transaction basis, perhaps
 this is where resource contention is occurring. I agree that profiling
is
 the next step.

 I have a poor understanding of how Tomcat spawns/manages threads.
Perhaps
 I missed the appropriate documentation on this... Any clue to a good
 resource about thread management.

 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Subject: RE: Solaris 10 Tomcat performance maxes out at 2 threads

 I have a poor understanding of how Tomcat spawns/manages
 threads.

 It's pretty simple, all under control of the attributes on the
 Connector elements in server.xml:
 http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 Each Connector maintains a pool of threads for servicing requests on
 that connection.  When a request arrives, a thread from the pool is
 chosen (or created) and performs all the processing for that request,
 including calling whatever valves, filters, and servlets are in the
 chain.  Once the request is finished, the thread returns to the pool.
 Look at the doc and the settings in server.xml for the limits on
 concurrency and number of idle threads.

To tie up this thread:

I had read the documentation referenced above, but given the apparent
behavior I just kept imagining that there had to be more to it that the
documentation indicated. I went so far as to purchase Tomcat - The
Definitive Guide for Tomcat 6.0 and it reiterated the Apache information
about thread activity...

Your original question does your client support more than two connections
to the same server? turned out to be the correct question to ask. I am
working with a client who wrote a .Net test application to do a performance
test / proof-of-concept with my application. The throughput would increase
when went from 1 to 2 threads, but more threads would not give up any more
throughput... Originally, not having access to their code - we did
profiling
on the server side and it indicated a lot of client time being spent. And
when we profiled on the client side it showed a lot of server time being
spent... I asked for the code to figure out what their test client was
doing.

As it turns out the default behavior of a .Net application is to set a
default connection limit of 2?!?!? (I guess this explains why IE and
Firefox default to 2 connections). Not being a .Net expert I didn't realize
this - but when we did a netstat on the server it definitively showed only
2 connections from the client box to the server (no matter how many client
threads were spawned!!!) Well there's your problem...

Once we set the following parameter

System.Net.ServicePointManager.DefaultConnectionLimit = 100;

Everything was more or less happy, until we ran into a CPU capping issue on
the Solaris machine, we were maxing out at 50% CPU capacity. This was easy
to tweak and now we are more or less taking full advantage of the CPUs.

Many thanks for your insights and help!

John


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: RES: Application context configuration datasources

2008-03-27 Thread Charl Gerber
 I've never used a pool shared by more than one app,
 so I'm not the best person to offer other options.

I've done it many times had had no problems in sharing
resources like this.

 In this case, you have to stop your server whenever
 you deploy a new version of your app?

No! You create a ResourceLink entry in your
context.html. Then it links to the resource defined in
server.xml.


 -Mensagem original-
 De: Charl Gerber [mailto:[EMAIL PROTECTED] 
 Enviada em: quinta-feira, 27 de março de 2008 09:04
 Para: Tomcat Users List
 Assunto: Re: RES: Application context configuration
  datasources
 
  You are not supposed to edit server.xml in order
 to make your pooled 
  connections work.
 
  You do when its a connection pool shared by more
 than one application. How else do you create global
 resources?
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread Rainer Jung

Hi John,

[EMAIL PROTECTED] wrote:

As it turns out the default behavior of a .Net application is to set a
default connection limit of 2?!?!? (I guess this explains why IE and
Firefox default to 2 connections). Not being a .Net expert I didn't realize
this - but when we did a netstat on the server it definitively showed only
2 connections from the client box to the server (no matter how many client
threads were spawned!!!) Well there's your problem...


This comes from a recommendation in the HTTP RFC, suggesting that well 
behaved client should not use more than two parallel connections to the 
same server. I guess that the intention is to get same fairness between 
different clients all sharing the same server ressources.


Many of the available browser accelerators simply ignore this and tune 
the browser to use more threads.


So if you use usual client technology to do http communication on the 
client side, it's common to run into this limitation.



Once we set the following parameter

System.Net.ServicePointManager.DefaultConnectionLimit = 100;

Everything was more or less happy, until we ran into a CPU capping issue on
the Solaris machine, we were maxing out at 50% CPU capacity. This was easy
to tweak and now we are more or less taking full advantage of the CPUs.

Many thanks for your insights and help!


Thanks for letting us know the resolution.

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Solaris 10 Tomcat performance maxes out at 2 threads

2008-03-27 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: RE: Solaris 10 Tomcat performance maxes out at 2 threads
 
 As it turns out the default behavior of a .Net application is to set a
 default connection limit of 2?!?!?

This is the limit recommended (not required) by the HTTP RFC for clients
to play well with others.  There's a registry setting controlling it for
IE, and a corresponding about:config setting for Firefox.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: errors on reload, fine on restart

2008-03-27 Thread Katilie, John
John, what version of tomcat are you running. I'm running 6.0.14 I'm not
doing anything with paypal but I get the same exception at reploy time
and I have not issolated it:

{ERROR} startup.ContextConfig  Parse error in application web.xml file
at
jndi:/localhost/WEB-INF/web.xml
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)


jfk

-Original Message-
From: John Pedersen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 7:32 AM
To: users@tomcat.apache.org
Subject: errors on reload, fine on restart

Hi,

I have just got the PayPal NVP stuff working in my app, but getting it
to
work required adding quite a few jars that came with the download from
PayPal.

Trouble is, when I try to reload the app, I get a whole list of
exceptions
listed. If I restart Tomcat, the app runs fine. I have tried taking out
some
of the jars, but then PayPal doesn't work ( and doesn't necessarily
throw an
exception telling you has gone wrong!)

Can anyone suggest what might be happening. It isn't a show-stopper, but
it
is inconvenient.

Here is a list of the jars I have added:

activation.jar
bcmail-jdk14-128.jar
bcprov-jdk14-128.jar
commons-codec-1.3.jar
commons-discovery-0.2.jar
commons-httpclient-3.0.1.jar
commons-logging-1.0.4.jar
jaxrpc.jar
junit.jar
log4j-1.2.8.jar
log4j.properties
mailapi.jar
paypal_base.jar
paypal_junit.jar
saaj.jar
sax2.jar
xalan.jar
xerces.jar
xercesImpl.jar
xml-apis.jar
xpp3-1.1.3.4d_b4_min.jar
xstream-1.1.3.jar

And here are some of the errors:

{ERROR} startup.TldConfig  Exception processing TLD
META-INF/spring-form.tldin JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
java.lang.NullPointerException
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:).

{ERROR} startup.TldConfig  Exception processing TLD META-INF/spring.tld
in
JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
java.lang.NullPointerException
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

{ERROR} startup.TldConfig  Exception processing TLD
META-INF/c-1_0-rt.tld in
JAR at resource path C:\Tomcat 6.0\webapps\ROOT\WEB-INF\lib\standard.jar
in
context
java.lang.NullPointerException
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

{ERROR} startup.TldConfig  Exception processing TLD
META-INF/fmt-1_0-rt.tldin JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\standard.jar in context
java.lang.NullPointerException
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

etc for all the tld files hidden within the jar files

plus

{ERROR} startup.ContextConfig  Parse error in default web.xml
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

{ERROR} startup.ContextConfig  Parse error in application web.xml file
at
jndi:/localhost/WEB-INF/web.xml
java.lang.NullPointerException
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

TIA,

John

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: errors on reload, fine on restart

2008-03-27 Thread John Pedersen
I am using 6.0.13 - so it looks like swapping to 6.0.14 won't help!

On 27/03/2008, Katilie, John [EMAIL PROTECTED] wrote:

 John, what version of tomcat are you running. I'm running 6.0.14 I'm not
 doing anything with paypal but I get the same exception at reploy time
 and I have not issolated it:


 {ERROR} startup.ContextConfig  Parse error in application web.xml file
 at
 jndi:/localhost/WEB-INF/web.xml
 java.lang.NullPointerException
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)



 jfk


 -Original Message-
 From: John Pedersen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2008 7:32 AM
 To: users@tomcat.apache.org
 Subject: errors on reload, fine on restart

 Hi,

 I have just got the PayPal NVP stuff working in my app, but getting it
 to
 work required adding quite a few jars that came with the download from
 PayPal.

 Trouble is, when I try to reload the app, I get a whole list of
 exceptions
 listed. If I restart Tomcat, the app runs fine. I have tried taking out
 some
 of the jars, but then PayPal doesn't work ( and doesn't necessarily
 throw an
 exception telling you has gone wrong!)

 Can anyone suggest what might be happening. It isn't a show-stopper, but
 it
 is inconvenient.

 Here is a list of the jars I have added:

 activation.jar
 bcmail-jdk14-128.jar
 bcprov-jdk14-128.jar
 commons-codec-1.3.jar
 commons-discovery-0.2.jar
 commons-httpclient-3.0.1.jar
 commons-logging-1.0.4.jar
 jaxrpc.jar
 junit.jar
 log4j-1.2.8.jar
 log4j.properties
 mailapi.jar
 paypal_base.jar
 paypal_junit.jar
 saaj.jar
 sax2.jar
 xalan.jar
 xerces.jar
 xercesImpl.jar
 xml-apis.jar
 xpp3-1.1.3.4d_b4_min.jar
 xstream-1.1.3.jar

 And here are some of the errors:

 {ERROR} startup.TldConfig  Exception processing TLD

 META-INF/spring-form.tldin JAR at resource path C:\Tomcat

 6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:).

 {ERROR} startup.TldConfig  Exception processing TLD META-INF/spring.tld
 in
 JAR at resource path C:\Tomcat
 6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 {ERROR} startup.TldConfig  Exception processing TLD
 META-INF/c-1_0-rt.tld in
 JAR at resource path C:\Tomcat 6.0\webapps\ROOT\WEB-INF\lib\standard.jar
 in
 context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

 {ERROR} startup.TldConfig  Exception processing TLD

 META-INF/fmt-1_0-rt.tldin JAR at resource path C:\Tomcat

 6.0\webapps\ROOT\WEB-INF\lib\standard.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

 etc for all the tld files hidden within the jar files

 plus

 {ERROR} startup.ContextConfig  Parse error in default web.xml
 java.lang.NullPointerException
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 {ERROR} startup.ContextConfig  Parse error in application web.xml file
 at
 jndi:/localhost/WEB-INF/web.xml
 java.lang.NullPointerException
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 TIA,

 John



unable to locate package in 5.5 source

2008-03-27 Thread Raminder Singh

Hi Group,

We are in process of upgrading from tomcat 5.0 to tomcat 5.5. We build our= 
tomcat binaries from main source with some updations.

During our investigation, we have not been able to find= 
org.apache.coyote.tomcat5 in Tomcat 5.5 source which is present in= package 
of Tomcat 5.0 under= 
jakarta-tomcat-5.0.28-src\jakarta-tomcat-catalina\catalina\src\share\org\apache\coyote\tomcat5.
 Infact some package have been restructured.

Can you suggest how to go for using same package with tomcat 5.5? Any other= 
package/jars can be used here??

Also at=

http://tomcat.apache.org/tomcat-5.5-doc/architecture/startup/serverStartup.txt 
(tomcat 5 startup process), in step b3 its tells abt using= 
org.apache.coyote.tomcat5.CoyoteConnector package i.e for Connectors to= 
listen for incoming requests only. Is this from same tomcat5 package?

Can you help in more details on this?

regards,

Raminder Singh





 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

Re: RES: url redirection

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Melanie,

Melanie Pfefer wrote:
| thanks for your reply. what I want is to redirect
|
| http://zeus:8085/web/sec:jar:001
|
| to
|
|
| http://zeus:8086/src/web:sec:jar:001
|
| The first one is on apache
| the 2nd one is on tomcat

If you are using apache, you should check the RedirectMatch directive.
You can use it to send redirects for certain regular expressions, and
use back-references for the redirected URL. I think this is exactly what
you want.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfruW0ACgkQ9CaO5/Lv0PDwfACcCZSm5CPDohwsupHtVM0ogqon
pZQAniWoQ55YanvgWWaKNcaaP4JRVtB3
=h+Hk
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread ChrisS
Melanie are you using FreeBSD or OpenBSD? I am going back a bit but I 
remember using Zeus on OpenBSD.


The way I set up clustering recently was through a workers.properties file 
which I stored in the apache/conf subdirectory. To start with you have to 
make sure all the prerequisites are in place. If you are using a version of 
Apache that supports it you need to DSO the mod_jk module into this (if you 
haven't done this already) with 
./configure --with-apxs=/usr/local/apache/bin/apxs. This won't work unless 
you have mod_ssl installed !make sure the version you have supports it!. For 
example if you are using an APACI version, you may face problems. If you do 
have mod_ssl installed and are witnessing problems note the error whilst 
trying to launch Apache. I witnessed numerous errors whilst trying to build 
1.3.39, 1.3.4, 2.0.x 2.2.x this way.


- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 12:31 PM
Subject: Re: RES: url redirection



Hi,

thanks for your reply. what I want is to redirect

http://zeus:8085/web/sec:jar:001

to


http://zeus:8086/src/web:sec:jar:001

The first one is on apache
the 2nd one is on tomcat

thanks again
--- Milanez, Marcus [EMAIL PROTECTED]
wrote:


Hi,

I'm not completely sure about what you want, but you
can redirect urls according to a given pattern
between tomcat instances using jakarta connectors.
Is that what you want? You can have further info
here http://tomcat.apache.org/connectors-doc/

Yours,

Marcus

-Mensagem original-
De: Melanie Pfefer
[mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 27 de março de 2008 07:32
Para: users@tomcat.apache.org
Assunto: url redirection

Hi,

I have 2 web apps deployed on 2 tomcat servers. How
to redirect urls that contains 'jar' string from one
app to another?

http://zeus:8085/web/sec:jar:001
to
http://zeus:8086/src/web:sec:jar:001

thanks





__

Sent from Yahoo! Mail.
More Ways to Keep in Touch.
http://uk.docs.yahoo.com/nowyoucan.html



-

To start a new topic, e-mail:
users@tomcat.apache.org To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




-

To start a new topic, e-mail:
users@tomcat.apache.org
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






 ___
Yahoo! For Good helps you make a difference

http://uk.promotions.yahoo.com/forgood/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
Hello
Actually I was able to define a rewrite rule in
apache:

RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
[R=301,L]

now
http://zeus/web:jar:001
redirects to
http://zeus:8086/src/web:jar:001

But if I tried to change the flag to P (proxy) in
httpd.conf
the apache error file gives:
[Thu Mar 27 17:18:58 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/src, referer:
http://zeus/web:jar:001

the tomcat gives:

Your request is: http://zeus:8086/src/web:jar:001
Patj info is: web:jar:001
Session (1A578677550D1A75793540B152A8D6B6) has been
added to the list of valid Sessions
MY path info in treeview is: web:jar:001


I suspect I should something on tomcat to all this
operation. right?

I am using Solaris 10 - apache 2.2.4 and tomcat 6


--- ChrisS [EMAIL PROTECTED] wrote:

 Melanie are you using FreeBSD or OpenBSD? I am going
 back a bit but I 
 remember using Zeus on OpenBSD.
 
 The way I set up clustering recently was through a
 workers.properties file 
 which I stored in the apache/conf subdirectory. To
 start with you have to 
 make sure all the prerequisites are in place. If you
 are using a version of 
 Apache that supports it you need to DSO the mod_jk
 module into this (if you 
 haven't done this already) with 
 ./configure
 --with-apxs=/usr/local/apache/bin/apxs. This won't
 work unless 
 you have mod_ssl installed !make sure the version
 you have supports it!. For 
 example if you are using an APACI version, you may
 face problems. If you do 
 have mod_ssl installed and are witnessing problems
 note the error whilst 
 trying to launch Apache. I witnessed numerous errors
 whilst trying to build 
 1.3.39, 1.3.4, 2.0.x 2.2.x this way.
 
 - Original Message - 
 From: Melanie Pfefer [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, March 27, 2008 12:31 PM
 Subject: Re: RES: url redirection
 
 
  Hi,
 
  thanks for your reply. what I want is to redirect
 
  http://zeus:8085/web/sec:jar:001
 
  to
 
 
  http://zeus:8086/src/web:sec:jar:001
 
  The first one is on apache
  the 2nd one is on tomcat
 
  thanks again
  --- Milanez, Marcus [EMAIL PROTECTED]
  wrote:
 
  Hi,
 
  I'm not completely sure about what you want, but
 you
  can redirect urls according to a given pattern
  between tomcat instances using jakarta
 connectors.
  Is that what you want? You can have further info
  here http://tomcat.apache.org/connectors-doc/
 
  Yours,
 
  Marcus
 
  -Mensagem original-
  De: Melanie Pfefer
  [mailto:[EMAIL PROTECTED]
  Enviada em: quinta-feira, 27 de março de 2008
 07:32
  Para: users@tomcat.apache.org
  Assunto: url redirection
 
  Hi,
 
  I have 2 web apps deployed on 2 tomcat servers.
 How
  to redirect urls that contains 'jar' string from
 one
  app to another?
 
  http://zeus:8085/web/sec:jar:001
  to
  http://zeus:8086/src/web:sec:jar:001
 
  thanks
 
 
 
 
 

__
  Sent from Yahoo! Mail.
  More Ways to Keep in Touch.
  http://uk.docs.yahoo.com/nowyoucan.html
 
 
 

-
  To start a new topic, e-mail:
  users@tomcat.apache.org To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 

-
  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 
  

___
  Yahoo! For Good helps you make a difference
 
  http://uk.promotions.yahoo.com/forgood/
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  
 
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  __
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: errors on reload, fine on restart

2008-03-27 Thread Katilie, John
6.0.16 is available and I've been meaning to upgrade to that when I have
time. Good luck. jfk

-Original Message-
From: John Pedersen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 10:27 AM
To: Tomcat Users List
Subject: Re: errors on reload, fine on restart

I am using 6.0.13 - so it looks like swapping to 6.0.14 won't help!

On 27/03/2008, Katilie, John [EMAIL PROTECTED] wrote:

 John, what version of tomcat are you running. I'm running 6.0.14 I'm
not
 doing anything with paypal but I get the same exception at reploy time
 and I have not issolated it:


 {ERROR} startup.ContextConfig  Parse error in application web.xml file
 at
 jndi:/localhost/WEB-INF/web.xml
 java.lang.NullPointerException
 at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)



 jfk


 -Original Message-
 From: John Pedersen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2008 7:32 AM
 To: users@tomcat.apache.org
 Subject: errors on reload, fine on restart

 Hi,

 I have just got the PayPal NVP stuff working in my app, but getting it
 to
 work required adding quite a few jars that came with the download from
 PayPal.

 Trouble is, when I try to reload the app, I get a whole list of
 exceptions
 listed. If I restart Tomcat, the app runs fine. I have tried taking
out
 some
 of the jars, but then PayPal doesn't work ( and doesn't necessarily
 throw an
 exception telling you has gone wrong!)

 Can anyone suggest what might be happening. It isn't a show-stopper,
but
 it
 is inconvenient.

 Here is a list of the jars I have added:

 activation.jar
 bcmail-jdk14-128.jar
 bcprov-jdk14-128.jar
 commons-codec-1.3.jar
 commons-discovery-0.2.jar
 commons-httpclient-3.0.1.jar
 commons-logging-1.0.4.jar
 jaxrpc.jar
 junit.jar
 log4j-1.2.8.jar
 log4j.properties
 mailapi.jar
 paypal_base.jar
 paypal_junit.jar
 saaj.jar
 sax2.jar
 xalan.jar
 xerces.jar
 xercesImpl.jar
 xml-apis.jar
 xpp3-1.1.3.4d_b4_min.jar
 xstream-1.1.3.jar

 And here are some of the errors:

 {ERROR} startup.TldConfig  Exception processing TLD

 META-INF/spring-form.tldin JAR at resource path C:\Tomcat

 6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:).

 {ERROR} startup.TldConfig  Exception processing TLD
META-INF/spring.tld
 in
 JAR at resource path C:\Tomcat
 6.0\webapps\ROOT\WEB-INF\lib\spring-webmvc.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 {ERROR} startup.TldConfig  Exception processing TLD
 META-INF/c-1_0-rt.tld in
 JAR at resource path C:\Tomcat
6.0\webapps\ROOT\WEB-INF\lib\standard.jar
 in
 context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

 {ERROR} startup.TldConfig  Exception processing TLD

 META-INF/fmt-1_0-rt.tldin JAR at resource path C:\Tomcat

 6.0\webapps\ROOT\WEB-INF\lib\standard.jar in context
 java.lang.NullPointerException
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)...

 etc for all the tld files hidden within the jar files

 plus

 {ERROR} startup.ContextConfig  Parse error in default web.xml
 java.lang.NullPointerException
 at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 {ERROR} startup.ContextConfig  Parse error in application web.xml file
 at
 jndi:/localhost/WEB-INF/web.xml
 java.lang.NullPointerException
 at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:)

 TIA,

 John


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread ChrisS
I worked with Solaris 10's apache and found that I had to download the 
apache source code eventually and rebuild it myself. I found a few bugs in 
2.2.8's configure scripts, what I am using now but I got it to work, if you 
are up for it I could help out!


I never used the P proxy flag in httpd.conf, I used jk_mod.1.2.6 (but this 
is jk_mod.1.2.7 really) then to get apache to communicate with the tomcat 
nodes I set up a worker file included it in httpd.conf, that with the jk_mod 
included in httpd's module section and I was accessing Tomcat through two 
worker ports set up in apache. Is this what you are trying to do?

Chris S

- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 4:23 PM
Subject: Re: RES: url redirection



Hello
Actually I was able to define a rewrite rule in
apache:

RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
[R=301,L]

now
http://zeus/web:jar:001
redirects to
http://zeus:8086/src/web:jar:001

But if I tried to change the flag to P (proxy) in
httpd.conf
the apache error file gives:
[Thu Mar 27 17:18:58 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/src, referer:
http://zeus/web:jar:001

the tomcat gives:

Your request is: http://zeus:8086/src/web:jar:001
Patj info is: web:jar:001
Session (1A578677550D1A75793540B152A8D6B6) has been
added to the list of valid Sessions
MY path info in treeview is: web:jar:001


I suspect I should something on tomcat to all this
operation. right?

I am using Solaris 10 - apache 2.2.4 and tomcat 6


--- ChrisS [EMAIL PROTECTED] wrote:


Melanie are you using FreeBSD or OpenBSD? I am going
back a bit but I
remember using Zeus on OpenBSD.

The way I set up clustering recently was through a
workers.properties file
which I stored in the apache/conf subdirectory. To
start with you have to
make sure all the prerequisites are in place. If you
are using a version of
Apache that supports it you need to DSO the mod_jk
module into this (if you
haven't done this already) with
./configure
--with-apxs=/usr/local/apache/bin/apxs. This won't
work unless
you have mod_ssl installed !make sure the version
you have supports it!. For
example if you are using an APACI version, you may
face problems. If you do
have mod_ssl installed and are witnessing problems
note the error whilst
trying to launch Apache. I witnessed numerous errors
whilst trying to build
1.3.39, 1.3.4, 2.0.x 2.2.x this way.

- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 12:31 PM
Subject: Re: RES: url redirection


 Hi,

 thanks for your reply. what I want is to redirect

 http://zeus:8085/web/sec:jar:001

 to


 http://zeus:8086/src/web:sec:jar:001

 The first one is on apache
 the 2nd one is on tomcat

 thanks again
 --- Milanez, Marcus [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm not completely sure about what you want, but
you
 can redirect urls according to a given pattern
 between tomcat instances using jakarta
connectors.
 Is that what you want? You can have further info
 here http://tomcat.apache.org/connectors-doc/

 Yours,

 Marcus

 -Mensagem original-
 De: Melanie Pfefer
 [mailto:[EMAIL PROTECTED]
 Enviada em: quinta-feira, 27 de março de 2008
07:32
 Para: users@tomcat.apache.org
 Assunto: url redirection

 Hi,

 I have 2 web apps deployed on 2 tomcat servers.
How
 to redirect urls that contains 'jar' string from
one
 app to another?

 http://zeus:8085/web/sec:jar:001
 to
 http://zeus:8086/src/web:sec:jar:001

 thanks







__

 Sent from Yahoo! Mail.
 More Ways to Keep in Touch.
 http://uk.docs.yahoo.com/nowyoucan.html





-

 To start a new topic, e-mail:
 users@tomcat.apache.org To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]






-

 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]








___

 Yahoo! For Good helps you make a difference

 http://uk.promotions.yahoo.com/forgood/




-

 To start a new topic, e-mail:
users@tomcat.apache.org
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]







-

To start a new topic, e-mail:
users@tomcat.apache.org
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]






 __
Sent from Yahoo! Mail.
More Ways 

Memory leak in Tomcat 5.5.16

2008-03-27 Thread Tom Price
Hi,

I have a Java application that exposes a web services (SOAP/XML)
interface using Apache Tomcat and Axis2 (see detailed background below).
When this interface is heavily utilized, the application gradually leaks
old space memory until it runs out.  I have analyzed the heap usage on a
system where this memory leak has occurred, and I see that the following
classes take up most of the memory:

SizeCount   Class description
---
433059616   557692  char[]
292410472   124245  byte[]
1780156087232   * ConstMethodKlass
16543576295421  org.apache.tomcat.util.buf.MessageBytes
15600840390021  org.apache.tomcat.util.buf.ByteChunk
13372920334323  org.apache.tomcat.util.buf.CharChunk
11575656482319  java.lang.String

Does anyone know what could trigger the above classes to be leaked in
Tomcat 5.5.16?  I have also tried upgrading to Tomcat 5.5.26, but the
problem still occurs.

This is very similar to a memory leak posted to this list in 2006, but I
can't find what the resolution was in that case:

http://readlist.com/lists/tomcat.apache.org/users/5/27073.html

I have also consulted http://wiki.apache.org/tomcat/OutOfMemory but
couldn't find the solution.

The problem only seems to occur when multiple concurrent requests are
being received - if I issue requests in a single threaded manner, the
server can handle many hundreds of thousands of requests over an
extended period without any apparent memory leakage.  But if multiple
requests are sent concurrently, the application leaks about 1MB per 100
requests.

Here are the details of the application:

OS: Solaris 10 (Intel)
JRE: 1.5.0_07, launched from native C code (not the Java executable)
Tomcat: 5.5.16, embedded within my Java application
Axis2: 1.3

Thanks in advance for any help.

Tom.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Melanie,

Melanie Pfefer wrote:
| Hello
| Actually I was able to define a rewrite rule in
| apache:
|
| RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
| [R=301,L]

Aah, mod_rewrite: the chainsaw of httpd configuration. I personally
think RedirectMatch is a lot cleaner. mod_rewrite is very heavy (because
it can do so many different things).

But hey... whatever works.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfr3akACgkQ9CaO5/Lv0PA0AgCfa3z0uq7gPkXEAuLmVnbkFVGb
s8MAn3RlP9NOVjBB8YUV8hepJx6r5JnG
=SD08
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123

Hi Charles,
 Thanks for the reply.  JMeter doesn't help me here because the response
time includes network time.  The reason I'm looking into the tomcat API is
because i want a way to query tomcat for the numbers.  So, the metrics I am
after are:

1) How much time was spend in tomcat? no network
2) How much time was spend on the servlet?
3) What is the overall average response time for a request when there are X
number of users active?




Caldarale, Charles R wrote:
 
 From: wicket0123 [mailto:[EMAIL PROTECTED] 
 Subject: Checking tomcat metrics in a non-intrusive way
 
 I want to check tomcat response time for requests when I run,
 say 500 concurrent users, on the server.
 
 Any measurements made within Tomcat itself are going to have some effect
 on performance.  If all you want are response times, do that on the
 client side, running on the same LAN segment as the Tomcat server (or
 even on the same machine if you have CPU cores to spare).
 
 Take a look at JMeter to see if it will do what you want:
 http://jakarta.apache.org/jmeter/
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checking-tomcat-metrics-in-a-non-intrusive-way-tp16319903p16329489.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom,

Tom Price wrote:
| I have analyzed the heap usage on a
| system where this memory leak has occurred, and I see that the following
| classes take up most of the memory:

[snip]

| Does anyone know what could trigger the above classes to be leaked in
| Tomcat 5.5.16?  I have also tried upgrading to Tomcat 5.5.26, but the
| problem still occurs.

Not to dismiss your problem, but these kinds of things tend to be
problems with the application rather than problems with Tomcat. Are you
able to use a profiler that can tell you where the object allocations
are actually occurring?

It's not unusual to have a ton of byte[] objects, char[] objects, String
objects, and Class objects. I'm guessing that the MessageBytes,
ByteChunk, and CharChunk objects in your heap summary are all related to
the byte[], char[], and String objects you can see there as well.

Have you been able to compare the numbers of those objects after, say,
100 requests with the same object counts after, say, 1 requests? It
/is/ possible that Tomcat is leaking memory per connection, but very
unlikely given that thousands of servers are humming along quite nicely
without such problems.

It's also possible that Axis itself is doing some type of caching or
actually leaking memory somehow, but I also doubt that it does.

The only really good way to figure out what's happening is to instrument
your JVM and then test the hell out of it. Use JMeter to generate load
(serial or concurrent) and observe the heap, etc. You might even try to
disable some of the SOAP methods you are testing to see if this leak
only occurs with certain calls, or combinations of calls.

Good luck,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfr32wACgkQ9CaO5/Lv0PB5hACfY4Q88EAqc6ecvgOXKPwS3xtA
ufMAn3tSIziYrq8sNcw2CzTnw08rOoqF
=EgBf
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
 From: wicket0123 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Checking tomcat metrics in a non-intrusive way
 
 JMeter doesn't help me here because the response
 time includes network time.

Which is exactly why I suggested running JMeter on the same LAN segment,
if not the same machine.  In such a situation, the network overhead is
pretty much a constant that can be empirically determined and subtracted
out of the Tomcat response times.

Note that you will not be able to differentiate between time spent in
Tomcat itself vs user webapp code without running a profiler, and that
will significantly impact the measurements.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wicket,

wicket0123 wrote:
| Hi Charles,
|  Thanks for the reply.  JMeter doesn't help me here because the
response
| time includes network time.  The reason I'm looking into the tomcat API is
| because i want a way to query tomcat for the numbers.  So, the metrics
I am
| after are:
|
| 1) How much time was spend in tomcat? no network

You can't get this information without a real profiler, which will, of
course, interfere with performance.

| 2) How much time was spend on the servlet?

The best you can do, here, is to write yourself a Filter (or Valve, I
suppose) and simply take timestamps. As with all instrumentation, taking
samples takes time. Rest assured that reading the system clock is /very/
fast. ;)

I suppose if you know the total response time and the servlet time, you
could simply subtract the servlet time to see how much Tomcat overhead
is in there. Does it really matter?

| 3) What is the overall average response time for a request when there
are X
| number of users active?

To me, this all comes down to /useful/ metrics. For instance: who cares
what the response time is on the server for a single request? Nobody,
that's who. This last metric is the only useful one you've requested,
and I would argue that you ought to do it over a network (even if it's a
local one).

All users will be remote. Why artificially lower your response times
when everyone will have /at least/ the overhead of going over a local
network segment?

Unfortunately, your choices are:
- - instrument your server and get inaccurate, but fine-grained data
- - instrument your client and get accurate, but somewhat coarser data

Just my two and a half cents (US dollar really sucks these days),
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfr4RMACgkQ9CaO5/Lv0PCYHQCfa+hDE77eSM476JmIqVpv2/ed
3DgAoKQEvRO7KJOp3swJ21sMwjAcHOX7
=2q9H
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
 Subject: Re: Checking tomcat metrics in a non-intrusive way
 
 Rest assured that reading the system clock is /very/ fast. ;)

Well... not always, these days.  On multi-socket systems, if the system
architecture guarantees that timestamps are monotonically increasing
regardless of which CPU checks the time, there may actually be
significant bus traffic to insure that kind of result every time the
clock is read.  There's a future Intel chip architecture which should
eliminate the problem (don't remember the time frame), and it's not an
issue on single socket boxes (and not much of one on dual sockets).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Filip Hanik - Dev Lists
try to disable the cache in conf/catalina.properties, at the bottom 
there is a setting you can set to false

tomcat.util.buf.StringCache.byte.enabled=true

if the problem still exists, use jmap to dump the heap, and analyse the 
actual dependencies for mem usage


Filip

Tom Price wrote:

Hi,

I have a Java application that exposes a web services (SOAP/XML)
interface using Apache Tomcat and Axis2 (see detailed background below).
When this interface is heavily utilized, the application gradually leaks
old space memory until it runs out.  I have analyzed the heap usage on a
system where this memory leak has occurred, and I see that the following
classes take up most of the memory:

SizeCount   Class description
---
433059616   557692  char[]
292410472   124245  byte[]
1780156087232   * ConstMethodKlass
16543576295421  org.apache.tomcat.util.buf.MessageBytes
15600840390021  org.apache.tomcat.util.buf.ByteChunk
13372920334323  org.apache.tomcat.util.buf.CharChunk
11575656482319  java.lang.String

Does anyone know what could trigger the above classes to be leaked in
Tomcat 5.5.16?  I have also tried upgrading to Tomcat 5.5.26, but the
problem still occurs.

This is very similar to a memory leak posted to this list in 2006, but I
can't find what the resolution was in that case:

http://readlist.com/lists/tomcat.apache.org/users/5/27073.html

I have also consulted http://wiki.apache.org/tomcat/OutOfMemory but
couldn't find the solution.

The problem only seems to occur when multiple concurrent requests are
being received - if I issue requests in a single threaded manner, the
server can handle many hundreds of thousands of requests over an
extended period without any apparent memory leakage.  But if multiple
requests are sent concurrently, the application leaks about 1MB per 100
requests.

Here are the details of the application:

OS: Solaris 10 (Intel)
JRE: 1.5.0_07, launched from native C code (not the Java executable)
Tomcat: 5.5.16, embedded within my Java application
Axis2: 1.3

Thanks in advance for any help.

Tom.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to access AJP Queue through JMX

2008-03-27 Thread srinivasch

Hi,

   I am trying to find a way to access AJP Queue through JMX or any other
way possible. I am using Tomcat 5.5.20 and I have clusters configured. I
want to know whether the AJP Queue is full or not. Appreciate if anyone has
any idea how to go about.

Thanks
Sri
-- 
View this message in context: 
http://www.nabble.com/How-to-access-AJP-Queue-through-JMX-tp16330160p16330160.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: unable to locate package in 5.5 source

2008-03-27 Thread Mark Thomas

Raminder Singh wrote

We are in process of upgrading from tomcat 5.0 to tomcat 5.5. We build our= 
tomcat binaries from main source with some updations.

During our investigation, we have not been able to find= org.apache.coyote.tomcat5 in 
Tomcat 5.5 source which is present in= package of Tomcat 5.0 under= 
jakarta-tomcat-5.0.28-src\jakarta-tomcat-catalina\catalina\src\share\org\apache\coyote\tomcat5.
 Infact some package have been restructured.

Can you suggest how to go for using same package with tomcat 5.5? Any other= 
package/jars can be used here??


From memory that code will now be in org.apache.coyote or 
org.apache.catalina.connectors



http://tomcat.apache.org/tomcat-5.5-doc/architecture/startup/serverStartup.txt (tomcat 5 
startup process), in step b3 its tells abt using= 
org.apache.coyote.tomcat5.CoyoteConnector package i.e for Connectors to= 
listen for incoming requests only. Is this from same tomcat5 package?

That is horribly out of date.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread Melanie Pfefer
all I want is to redirect from apache to tomcat. That
I was able to do using rewrite rule
however, I want the redirection to be transparent (no
changes in url) so i thought of using P flag.

if ur method can do this please share how to do it.
thanks
--- ChrisS [EMAIL PROTECTED] wrote:

 I worked with Solaris 10's apache and found that I
 had to download the 
 apache source code eventually and rebuild it myself.
 I found a few bugs in 
 2.2.8's configure scripts, what I am using now but I
 got it to work, if you 
 are up for it I could help out!
 
 I never used the P proxy flag in httpd.conf, I used
 jk_mod.1.2.6 (but this 
 is jk_mod.1.2.7 really) then to get apache to
 communicate with the tomcat 
 nodes I set up a worker file included it in
 httpd.conf, that with the jk_mod 
 included in httpd's module section and I was
 accessing Tomcat through two 
 worker ports set up in apache. Is this what you are
 trying to do?
 Chris S
 
 - Original Message - 
 From: Melanie Pfefer [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, March 27, 2008 4:23 PM
 Subject: Re: RES: url redirection
 
 
  Hello
  Actually I was able to define a rewrite rule in
  apache:
 
  RewriteRule ^/(.*web:jar.*)
 http://zeus:8086/src/$1
  [R=301,L]
 
  now
  http://zeus/web:jar:001
  redirects to
  http://zeus:8086/src/web:jar:001
 
  But if I tried to change the flag to P (proxy) in
  httpd.conf
  the apache error file gives:
  [Thu Mar 27 17:18:58 2008] [error] [client
  172.21.194.71] File does not exist:
  /usr/local/apache2/htdocs/src, referer:
  http://zeus/web:jar:001
 
  the tomcat gives:
 
  Your request is:
 http://zeus:8086/src/web:jar:001
  Patj info is: web:jar:001
  Session (1A578677550D1A75793540B152A8D6B6) has
 been
  added to the list of valid Sessions
  MY path info in treeview is: web:jar:001
 
 
  I suspect I should something on tomcat to all this
  operation. right?
 
  I am using Solaris 10 - apache 2.2.4 and tomcat 6
 
 
  --- ChrisS [EMAIL PROTECTED]
 wrote:
 
  Melanie are you using FreeBSD or OpenBSD? I am
 going
  back a bit but I
  remember using Zeus on OpenBSD.
 
  The way I set up clustering recently was through
 a
  workers.properties file
  which I stored in the apache/conf subdirectory.
 To
  start with you have to
  make sure all the prerequisites are in place. If
 you
  are using a version of
  Apache that supports it you need to DSO the
 mod_jk
  module into this (if you
  haven't done this already) with
  ./configure
  --with-apxs=/usr/local/apache/bin/apxs. This
 won't
  work unless
  you have mod_ssl installed !make sure the version
  you have supports it!. For
  example if you are using an APACI version, you
 may
  face problems. If you do
  have mod_ssl installed and are witnessing
 problems
  note the error whilst
  trying to launch Apache. I witnessed numerous
 errors
  whilst trying to build
  1.3.39, 1.3.4, 2.0.x 2.2.x this way.
 
  - Original Message - 
  From: Melanie Pfefer
 [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Thursday, March 27, 2008 12:31 PM
  Subject: Re: RES: url redirection
 
 
   Hi,
  
   thanks for your reply. what I want is to
 redirect
  
   http://zeus:8085/web/sec:jar:001
  
   to
  
  
   http://zeus:8086/src/web:sec:jar:001
  
   The first one is on apache
   the 2nd one is on tomcat
  
   thanks again
   --- Milanez, Marcus
 [EMAIL PROTECTED]
   wrote:
  
   Hi,
  
   I'm not completely sure about what you want,
 but
  you
   can redirect urls according to a given pattern
   between tomcat instances using jakarta
  connectors.
   Is that what you want? You can have further
 info
   here http://tomcat.apache.org/connectors-doc/
  
   Yours,
  
   Marcus
  
   -Mensagem original-
   De: Melanie Pfefer
   [mailto:[EMAIL PROTECTED]
   Enviada em: quinta-feira, 27 de março de 2008
  07:32
   Para: users@tomcat.apache.org
   Assunto: url redirection
  
   Hi,
  
   I have 2 web apps deployed on 2 tomcat
 servers.
  How
   to redirect urls that contains 'jar' string
 from
  one
   app to another?
  
   http://zeus:8085/web/sec:jar:001
   to
   http://zeus:8086/src/web:sec:jar:001
  
   thanks
  
  
  
  
  
 
 

__
   Sent from Yahoo! Mail.
   More Ways to Keep in Touch.
   http://uk.docs.yahoo.com/nowyoucan.html
  
  
  
 
 

-
   To start a new topic, e-mail:
   users@tomcat.apache.org To unsubscribe,
 e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  
 
 

-
   To start a new topic, e-mail:
 
=== message truncated ===



  __
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html


How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread SriSri
 Hi,

   I am trying to find a way to access AJP Queue through JMX. If it is
possible with JMX or any other way let me know. I am using Tomcat 5.5.20 and
I have clusters configured. I want to know whether the AJP Queue is full or
not. Appreciate if anyone has any idea how to go about.

Thanks
Sri


Re: RES: url redirection

2008-03-27 Thread Rainer Jung

Melanie Pfefer schrieb:

all I want is to redirect from apache to tomcat. That
I was able to do using rewrite rule
however, I want the redirection to be transparent (no
changes in url) so i thought of using P flag.


We should get terminology straight:

- redirect: change the URL and sent a 30X response back to the browser, 
indicating that the browser should instead make a new request to this 
changed URL. Browsers will handle redirects automatically, but the new 
URL will be visible to the users (and get used in bookmarks etc.)


- rewrite: internally rewrite a URL during processing without making the 
client aware of this.


- forward (in the sense of a reverse proxy): sending a request received 
by a server to another server and returning the response gotten from 
that server back to the client.


Caution: mod_rewrite can do redirect and rewrite and also interacts with 
forwarding.


I guess what you want is a combination of rewrite and forward: The 
client uses a URL which does not exist on the final server and you want 
to use an intermediate server to change this URL (rewrite) to the one 
known on the final server, sending the resulting request there and 
returning the final response back to the client.


The components you perfer to do this with are Tomcat as the final server 
(backend) and Apache httpd to rewrite and forward.


You can do the forwarding either with mod_jk or mod_proxy. You should 
have a working forwarding before getting into the rewrite business.


To do the rewrite, you use a RewriteRule with mod_rewrite and you need 
to add the pass through PT flag to let further modules (in the case of 
mod_jk) participate in request processing. The flag is important.


See passthrough in http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html.

HTH

Rainer



if ur method can do this please share how to do it.
thanks
--- ChrisS [EMAIL PROTECTED] wrote:


I worked with Solaris 10's apache and found that I
had to download the 
apache source code eventually and rebuild it myself.
I found a few bugs in 
2.2.8's configure scripts, what I am using now but I
got it to work, if you 
are up for it I could help out!


I never used the P proxy flag in httpd.conf, I used
jk_mod.1.2.6 (but this 
is jk_mod.1.2.7 really) then to get apache to
communicate with the tomcat 
nodes I set up a worker file included it in
httpd.conf, that with the jk_mod 
included in httpd's module section and I was
accessing Tomcat through two 
worker ports set up in apache. Is this what you are

trying to do?
Chris S

- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 4:23 PM
Subject: Re: RES: url redirection



Hello
Actually I was able to define a rewrite rule in
apache:

RewriteRule ^/(.*web:jar.*)

http://zeus:8086/src/$1

[R=301,L]

now
http://zeus/web:jar:001
redirects to
http://zeus:8086/src/web:jar:001

But if I tried to change the flag to P (proxy) in
httpd.conf
the apache error file gives:
[Thu Mar 27 17:18:58 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/src, referer:
http://zeus/web:jar:001

the tomcat gives:

Your request is:

http://zeus:8086/src/web:jar:001

Patj info is: web:jar:001
Session (1A578677550D1A75793540B152A8D6B6) has

been

added to the list of valid Sessions
MY path info in treeview is: web:jar:001


I suspect I should something on tomcat to all this
operation. right?

I am using Solaris 10 - apache 2.2.4 and tomcat 6


--- ChrisS [EMAIL PROTECTED]

wrote:

Melanie are you using FreeBSD or OpenBSD? I am

going

back a bit but I
remember using Zeus on OpenBSD.

The way I set up clustering recently was through

a

workers.properties file
which I stored in the apache/conf subdirectory.

To

start with you have to
make sure all the prerequisites are in place. If

you

are using a version of
Apache that supports it you need to DSO the

mod_jk

module into this (if you
haven't done this already) with
./configure
--with-apxs=/usr/local/apache/bin/apxs. This

won't

work unless
you have mod_ssl installed !make sure the version
you have supports it!. For
example if you are using an APACI version, you

may

face problems. If you do
have mod_ssl installed and are witnessing

problems

note the error whilst
trying to launch Apache. I witnessed numerous

errors

whilst trying to build
1.3.39, 1.3.4, 2.0.x 2.2.x this way.

- Original Message - 
From: Melanie Pfefer

[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 12:31 PM
Subject: Re: RES: url redirection



Hi,

thanks for your reply. what I want is to

redirect

http://zeus:8085/web/sec:jar:001

to


http://zeus:8086/src/web:sec:jar:001

The first one is on apache
the 2nd one is on tomcat

thanks again
--- Milanez, Marcus

[EMAIL PROTECTED]

wrote:


Hi,

I'm not completely sure about what you want,

but

you

can redirect urls according to a 

Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread Rainer Jung
Please stop spaming the list. Sending the same question five times in 90 
minutes will most likely annoy everyone and reduce the chance to get an 
answer to an absolute minimum.


Rainer

SriSri schrieb:

 Hi,

   I am trying to find a way to access AJP Queue through JMX. If it is
possible with JMX or any other way let me know. I am using Tomcat 5.5.20 and
I have clusters configured. I want to know whether the AJP Queue is full or
not. Appreciate if anyone has any idea how to go about.

Thanks
Sri



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread SriSri
Well I am trying to post this message from Nabble and its not getting posted
per their site message, I been trying to resend the message since 2 hours. I
know the pain of spam and I dont intend to spam, was trying to post a
genuine query. Thats all.

Thanks for your help

Sri

On Thu, Mar 27, 2008 at 3:54 PM, Rainer Jung [EMAIL PROTECTED]
wrote:

 Please stop spaming the list. Sending the same question five times in 90
 minutes will most likely annoy everyone and reduce the chance to get an
 answer to an absolute minimum.

 Rainer

 SriSri schrieb:
   Hi,
 
 I am trying to find a way to access AJP Queue through JMX. If it is
  possible with JMX or any other way let me know. I am using Tomcat 5.5.20and
  I have clusters configured. I want to know whether the AJP Queue is full
 or
  not. Appreciate if anyone has any idea how to go about.
 
  Thanks
  Sri
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to access AJP Queue through JMX or any other possible way

2008-03-27 Thread Rainer Jung

SriSri schrieb:

Well I am trying to post this message from Nabble and its not getting posted
per their site message, I been trying to resend the message since 2 hours. I
know the pain of spam and I dont intend to spam, was trying to post a
genuine query. Thats all.

Thanks for your help


OK. At the moment Nabble seems to be quite behind. Marc seems to be 
up-to-date:


http://marc.info/?l=tomcat-userr=1b=200803w=2

Answer to your question: see below.


Sri

On Thu, Mar 27, 2008 at 3:54 PM, Rainer Jung [EMAIL PROTECTED]
wrote:


Please stop spaming the list. Sending the same question five times in 90
minutes will most likely annoy everyone and reduce the chance to get an
answer to an absolute minimum.

Rainer

SriSri schrieb:

 Hi,

   I am trying to find a way to access AJP Queue through JMX. If it is
possible with JMX or any other way let me know. I am using Tomcat 5.5.20and
I have clusters configured. I want to know whether the AJP Queue is full

or

not. Appreciate if anyone has any idea how to go about.


Concerning your question: Tomcat doesn't have a request queue. It uses 
two design elements:


- a thread pool
- the usual connection backlog of the operating system

The thread pool gets configured in the Connector element (server.xml). 
It has an initial size, a maximum size and further parameters to define 
growing and shrinking w.r.t varying load.


The TCP connection backlog is operating systen specific and Tomcat only 
configures its maximal length. Apart from that Tomcat is agnostic of the 
backlog.


Caution: I'm talking about the default connector. Other connectors 
(tcnative also known as APR, or the NIO connector in TC 6) have a 
different design.


I guess what you want to know is, if your Tomcat is able to cope with 
the load. If not, you will very quickly see the thread pool increasing 
the number of threads until it reaches the configured maximum. So having 
a look at the thread pool size is a good indicator. Each pool has an 
MBean in JMX with name ThreadPool. There you can see the 
currentThreadCount and the currentThreadsBusy.


But: Ajp uses persistent connections. So an established connection can 
be busy even if the thread handling it doesn't have to work on a request 
and is simply waiting (possibly for a long time) for the next request. 
From the point of view of the MBean, it will then be busy. From the 
point of view of request load, it is idle :(


To increase the precision of the observation, you can use the 
connectionTimeout on the Connector, to allow Tomcat to close AJP 
connections, that didn't send a new request for some time. Don't go to 
extremes, because those will hurt performance. To check how far away 
from thread pool exhaustion you are, it's not necessary to configure 
extremely short connectionTimeouts. a Timeout between one and then 
minutes is fine in most cases.


The ultimate answer to how many requests are we processing now is 
looking at a thread dump (kill -QUIT, goes to catalina.out). 
Unfortunately you shouldn't really do that in monitoring.


HTH

Rainer


Thanks
Sri


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RES: url redirection

2008-03-27 Thread ChrisS
Ok so if you are using Two Tomcat nodes and you want to redirect to each of 
the Nodes in question through an Apache rewrite rule and give the 
transparency of the same URL. I am not sure you can do this


1. Are you doing this to load balance between the Two Tomcat instances.
2. You aren't bothered about loadbalancing between the Two Tomcat Nodes.

Either way I can only see that by using a different URL is your binding.
To give true transparency of URL(sameness), wouldn't it just be better to 
Loadbalance?


I would start by downloading the latest version of Apache 2.2.8. You may 
need to download Sun Studio 11 but hold fire on this. Lemme spark up the 
Solaris box, to remember the steps. The proxy through mod_jk is highly 
recommended on the sites I have researched I downloaded this version 1.2.26.


There was an issue with the Global Zone and the local zone using header 
files so Sun Studio 11 could be required, again it may not, Sun Studio 12 is 
beautiful it picks out weaknesses in the code itself. GNU Make should do the 
trick, so once everything is in place. Then comes the build, which I wrapped 
around the installation i.e path variables.


We could opt for the quicker option, if it works that is. Meaning I give you 
the mod_jk module ready compiled and you include it in your modules/libexec 
subdirectory.


Chris S

- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 7:15 PM
Subject: Re: RES: url redirection



all I want is to redirect from apache to tomcat. That
I was able to do using rewrite rule
however, I want the redirection to be transparent (no
changes in url) so i thought of using P flag.

if ur method can do this please share how to do it.
thanks
--- ChrisS [EMAIL PROTECTED] wrote:


I worked with Solaris 10's apache and found that I
had to download the
apache source code eventually and rebuild it myself.
I found a few bugs in
2.2.8's configure scripts, what I am using now but I
got it to work, if you
are up for it I could help out!

I never used the P proxy flag in httpd.conf, I used
jk_mod.1.2.6 (but this
is jk_mod.1.2.7 really) then to get apache to
communicate with the tomcat
nodes I set up a worker file included it in
httpd.conf, that with the jk_mod
included in httpd's module section and I was
accessing Tomcat through two
worker ports set up in apache. Is this what you are
trying to do?
Chris S

- Original Message - 
From: Melanie Pfefer [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 27, 2008 4:23 PM
Subject: Re: RES: url redirection


 Hello
 Actually I was able to define a rewrite rule in
 apache:

 RewriteRule ^/(.*web:jar.*)
http://zeus:8086/src/$1
 [R=301,L]

 now
 http://zeus/web:jar:001
 redirects to
 http://zeus:8086/src/web:jar:001

 But if I tried to change the flag to P (proxy) in
 httpd.conf
 the apache error file gives:
 [Thu Mar 27 17:18:58 2008] [error] [client
 172.21.194.71] File does not exist:
 /usr/local/apache2/htdocs/src, referer:
 http://zeus/web:jar:001

 the tomcat gives:

 Your request is:
http://zeus:8086/src/web:jar:001
 Patj info is: web:jar:001
 Session (1A578677550D1A75793540B152A8D6B6) has
been
 added to the list of valid Sessions
 MY path info in treeview is: web:jar:001


 I suspect I should something on tomcat to all this
 operation. right?

 I am using Solaris 10 - apache 2.2.4 and tomcat 6


 --- ChrisS [EMAIL PROTECTED]
wrote:

 Melanie are you using FreeBSD or OpenBSD? I am
going
 back a bit but I
 remember using Zeus on OpenBSD.

 The way I set up clustering recently was through
a
 workers.properties file
 which I stored in the apache/conf subdirectory.
To
 start with you have to
 make sure all the prerequisites are in place. If
you
 are using a version of
 Apache that supports it you need to DSO the
mod_jk
 module into this (if you
 haven't done this already) with
 ./configure
 --with-apxs=/usr/local/apache/bin/apxs. This
won't
 work unless
 you have mod_ssl installed !make sure the version
 you have supports it!. For
 example if you are using an APACI version, you
may
 face problems. If you do
 have mod_ssl installed and are witnessing
problems
 note the error whilst
 trying to launch Apache. I witnessed numerous
errors
 whilst trying to build
 1.3.39, 1.3.4, 2.0.x 2.2.x this way.

 - Original Message - 
 From: Melanie Pfefer

[EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, March 27, 2008 12:31 PM
 Subject: Re: RES: url redirection


  Hi,
 
  thanks for your reply. what I want is to
redirect
 
  http://zeus:8085/web/sec:jar:001
 
  to
 
 
  http://zeus:8086/src/web:sec:jar:001
 
  The first one is on apache
  the 2nd one is on tomcat
 
  thanks again
  --- Milanez, Marcus
[EMAIL PROTECTED]
  wrote:
 
  Hi,
 
  I'm not completely sure about what you want,
but
 you
  can redirect urls according to a given pattern
  between 

Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread nmset
Hello,

I'm having a problem with PNG images served by Tomcat through mod_jk on 
Apache web server on Linux.

When pages are browsed bt Internet Explorer, PNG images are converted to GIF 
but the GIF images are very small.

Here is the result of :
# file ./jbb000.png
./jbb000.png: PNG image data, 553 x 575, 8-bit/color RGB, non-interlaced

and 

# identify ./jbb000.png
./jbb000.png PNG 553x575 553x575+0+0 DirectClass 8-bit 28.1562kb

It's not a transparency problem.

I've searched the web and Tomcat documentation but could not find any 
information about why it is so and how to resolve it.

Firefox does display the PNG images faithfully.

Any help will be of great interest to resilve this problem.

Thank you.

SET
[EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Vista SP1 -- file.io always writes files as BUILTIN\Administrators

2008-03-27 Thread Pete L

Hi, yes I know the greater question is, why am I running a webserver on
Vista... the reason is that I built a powerful Media center PC which doubles
as a webserver.

Anyway, I upgraded to SP1 at the same time I upgraded to Tomat 6.0.16 --
which fixed some problems I was having configuring Liferay.

But now my deployments of Jurgen Weber's wonderful jFM and jGallery are not
behaving.

The idea is that my users can upload zip files full of photos via jFM, then
hit the directory with jGallery to generate thumbnails and view the album.

Since my last update, jGallery keeps getting a permission denied when
manipulating images that were uploaded with jFM.

I made sure there were no handles still on any files.

The odd thing is that all uploaded files are owned by
BUILTIN\Administrators, even though I have the Tomcat service running under
my login (Pete -- which is an administrator).

Before my upgrade, all files uploaded via jFM or manipulated/written by
jGallery were owned by my login Pete.

UAC is turned off.  Running tomcat from startup.bat does not fix the
problem.

Windows permissions are so lame!

Any ideas?  Thanks!
pete
-- 
View this message in context: 
http://www.nabble.com/Vista-SP1file.io-always-writes-files-as-BUILTIN%5CAdministrators-tp16340045p16340045.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread Rainer Jung

[EMAIL PROTECTED] schrieb:

Hello,

I'm having a problem with PNG images served by Tomcat through mod_jk on 
Apache web server on Linux.


When pages are browsed bt Internet Explorer, PNG images are converted to GIF 
but the GIF images are very small.


Here is the result of :
# file ./jbb000.png
./jbb000.png: PNG image data, 553 x 575, 8-bit/color RGB, non-interlaced

and 


# identify ./jbb000.png
./jbb000.png PNG 553x575 553x575+0+0 DirectClass 8-bit 28.1562kb

It's not a transparency problem.

I've searched the web and Tomcat documentation but could not find any 
information about why it is so and how to resolve it.


Firefox does display the PNG images faithfully.

Any help will be of great interest to resilve this problem.


Does the problem go away, if you retrieve the png with IE directly from 
Tomcat, using the Tomcat http connector? With this test you can find 
out, if it is more a mod_jk problem or a Tomcat/webapp problem.



Thank you.

SET
[EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to access AJP Queue through JMX

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sri,

Two posts is sufficient. Please stop re-porting.

Wait, no, only one post is sufficient.

srinivasch wrote:
|I am trying to find a way to access AJP Queue through JMX or any other
| way possible. I am using Tomcat 5.5.20 and I have clusters configured. I
| want to know whether the AJP Queue is full or not. Appreciate if
anyone has
| any idea how to go about.

Have you been posting the same question all week, or is it other people?
I feel like I keep seeing this question come up. Have you tried
searching the (recent) archives?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfsJmcACgkQ9CaO5/Lv0PBfAACeM42zNZuFhenYZUOBypYch+SB
j2sAnRiybFel6mL8w6/+9FWftvwCd9b3
=6uOg
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat mod_jk PNG resized to GIF with IE : too small

2008-03-27 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Set,

[EMAIL PROTECTED] wrote:
| I'm having a problem with PNG images served by Tomcat through mod_jk on
| Apache web server on Linux.
|
| When pages are browsed bt Internet Explorer, PNG images are converted
to GIF
| but the GIF images are very small.

Do you convert the images to GIF on the server, or are you saying that
MSIE does something, here?

If on the server, how are you performing the transcoding?

| Firefox does display the PNG images faithfully.

Does MSIE display the PNG images at the right size if you don't try to
convert to GIF on the fly?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfsJzoACgkQ9CaO5/Lv0PBxrQCeLjOclkwkFUEHhgPA4VyBogQW
P4IAniuj+fMKIlzTN3CTCeBYE13ia5ko
=4/w3
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TOMCAT SSL SLES 10

2008-03-27 Thread Angel Camacho Villan
hi,
i need install ssl,
how i can do this?


Re: TOMCAT SSL SLES 10

2008-03-27 Thread Mark Thomas

Angel Camacho Villan wrote:

hi,
i need install ssl,
how i can do this?


It helps if you say which version of Tomcat you are using. For all 
versions, you just need to read the documentation. If you are using Tomcat 
6.0.x then the page you want is 
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread wicket0123

It matters to us because we are talking about response time of under 10ms for
500 concurrent users.  Our internal application metrics are in the
nano-seconds.  If the container adds a lot of overhead, we may want to
switch to other containers.

For scalability testing, our testing is done in a closed network.  All
machines are on same subnet, so we eliminate network being the bottleneck
here.  If anything, it will be either: client machine, server machine, app
code, DB.  No firewall or anything in between for initial test.

Basically, I used JMeter to run 500 concurrent users against our app.  The
response time shown by JMeter is the total response time.

total response time = network round trip + time spend on server

network round trip = time spend sending request + time spend receiving
response
time spend on server = time spend running container code + time spend
running app code + time spend talking to DB (include db round trip)

Let's take an example using my results,

JMeter reports that for 500 concurrent users making request to our
application, the average response time was 1 second.  That already broke our
SLA which is 15 milliseconds.

My questions that needs to be answered:

1) out of that 1 second, how much was due to network?
2) out of that 1 second, how much was spend running our application code?  I
got this, we have internal metrics
3) out of that 1 second, how much was spend running tomcat code?

this maybe a bit off track to the initial question, but those are the things
Im trying to answer.  I've been looking at tools like Manage Engine which
shows you average response time which they claim is time spend in tomcat. 
However, they only show down to the millisecond level.  And, if they're able
to show that, it means that they're calling some tomcat APIs.  I want to
know which APIs, so that I can write my own program to query them.













Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Wicket,
 
 wicket0123 wrote:
 | Hi Charles,
 |  Thanks for the reply.  JMeter doesn't help me here because the
 response
 | time includes network time.  The reason I'm looking into the tomcat API
 is
 | because i want a way to query tomcat for the numbers.  So, the metrics
 I am
 | after are:
 |
 | 1) How much time was spend in tomcat? no network
 
 You can't get this information without a real profiler, which will, of
 course, interfere with performance.
 
 | 2) How much time was spend on the servlet?
 
 The best you can do, here, is to write yourself a Filter (or Valve, I
 suppose) and simply take timestamps. As with all instrumentation, taking
 samples takes time. Rest assured that reading the system clock is /very/
 fast. ;)
 
 I suppose if you know the total response time and the servlet time, you
 could simply subtract the servlet time to see how much Tomcat overhead
 is in there. Does it really matter?
 
 | 3) What is the overall average response time for a request when there
 are X
 | number of users active?
 
 To me, this all comes down to /useful/ metrics. For instance: who cares
 what the response time is on the server for a single request? Nobody,
 that's who. This last metric is the only useful one you've requested,
 and I would argue that you ought to do it over a network (even if it's a
 local one).
 
 All users will be remote. Why artificially lower your response times
 when everyone will have /at least/ the overhead of going over a local
 network segment?
 
 Unfortunately, your choices are:
 - - instrument your server and get inaccurate, but fine-grained data
 - - instrument your client and get accurate, but somewhat coarser data
 
 Just my two and a half cents (US dollar really sucks these days),
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkfr4RMACgkQ9CaO5/Lv0PCYHQCfa+hDE77eSM476JmIqVpv2/ed
 3DgAoKQEvRO7KJOp3swJ21sMwjAcHOX7
 =2q9H
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Checking-tomcat-metrics-in-a-non-intrusive-way-tp16319903p16341386.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat does not start

2008-03-27 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=8839 Posted on behalf of 
a User

Only one thing we have to do, to copy the file name msvcr71.dll from you jre 
directory installation (ex: C:\Program Files\Java\jre1.6.0_03\bin) to the bin 
folder of tomcat´s intallation  (ex: C:\Archivos de programa\Apache Software 
Foundation\Tomcat 5.0\bin), it really fixed that f.u.c.k.i.n.g problem, so i 
hope you can too

In Response To: 

Hi there,
I'm having problems running Apache Tomcat 6 (But the
same happens with Tomcat 5.0) on a Windows XP home
computer with Sun JRE 1.6.0_01. I've installed the
same configuration on other machines with successfull
results...
the log message follows:
[2007-05-18 00:37:09] [986  prunsrv.c] [error] Failed
creating java
C:\Programmi\Java\jre1.6.0_01\bin\client\jvm.dll
[2007-05-18 00:37:09] [1260 prunsrv.c] [error]
ServiceStart returned 1
[2007-05-18 00:37:09] [info] Run service finished.
[2007-05-18 00:37:09] [info] Procrun finished.

Do you guys have any idea about this?

Thanks
Francesco


  ___ 
L'email della prossima generazione? Puoi averla con la nuova ... Mail: 
http://it.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Memory leak in Tomcat 5.5.16

2008-03-27 Thread Tom Price
Christopher,

Christopher Schultz wrote:
 Have you been able to compare the numbers of those objects after, say,
 100 requests with the same object counts after, say, 1 requests?
It
 /is/ possible that Tomcat is leaking memory per connection, but very
 unlikely given that thousands of servers are humming along quite
nicely
 without such problems.

Thanks for the suggestions.  I have looked at the change in number of
objects over time, and the only objects that appear to be leaked
consistently are the following (the number is the increase in object
count over a typical 10 minute period, with about 2000 requests):

org.apache.tomcat.util.buf.ByteChunk10437
org.apache.tomcat.util.buf.CharChunk8946
org.apache.tomcat.util.buf.MessageBytes 7881

Other object types, including byte[] and char[], vary wildly in each 10
minute period, presumably depending on exactly what's going on at the
time of the sample.

I'm trying to find a tool that will show me which objects are holding
onto references to these Tomcat objects, but haven't had much success so
far - any suggestions gratefully received.

 The only really good way to figure out what's happening is to
instrument
 your JVM and then test the hell out of it. Use JMeter to generate load
 (serial or concurrent) and observe the heap, etc. You might even try
to
 disable some of the SOAP methods you are testing to see if this leak
 only occurs with certain calls, or combinations of calls.

That's what I'm doing now...  I will also try Filip's suggestion of
disabling string caching.  Sadly jmap doesn't work on this system
because the heap is large and jmap always crashes with an
OutOfMemoryError due to the 2GB heap limit in the JVM.  I haven't used
JMeter before but will look into it.

Thanks,
Tom.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Checking tomcat metrics in a non-intrusive way

2008-03-27 Thread Alan Chaney
In the real world what network connections will exist between you and 
your real clients?


How many ports do you have on your server?

How fast are they?


How big are the pages being requested? Including images, css files etc?

If you have 500 concurrent users will you have 500 times the traffic on 
the wire? or will you have some intermediate caching? You talk of a db 
so it is unlikely that caching can be used to much effect.


If have (say) 100kbytes total per transfer x 500 = 50 MBytes for 500 
people each making one request. Unless you can guarantee a GB connection 
to them all the thing that's going to take the most time is the time to 
transfer that data over the wire.


50 Megbytes (I spell it out to be clear what I am talking about) is 400 
megabits If you have a 100 megabit connection to your clients then about 
5 s will of delay (latency) will have to be shared between your clients. 
Some will get less, some will get more latency


In the real world very few end users have even a 100 Mbit point to point 
connection to the server. If you factor in the 'down the wire' time for 
someone with a dodgy cable connection then a response time of 250 ms 
would be good for a given individual.


I have spent a lot of time recently tuning and examining the peformance 
of tomcat and I came to the conclusions:


1. On a modern machine it takes very little time indeed for tomcat to 
process an incoming request.
2. As the number of requests goes up the probability of issues with I/O 
outside of the 'control' of tomcat become prevalent.
3. In the real world with real applications its things like database 
access which dominate performance.
4. Users' network connections are probably a major peformance issue 
unless you have extremely good connections between the server and the 
clients.


You suggested earlier that you might have to use an alternative. Out of 
interest what alternatives are you considering?





wicket0123 wrote:

It matters to us because we are talking about response time of under 10ms for
500 concurrent users.  Our internal application metrics are in the
nano-seconds.  If the container adds a lot of overhead, we may want to
switch to other containers.

For scalability testing, our testing is done in a closed network.  All
machines are on same subnet, so we eliminate network being the bottleneck
here.  If anything, it will be either: client machine, server machine, app
code, DB.  No firewall or anything in between for initial test.

Basically, I used JMeter to run 500 concurrent users against our app.  The
response time shown by JMeter is the total response time.

total response time = network round trip + time spend on server

network round trip = time spend sending request + time spend receiving
response
time spend on server = time spend running container code + time spend
running app code + time spend talking to DB (include db round trip)

Let's take an example using my results,

JMeter reports that for 500 concurrent users making request to our
application, the average response time was 1 second.  That already broke our
SLA which is 15 milliseconds.

My questions that needs to be answered:

1) out of that 1 second, how much was due to network?
2) out of that 1 second, how much was spend running our application code?  I
got this, we have internal metrics
3) out of that 1 second, how much was spend running tomcat code?

this maybe a bit off track to the initial question, but those are the things
Im trying to answer.  I've been looking at tools like Manage Engine which
shows you average response time which they claim is time spend in tomcat. 
However, they only show down to the millisecond level.  And, if they're able

to show that, it means that they're calling some tomcat APIs.  I want to
know which APIs, so that I can write my own program to query them.













Christopher Schultz-2 wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wicket,

wicket0123 wrote:
| Hi Charles,
|  Thanks for the reply.  JMeter doesn't help me here because the
response
| time includes network time.  The reason I'm looking into the tomcat API
is
| because i want a way to query tomcat for the numbers.  So, the metrics
I am
| after are:
|
| 1) How much time was spend in tomcat? no network

You can't get this information without a real profiler, which will, of
course, interfere with performance.

| 2) How much time was spend on the servlet?

The best you can do, here, is to write yourself a Filter (or Valve, I
suppose) and simply take timestamps. As with all instrumentation, taking
samples takes time. Rest assured that reading the system clock is /very/
fast. ;)

I suppose if you know the total response time and the servlet time, you
could simply subtract the servlet time to see how much Tomcat overhead
is in there. Does it really matter?

| 3) What is the overall average response time for a request when there
are X
| number of users active?

To me, this all comes down to /useful/ metrics. For instance: 

Re: Vista SP1 -- file.io always writes files as BUILTIN\Administrators

2008-03-27 Thread Hassan Schroeder
On Thu, Mar 27, 2008 at 3:47 PM, Pete L [EMAIL PROTECTED] wrote:

  Hi, yes I know the greater question is, why am I running a webserver on
  Vista... the reason is that I built a powerful Media center PC which doubles
  as a webserver.

  Any ideas?

In the absence of any experience with Vista, I'll suggest getting a
copy of VMware and running your web server in a VM under your
choice of BSD/Linux/Unix.   :-)

Seriously. Lif'e's too short.

FWIW,
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat load balanced with Apache HTTP Server and mod_jk

2008-03-27 Thread frannack Guimard

Rainer,

I'm trying your solution of using apachectl graceful. The only problem is that 
it needs to be executed as root. I tried to write a perl cgi script to change 
automatically my worker.properties which works fine, but then, if I tried to 
run the apachectl command from inside the cgi script, I get a permission 
denied. I even tried to set the httpd user nobody in sudoers without password 
but it does not work either (I don't know why). I'm so close since when I 
manually do the apachectl command it does work, I just need to find a way to 
run this from the cgi script.

Does anyone could help?

Thank you.

Franck

 Date: Fri, 29 Feb 2008 10:43:56 +0100
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: Tomcat load balanced with Apache HTTP Server and mod_jk
 
 Hi Frannack,
 
 No, not at the moment.
 
 A partial workaround: add all balamncer members you are assuming to 
 become valid in the future and put those, which don't yet exist into 
 activation=Stopped
 
 Then you can put them into active without restart, once you build them up.
 
 BTW: apachectl graceful is not *that* bad any more (but it destroys 
 non-persistent JK activation).
 
 Regards,
 
 Rainer
 
 frannack Guimard wrote:
 
 
 Hello,
 
 Is there a way to add a Balancer Member to Apache HTTP Server on the fly?
 
 I'm using Apache 2.2, Tomcat 5.5 and mod_jk. I have a Apache HTTP Server 
 load balance request on the pool of workers (tomcat instances).
 When I add a new worker, I would like Apache HTTP Server to be notify so it 
 can add it on its balancer member list. I don't care if it's not persistent 
 after reboot of the Apache HTTP Server.
 
 Thank you,
 
 Frannack
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Watch “Cause Effect,” a show about real people making a real difference.  Learn 
more.
http://im.live.com/Messenger/IM/MTV/?source=text_watchcause
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems with apache mod-rewrite and modjk

2008-03-27 Thread Randy Paries
Hello,

i am running apache-tomcat-5.5.15 on a FC4 box

First i need to explain a little how my site is set up..

We have 1000's of users that have their own  document directory

So for example a users URL is http://www.mydomain.com/randy
their document root is /home/users/r/randy

as another example http://www.mydomain.com/fred would be
their doc root would be  /home/users/f/fred

currently they go to http://www.mydomain.com/fred/index.html and i
want to replace index.html with index.jsp

So if i do http://www.mydomain.com/fred/index.jsp , i get:

404 - message /fred/index.jsp
description The requested resource (/fred/index.jsp) is not available.

i do not want my users to have to do http://www.mydomain.com/f/fred/index.jsp

I did find an article that suggested making sure to load mod_jk before
mod_rewrite

But i am not sure what else i Need to do

Any Suggestions? or is this even possible?

Thanks
Randy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Shutdown Hook in Tomcat 5.5.26

2008-03-27 Thread Ho Fat Tsang
Dear all tomcat expert,

   I am falling a scenario which my shutdown hook has not been executed when
the tomcat stop normally. I.e. through the SHUTDOWN script / SHUTDOWN
command / NT services shutdown. Tomcat looks everything when shutdown but
nothing related to shutdown hook has been called.

  The shutdown hook i implemented is just a dummy thread like below:

public class TestThread extend Thread
{
 public void run()
 {
   System.out.println(Invoking shutdown);
 }
}


  The hook is executed ONLY when i press CTRL+C using console but it is not
desired solution as my projects required it should run under service /
daemon mode.

Regards,
Twinsen.


Tomcat tutorial

2008-03-27 Thread Sam Wun
Hi,

I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects) I 
can download from the web?

Thanks
S


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: Tomcat tutorial

2008-03-27 Thread Patrick Fong
I find developerworks.ibm.com a good source of example projects.

tomcat.apache.org has a couple, but not as good as others.

On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote:

 Hi,

 I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects)
 I can download from the web?

 Thanks
 S



  
 
 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



Re: Tomcat tutorial

2008-03-27 Thread Sam Wun



- Original Message 
From: Patrick Fong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 28, 2008 2:53:49 PM
Subject: Re: Tomcat tutorial

 I find developerworks.ibm.com a good source of example projects.
Thanks for the info. But I can't open this webpage.

Thanks
S




tomcat.apache.org has a couple, but not as good as others.

On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote:

 Hi,

 I am new to Tomcat. Is there any Tomcat tutorial (eg. example of projects)
 I can download from the web?

 Thanks
 S



  
 
 Be a better friend, newshound, and
 know-it-all with Yahoo! Mobile.  Try it now.
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: Tomcat tutorial

2008-03-27 Thread Patrick Fong
try ibm.com/developerworks

On Fri, Mar 28, 2008 at 3:17 PM, Sam Wun [EMAIL PROTECTED] wrote:




 - Original Message 
 From: Patrick Fong [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, March 28, 2008 2:53:49 PM
 Subject: Re: Tomcat tutorial

  I find developerworks.ibm.com a good source of example projects.
  Thanks for the info. But I can't open this webpage.

 Thanks
 S




 tomcat.apache.org has a couple, but not as good as others.

 On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote:

  Hi,
 
  I am new to Tomcat. Is there any Tomcat tutorial (eg. example of
 projects)
  I can download from the web?
 
  Thanks
  S
 
 
 
 
  
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 



  
 
 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs



Re: Tomcat tutorial

2008-03-27 Thread Sam Wun



- Original Message 
From: Patrick Fong [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 28, 2008 3:25:46 PM
Subject: Re: Tomcat tutorial

try ibm.com/developerworks
Hi, this works for me.
But where should I go into in order to download tomcat tutorials?

Thanks
sam

On Fri, Mar 28, 2008 at 3:17 PM, Sam Wun [EMAIL PROTECTED] wrote:




 - Original Message 
 From: Patrick Fong [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, March 28, 2008 2:53:49 PM
 Subject: Re: Tomcat tutorial

  I find developerworks.ibm.com a good source of example projects.
  Thanks for the info. But I can't open this webpage.

 Thanks
 S




 tomcat.apache.org has a couple, but not as good as others.

 On Fri, Mar 28, 2008 at 2:32 PM, Sam Wun [EMAIL PROTECTED] wrote:

  Hi,
 
  I am new to Tomcat. Is there any Tomcat tutorial (eg. example of
 projects)
  I can download from the web?
 
  Thanks
  S
 
 
 
 
  
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 



  
 
 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ