Re: cannot start tomcat

2003-09-15 Thread Yang Soon Chiao
I put tomcat installation file in /usr/local
then, i un-tar it.


- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 8:37 PM
Subject: RE: cannot start tomcat



 Howdy,
 Looks like a badly installed tomcat - how did you install it?

 Yoav Shapira
 Millennium ChemInformatics
 -Original Message-
 From: Yang Soon Chiao [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 3:49 AM
 To: [EMAIL PROTECTED]
 Subject: cannot start tomcat

 using Tomcat 4.1.27 with Red Hats 8.0 and J2SDK 1.4.1 and I got this error
messages when starting tomcat. I attached my server.xml.

 Below is the error message i get from catalina.out:
 
 ERROR reading /usr/local/jakarta-tomcat-4.1.27/conf/server.xml at line 24
/Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

 Catalina.start:java.lang.ClassNotFoundException:
org.apache.catalina.mbenas.ServerLifecycleListener
 java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
 

 Please advise. Thanks



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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



core dump while loading mod_jk2 - urgent

2003-09-15 Thread Ajay Arora
Greetings,
   I am using Apache 2.0.47, tomcat 4.1.27on AIX 5.1. Both apache and 
tomcat are running separately. I was successfully able to build mod_jk2.so 
file and copied it into apache module directory. I put a line LoadModule 
jk2_module modules/mod_jk2.so in httpd.conf. When I try to start it, it 
gives error apachectl[75]: 28924 Segmentation fault(coredump). THere was 
nothing in the error_log. When I remove that line it runs okay. Please help.

Regards,
Ajay
_
The hottest things. The coolest deals. http://www.msn.co.in/Shopping/ Get 
them online!

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


Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread Mats Andersson
How do I define two workers for load balancing in workers2.properties? 
There is
an example for the old jk, but I can't find any for jk2.

Thanks in advance!
Mats
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread jerome moliere
Mats Andersson wrote:

How do I define two workers for load balancing in workers2.properties? 
There is
an example for the old jk, but I can't find any for jk2.
Hi mats,
i'm sure that the idea is the same
define 1 worker for your first TC5
 1 worker for the second TC5
 1 worker as the load balancer
 then you can define weights for respecting differences of 
power for the 2 machines...

HTH

Jerome



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


Authentication strategies

2003-09-15 Thread jerome moliere
Hi all,
I'd like to authenticate users on a LDAP tree (using something like the 
JNDIRealm) that's OK
But I'd like not to have the post 401 browser POPup window but a custom 
form (with links for retrieving its password  some other
gadgets)
I guess that this is not a very uncommon thing ?
So i wondered about setting up a filter ,getting the Authentication 
header  comparing it with the values BASIC ... (constants exist)
Is it the classic way for such job ?
any other clue welcomed

Cheers
jerome


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


To Access File in Linux.

2003-09-15 Thread Anitha K Rao
Hi,

   I have to find a solution for this. Can Anybody help me.

My Tomcat is on Windows.
My database server is on Windows/Linux.
My Actual Content which I need to put onto database is on AIX machine. 
Client can be a window/linux user.

 How can I access from Java, files which are present on AIX machines?




Best Regards
Anitha


Re: Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread Mats Andersson
Thanks for your reply, but I need something more specific. I don't think 
the syntax of the workers.properties
is the same as in workers2.properties, so I would like to know _how_ to 
define the load balancer.
Does anyone have an example workers2.properties file?

Thanks!

Mats

jerome moliere wrote:

Mats Andersson wrote:

How do I define two workers for load balancing in 
workers2.properties? There is
an example for the old jk, but I can't find any for jk2.


Hi mats,
i'm sure that the idea is the same
define 1 worker for your first TC5
 1 worker for the second TC5
 1 worker as the load balancer
 then you can define weights for respecting differences of 
power for the 2 machines...

HTH

Jerome



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



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


Re: JNDI lookup from console app

2003-09-15 Thread Anton Tagunov
Hello James!

JD I'm trying to lookup a DataSource using JNDI configured within Tomcat (I'm
JD not using JBoss) from an application that isn't in the container (i.e. a
JD console app). 

JD 1. Is Tomcat's JNDI available to application outside of the container?
No they are not.
BTW, how you would imagine it would work?
What sort of communication would be stablished between the console
app and Tomcat? Tomcat serves only HTTP requests and requests from
connectors like mod_jk to plug Tomcat into things like Apache and IIS.
Nothing else. How would JNDI work? Imagine you would get something
for the JNDI node the datasrouce is configured at. Now, how will you
communicate to the datasource? The datasource lives inside Tomcat JVM,
your application runs in another. How would you invoke methods across
JVM? Via RMI or Corba? But then the datasource implementation should
have been running as an RMI or Corba object which it does not.
The JNDI run by Tomcat is for Tomcat inhabitants like JSP-s and
servlets only.

BTW, datasource implementations are not regularly remoted in any
scenario. If you're running a EJB server like JBoss, or Jonas, then
it has datasources configured internally for the use of EJB-s that
it hosts, but only the EJB-s themselves, not the datasources they
use are accessible remotely.

If you need datasource functionality in your console application
create and configure it manually there. Most likely your JDBC
driver has a Datasource implementation bundled in, instantiate
it directly. Or just use DriverManager.getConnection().
If you need pooling use BasicDataSource from jakarta-commons/dbcp
manually on top of your db vendor provided datasource or
DriverManager-compatible driver.


Anton


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



Re: To Access File in Linux.

2003-09-15 Thread mourad jaber
Hi,
It's not java problem. it's cohabitation between Unix world and Windows...
I see 3 ways :
- If it is only read access you need, you can try to use http server
- Use ftp and you can use some common-net classes to use it in java.
- Install samba on your AIX and mount share directory on your windows 
and use it as local filesystem...

Mourad

Anitha K Rao wrote:

Hi,

  I have to find a solution for this. Can Anybody help me.

My Tomcat is on Windows.
My database server is on Windows/Linux.
My Actual Content which I need to put onto database is on AIX machine. 
Client can be a window/linux user.

How can I access from Java, files which are present on AIX machines?



Best Regards
Anitha
 



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


Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:

- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)

I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed at
system boot it doesn't work.  The httpd log contains a web application not
found message, and pages from the application are not available.

I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.

I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do if
the real httpd script is still executing?

- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough

Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and I'd
rather avoid this sort of hack if there's a proper way to do it.

Chris Walker

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



IllegalStateException in catalina.out

2003-09-15 Thread michael . sonnleitner
Hello!

I am using:
TC4.1.24,
jdk1.4.1,
Apache ,
ajp13 connector,
on Unix SunOS 5.8.


I sometimes get following errors in the catalina.out:
java.lang.IllegalStateException: Current state = FLUSHED, new state =
CODING_END
  at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:933)
  at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
  at
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:356)
  at
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412)
  at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
  at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
  at java.io.PrintWriter.close(PrintWriter.java:137)
  at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:483)
  at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:253)
  at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:191)
  at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:488)
  at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
  at java.lang.Thread.run(Thread.java:536)

If I run my programms under WIN2000 and the same configurations as above, I
don't get this erros.

Does anyone has an answer?
Michael Sonnleitner



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



RE: JNDI lookup from console app

2003-09-15 Thread James Dunwoody
Thanks Anton,

My question was brought about because of my experience with Weblogic and
other app servers, where as you describe, a remote lookup is possible of an
EJB. I extrapolated this to include datasources...

I was guessing that some form of client library might be required in order
to facilitate this (like a EJB stub etc).
I was also guessing that once the DataSource was found, the database
protocol would then be used to send the JDBC commands.

My reason for investigating whether a Tomcat-managed DataSource could be
used externally to Tomcat was to get the benefits of having the DataSource
centrally managed (in Tomcat) and available to the web app as well as
allowing me to write a simple test client that could use this DataSource
without needing to run within the container.

I am using DBCP and have a driver-version of my test case completed with a
local configuration. I was just interested to see if I could generalise and
possibly create a better solution by using DataSources.

Thanks again Anton.

James

-Original Message-
From: Anton Tagunov [mailto:[EMAIL PROTECTED]
Sent: Monday, 15 September 2003 9:21 p.m.
To: Tomcat Users List
Subject: Re: JNDI lookup from console app


Hello James!

JD I'm trying to lookup a DataSource using JNDI configured within Tomcat
(I'm
JD not using JBoss) from an application that isn't in the container (i.e. a
JD console app). 

JD 1. Is Tomcat's JNDI available to application outside of the container?
No they are not.
BTW, how you would imagine it would work?
What sort of communication would be stablished between the console
app and Tomcat? Tomcat serves only HTTP requests and requests from
connectors like mod_jk to plug Tomcat into things like Apache and IIS.
Nothing else. How would JNDI work? Imagine you would get something
for the JNDI node the datasrouce is configured at. Now, how will you
communicate to the datasource? The datasource lives inside Tomcat JVM,
your application runs in another. How would you invoke methods across
JVM? Via RMI or Corba? But then the datasource implementation should
have been running as an RMI or Corba object which it does not.
The JNDI run by Tomcat is for Tomcat inhabitants like JSP-s and
servlets only.

BTW, datasource implementations are not regularly remoted in any
scenario. If you're running a EJB server like JBoss, or Jonas, then
it has datasources configured internally for the use of EJB-s that
it hosts, but only the EJB-s themselves, not the datasources they
use are accessible remotely.

If you need datasource functionality in your console application
create and configure it manually there. Most likely your JDBC
driver has a Datasource implementation bundled in, instantiate
it directly. Or just use DriverManager.getConnection().
If you need pooling use BasicDataSource from jakarta-commons/dbcp
manually on top of your db vendor provided datasource or
DriverManager-compatible driver.


Anton


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

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



Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
all commons libraries reside in $CATALINA_HOME/common/lib
MySQL Driver resides in $CATALINA_HOME/common/lib as well
I tried setting up a simple JNDI datasource connection but get the  
following error message:

java.sql.SQLException: Cannot load JDBC driver class 'null'
	at  
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource 
.java:529)
	at  
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja 
va:312)
	at foo.DBTest.init(DBTest.java:24)
	at foo.TestServlet.doGet(TestServlet.java:34)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 

The code and examples are taken from  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource- 
examples-howto.html

I have searched through tons of archives and websites and mostly this  
error could be resolved by placing the driver and commons in the  
common/lib directory. However in my case they are there, so I cannot  
figure out what's the problem...

server.xml:

Context path=/DBTest docBase=DBTest debug=5
 reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_DBTest_log.  
suffix=.txt
timestamp=true/

 Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDB
  parameter
   namedriverClassName/name
   valueorg.gjt.mm.mysql.Driver/value
  /parameter
  parameter
   nameusername/name
   valuexxx/value
  /parameter
  parameter
   namepassword/name
   valuexxx/value
  /parameter
  parameter
   nameurl/name
   valuejdbc:mysql://localhost/javatest?autoReconnect=true/value
  /parameter
 /ResourceParams
/Context
web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  servlet
  servlet-nameDBTestServlet/servlet-name
  description
Bla...
  /description
  servlet-classfoo.TestServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-nameDBTestServlet/servlet-name
  url-pattern/DBTestServlet/url-pattern
  /servlet-mapping
/web-app
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IllegalStateException in catalina.out

2003-09-15 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate

-Tim

[EMAIL PROTECTED] wrote:

Hello!

I am using:
TC4.1.24,
jdk1.4.1,
Apache ,
ajp13 connector,
on Unix SunOS 5.8.
I sometimes get following errors in the catalina.out:
java.lang.IllegalStateException: Current state = FLUSHED, new state =
CODING_END
  at
java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:933)
  at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529)
  at
sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:356)
  at
sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412)
  at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158)
  at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
  at java.io.PrintWriter.close(PrintWriter.java:137)
  at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:483)
  at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:253)
  at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:191)
  at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:488)
  at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
  at java.lang.Thread.run(Thread.java:536)
If I run my programms under WIN2000 and the same configurations as above, I
don't get this erros.
Does anyone has an answer?
Michael Sonnleitner


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



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


Re: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Tim Funk
Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:

Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:
- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)
I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed at
system boot it doesn't work.  The httpd log contains a web application not
found message, and pages from the application are not available.
I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.
I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do if
the real httpd script is still executing?
- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough
Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and I'd
rather avoid this sort of hack if there's a proper way to do it.
Chris Walker
 


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


Re: Authentication strategies

2003-09-15 Thread Tim Funk
This is 2 different questions.

Can I use LDAP for AUthentication. Yes - via JNDIRealm.

Can I perform authentication via an HTML FORM? Yes, via a security constraint 
in web.xml with the type being FORM instead of BASIC. Helping you out furthur 
via the mailing list with respect to the second question will involve MANY 
emails. I recommend google, or a (good) servlet/jsp book to get more 
information about FORM authentication.

Using FORM authentication and JNDIRealm will keep all security constraints 
generic to the spec. Thats a good thing.

-Tim

jerome moliere wrote:

Hi all,
I'd like to authenticate users on a LDAP tree (using something like the 
JNDIRealm) that's OK
But I'd like not to have the post 401 browser POPup window but a custom 
form (with links for retrieving its password  some other
gadgets)
I guess that this is not a very uncommon thing ?
So i wondered about setting up a filter ,getting the Authentication 
header  comparing it with the values BASIC ... (constants exist)
Is it the classic way for such job ?
any other clue welcomed



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


RE: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Aaargh!  I worked to 3am for several days to get webapp set up.  I shouldn't
believe what I read in books.

What's the difference between jk and jk2?  And why is webapp unsupported?

Chris

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 11:46
To: Tomcat Users List
Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux


Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:

 Hi,
 
 I'm having problems coordinating the startup scripts for Apache, Tomcat
 (connected via mod_webapp) and MySQL.  The situation seems to be this:
 
 - mod_webapp requires Tomcat to be already running when httpd starts
 
 - the Tomcat application contains a connection pool that requires MySQL to
 be running when Tomcat starts (this is a crap architecture, but I havn't
 time to change it)
 
 I can execute the startup scripts manually in the sequence
 MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
at
 system boot it doesn't work.  The httpd log contains a web application
not
 found message, and pages from the application are not available.
 
 I've renamed the startup scripts so that the sequence is correct, but it
 still doesn't work.  My guess is that most of the Tomcat startup forks, so
 that the httpd startup is invoked before it has completed.
 
 I can think of two very klugey workarounds: 
 
 - call httpd restart at the end of the Tomcat startup - what will this do
if
 the real httpd script is still executing?
 
 - make the httpd script sleep for a while before it does anything - but
 there's no way to guarantee it will sleep long enough
 
 Alternatively I could add code to the httpd script to see if Tomcat has
 completed its startup.  But I don't know for sure how I would tell, and
I'd
 rather avoid this sort of hack if there's a proper way to do it.
 
 Chris Walker
  


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

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



Problem with Sym links and DefaultContext

2003-09-15 Thread Lars Petersen
Hi
I try to get several apps with symlinks to work. If I set :

Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/

in the Context it works fine, but if I try it in
DefaultContext it wont work.
Any help available?

Thanks 

Lars

-- 
Lars Petersen [EMAIL PROTECTED]
SavIT GmbH, Forstweg 65, 24105 Kiel
Tel: 0431 / 800 959 0   Fax: 0431 / 800 959 9
E-Mail: [EMAIL PROTECTED]   Web: www.savit.de


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



Re: Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread Ashish-Kumar . Balyan

Hi here is a sample workers.properties that you can use.


worker.list=tomcat0, tomcat1, loadbalancer
worker.tomcat0.type=ajp13
worker.tomcat0.host=localhost
worker.tomcat0.port=8009
worker.tomcat0.cachesize=100
worker.tomcat0.lbfactor=100
worker.tomcat1.type=ajp13
worker.tomcat1.host=localhost
worker.tomcat1.port=8011
worker.tomcat1.cachesize=100
worker.tomcat1.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat0,tomcat1

Save the file in the directory .../apache/conf


Then add following lines to httpd.conf
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
IfModule mod_jk.c
   JkWorkersFile .../apache/conf/workers.properties
   JkLogFile .../apache/logs/mod_jk.log
   JkLogLevel warn
   JkMount /servlet/* loadbalancer
   JkMount /*.jsp loadbalancer
/IfModule


Do not forget to put mod_jk.so in directory .../apache/libexec


:-)
AB



|-+---
| |   Mats Andersson  |
| |   mats.andersson@|
| |   xantus.se  |
| |   |
| |   09/15/03 01:40  |
| |   PM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  |
   |
  |To:  Tomcat Users List [EMAIL PROTECTED]  
  |
  |cc: 
   |
  |Subject: Load balancing with 2xTC5, 1xIIS and jk2   
   |
  
---|




How do I define two workers for load balancing in workers2.properties?
There is
an example for the old jk, but I can't find any for jk2.

Thanks in advance!
Mats


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







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



Re: Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread Ashish-Kumar . Balyan

Hi,

My reply was for load balancing with Apache
What I mean is that there should be something similar for IIS.

Regards
AB


|-+---
| |   Mats Andersson  |
| |   mats.andersson@|
| |   xantus.se  |
| |   |
| |   09/15/03 01:40  |
| |   PM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
---|
  |
   |
  |To:  Tomcat Users List [EMAIL PROTECTED]  
  |
  |cc: 
   |
  |Subject: Load balancing with 2xTC5, 1xIIS and jk2   
   |
  
---|




How do I define two workers for load balancing in workers2.properties?
There is
an example for the old jk, but I can't find any for jk2.

Thanks in advance!
Mats


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







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



Re: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Tim Funk
FAQ.
http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim

Walker Chris wrote:

Aaargh!  I worked to 3am for several days to get webapp set up.  I shouldn't
believe what I read in books.
What's the difference between jk and jk2?  And why is webapp unsupported?

Chris

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 11:46
To: Tomcat Users List
Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux
Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:


Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:
- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)
I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
at

system boot it doesn't work.  The httpd log contains a web application
not

found message, and pages from the application are not available.

I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.
I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do
if

the real httpd script is still executing?

- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough
Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and
I'd

rather avoid this sort of hack if there's a proper way to do it.

Chris Walker



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



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


Re: Load balancing with 2xTC5, 1xIIS and jk2

2003-09-15 Thread Mats Andersson
Thank you for your answer. The configuration file below works for jk, 
but I want to use jk2 because it
does not cause exceptions to be thrown at startup and it does not hang 
tomcat during shutdown in later
tomcat releases (has something to do with Managed beans).

I have found some information about jk2 configuration that may solve my 
problem. I will post a sample workers2.properties
here if it works. I think there is a default load balancer named lb:0 
that is used if no load balancer is defined.

Mats

[EMAIL PROTECTED] wrote:

Hi here is a sample workers.properties that you can use.

worker.list=tomcat0, tomcat1, loadbalancer
worker.tomcat0.type=ajp13
worker.tomcat0.host=localhost
worker.tomcat0.port=8009
worker.tomcat0.cachesize=100
worker.tomcat0.lbfactor=100
worker.tomcat1.type=ajp13
worker.tomcat1.host=localhost
worker.tomcat1.port=8011
worker.tomcat1.cachesize=100
worker.tomcat1.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat0,tomcat1
Save the file in the directory .../apache/conf

Then add following lines to httpd.conf
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
IfModule mod_jk.c
  JkWorkersFile .../apache/conf/workers.properties
  JkLogFile .../apache/logs/mod_jk.log
  JkLogLevel warn
  JkMount /servlet/* loadbalancer
  JkMount /*.jsp loadbalancer
/IfModule
Do not forget to put mod_jk.so in directory .../apache/libexec

:-)
AB


|-+---
| |   Mats Andersson  |
| |   mats.andersson@|
| |   xantus.se  |
| |   |
| |   09/15/03 01:40  |
| |   PM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
 
---|
 | 
  |
 |To:  Tomcat Users List [EMAIL PROTECTED]   
 |
 |cc:  
  |
 |Subject: Load balancing with 2xTC5, 1xIIS and jk2
  |
 
---|


How do I define two workers for load balancing in workers2.properties?
There is
an example for the old jk, but I can't find any for jk2.
Thanks in advance!
Mats
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






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



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


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Martin Jacobson
Ilja wrote:
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my 
parameters are different:
	ResourceParams name=jdbc/EuratomDB
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		parameter
			namemaxActive/name
			value100/value
		/parameter
		parameter
			namemaxIdle/name
			value3/value
		/parameter
		parameter
			namemaxWait/name
			value100/value
		/parameter
		parameter
			nameusername/name
			valuexxx/value
		/parameter
		parameter
			namepassword/name
			valuexxx/value
		/parameter
		parameter
			namedriverClassName/name
			valuecom.mysql.jdbc.Driver/value
		/parameter
		parameter
			nameurl/name
			valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
		/parameter
	/ResourceParams

This works for me! The main diffs are (i) I specify the factory, and 
(ii), the driverClassName is com.mysql.jdbc.Driver

However, the exception seems to suggest that the correct factory is 
being used by default. Your driverClassName is the old name, and might 
not be in the jar file any more.

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


Re: xsl and 4.1.27

2003-09-15 Thread Petter Karlström
Me again...

For the records xsl works fine with jakarta-taglibs-standard-1.1.0-B1 
and Tomcat 4.1.27! However, B1 is of course a beta, and generates some 
suspicious error messages when starting tomcat.

Now, I still wonder if I really am the only one to experience these 
problems? A simple xsl transformation such as this should be fairly 
commonplace. However, I can't find any information about pecularities or 
bugs on the web or on this list.

cheers

/Petter



Petter Karlström wrote:

Hi,

The problem quoted below is still driving me up the walls!

Now, I've also tried installing the taglibs in  /common/lib/ (instead of 
the app's lib) and fixed some presumably unrelated differences between 
the server.xml files.

Am I the only one to have this problem?

I want to try installing version 4.1.12 on my Windows machine, but I 
fail to find any old versions for download. Anyone know where I can find 
one?

Petter Karlström wrote:

Hi all,

I'm trying to get a simple x:transform to work after moving to a new 
version of Tomcat. The old version was 4.1.12 and the new one is 4.1.27.

The JSTL .jars are installed in my application's /WEB-INF/lib/ I've 
tried version 1.0.3 of the taglibs as well as older ones with the new 
tomcat.

Here's a code snippet:

%@ taglib prefix=x uri=http://java.sun.com/jstl/xml; %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
c:import url=test.xml var=xmlfile /
c:import url=test.xsl var=stylesheet /
x:transform xslt=${stylesheet} xml=${xmlfile} /

This works fine on my 4.1.12 on Solaris. However, 4.1.27 on Windows 
and Linux generates
org.apache.jasper.JasperException: The output format must have a 
'{http://xml.apache.org/xalan}content-handler' property!

Any clues?

/Petter Karlstrom





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


RE: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Andy Eastham
Chris,

Webapp is unsupported because JK is better and noone in the open source
community wants to support it.  Are you volunteering ;-)

Andy

 -Original Message-
 From: Walker Chris [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:58
 To: 'Tomcat Users List'
 Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux


 Aaargh!  I worked to 3am for several days to get webapp set up.
 I shouldn't
 believe what I read in books.

 What's the difference between jk and jk2?  And why is webapp unsupported?

 Chris

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:46
 To: Tomcat Users List
 Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux


 Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

 jk, jk2 allow for either side to go down and all is still ok when
 it comes
 back up

 -Tim

 Walker Chris wrote:

  Hi,
 
  I'm having problems coordinating the startup scripts for Apache, Tomcat
  (connected via mod_webapp) and MySQL.  The situation seems to be this:
 
  - mod_webapp requires Tomcat to be already running when httpd starts
 
  - the Tomcat application contains a connection pool that
 requires MySQL to
  be running when Tomcat starts (this is a crap architecture, but I havn't
  time to change it)
 
  I can execute the startup scripts manually in the sequence
  MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
 at
  system boot it doesn't work.  The httpd log contains a web application
 not
  found message, and pages from the application are not available.
 
  I've renamed the startup scripts so that the sequence is correct, but it
  still doesn't work.  My guess is that most of the Tomcat
 startup forks, so
  that the httpd startup is invoked before it has completed.
 
  I can think of two very klugey workarounds:
 
  - call httpd restart at the end of the Tomcat startup - what
 will this do
 if
  the real httpd script is still executing?
 
  - make the httpd script sleep for a while before it does anything - but
  there's no way to guarantee it will sleep long enough
 
  Alternatively I could add code to the httpd script to see if Tomcat has
  completed its startup.  But I don't know for sure how I would tell, and
 I'd
  rather avoid this sort of hack if there's a proper way to do it.
 
  Chris Walker
 


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

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





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



pageContext.forward ??

2003-09-15 Thread Julien Martin
Hello,

I am trying to redirect to a servlet called RedirectHome from within a
custom tag.

Within the tag class, I have a method called redirect. This method is
called when a certain condition is met.

I know the method is called thanks to the trace but oddly the
pageContext.forward appears to be ignored. I think I had it working on a 2.3
container but I won't work on the new 2.4 container...

Can anyone help?

Here is the code for the redirect method:

*
 public void redirect() {
System.out.println(redirect called);
try {
 pageContext.forward(RedirectHome);
}
catch (ServletException e) {
 e.printStackTrace();
}
catch (IOException e) {
 e.printStackTrace();
}

}
*

I use Tomcat 5.0

Julien.


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



RE: ManagerServlet (autherization on a percontext basis)

2003-09-15 Thread Shapira, Yoav

Howdy,
You can't just set each Context to have reloadable=true ?  That will
reload their webapp when they edit web.xml...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jaco Kroon [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 14, 2003 12:15 PM
To: [EMAIL PROTECTED]
Subject: ManagerServlet (autherization on a percontext basis)

Hello,

I need to allow users previliges to manage their applications on a
per-context basis.  We are providing students with a webapp, where they
need to build their practical.  However, whenever they change web.xml
they need to be able to restart their webapp.

Considering there are over 300 users I don't want to use the reloadable
feature for the lib and classes directories either, as such I would
prefer if I can just allow them to reload, start and stop their own
webapps.

Is there any existing way of doing this or will I have to continue my
hack to rewrite the ManagerServlet (or at least implement a similar
class and work it into tomcat?)

btw, I'm using tomcat 4.0 (revision 0.3 at home and 1.24 where this has
to be implemented actually).

I'm currently having trouble creating a subclass of HttpServlet
implementing ContainerServlet that'll actually load.

Any ideas/help extremely welcome.

Jaco


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Andy,

I wish.  The expression I worked to 3am may give you some idea of how much
spare time I have, especially now that I've got to reconfigure the
production server without anyone noticing...

Chris

-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 13:37
To: Tomcat Users List
Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux


Chris,

Webapp is unsupported because JK is better and noone in the open source
community wants to support it.  Are you volunteering ;-)

Andy

 -Original Message-
 From: Walker Chris [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:58
 To: 'Tomcat Users List'
 Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux


 Aaargh!  I worked to 3am for several days to get webapp set up.
 I shouldn't
 believe what I read in books.

 What's the difference between jk and jk2?  And why is webapp unsupported?

 Chris

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: 15 September 2003 11:46
 To: Tomcat Users List
 Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux


 Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

 jk, jk2 allow for either side to go down and all is still ok when
 it comes
 back up

 -Tim

 Walker Chris wrote:

  Hi,
 
  I'm having problems coordinating the startup scripts for Apache, Tomcat
  (connected via mod_webapp) and MySQL.  The situation seems to be this:
 
  - mod_webapp requires Tomcat to be already running when httpd starts
 
  - the Tomcat application contains a connection pool that
 requires MySQL to
  be running when Tomcat starts (this is a crap architecture, but I havn't
  time to change it)
 
  I can execute the startup scripts manually in the sequence
  MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
 at
  system boot it doesn't work.  The httpd log contains a web application
 not
  found message, and pages from the application are not available.
 
  I've renamed the startup scripts so that the sequence is correct, but it
  still doesn't work.  My guess is that most of the Tomcat
 startup forks, so
  that the httpd startup is invoked before it has completed.
 
  I can think of two very klugey workarounds:
 
  - call httpd restart at the end of the Tomcat startup - what
 will this do
 if
  the real httpd script is still executing?
 
  - make the httpd script sleep for a while before it does anything - but
  there's no way to guarantee it will sleep long enough
 
  Alternatively I could add code to the httpd script to see if Tomcat has
  completed its startup.  But I don't know for sure how I would tell, and
 I'd
  rather avoid this sort of hack if there's a proper way to do it.
 
  Chris Walker
 


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

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





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

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



RE: problems starting/stopping tomcat

2003-09-15 Thread Shapira, Yoav

Howdy,
Use netstat to see the status of ports.

Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still running

- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You need
to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat

Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now receive
a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
loadRegistry
INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
getRegistry
INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
.jav
a:280
)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)


I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when I
called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log files,
Apache log ...).

My question: how do I get more info about what ports tomcat still uses
for what ?
Any hint would be appreciated.
Thanks.

Astrid



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Servlet.destroy but not init called when context is reloaded

2003-09-15 Thread Shapira, Yoav

Howdy,

Looking at the log this weird behaviour seems to start after init()
threw
an
exception. I did restart the Tomcat service, but the somehow the server
kept
malfunctioning from this point onwards. Can the init() somehow be
disabled,
so it wont be called on future reloads ?

No, init cannot be disabled.  It is your responsibility to ensure proper
init processing or alternatively be ready to deal with an undefined
state for that servlet.

Is this 1) an issue with garbage collection order 2) some JRE problem,
that
persists across Tomcat reloads 3) Potentially a Tomcat bug 4) Me being
stupid ?

None of the above.  It's an issue with you not properly handling an
errorneous init() method.

looking at the log, there might be a 5th possibility relating to Axis
being
being busy starting, resulting in a socket timeout that leaves the
communication in an unstable state, does that sound plausible ?

Possibly, yes.  Only you would know, as that's very implementation
specific.

Rather than waste your time by pasting a 1000 lines from the logfile.
My
question is simply : what is the most likely cause of my problem ?

Make sure you init method catches exceptions and handles them properly.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: usebean how to?

2003-09-15 Thread Shapira, Yoav

Howdy,
Go find a JSP tutorial ;)  Most of them use tomcat anyways for examples.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Luke Vanderfluit [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 11:23 AM
To: Tomcat Users List
Subject: jsp:usebean how to?

Hi,

I'm using tomcat 4.1.27.

I'm trying to get a jsp page to call a bean.

Is there something I need to enter in web.xml or server.xml?

I have tried the examples that come with tomcat, namely the date.jsp
example.
When I move the JspCalendar.class file that it calls to a different
directory and modify the date.jsp file to call it from that directory,
it doesn't work.
Why is that?


I have a jsp file: /TC/webapps/tutorialbeans/loginPage.jsp
it calls a bean: /TC/webapps/tutorialbeans/WEB-INF/classes/LoginBean
I have stripped it down to the minimum.

When I load my jsp file into the browser I get the following error:

##
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
Project base dir set to: /usr/local/tomcat/jakarta-tomcat-4.1.27
Detected Java version: 1.4 in: /usr/local/j2sdk1.4.2/jre
Detected OS: Linux
[javac] studentMenuPage_jsp.java added as studentMenuPage_jsp.class
doesn't exist.
[javac] Compiling 1 source file
[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-classpath'
[javac]
'/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/tomcat/jakarta-
tomcat-4.1.27/bin/bootstrap.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/webapps/tutorialbeans/WEB-INF/classes:/usr/local/tomcat/jakarta-
tomcat-4.1.27/shared/classes:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/classes:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/endorsed/xercesImpl.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/endorsed/xmlParserAPIs.jar:/usr/local/tomcat/jakarta-tomc
at-
4.1.27/common/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/mail.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/commons-logging-api.jar:/usr/local/tomcat/jakarta-tom
cat-
4.1.27/common/lib/commons-collections.jar:/usr/local/tomcat/jakarta-tom
cat-
4.1.27/common/lib/jdbc2_0-stdext.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/commons-pool.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/jasper-compiler.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/naming-factory.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/jndi.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/activation.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/jasper-runtime.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/naming-resources.jar:/usr/local/tomcat/jakarta-tomcat
-
4.1.27/common/lib/naming-common.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/commons-dbcp.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-
4.1.27/common/lib/jta.jar'
[javac] '-sourcepath'
[javac] '/usr/local/tomcat/jakarta-tomcat-
4.1.27/work/Standalone/localhost/tutorialbeans'
[javac] '-encoding'
[javac] 'UTF8'
[javac] '-g'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
[javac] File to be compiled:
[javac] /usr/local/tomcat/jakarta-tomcat-
4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java

/usr/local/tomcat/jakarta-tomcat-
4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java
:7:
'.' expected
import LoginBean;
^
1 error
#

Can someone help out?
thanks,
kind regards,
Luke

--

when my computer smiles, I'm happy
===.~ ~,
Luke Vanderfluit   |'/']
Mobile: 0421 276 282\~/`


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Thanks. We rebooted the machine and until now (I keep my fingers 
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid

Shapira, Yoav wrote:

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).
What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still running
- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You need
to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now receive
a port 8080 already in use problem after I try to start tomcat.
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

loadRegistry
 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

getRegistry
 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
   

.jav
 

a:280
)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when I
called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log files,
Apache log ...).
My question: how do I get more info about what ports tomcat still uses
for what ?
Any hint would be appreciated.
Thanks.
Astrid
   



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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




Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
I think I know where lies the problem, however I still don't know how to fix 
it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE THIS! 
--
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing through 
ant...

Hope I made myself clear?

From: Martin Jacobson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 14:00:52 +0200

Ilja wrote:
Ok, first some configuration information:

Tomcat 5.09
MySQL Driver 3.08 stable
OS: Mac OSX 10.2.6
J2SE 1.4.2
My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my 
parameters are different:
	ResourceParams name=jdbc/EuratomDB
		parameter
			namefactory/name
			valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
		/parameter
		parameter
			namemaxActive/name
			value100/value
		/parameter
		parameter
			namemaxIdle/name
			value3/value
		/parameter
		parameter
			namemaxWait/name
			value100/value
		/parameter
		parameter
			nameusername/name
			valuexxx/value
		/parameter
		parameter
			namepassword/name
			valuexxx/value
		/parameter
		parameter
			namedriverClassName/name
			valuecom.mysql.jdbc.Driver/value
		/parameter
		parameter
			nameurl/name
			valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
		/parameter
	/ResourceParams

This works for me! The main diffs are (i) I specify the factory, and 
(ii), the driverClassName is com.mysql.jdbc.Driver

However, the exception seems to suggest that the correct factory is being 
used by default. Your driverClassName is the old name, and might not be in 
the jar file any more.

HTH
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this problem?
Thanks.
Astrid



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


RE: web applications.

2003-09-15 Thread Shapira, Yoav

Howdy,
Set reloadable=true for their contexts.  That will take care of 1 and
2 for sure.  For JavaBeans it depends where and how their compiled
classes are stored on your server: if they're in WEB-INF/lib, as they
should be, then you're all set.  If they're in commons/lib or
shared/lib, you're not all set.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jason Lanpher [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:04 PM
To: [EMAIL PROTECTED]
Cc: Twin Cities Java Users Group
Subject: web applications.

Hi everyone.

 I was just wondering how you might handle working with
clients/developers in enabling them to restart thier web applications
when they make changes to:
1) web.xml file.
2) Servlets
3) Java Beans
4) etc.

Now I know about the manager application and developing with ANT.
But, I was wondering if there was another way to restart web
applications.  Something that maybe had the same functionality as the
manager application but didn't give access to everyone elses web
applications.

Thanks in advance.

Jason Lanpher

http://www.stealthnetworking.com

[EMAIL PROTECTED]

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: problems starting/stopping tomcat

2003-09-15 Thread Shapira, Yoav

Howdy,
I'm glad you're OK for now ;)

Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this directly
but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat

Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid

Shapira, Yoav wrote:

Howdy,
Use netstat to see the status of ports.

Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still
running

- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You
need
to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat

Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
receive
a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


loadRegistry


INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


getRegistry


INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry
getServer
INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt


.jav


a:280
)
   at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)


I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when
I
called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log
files,
Apache log ...).

My question: how do I get more info about what ports tomcat still
uses
for what ?
Any hint would be appreciated.
Thanks.

Astrid





This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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






This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Remy Maucherat
Ilja Hehenkamp wrote:

I think I know where lies the problem, however I still don't know how to 
fix it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE 
THIS! --
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm 
not sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in 
the webapps directory the connection works! Although this works, it's 
not very convenient, since it defeats the purpose of the automated 
installing through ant...

Hope I made myself clear?
That's much better.

I recommend you use the deployer package instead. The instructions from 
appdev are going to be updated or removed.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:17:53 +0200

Ilja Hehenkamp wrote:

I think I know where lies the problem, however I still don't know how to 
fix it...

I use the sample build.xml file from Tomcat: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to 
install, reload and distribute my sample application.

When I do an ant -install it apparantly installs the application in the 
Tomcat manager, however the application doesn't show up in the webapps 
directory. That's 1.

So maybe there's a conflict with either the context path, which I don't 
think so, since my build file has explicitly set the context path to 
/DBTest:

 property name=app.name  value=DBTest/
 property name=app.path  value=/${app.name}/
 property name=app.version   value=/
 property name=build.homevalue=${basedir}/build/
 property name=catalina.home value=/Library/Tomcat/ !-- UPDATE 
THIS! --
 property name=dist.home value=${basedir}/dist/
 property name=docs.home value=${basedir}/docs/
 property name=manager.url   value=http://localhost:8080/manager/
 property name=src.home  value=${basedir}/src/
 property name=web.home  value=${basedir}/web/

Or there's a conflict with the docbase, which I suspect... However I'm not 
sure why and how to fix it

Because when I put the generated war file (when doing an ant -dist) in the 
webapps directory the connection works! Although this works, it's not very 
convenient, since it defeats the purpose of the automated installing 
through ant...

Hope I made myself clear?
That's much better.

I recommend you use the deployer package instead. The instructions from 
appdev are going to be updated or removed.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: pageContext.forward ??

2003-09-15 Thread Tim Funk
I have no clue based on the current info but
1) Make sure your repsonse is committed before forward. This will be obvious 
if you see and IllegalStateException
2) Make sure there is not another page (resource,..) performing another 
redirect or similar
3) Is your custom tag returning Tag.SKIP_PAGE to ensure the rest of your JSP 
page is ignored? If not - is your JSP page doing anything wacky?

-Tim

Julien Martin wrote:

Hello,

I am trying to redirect to a servlet called RedirectHome from within a
custom tag.
Within the tag class, I have a method called redirect. This method is
called when a certain condition is met.
I know the method is called thanks to the trace but oddly the
pageContext.forward appears to be ignored. I think I had it working on a 2.3
container but I won't work on the new 2.4 container...
Can anyone help?

Here is the code for the redirect method:

*
 public void redirect() {
System.out.println(redirect called);
try {
 pageContext.forward(RedirectHome);
}
catch (ServletException e) {
 e.printStackTrace();
}
catch (IOException e) {
 e.printStackTrace();
}
}
*
I use Tomcat 5.0

Julien.

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



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


Servlet testing tools

2003-09-15 Thread Darryl L. Pierce
I'm looking for a tool to use for stress testing a servlet. It should 
let me:

1. define the URL for connecting to my servlet
2. specify the content and type for an HTTP POST to the servlet
3. collect success/failure metrics for the connections
4. spit out a report for 3 above
Any suggestions?

--
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://bellsouthpwp.net/m/c/mcpierce
What do you care what other people think, Mr. Feynman?


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


Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Remy Maucherat
Ilja Hehenkamp wrote:

Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too 
bad, since I like the way of automated updating the tomcat manager...
I'm sure you do. You seem to be stuck on that particular page of the 
docs, however, which happens to be out of date, and doesn't actually 
mention what is important.
Read the deployer page instead 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html).

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Servlet testing tools

2003-09-15 Thread Hookom, Jacob
Cactus project from Jakarta, and then there's HTML Unit that might appeal to
you more.

-Original Message-
From: Darryl L. Pierce [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 8:29 AM
To: Tomcat Users List
Subject: Servlet testing tools

I'm looking for a tool to use for stress testing a servlet. It should 
let me:

1. define the URL for connecting to my servlet
2. specify the content and type for an HTTP POST to the servlet
3. collect success/failure metrics for the connections
4. spit out a report for 3 above

Any suggestions?

-- 
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://bellsouthpwp.net/m/c/mcpierce
What do you care what other people think, Mr. Feynman?



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

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



RE: Servlet testing tools

2003-09-15 Thread Shapira, Yoav

Howdy,
Actually, I think he wants stress testing and not unit/integration
testing.  Use JMeter, it's great: http://jakarta.apache.org/jmeter/.

Don't get me wrong, Cactus is great too for its purpose, I use it all
the time, but that's not what he was asking for ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:28 AM
To: Tomcat Users List
Subject: RE: Servlet testing tools

Cactus project from Jakarta, and then there's HTML Unit that might
appeal
to
you more.

-Original Message-
From: Darryl L. Pierce [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 8:29 AM
To: Tomcat Users List
Subject: Servlet testing tools

I'm looking for a tool to use for stress testing a servlet. It should
let me:

1. define the URL for connecting to my servlet
2. specify the content and type for an HTTP POST to the servlet
3. collect success/failure metrics for the connections
4. spit out a report for 3 above

Any suggestions?

--
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://bellsouthpwp.net/m/c/mcpierce
What do you care what other people think, Mr. Feynman?



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

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
Sorry for being such a pain in the ass, but It's still not really clear to 
me:

What do you actually suggest? Are you talking about this client deployer 
that's listed on that page? Where can I find it? (I cannot find it, neither 
the build file that's mentioned there)

Will this fix my problem?

So for confirmation: I shouldn't use the old ant buildfile anymore?

Ilja


From: Remy Maucherat [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC 
driver class 'null'
Date: Mon, 15 Sep 2003 15:33:13 +0200

Ilja Hehenkamp wrote:

Sorry, I don't really understand what you mean?

Do you mean I shouldn't use the build file anymore? If so: that's too bad, 
since I like the way of automated updating the tomcat manager...
I'm sure you do. You seem to be stuck on that particular page of the docs, 
however, which happens to be out of date, and doesn't actually mention what 
is important.
Read the deployer page instead 
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html).

But still: I don't know how to fix the problem: why doesn't the jndi 
datasource work with the through ant deployed application?
Because I don't think your stuff in server.xml is used at all.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with Sym links and DefaultContext

2003-09-15 Thread Samuel Le Berrigaud
Hello,

I had some problem with sym links too, but mine are not solved at all... 
Could you, please, send me your server.xml file so that I can figure out 
what I did wrong...

Any other advice would be appreciated,

Thanks,

SaM

Lars Petersen wrote:

Hi
I try to get several apps with symlinks to work. If I set :
Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/

in the Context it works fine, but if I try it in
DefaultContext it wont work.
Any help available?
Thanks 

Lars

 



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


RE: Tomcat 4.1 - 5.0 Web-app Porting

2003-09-15 Thread Shapira, Yoav

Howdy,

I still don't understand how this works with Tomcat 4.1 and not 5.0. I
thought 5.0 was backwards compatible.

Well, that's a nice entertaining start to my week ;)

The standards (Servlet and JSP specifications) are backwards compatible.
So things that implement them will be backwards compatible.  However,
features of the server not mandated by the specification (e.g. server
configuration, non-standard features) are not guaranteed to be
backwards-compatible.

Moreover, tomcat 5 is not yet mature.  You are helping us test it and
find bugs, for which we are grateful ;)


Besides, struts' tags are very
popular (htmlbean etc.). If 5.0 were somehow not compatible with
these
tags, we would hear more complaints from this forum.

We would, I agree, if more people assumed tomcat 5 was production-ready.
Not many people make this assumption now.  Many people are waiting for a
tomcat 5 stable release, which hasn't happened (and won't until the
specs are final).  When the first stable release comes out, I expect to
see a lot more tomcat 5 bug reports as there will be many more
users/testers.  It's natural for every product ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



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




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


pageContext.forward ??

2003-09-15 Thread Julien Martin
Thanks for your reply Tim,

1. What do you mean by committing the response?  Can you give me more
details?
2. I can't skip the page since my tag needs to be at the top of the jps
page.
3. There is only one resource performing a redirect.
4. I have included the whole tag class for your information.

Julien.



package com.parispano.latinamericaguide;

import java.io.IOException;

import javax.servlet.ServletContext;

import javax.servlet.ServletException;

import javax.servlet.jsp.JspException;

import javax.servlet.jsp.tagext.TagSupport;

/**

* @author Julien Martin

*/

public class SetCountryTag extends TagSupport {

private String countryID = null;

private ServletContext servletContext = null;

public int doStartTag() throws JspException {

try {

Countries cs = (Countries) servletContext.getAttribute(countries);

Country country = new Country();

if (countryID == null || countryID.equals()) {

System.out.println(-null ou vide);

redirect();

return 0;

}

int countryIDint = Integer.parseInt(countryID);

country = cs.getCountryFromId(countryIDint);

pageContext.setAttribute(country, country);

} catch (NoCountryFoundException e) {

redirect();

e.printStackTrace();

} catch (Exception e) {

e.printStackTrace();

}

return SKIP_BODY;

}

public int doEndTag() {

return EVAL_PAGE;

}

public String getCountryID() {

return (this.countryID);

}

public void setCountryID(String countryID) {

this.countryID = countryID;

}

public ServletContext getServletContext() {

return servletContext;

}

public void setServletContext(ServletContext servletContext) {

this.servletContext = servletContext;

}

public void redirect() {

System.out.println(redirect called);

try {

pageContext.forward(RedirectHome);

} catch (ServletException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}

}

}




- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 3:28 PM
Subject: Re: pageContext.forward ??


 I have no clue based on the current info but
 1) Make sure your repsonse is committed before forward. This will be
obvious
 if you see and IllegalStateException
 2) Make sure there is not another page (resource,..) performing another
 redirect or similar
 3) Is your custom tag returning Tag.SKIP_PAGE to ensure the rest of your
JSP
 page is ignored? If not - is your JSP page doing anything wacky?


 -Tim


 Julien Martin wrote:

  Hello,
 
  I am trying to redirect to a servlet called RedirectHome from within a
  custom tag.
 
  Within the tag class, I have a method called redirect. This method is
  called when a certain condition is met.
 
  I know the method is called thanks to the trace but oddly the
  pageContext.forward appears to be ignored. I think I had it working on a
2.3
  container but I won't work on the new 2.4 container...
 
  Can anyone help?
 
  Here is the code for the redirect method:
 
  *
   public void redirect() {
  System.out.println(redirect called);
  try {
 
pageContext.forward(RedirectHome);
  }
  catch (ServletException e) {
   e.printStackTrace();
  }
  catch (IOException e) {
   e.printStackTrace();
  }
 
  }
  *
 
  I use Tomcat 5.0
 
  Julien.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Tomcat 4.1 - 5.0 Web-app Porting

2003-09-15 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:

I'm using Tomcat 5.0.11.

I still don't understand how this works with Tomcat 4.1 and not 5.0. I
thought 5.0 was backwards compatible. Besides, struts' tags are very
popular (htmlbean etc.). If 5.0 were somehow not compatible with these
tags, we would hear more complaints from this forum. I am tilting towards
believing that I am, most probably, facing a configuration/settings
problem. Any suggestions?
The only way to get a NPE where you're getting it is if the tag pool is 
null. It will only happen if _jspInit is not properly called, basically 
(the code should be easy to read). So I doubt your JSP is a plain  
clean JSP ;-)

BTW, I developed and tested a rather big Struts webapp using TC 5 
without any problems.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Tim Funk
See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup

-Tim

Astrid Wagner wrote:
Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



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




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



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


FileLogger and virtual host

2003-09-15 Thread Maxime Colas des Francs
Hi,

In my tomcat i have two virtual host defined like this in my server.xml :

Host   name=host.domaine1.com debug=0
appBase=/path/webapps/host.domaine1.com
workDir=/path/webapps/host.domaine1.com/tmp
unpackWARs=false autoDeploy=false
Context path= docBase=ROOT debug=0 reloadable=false

Logger 
className=org.apache.catalina.logger.FileLogger
prefix=context. suffix=.log 
timestamp=true
directory=/path/webapps/host.domaine1.com/log 
/

/Context
/Host
and same thing for host.domaine2.com ...

My problem is : when i have a jsp compilation error in host.domaine1.com 
application, error appears in host.domaine1.com context log AND in 
host.domaine2.com context log ...

smby can help me to fix that ?

thks !

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


Re: pageContext.forward ??

2003-09-15 Thread Tim Funk
1) See the FAQ, there is a question dedicated to IllegalStateException
2) If you are doing a .forward() the rest of the JSP page SHOULD BE IGNORED. 
Otherwise - you have a bad coding style. The stuff executing in your JSP 
after the forward is doine inside the custom tag is probably doing bad things
3) Its not a redirect - your are doing a forward. The 2 words have very 
different meanings. forward() is an internal redirect. Redirect is typically 
stated as an external browser redirect
4) See 2

-Tim

Julien Martin wrote:

Thanks for your reply Tim,

1. What do you mean by committing the response?  Can you give me more
details?
2. I can't skip the page since my tag needs to be at the top of the jps
page.
3. There is only one resource performing a redirect.
4. I have included the whole tag class for your information.
Julien.



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


RE: Request Too Large

2003-09-15 Thread Chanan Braunstein
As far as I can tell it was a POST not a GET - but since Tomcat completely
fails on this request, I don't know how to be sure. Does anyone know the
place in the code that would output such an error?

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 6:07 AM
To: Tomcat Users List
Subject: Re: Request Too Large


What is the URL  querystring? There are limits on how long the query 
string can be. Sounds like the flash program is doing a GET instead of a 
post.

Adam

On 09/10/2003 06:22 PM chanan braunstein wrote:
 Good Morning,
 I need to build a page that accepts a POST from a flash program. 
 So far my page has nothing in it other then some debugging code:
  
 ArrayList rpd = new ArrayList();
   Enumeration names;
   for(names = req.getParameterNames(); names.hasMoreElements();)
   {
  ArrayList data = new ArrayList();
  String name = (String) names.nextElement();
  data.add(name);
  data.add(req.getParameter(name));
System.out.println(data);
out.println(data)
  rpd.add(data);
   }
  
 When I post to the page I get the following message (that I assume is 
 coming from Tomcat):
  
 
 Request Too Large
 
 The POST request is too large for the internal work buffer:
 
 
 The internal work buffer size is 1664 bytes.
 The POST request size is 2302 bytes.
  
  
 Does any one know what that is and why I am getting it? It doesn't 
 really make sense to me. I am using Tomcat 4.1.27-LE with JDK 1.4.2 on 
 Win 2003.
  
  
  
 Thanks,
 
  
 Chanan Braunstein
 Knovel Corp.
 Web Development Manager
 607-773-1840 x672
 http://www.knovel.com
  
  
 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



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



org.apache.commons.logging.LogConfigurationException and SSL

2003-09-15 Thread McClure, Timothy J(IndSys, GE Interlogix)
I am using Tomcat 4.1.27.  My application uses both Struts and Log4J.  When I enable 
SSL and start navigating through the HTML screens, after 10 or 20 screens I receive 
the logger exception.  There seems to be some kind of conflict among the jars between 
common-logging, log4j and struts.  This problem did not seem to happen in earlier 
version of Tomcat and Struts.  Any help on the is issue would be greatly appreciated.  

Tim

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



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Paul
it is possible that the problem stems from Tomcat itself.  The reason  i say
that, is because i have setup a dbcp connection (using Tomcat 4.1, jdk 1.4,
oracle on win2k), and i have managed to get it to work with a particular
application, but get the same Cannot load JDBC driver class 'null' when
try to use connection with ROOT application, or with any other application.
It is weird, and i have not figured out what problem is.  Also, there are
many previous emails in this user-group pertaining to this Cannot-load-JDBC
error, esp. when associated with use as a global resource.

-paul lomack

p.s. i would be happy to report my server.xml or web.xml or jsp code for
calling connection, if you think it may be of any use to you.

- Original Message - 
From: Ilja Hehenkamp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:10 AM
Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load JDBC
driver class 'null'


 I think I know where lies the problem, however I still don't know how to
fix
 it...

 I use the sample build.xml file from Tomcat:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt to
 install, reload and distribute my sample application.

 When I do an ant -install it apparantly installs the application in the
 Tomcat manager, however the application doesn't show up in the webapps
 directory. That's 1.

 So maybe there's a conflict with either the context path, which I don't
 think so, since my build file has explicitly set the context path to
 /DBTest:

   property name=app.name  value=DBTest/
   property name=app.path  value=/${app.name}/
   property name=app.version   value=/
   property name=build.homevalue=${basedir}/build/
   property name=catalina.home value=/Library/Tomcat/ !-- UPDATE
THIS!
 --
   property name=dist.home value=${basedir}/dist/
   property name=docs.home value=${basedir}/docs/
   property name=manager.url   value=http://localhost:8080/manager/
   property name=src.home  value=${basedir}/src/
   property name=web.home  value=${basedir}/web/

 Or there's a conflict with the docbase, which I suspect... However I'm not
 sure why and how to fix it

 Because when I put the generated war file (when doing an ant -dist) in the
 webapps directory the connection works! Although this works, it's not very
 convenient, since it defeats the purpose of the automated installing
through
 ant...

 Hope I made myself clear?

 From: Martin Jacobson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat, MySQL  JNDI: java.sql.SQLException: Cannot load
JDBC
 driver class 'null'
 Date: Mon, 15 Sep 2003 14:00:52 +0200
 
 Ilja wrote:
 Ok, first some configuration information:
 
 Tomcat 5.09
 MySQL Driver 3.08 stable
 OS: Mac OSX 10.2.6
 J2SE 1.4.2
 
 
 My config is not the same (TC 4.1.24, OSX 10.2.6, MySQL 3.07), and my
 parameters are different:
  ResourceParams name=jdbc/EuratomDB
  parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
  namemaxActive/name
  value100/value
  /parameter
  parameter
  namemaxIdle/name
  value3/value
  /parameter
  parameter
  namemaxWait/name
  value100/value
  /parameter
  parameter
  nameusername/name
  valuexxx/value
  /parameter
  parameter
  namepassword/name
  valuexxx/value
  /parameter
  parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
  nameurl/name
  valuejdbc:mysql://localhost/euratom?autoReconnect=true/value
  /parameter
  /ResourceParams
 
 This works for me! The main diffs are (i) I specify the factory, and
 (ii), the driverClassName is com.mysql.jdbc.Driver
 
 However, the exception seems to suggest that the correct factory is being
 used by default. Your driverClassName is the old name, and might not be
in
 the jar file any more.
 
 HTH
 Martin
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl


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





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



Re: Tomcat 4.1 - 5.0 Web-app Porting

2003-09-15 Thread prashant . budhale

Here's my entire index.jsp. What would you change to make it work with
Tomcat 5.0? It seems to works fine with 4.1.



[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
html:html !-- this is where it crashes--
  head
titlebean:message key=indexPage.title//title
  /head
% if (request.getHeader(dsam_sn) == null) {%

  frameset cols=145,* frameborder=0 border=0
frame src=CommonTasks.jsp frameborder=0 marginwidth=0
scrolling=no name=commonTasks noresize 
frame src=HeadendCatalog.jsp frameborder=0 marginwidth=0
name=main
  /frameset
  noframesbean:message key=indexPage.noFrameMessage//noframes

% } else {%
jsp:forward page=InstHomePage.jsp /
% } %

/html:html






|-+
| |   Remy Maucherat   |
| |   [EMAIL PROTECTED] |
| ||
| |   09/15/03 09:04 AM|
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   Tomcat Users List [EMAIL PROTECTED]  
 |
  |   cc:  
  |
  |   Subject:  Re: Tomcat 4.1 - 5.0 Web-app Porting  
  |
  
--|




[EMAIL PROTECTED] wrote:

 I'm using Tomcat 5.0.11.

 I still don't understand how this works with Tomcat 4.1 and not 5.0. I
 thought 5.0 was backwards compatible. Besides, struts' tags are very
 popular (htmlbean etc.). If 5.0 were somehow not compatible with
these
 tags, we would hear more complaints from this forum. I am tilting towards
 believing that I am, most probably, facing a configuration/settings
 problem. Any suggestions?

The only way to get a NPE where you're getting it is if the tag pool is
null. It will only happen if _jspInit is not properly called, basically
(the code should be easy to read). So I doubt your JSP is a plain 
clean JSP ;-)

BTW, I developed and tested a rather big Struts webapp using TC 5
without any problems.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x


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







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



Re: Request Too Large

2003-09-15 Thread Tim Funk
Check your access log. It should state whether the request was a GET or POST. 
(Or other)

-Tim

Chanan Braunstein wrote:

As far as I can tell it was a POST not a GET - but since Tomcat completely
fails on this request, I don't know how to be sure. Does anyone know the
place in the code that would output such an error?
Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 6:07 AM
To: Tomcat Users List
Subject: Re: Request Too Large

What is the URL  querystring? There are limits on how long the query 
string can be. Sounds like the flash program is doing a GET instead of a 
post.

Adam
 


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


A Hebrew Problem

2003-09-15 Thread Yair Zohar
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: jsp:include 
page=relativePath/fileName flush=true /
When it comes to a hebrew html the browser displays question marks 
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when 
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44, j2sdk1.4.2
It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3 
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair



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


RE: A Hebrew Problem

2003-09-15 Thread Shapira, Yoav

Howdy,
Did you set the content-type header for the response in tomcat?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem

Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: jsp:include
page=relativePath/fileName flush=true /
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2
It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat, MySQL JNDI: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-09-15 Thread Ilja Hehenkamp
It could be related, but I'm not sure.

I think the problem lies in the way the application gets deployed with this 
ant build file. Probably the docbase doesn't match (however that's just a 
wild guess)

Still waiting for some confirmation from Remy Maucherat. He was talking 
about the client deployer package, however I cannot find it...

Ilja

_
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Thanks for the hint.
But I do not quite understand the proposal:
the shared libraries state should be reinitialized.

How do I do that?

Then:

Something which could help is to avoid putting classes which would be 
referenced by a shared static field in the web application classloader, 
and put them in the shared classloader instead (the JARs should be put in the 
lib folder, and classes should be put in the classes folder).

??

Maybe you can tell me what this means in my example.
My webapps use the class IprShellInterface which is in a shared library the following 
way:
   String shellResponse = IprShellInterface.executeCommand(...);
Here a snippet from IprShellInterface.java:

 static {

System.out.println([EMAIL PROTECTED]: The library path is set to:  +
System.getProperty(java.library.path));
try {
   System.loadLibrary(IprShellInterface);
   System.out.println([EMAIL PROTECTED]: Done loading library IprShellInterface);
}
catch (Exception e) {
   System.out.println([EMAIL PROTECTED]: Exception loading library IprShellInterface 
... 
);
   System.out.println(e.getMessage());
}
 public static String executeCommand(...)

I compile the class into the shared library libIprShellInterface.so and right now 
install it in lib of the DB installation (included in the java.library.path variable).
This means that all webapps take the same. If that is the reason for the problem wouldn't it be a solution to
install it into the different webapps lib directories:
./webapps/iprweb-iprdev1/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev2/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev3/WEB-INF/lib/libIprShellInterface.so

and have the java.library.path path be set individually for the webapps. Or is there 
only one for all applications?
Where do I set the library path anyway?
Sorry I just have too little info about how this works ...
Thanks
Astrid


Tim Funk wrote:

See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup 

-Tim

Astrid Wagner wrote:

Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in 
three different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use 
a native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



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






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



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




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


Re: A Hebrew Problem

2003-09-15 Thread Yair Zohar
I have this header in the jsp page:

Meta http-equiv=Content-Type content=text/html; charset=Windows-1255

did you mean this header ?

Shapira, Yoav wrote:
Howdy,
Did you set the content-type header for the response in tomcat?
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: jsp:include
page=relativePath/fileName flush=true /
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2

It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair


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




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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




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


RE: A Hebrew Problem

2003-09-15 Thread Shapira, Yoav

Howdy,
I meant doing a response.setContentType(text/html;
charset=Windows-1255) in your servlet or JSP.  But I also think having
the header there should be sufficient, so I don't know why it's not
working.  It's worth trying the above anyways.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:18 AM
To: Tomcat Users List
Subject: Re: A Hebrew Problem

I have this header in the jsp page:

Meta http-equiv=Content-Type content=text/html;
charset=Windows-1255

did you mean this header ?


Shapira, Yoav wrote:
 Howdy,
 Did you set the content-type header for the response in tomcat?

 Yoav Shapira
 Millennium ChemInformatics



-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem

Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: jsp:include
page=relativePath/fileName flush=true /
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or
when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,

 j2sdk1.4.2

It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair



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





 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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





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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Neil Aggarwal
Yoav:

Did you get my answer that my tar is gnu tar?

Has anyone else had a problem with Tomcat 4.1.27 not reloading classes?

Thanks
Neil


 Your tar is GNU tar, right?


 I have a server running tomcat 4.1.27 and it is not reloading
 classes for my webapp even after applying the hotfix.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Re: A Hebrew Problem

2003-09-15 Thread Seth Newton
I use this with success:

%@ page contentType=text/html;charset=utf-8 %

Why not use UTF-8 instead of some specific charset?... I use the same pages
for 8 different languages.  I couldn't imagine the headaches I'd have if I
specified a charset for each language.

That ramble being said, just try putting this in your jsp page, save your
file as UTF-8 (This can be done in notepad), upload it to the web server and
try it again.
- Original Message - 
From: Yair Zohar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:18 AM
Subject: Re: A Hebrew Problem


 I have this header in the jsp page:

 Meta http-equiv=Content-Type content=text/html; charset=Windows-1255

 did you mean this header ?


 Shapira, Yoav wrote:
  Howdy,
  Did you set the content-type header for the response in tomcat?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
 
 -Original Message-
 From: Yair Zohar [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:01 AM
 To: [EMAIL PROTECTED]
 Subject: A Hebrew Problem
 
 Hello,
 I have this hebrew problem:
 I'm trying to include a html in a jsp page: jsp:include
 page=relativePath/fileName flush=true /
 When it comes to a hebrew html the browser displays question marks
 instead of hebrew
 (no matter what charset do I choose in the browser).
 The same html is viewed nicely when I get it directly as a file or when
 I copy it to the apache html directory
 and view it by apache (charset=Windows-1255).
 System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
 
  j2sdk1.4.2
 
 It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
 mysql-connector-java-3.0.7 j2sdk1.4.0_03
 Does anyone can give a solution or a direction ?
 Thanks,
 Yair
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



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



Thank you Tim (re pageContex.forward)

2003-09-15 Thread Julien Martin
Thank you Tim,
Thanks very much for your help.  That sorted it.
Julien.

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 4:11 PM
Subject: Re: pageContext.forward ??


 1) See the FAQ, there is a question dedicated to IllegalStateException
 2) If you are doing a .forward() the rest of the JSP page SHOULD BE
IGNORED.
 Otherwise - you have a bad coding style. The stuff executing in your JSP
 after the forward is doine inside the custom tag is probably doing bad
things
 3) Its not a redirect - your are doing a forward. The 2 words have very
 different meanings. forward() is an internal redirect. Redirect is
typically
 stated as an external browser redirect
 4) See 2

 -Tim

 Julien Martin wrote:

  Thanks for your reply Tim,
 
  1. What do you mean by committing the response?  Can you give me more
  details?
  2. I can't skip the page since my tag needs to be at the top of the jps
  page.
  3. There is only one resource performing a redirect.
  4. I have included the whole tag class for your information.
 
  Julien.
 



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



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



Re: Tomcat 4.1 - 5.0 Web-app Porting

2003-09-15 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:

Here's my entire index.jsp. What would you change to make it work with
Tomcat 5.0? It seems to works fine with 4.1.
Yes, I'm sure it does work fine with 4.1. Coincidentally, it also works 
fine for me in 5.0.
It works for me with both pooling enabled and disabled (you can verify 
using the Struts example webapp).

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Request Too Large

2003-09-15 Thread Welch, Ronald P
Chanan,

What version of Tomcat are you working with?

Ron

--=-=-=-=-=-=-=-=-oOo-=-=-=-=-=-=-=-=--
mailto:[EMAIL PROTECTED]Phone:(607)770-3701
BAE SYSTEMS Controls600 Main St Johnson City, NY 13790-1888
--=-=-=-=-=-=-=-=-===-=-=-=-=-=-=-=-=--


-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 10:38 AM
To: 'Tomcat Users List'
Subject: RE: Request Too Large


As far as I can tell it was a POST not a GET - but since Tomcat completely
fails on this request, I don't know how to be sure. Does anyone know the
place in the code that would output such an error?

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 6:07 AM
To: Tomcat Users List
Subject: Re: Request Too Large


What is the URL  querystring? There are limits on how long the query 
string can be. Sounds like the flash program is doing a GET instead of a 
post.

Adam

On 09/10/2003 06:22 PM chanan braunstein wrote:
 Good Morning,
 I need to build a page that accepts a POST from a flash program. 
 So far my page has nothing in it other then some debugging code:
  
 ArrayList rpd = new ArrayList();
   Enumeration names;
   for(names = req.getParameterNames(); names.hasMoreElements();)
   {
  ArrayList data = new ArrayList();
  String name = (String) names.nextElement();
  data.add(name);
  data.add(req.getParameter(name));
System.out.println(data);
out.println(data)
  rpd.add(data);
   }
  
 When I post to the page I get the following message (that I assume is 
 coming from Tomcat):
  
 
 Request Too Large
 
 The POST request is too large for the internal work buffer:
 
 
 The internal work buffer size is 1664 bytes.
 The POST request size is 2302 bytes.
  
  
 Does any one know what that is and why I am getting it? It doesn't 
 really make sense to me. I am using Tomcat 4.1.27-LE with JDK 1.4.2 on 
 Win 2003.
  
  
  
 Thanks,
 
  
 Chanan Braunstein
 Knovel Corp.
 Web Development Manager
 607-773-1840 x672
 http://www.knovel.com
  
  
 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



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

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



Specifying startup port on the command line?

2003-09-15 Thread Stefan Lasiewski
Hey all,

I am looking for a way to startup Tomcat and be able specify the HTTP, HTTPS
 other ports on the commandline.

I think I will probably use a sed script inside of catalina.sh to search 
replace for strings like 8080 and 8443 in the server.xml file.

However, this solution is a bit inflexible, and I was wondering what other
ideas people have come up with.

Thanks for your help,

-= Stefan


Stefan Lasiewski, Release Engineer
Innovative Interfaces, Inc. - QA Department
510-450-6363 ext. 4209


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



Re: A Hebrew Problem

2003-09-15 Thread Yair Zohar
I wish to continue working with windows-1255 charset, unless it's 
impossible to use this charset with tomcat. is it possible to configure 
tomcat to work well with this charset ?
Yair.

Seth Newton wrote:
I use this with success:

%@ page contentType=text/html;charset=utf-8 %

Why not use UTF-8 instead of some specific charset?... I use the same pages
for 8 different languages.  I couldn't imagine the headaches I'd have if I
specified a charset for each language.
That ramble being said, just try putting this in your jsp page, save your
file as UTF-8 (This can be done in notepad), upload it to the web server and
try it again.
- Original Message - 
From: Yair Zohar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:18 AM
Subject: Re: A Hebrew Problem



I have this header in the jsp page:

Meta http-equiv=Content-Type content=text/html; charset=Windows-1255

did you mean this header ?

Shapira, Yoav wrote:

Howdy,
Did you set the content-type header for the response in tomcat?
Yoav Shapira
Millennium ChemInformatics



-Original Message-
From: Yair Zohar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: A Hebrew Problem
Hello,
I have this hebrew problem:
I'm trying to include a html in a jsp page: jsp:include
page=relativePath/fileName flush=true /
When it comes to a hebrew html the browser displays question marks
instead of hebrew
(no matter what charset do I choose in the browser).
The same html is viewed nicely when I get it directly as a file or when
I copy it to the apache html directory
and view it by apache (charset=Windows-1255).
System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
j2sdk1.4.2


It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
mysql-connector-java-3.0.7 j2sdk1.4.0_03
Does anyone can give a solution or a direction ?
Thanks,
Yair


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


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




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


RE: Specifying startup port on the command line?

2003-09-15 Thread Shapira, Yoav

Howdy,
Replace port=x with port=y via perl/sed/awk/whatever.  I wouldn't
count on 8080/8443 always being present/always being the default values.
In fact, I wouldn't do what you're doing anyways, but I imagine you have
good reason for it.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Stefan Lasiewski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:28 PM
To: Tomcat Users List (E-mail)
Subject: Specifying startup port on the command line?

Hey all,

I am looking for a way to startup Tomcat and be able specify the HTTP,
HTTPS
 other ports on the commandline.

I think I will probably use a sed script inside of catalina.sh to
search 
replace for strings like 8080 and 8443 in the server.xml file.

However, this solution is a bit inflexible, and I was wondering what
other
ideas people have come up with.

Thanks for your help,

-= Stefan


Stefan Lasiewski, Release Engineer
Innovative Interfaces, Inc. - QA Department
510-450-6363 ext. 4209


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)
   at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
   at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill those 
processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid

Shapira, Yoav wrote:

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this directly
but a 3rd party library used by your webapp does.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:

   

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).
What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still
 

running
 

- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You
 

need
 

to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
   

receive
 

a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry

   

loadRegistry

 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

getRegistry

 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry
   

getServer
 

INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
   

nt
 

   

.jav

 

a:280
)
 at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when
   

I
 

called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log
   

files,
 

Apache log ...).

My question: how do I get more info about what ports tomcat still
   

uses
 

for what ?
Any hint would be appreciated.
Thanks.
Astrid

   

This e-mail, including any attachments, is a confidential business
 

communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
   

intended
 

recipient, please immediately delete this e-mail from your computer
   

system
 

and notify the sender.  Thank you.
   

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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended 

setup of global resources, dbcp, mail, etc.

2003-09-15 Thread Paul
has anyone been successful setting up a global resource under Tomcat 4.1, jdk 1.4 that 
is accessible to all webapps?  If so, please describe how you configured tomcat.

thanks, paul lomack
 

RE: problems starting/stopping tomcat

2003-09-15 Thread Shapira, Yoav

Howdy,
Several things to do:

Try to start tomcat from the console (use catalina.sh run instead of
catalina.sh start) and when you run into this condition again, use
CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
what your threads are doing.

Don't start non-daemon threads in your webapp.  Alternatively, if you
do, make sure they properly handle interruptions and quit.  If you're
not sure where they're coming from, do the above SIGQUIT approach to
see.

As another alternative, though dirty and potentially very bad if there's
more than one webapp on the server: write a ServletContextListener that
does System.exit(n) at the end of its contextDestroyed method ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat

Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
.jav
a:280)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
va:1
117)
at
org.apache.catalina.core.StandardService.initialize(StandardService.jav
a:57
9)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
2246
)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill
those
processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid


Shapira, Yoav wrote:

Howdy,
I'm glad you're OK for now ;)

Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this
directly
but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat

Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid

Shapira, Yoav wrote:



Howdy,
Use netstat to see the status of ports.

Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005
by
default) and the actual user connector ports (8080 and 8009 by
default
for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still


running


- When you changed to port 8081 and tried to start, you got the
error
because tomcat was still listening on port 8005 for shutdown.  You


need


to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)

Yoav Shapira
Millennium ChemInformatics






-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat

Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now


receive


a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry




loadRegistry




INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry




getRegistry




INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry


getServer


INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol
init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndp
oi


nt




.jav




a:280
)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:15
0)


I did not change any configuration and I do not think that the
ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but
when


I


called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log


files,


Apache log ...).

My question: how do I get more info about what ports tomcat still


uses


for what ?
Any hint would be appreciated.
Thanks.

Astrid






Re: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Paul
how would i know if tomcat is not reloading classes?

- Original Message - 
From: Neil Aggarwal [EMAIL PROTECTED]
To: 'Tomcat-User' [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:35 AM
Subject: RE: Tomcat 4.1.27 not reloading classes even after applying hotfix


 Yoav:
 
 Did you get my answer that my tar is gnu tar?
 
 Has anyone else had a problem with Tomcat 4.1.27 not reloading classes?
 
 Thanks
 Neil
 
 
  Your tar is GNU tar, right?
 
 
  I have a server running tomcat 4.1.27 and it is not reloading
  classes for my webapp even after applying the hotfix.
 
 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by 
 17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Thanks for the quick response.

Shapira, Yoav wrote:

Howdy,
Several things to do:
Try to start tomcat from the console (use catalina.sh run instead of
catalina.sh start) and when you run into this condition again, use
CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
what your threads are doing.
I ran catalina.sh run and run into this condition over and over.
I do not know when/how I should terminate it since it prints out the
message and finishes itself quickly. Should I look for java thread 
processes?

Don't start non-daemon threads in your webapp.  Alternatively, if you
do, make sure they properly handle interruptions and quit.  If you're
not sure where they're coming from, do the above SIGQUIT approach to
see.  

I am not aware of non-deamon threads. Maybe the problem has sth. to do 
with native calls
I use but they are terminated I guess ...
Thanks
Astrid

As another alternative, though dirty and potentially very bad if there's
more than one webapp on the server: write a ServletContextListener that
does System.exit(n) at the end of its contextDestroyed method ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
   

.jav
 

a:280)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
  at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
   

va:1
 

117)
  at
org.apache.catalina.core.StandardService.initialize(StandardService.jav
   

a:57
 

9)
  at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
   

2246
 

)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill
   

those
 

processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid
Shapira, Yoav wrote:

   

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this
 

directly
 

but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:



   

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005
 

by
 

default) and the actual user connector ports (8080 and 8009 by
 

default
 

for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still
 

running

 

- When you changed to port 8081 and tried to start, you got the
 

error
 

because tomcat was still listening on port 8005 for shutdown.  You

 

need

 

to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics




 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
   

receive

 

a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry



   

loadRegistry



 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


   

getRegistry



 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry
   

getServer

 

INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol
   

init
 

SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndp
   

oi
 

   

nt

 

   

.jav



 

a:280
)
at

Re: A Hebrew Problem

2003-09-15 Thread Arthur Veinstein
Hi Yair,
We use Tomcat 3.3 and put in each jsp page:
%@ page contentType=text/html; charset=windows-1255 or iso-8859-8-i %
on Servlets we use
response.setContentType(text/html ;charset=windows-1255 or iso-8859-8-i);

Works perfect

If you need any help you can email me directly (I'm located in Israel, so if
needed i can give you my phone)

Arthur
- Original Message - 
From: Yair Zohar [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 7:27 PM
Subject: Re: A Hebrew Problem


 I wish to continue working with windows-1255 charset, unless it's
 impossible to use this charset with tomcat. is it possible to configure
 tomcat to work well with this charset ?
 Yair.


 Seth Newton wrote:
  I use this with success:
 
  %@ page contentType=text/html;charset=utf-8 %
 
  Why not use UTF-8 instead of some specific charset?... I use the same
pages
  for 8 different languages.  I couldn't imagine the headaches I'd have if
I
  specified a charset for each language.
 
  That ramble being said, just try putting this in your jsp page, save
your
  file as UTF-8 (This can be done in notepad), upload it to the web server
and
  try it again.
  - Original Message - 
  From: Yair Zohar [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, September 15, 2003 11:18 AM
  Subject: Re: A Hebrew Problem
 
 
 
 I have this header in the jsp page:
 
 Meta http-equiv=Content-Type content=text/html;
charset=Windows-1255
 
 did you mean this header ?
 
 
 Shapira, Yoav wrote:
 
 Howdy,
 Did you set the content-type header for the response in tomcat?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 
 
 -Original Message-
 From: Yair Zohar [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:01 AM
 To: [EMAIL PROTECTED]
 Subject: A Hebrew Problem
 
 Hello,
 I have this hebrew problem:
 I'm trying to include a html in a jsp page: jsp:include
 page=relativePath/fileName flush=true /
 When it comes to a hebrew html the browser displays question marks
 instead of hebrew
 (no matter what charset do I choose in the browser).
 The same html is viewed nicely when I get it directly as a file or
when
 I copy it to the apache html directory
 and view it by apache (charset=Windows-1255).
 System: RH9 with tomcat-4.1.18, mod_jk-2.0.43, apache-2.0.44,
 
 j2sdk1.4.2
 
 
 It all works fine on an old server: RH7.1 tomcat-4.0.4 apache-1.3
 mysql-connector-java-3.0.7 j2sdk1.4.0_03
 Does anyone can give a solution or a direction ?
 Thanks,
 Yair
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 
  communication, and may contain information that is confidential,
proprietary
  and/or privileged.  This e-mail is intended only for the individual(s)
to
  whom it is addressed, and may not be saved, copied, printed, disclosed
or
  used by anyone else.  If you are not the(an) intended recipient, please
  immediately delete this e-mail from your computer system and notify the
  sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




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



RE: Request Too Large

2003-09-15 Thread Chanan Braunstein
I am using Tomcat 4.1.27-LE with JDK 1.4.2 on Win 2003. 

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 


-Original Message-
From: Welch, Ronald P [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 11:54 AM
To: 'Tomcat Users List'
Subject: RE: Request Too Large


Chanan,

What version of Tomcat are you working with?

Ron

--=-=-=-=-=-=-=-=-oOo-=-=-=-=-=-=-=-=--
mailto:[EMAIL PROTECTED]Phone:(607)770-3701
BAE SYSTEMS Controls600 Main St Johnson City, NY 13790-1888
--=-=-=-=-=-=-=-=-===-=-=-=-=-=-=-=-=--


-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 15, 2003 10:38 AM
To: 'Tomcat Users List'
Subject: RE: Request Too Large


As far as I can tell it was a POST not a GET - but since Tomcat completely
fails on this request, I don't know how to be sure. Does anyone know the
place in the code that would output such an error?

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 11, 2003 6:07 AM
To: Tomcat Users List
Subject: Re: Request Too Large


What is the URL  querystring? There are limits on how long the query 
string can be. Sounds like the flash program is doing a GET instead of a 
post.

Adam

On 09/10/2003 06:22 PM chanan braunstein wrote:
 Good Morning,
 I need to build a page that accepts a POST from a flash program.
 So far my page has nothing in it other then some debugging code:
  
 ArrayList rpd = new ArrayList();
   Enumeration names;
   for(names = req.getParameterNames(); names.hasMoreElements();)
   {
  ArrayList data = new ArrayList();
  String name = (String) names.nextElement();
  data.add(name);
  data.add(req.getParameter(name));
System.out.println(data);
out.println(data)
  rpd.add(data);
   }
  
 When I post to the page I get the following message (that I assume is
 coming from Tomcat):
  
 
 Request Too Large
 
 The POST request is too large for the internal work buffer:
 
 
 The internal work buffer size is 1664 bytes.
 The POST request size is 2302 bytes.
  
  
 Does any one know what that is and why I am getting it? It doesn't
 really make sense to me. I am using Tomcat 4.1.27-LE with JDK 1.4.2 on 
 Win 2003.
  
  
  
 Thanks,
 
  
 Chanan Braunstein
 Knovel Corp.
 Web Development Manager
 607-773-1840 x672
 http://www.knovel.com
  
  
 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



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

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



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



RE: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Dana Bourgeois
Umm... you didn't get a response to your initial question about starting
things in the right order so perhaps I can help.

Sometimes it can be as easy as taking out background commands (ampersand)
from the scripts to force them to wait until the app completes its startup.


If that doesn't work, and I've seen plenty of cases where it doesn't, I'd
write a new script (wrapper) that calls the existing set of startup scripts
in proper order and waits for an indication that the application is up and
ready.  I haven't written such a thing for any of these applications but
MySQL, for example, should respond properly to an ODBC connection when it is
up.  Apache should respond to a GET.  Try scripting those in an until loop
after calling the regular startup script in your new SuperScript.  

Another technique is to loop in your wrapper watching either the regular
startup script to end (not likely to help with this problem), watching the
process list for an indication that startup is complete or watching the
messages log.  Sendmail, for example, is listed in the process list as
accepting connections when it is ready.  Apache should have the proper
number of child processes idling when it is ready.  

Your new Superscript should go in the proper spot for booting and the
regular scripts should be removed.  

Hope this helps.


Dana Bourgeois


 -Original Message-
 From: Walker Chris [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 2:39 AM
 To: 'Tomcat Users List'
 Subject: Apache/Tomcat/MySQL Startup Sequence on Linux
 
 
 Hi,
 
 I'm having problems coordinating the startup scripts for 
 Apache, Tomcat (connected via mod_webapp) and MySQL.  The 
 situation seems to be this:
 
 - mod_webapp requires Tomcat to be already running when httpd starts
 
 - the Tomcat application contains a connection pool that 
 requires MySQL to be running when Tomcat starts (this is a 
 crap architecture, but I havn't time to change it)
 
 I can execute the startup scripts manually in the sequence 
 MySQL/Tomcat/Apache, and everything is fine.  But when they 
 are executed at system boot it doesn't work.  The httpd log 
 contains a web application not found message, and pages 
 from the application are not available.
 
 I've renamed the startup scripts so that the sequence is 
 correct, but it still doesn't work.  My guess is that most of 
 the Tomcat startup forks, so that the httpd startup is 
 invoked before it has completed.
 
 I can think of two very klugey workarounds: 
 
 - call httpd restart at the end of the Tomcat startup - what 
 will this do if the real httpd script is still executing?
 
 - make the httpd script sleep for a while before it does 
 anything - but there's no way to guarantee it will sleep long enough
 
 Alternatively I could add code to the httpd script to see if 
 Tomcat has completed its startup.  But I don't know for sure 
 how I would tell, and I'd rather avoid this sort of hack if 
 there's a proper way to do it.
 
 Chris Walker
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Hi,

I killed some processes related to native c calls I submit and now I can 
start/stop TC so this
time it could have been some non-terminated processes (due to network 
problem).
The question now is: I may have some situations like that e.g due to a 
network problem
a native call can not be finished etc. How do I avoid running into such 
severe problems:
do I have to implement sth. like a timeout in the c programm to 
guarantee it will
quit  ?!
Thanks for your help.

Astrid

Astrid Wagner wrote:

Thanks for the quick response.

Shapira, Yoav wrote:

Howdy,
Several things to do:
Try to start tomcat from the console (use catalina.sh run instead of
catalina.sh start) and when you run into this condition again, use
CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
what your threads are doing.
I ran catalina.sh run and run into this condition over and over.
I do not know when/how I should terminate it since it prints out the
message and finishes itself quickly. Should I look for java thread 
processes?

Don't start non-daemon threads in your webapp.  Alternatively, if you
do, make sure they properly handle interruptions and quit.  If you're
not sure where they're coming from, do the above SIGQUIT approach to
see. 
I am not aware of non-deamon threads. Maybe the problem has sth. to do 
with native calls
I use but they are terminated I guess ...
Thanks
Astrid

As another alternative, though dirty and potentially very bad if
there's

more than one webapp on the server: write a ServletContextListener that
does System.exit(n) at the end of its contextDestroyed method ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoin

t

  
.jav
 

a:280)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
  at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.j

a

  
va:1
 

117)
  at
org.apache.catalina.core.StandardService.initialize(StandardService.ja

v

  
a:57
 

9)
  at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java

:

  
2246
 

)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill
  
those
 

processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid
Shapira, Yoav wrote:

  

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only

times

when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this


directly
 

but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:



  

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005


by
 

default) and the actual user connector ports (8080 and 8009 by


default
 

for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut

down

properly,  most likely because you had non-daemon threads still



running



- When you changed to port 8081 and tried to start, you got the


error
 

because tomcat was still listening on port 8005 for shutdown.  You



need



to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics






-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
  

receive



a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry



  
loadRegistry





INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


  
getRegistry





INFO: Creating new Registry instance
Sep 13, 2003 

Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
All,

Updates to this issue

-I'm not sure if it's the OS, but I've never seen this happen before on
other Solaris installs.  What would I look at to determine if it's the OS?..
The way that question is phrased makes it difficult for me to completely
understand what you mean. Can you be more specific?
-It did take up memory until Tomcat would no longer serve pages.  Users
would try to see their sites and just get a blank white screen until their
request timed out.  I haven't let it time go incrementally since I've
upgraded Tomcat or the jdk, however, I may let it stall out if I get that
desperate.
-I upgraded to 1.4.2 and still the memory increases.
-Yes, I'm closing all streams in the email class.  Also, this particular
code has been used successfully across platforms and across java servers for
about 3 years now.

Anymore input is greatly appreciated.

-Seth.
- Original Message - 
From: Nikolaos Giannopoulos [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 6:04 PM
Subject: RE: Memory Leak with static content


 Seth,

 Have you tried JDK 1.4.2?  1.4.0 has been known to have a memory leak in
the
 StringBuffer implementation w.r.t. re-using StringBuffers but you mention
 that your only serving static content so this may not be it.

 However, I believe that I read that something like 2000 bugs have been
fixed
 in 1.4.2 (if my memory serves me well).  We have have no visible problems
 running tomcat 4.1.12/18 stand alone w/ 1.4.2 on Solaris 8 on 4 boxes (no
 JSPs - just servlets and static content).

 Please reply back if this works or does not work for you - we are looking
at
 upgrading our Tomcat instances in the near future.

 HTH.

 --Nikolaos


  -Original Message-
  From: Seth Newton [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 12, 2003 4:58 PM
  To: [EMAIL PROTECTED]
  Subject: Memory Leak with static content
 
 
  All,
 
  OS: Sparc-Solaris 9
  JDK: 1.4.0_02
  Tomcat: 4.1.27
 
  Problem:
  I start tomcat and it takes up about 45MB of RAM.  I wrote a
  script to email me every ten minutes the amount of memory it's
  taking up.  The results are showing me that it gains about 1MB
  every 10 minutes or so (on average).  If I let it go, it will
  grow until it runs out of memory.  Right now, I have a script to
  restart tomcat after the memory is too high.  This is a bad
  solution.  I've looked at a LOT of people's suggestions from
  other threads, and I have tried the following:
 
  -Use jikes
  -Set development to false in web.xml
  -Increase the heap sizes
  -set fork to true in web.xml
 
  Other Info:
  -I'm using Tomcat to feed about 6 sites with static content.  I
  have one jsp page that handles all of our forms, and all that
  does is capture the input and send it to an email address.  It
  is the only code I have anywhere.  This jsp page is not causing
  the memory leak.
  -I had the same problem with 4.1.17, and was hoping that an
  update would help, but it didn't.
  -This is an incremental increase, and doesn't seem to have much
  to do with traffic patterns or how much I use my one jsp page.
 
  Any suggestions would be great.
  -Seth.



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



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



Re: setup of global resources, dbcp, mail, etc.

2003-09-15 Thread Adam Hardy
The tricky bit is to remember to put a reference to the global-resource 
in the contexts which want to use it:

  ResourceLink name=jdbc/RealmDB
global=jdbc/GlobalRealmDB
type=javax.sql.DataSource/
Adam

On 09/15/2003 07:03 PM Paul wrote:
has anyone been successful setting up a global resource under Tomcat 4.1, jdk 1.4 that is accessible to all webapps?  If so, please describe how you configured tomcat.

thanks, paul lomack
 
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problems starting/stopping tomcat

2003-09-15 Thread Shapira, Yoav

Howdy,
The general answer is, if you use a 3rd party library (in java, or c, or
whatever), it is your responsibility to ensure that library shuts down
properly.  The container can't do that for you.

In this specific case, how are you invoking the c library?

If you can change the library's code so that it always returns/quits
after a certain timeout, that's good.

Alternatively, if you invoke the library in a separate thread, keep a
handle to the thread, and interrupt it so that it returns from its run()
method when you're shutting down.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:30 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat

Hi,

I killed some processes related to native c calls I submit and now I
can
start/stop TC so this
 time it could have been some non-terminated processes (due to network
problem).
The question now is: I may have some situations like that e.g due to a
network problem
a native call can not be finished etc. How do I avoid running into such
severe problems:
do I have to implement sth. like a timeout in the c programm to
guarantee it will
quit  ?!
Thanks for your help.

Astrid

Astrid Wagner wrote:

 Thanks for the quick response.

 Shapira, Yoav wrote:

 Howdy,
 Several things to do:

 Try to start tomcat from the console (use catalina.sh run instead of
 catalina.sh start) and when you run into this condition again, use
 CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
 what your threads are doing.

 I ran catalina.sh run and run into this condition over and over.
 I do not know when/how I should terminate it since it prints out the
 message and finishes itself quickly. Should I look for java thread
 processes?


 Don't start non-daemon threads in your webapp.  Alternatively, if
you
 do, make sure they properly handle interruptions and quit.  If
you're
 not sure where they're coming from, do the above SIGQUIT approach to
 see.

 I am not aware of non-deamon threads. Maybe the problem has sth. to
do
 with native calls
 I use but they are terminated I guess ...
 Thanks
 Astrid


 As another alternative, though dirty and potentially very bad if

 there's

 more than one webapp on the server: write a ServletContextListener
that
 does System.exit(n) at the end of its contextDestroyed method ;)

 Yoav Shapira
 Millennium ChemInformatics




 -Original Message-
 From: Astrid Wagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 12:56 PM
 To: Tomcat Users List
 Subject: Re: problems starting/stopping tomcat

 Hi,

 Not again !!
 I ran into the same problem:
 SEVERE: Error initializing endpoint
 java.net.BindException: Address already in use:8080
   at

org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoin

 t



 .jav


 a:280)
   at

org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
   at

org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.j

 a



 va:1


 117)
   at

org.apache.catalina.core.StandardService.initialize(StandardService.ja

 v



 a:57


 9)
   at

org.apache.catalina.core.StandardServer.initialize(StandardServer.java

 :



 2246


 )

 not being able to get a clean state.
 Can you tell me how to look for status of ports and how I can kill


 those


 processes
 keeping thoses port occupied because I can not see tomcat process.
 netstat | grep 8080
 returns nothing (I get sth. for 8005) but that is not why it
fails??!
 I do not want to boot everytime I run into that problem ..
 Thanks Astrid


 Shapira, Yoav wrote:



 Howdy,
 I'm glad you're OK for now ;)

 Tomcat shuts down properly under normal circumstances.  The only

 times

 when it doesn't is when webapps start non-daemon threads and don't
 terminate them properly.  Sometimes your webapp doesn't do this


 directly


 but a 3rd party library used by your webapp does.

 Yoav Shapira
 Millennium ChemInformatics






 -Original Message-
 From: Astrid Wagner [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 9:08 AM
 To: Tomcat Users List
 Subject: Re: problems starting/stopping tomcat

 Thanks. We rebooted the machine and until now (I keep my fingers
 crossed) it works again.
 Tomcat must have not shut down properly leaving me in a deadlock.
 Astrid

 Shapira, Yoav wrote:





 Howdy,
 Use netstat to see the status of ports.

 Tomcat uses at least two ports at runtime: the SHUTDOWN port
(8005


 by


 default) and the actual user connector ports (8080 and 8009 by


 default


 for tomcat 4.1.x).

 What likely happened was:
 - Your first tomcat instance (ports 8005 and 8080) did not shut

 down

 properly,  most likely because you had non-daemon threads still




 running




 - When you changed to port 8081 and tried to start, you got the


 error


 because tomcat was still listening on port 8005 for shutdown.
You




 need




 to change both ports, or 

RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav

Howdy,
Run your app with a  profiler and a stress tool and see when and where
memory is allocated.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Seth Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:34 PM
To: Tomcat Users List
Subject: Re: Memory Leak with static content

All,

Updates to this issue

-I'm not sure if it's the OS, but I've never seen this happen before on
other Solaris installs.  What would I look at to determine if it's the
OS?..
The way that question is phrased makes it difficult for me to
completely
understand what you mean. Can you be more specific?
-It did take up memory until Tomcat would no longer serve pages.  Users
would try to see their sites and just get a blank white screen until
their
request timed out.  I haven't let it time go incrementally since I've
upgraded Tomcat or the jdk, however, I may let it stall out if I get
that
desperate.
-I upgraded to 1.4.2 and still the memory increases.
-Yes, I'm closing all streams in the email class.  Also, this
particular
code has been used successfully across platforms and across java
servers
for
about 3 years now.

Anymore input is greatly appreciated.

-Seth.
- Original Message -
From: Nikolaos Giannopoulos [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 12, 2003 6:04 PM
Subject: RE: Memory Leak with static content


 Seth,

 Have you tried JDK 1.4.2?  1.4.0 has been known to have a memory leak
in
the
 StringBuffer implementation w.r.t. re-using StringBuffers but you
mention
 that your only serving static content so this may not be it.

 However, I believe that I read that something like 2000 bugs have
been
fixed
 in 1.4.2 (if my memory serves me well).  We have have no visible
problems
 running tomcat 4.1.12/18 stand alone w/ 1.4.2 on Solaris 8 on 4 boxes
(no
 JSPs - just servlets and static content).

 Please reply back if this works or does not work for you - we are
looking
at
 upgrading our Tomcat instances in the near future.

 HTH.

 --Nikolaos


  -Original Message-
  From: Seth Newton [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 12, 2003 4:58 PM
  To: [EMAIL PROTECTED]
  Subject: Memory Leak with static content
 
 
  All,
 
  OS: Sparc-Solaris 9
  JDK: 1.4.0_02
  Tomcat: 4.1.27
 
  Problem:
  I start tomcat and it takes up about 45MB of RAM.  I wrote a
  script to email me every ten minutes the amount of memory it's
  taking up.  The results are showing me that it gains about 1MB
  every 10 minutes or so (on average).  If I let it go, it will
  grow until it runs out of memory.  Right now, I have a script to
  restart tomcat after the memory is too high.  This is a bad
  solution.  I've looked at a LOT of people's suggestions from
  other threads, and I have tried the following:
 
  -Use jikes
  -Set development to false in web.xml
  -Increase the heap sizes
  -set fork to true in web.xml
 
  Other Info:
  -I'm using Tomcat to feed about 6 sites with static content.  I
  have one jsp page that handles all of our forms, and all that
  does is capture the input and send it to an email address.  It
  is the only code I have anywhere.  This jsp page is not causing
  the memory leak.
  -I had the same problem with 4.1.17, and was hoping that an
  update would help, but it didn't.
  -This is an incremental increase, and doesn't seem to have much
  to do with traffic patterns or how much I use my one jsp page.
 
  Any suggestions would be great.
  -Seth.



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



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Specifying startup port on the command line?

2003-09-15 Thread Dana Bourgeois
I would rewrite catalina.sh to read arguments from the command line and use
them otherwise use some defaults.  The Oreilly book Learning the bash
shell has a great example for this using getopt to do exactly this.


Dana Bourgeois


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 9:28 AM
 To: Tomcat Users List
 Subject: RE: Specifying startup port on the command line?
 
 
 
 Howdy,
 Replace port=x with port=y via perl/sed/awk/whatever.  I 
 wouldn't count on 8080/8443 always being present/always being 
 the default values. In fact, I wouldn't do what you're doing 
 anyways, but I imagine you have good reason for it.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Stefan Lasiewski [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 12:28 PM
 To: Tomcat Users List (E-mail)
 Subject: Specifying startup port on the command line?
 
 Hey all,
 
 I am looking for a way to startup Tomcat and be able specify 
 the HTTP, 
 HTTPS  other ports on the commandline.
 
 I think I will probably use a sed script inside of catalina.sh to
 search 
 replace for strings like 8080 and 8443 in the server.xml file.
 
 However, this solution is a bit inflexible, and I was wondering what
 other
 ideas people have come up with.
 
 Thanks for your help,
 
 -= Stefan
 
 
 Stefan Lasiewski, Release Engineer
 Innovative Interfaces, Inc. - QA Department
 510-450-6363 ext. 4209
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Specifying startup port on the command line?

2003-09-15 Thread Shapira, Yoav

Howdy,
Or you could use EmbeddedTomcat...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dana Bourgeois [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:42 PM
To: 'Tomcat Users List'
Subject: RE: Specifying startup port on the command line?

I would rewrite catalina.sh to read arguments from the command line and
use
them otherwise use some defaults.  The Oreilly book Learning the bash
shell has a great example for this using getopt to do exactly this.


Dana Bourgeois


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 9:28 AM
 To: Tomcat Users List
 Subject: RE: Specifying startup port on the command line?



 Howdy,
 Replace port=x with port=y via perl/sed/awk/whatever.  I
 wouldn't count on 8080/8443 always being present/always being
 the default values. In fact, I wouldn't do what you're doing
 anyways, but I imagine you have good reason for it.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Stefan Lasiewski [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 12:28 PM
 To: Tomcat Users List (E-mail)
 Subject: Specifying startup port on the command line?
 
 Hey all,
 
 I am looking for a way to startup Tomcat and be able specify
 the HTTP,
 HTTPS  other ports on the commandline.
 
 I think I will probably use a sed script inside of catalina.sh to
 search 
 replace for strings like 8080 and 8443 in the server.xml file.
 
 However, this solution is a bit inflexible, and I was wondering what
 other
 ideas people have come up with.
 
 Thanks for your help,
 
 -= Stefan
 
 
 Stefan Lasiewski, Release Engineer
 Innovative Interfaces, Inc. - QA Department
 510-450-6363 ext. 4209
 
 

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




 This e-mail, including any attachments, is a confidential
 business communication, and may contain information that is
 confidential, proprietary and/or privileged.  This e-mail is
 intended only for the individual(s) to whom it is addressed,
 and may not be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended recipient,
 please immediately delete this e-mail from your computer
 system and notify the sender.  Thank you.


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




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
Yoav,

Thanks for the response.  I've used what you've suggested in the past on
development servers, but I'm saving your suggestion for a last ditch
possibility.  The length of time to install a profiler and re-familiarize
myself with its use is something I'd like to skip.  On top of that, this is
a production server and I wouldn't want to run a profiler and stress it out
;).

I'm trying hard to stand behind the jakarta community here, because I've
gotten some good use out of Tomcat in the past.  I'm even taking heat from
fellow developers for using Tomcat on a production server, but I think it
can be done.  I'll wait and see if there are any more suggestions, and then
I'll either decide to trudge ahead with OptimizeIt or just change java
servers.

-Seth.
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:40 PM
Subject: RE: Memory Leak with static content



 Howdy,
 Run your app with a  profiler and a stress tool and see when and where
 memory is allocated.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Seth Newton [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 1:34 PM
 To: Tomcat Users List
 Subject: Re: Memory Leak with static content
 
 All,
 
 Updates to this issue
 
 -I'm not sure if it's the OS, but I've never seen this happen before on
 other Solaris installs.  What would I look at to determine if it's the
 OS?..
 The way that question is phrased makes it difficult for me to
 completely
 understand what you mean. Can you be more specific?
 -It did take up memory until Tomcat would no longer serve pages.  Users
 would try to see their sites and just get a blank white screen until
 their
 request timed out.  I haven't let it time go incrementally since I've
 upgraded Tomcat or the jdk, however, I may let it stall out if I get
 that
 desperate.
 -I upgraded to 1.4.2 and still the memory increases.
 -Yes, I'm closing all streams in the email class.  Also, this
 particular
 code has been used successfully across platforms and across java
 servers
 for
 about 3 years now.
 
 Anymore input is greatly appreciated.
 
 -Seth.
 - Original Message -
 From: Nikolaos Giannopoulos [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 6:04 PM
 Subject: RE: Memory Leak with static content
 
 
  Seth,
 
  Have you tried JDK 1.4.2?  1.4.0 has been known to have a memory leak
 in
 the
  StringBuffer implementation w.r.t. re-using StringBuffers but you
 mention
  that your only serving static content so this may not be it.
 
  However, I believe that I read that something like 2000 bugs have
 been
 fixed
  in 1.4.2 (if my memory serves me well).  We have have no visible
 problems
  running tomcat 4.1.12/18 stand alone w/ 1.4.2 on Solaris 8 on 4 boxes
 (no
  JSPs - just servlets and static content).
 
  Please reply back if this works or does not work for you - we are
 looking
 at
  upgrading our Tomcat instances in the near future.
 
  HTH.
 
  --Nikolaos
 
 
   -Original Message-
   From: Seth Newton [mailto:[EMAIL PROTECTED]
   Sent: Friday, September 12, 2003 4:58 PM
   To: [EMAIL PROTECTED]
   Subject: Memory Leak with static content
  
  
   All,
  
   OS: Sparc-Solaris 9
   JDK: 1.4.0_02
   Tomcat: 4.1.27
  
   Problem:
   I start tomcat and it takes up about 45MB of RAM.  I wrote a
   script to email me every ten minutes the amount of memory it's
   taking up.  The results are showing me that it gains about 1MB
   every 10 minutes or so (on average).  If I let it go, it will
   grow until it runs out of memory.  Right now, I have a script to
   restart tomcat after the memory is too high.  This is a bad
   solution.  I've looked at a LOT of people's suggestions from
   other threads, and I have tried the following:
  
   -Use jikes
   -Set development to false in web.xml
   -Increase the heap sizes
   -set fork to true in web.xml
  
   Other Info:
   -I'm using Tomcat to feed about 6 sites with static content.  I
   have one jsp page that handles all of our forms, and all that
   does is capture the input and send it to an email address.  It
   is the only code I have anywhere.  This jsp page is not causing
   the memory leak.
   -I had the same problem with 4.1.17, and was hoping that an
   update would help, but it didn't.
   -This is an incremental increase, and doesn't seem to have much
   to do with traffic patterns or how much I use my one jsp page.
  
   Any suggestions would be great.
   -Seth.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential business

RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Neil Aggarwal
Paul:

When I modify a class and put it in my webapp, I don't
get the changes loaded.

There is also usually a message in the catalina.out stating
that the class was reloaded.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Paul [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 12:06 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
 how would i know if tomcat is not reloading classes?
 
 - Original Message - 
 From: Neil Aggarwal [EMAIL PROTECTED]
 To: 'Tomcat-User' [EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:35 AM
 Subject: RE: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
  Yoav:
  
  Did you get my answer that my tar is gnu tar?
  
  Has anyone else had a problem with Tomcat 4.1.27 not 
 reloading classes?
  
  Thanks
  Neil
  
  
   Your tar is GNU tar, right?
  
  
   I have a server running tomcat 4.1.27 and it is not reloading
   classes for my webapp even after applying the hotfix.
  
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by

 17% or more in 6 months or less! =
http://newsletter.JAMMConsulting.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav

Howdy,
I assumed you had a test server that mimic your production setup -- I
wasn't suggested you run with a profiler on a production server, as the
slowdown is unbearable usually ;)

Make sure the server in question has all the required Solaris OS patches
for the JDK version you're using.  We forgot to do that a couple of
times and had unstable behavior.

Other than that, I concur with what Senor Giannopoulos said: we've seen
no problems running tomcat with JDK 1.4.2 on Solaris 8 in production for
heavy traffic sites with lots of static (and dynamic) content.  In fact,
we moved from $$$ servers to tomcat and have been exceedingly happy with
the results.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Seth Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 2:01 PM
To: Tomcat Users List
Subject: Re: Memory Leak with static content

Yoav,

Thanks for the response.  I've used what you've suggested in the past
on
development servers, but I'm saving your suggestion for a last ditch
possibility.  The length of time to install a profiler and
re-familiarize
myself with its use is something I'd like to skip.  On top of that,
this is
a production server and I wouldn't want to run a profiler and stress it
out
;).

I'm trying hard to stand behind the jakarta community here, because
I've
gotten some good use out of Tomcat in the past.  I'm even taking heat
from
fellow developers for using Tomcat on a production server, but I think
it
can be done.  I'll wait and see if there are any more suggestions, and
then
I'll either decide to trudge ahead with OptimizeIt or just change java
servers.

-Seth.
- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:40 PM
Subject: RE: Memory Leak with static content



 Howdy,
 Run your app with a  profiler and a stress tool and see when and
where
 memory is allocated.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Seth Newton [mailto:[EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 1:34 PM
 To: Tomcat Users List
 Subject: Re: Memory Leak with static content
 
 All,
 
 Updates to this issue
 
 -I'm not sure if it's the OS, but I've never seen this happen before
on
 other Solaris installs.  What would I look at to determine if it's
the
 OS?..
 The way that question is phrased makes it difficult for me to
 completely
 understand what you mean. Can you be more specific?
 -It did take up memory until Tomcat would no longer serve pages.
Users
 would try to see their sites and just get a blank white screen until
 their
 request timed out.  I haven't let it time go incrementally since
I've
 upgraded Tomcat or the jdk, however, I may let it stall out if I get
 that
 desperate.
 -I upgraded to 1.4.2 and still the memory increases.
 -Yes, I'm closing all streams in the email class.  Also, this
 particular
 code has been used successfully across platforms and across java
 servers
 for
 about 3 years now.
 
 Anymore input is greatly appreciated.
 
 -Seth.
 - Original Message -
 From: Nikolaos Giannopoulos [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 12, 2003 6:04 PM
 Subject: RE: Memory Leak with static content
 
 
  Seth,
 
  Have you tried JDK 1.4.2?  1.4.0 has been known to have a memory
leak
 in
 the
  StringBuffer implementation w.r.t. re-using StringBuffers but you
 mention
  that your only serving static content so this may not be it.
 
  However, I believe that I read that something like 2000 bugs have
 been
 fixed
  in 1.4.2 (if my memory serves me well).  We have have no visible
 problems
  running tomcat 4.1.12/18 stand alone w/ 1.4.2 on Solaris 8 on 4
boxes
 (no
  JSPs - just servlets and static content).
 
  Please reply back if this works or does not work for you - we are
 looking
 at
  upgrading our Tomcat instances in the near future.
 
  HTH.
 
  --Nikolaos
 
 
   -Original Message-
   From: Seth Newton [mailto:[EMAIL PROTECTED]
   Sent: Friday, September 12, 2003 4:58 PM
   To: [EMAIL PROTECTED]
   Subject: Memory Leak with static content
  
  
   All,
  
   OS: Sparc-Solaris 9
   JDK: 1.4.0_02
   Tomcat: 4.1.27
  
   Problem:
   I start tomcat and it takes up about 45MB of RAM.  I wrote a
   script to email me every ten minutes the amount of memory it's
   taking up.  The results are showing me that it gains about 1MB
   every 10 minutes or so (on average).  If I let it go, it will
   grow until it runs out of memory.  Right now, I have a script to
   restart tomcat after the memory is too high.  This is a bad
   solution.  I've looked at a LOT of people's suggestions from
   other threads, and I have tried the following:
  
   -Use jikes
   -Set development to false in web.xml
   -Increase the heap sizes
   -set fork to true in web.xml
  
   Other Info:
   -I'm using Tomcat to feed about 6 sites with static content.  I
   have one jsp page that handles all 

Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
Here's what's happened on the server since 12:40 today

Virtual Size: 112592
Real Size: 61880
Time Up(days-hours:minutes:seconds): 01:05:20

Virtual Size: 112592
Real Size: 62288
Time Up(days-hours:minutes:seconds): 01:15:20

Virtual Size: 112592
Real Size: 64376
Time Up(days-hours:minutes:seconds): 01:25:20

Virtual Size: 140976
Real Size: 76688
Time Up(days-hours:minutes:seconds): 01:35:21

Virtual Size: 142048
Real Size: 78824
Time Up(days-hours:minutes:seconds): 01:45:20

Virtual Size: 142048
Real Size: 78976
Time Up(days-hours:minutes:seconds): 01:55:20

Virtual Size: 142056
Real Size: 79000
Time Up(days-hours:minutes:seconds): 02:05:20

Virtual Size: 142056
Real Size: 79240
Time Up(days-hours:minutes:seconds): 02:15:20

Virtual Size: 142056
Real Size: 79624
Time Up(days-hours:minutes:seconds): 02:25:21

Virtual Size: 142056
Real Size: 80400
Time Up(days-hours:minutes:seconds): 02:35:20

This is an example of what's happening.  The memory it is using increases,
yet never decreases.  I'm able to run more processes on another server of
ours under Linux, and the memory never increases over 60MB.

-Seth.
- Original Message - 
From: Seth Newton [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 2:01 PM
Subject: Re: Memory Leak with static content


 Yoav,

 Thanks for the response.  I've used what you've suggested in the past on
 development servers, but I'm saving your suggestion for a last ditch
 possibility.  The length of time to install a profiler and re-familiarize
 myself with its use is something I'd like to skip.  On top of that, this
is
 a production server and I wouldn't want to run a profiler and stress it
out
 ;).

 I'm trying hard to stand behind the jakarta community here, because I've
 gotten some good use out of Tomcat in the past.  I'm even taking heat from
 fellow developers for using Tomcat on a production server, but I think it
 can be done.  I'll wait and see if there are any more suggestions, and
then
 I'll either decide to trudge ahead with OptimizeIt or just change java
 servers.

 -Seth.
 - Original Message - 
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 1:40 PM
 Subject: RE: Memory Leak with static content


 
  Howdy,
  Run your app with a  profiler and a stress tool and see when and where
  memory is allocated.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Seth Newton [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 15, 2003 1:34 PM
  To: Tomcat Users List
  Subject: Re: Memory Leak with static content
  
  All,
  
  Updates to this issue
  
  -I'm not sure if it's the OS, but I've never seen this happen before on
  other Solaris installs.  What would I look at to determine if it's the
  OS?..
  The way that question is phrased makes it difficult for me to
  completely
  understand what you mean. Can you be more specific?
  -It did take up memory until Tomcat would no longer serve pages.  Users
  would try to see their sites and just get a blank white screen until
  their
  request timed out.  I haven't let it time go incrementally since I've
  upgraded Tomcat or the jdk, however, I may let it stall out if I get
  that
  desperate.
  -I upgraded to 1.4.2 and still the memory increases.
  -Yes, I'm closing all streams in the email class.  Also, this
  particular
  code has been used successfully across platforms and across java
  servers
  for
  about 3 years now.
  
  Anymore input is greatly appreciated.
  
  -Seth.
  - Original Message -
  From: Nikolaos Giannopoulos [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, September 12, 2003 6:04 PM
  Subject: RE: Memory Leak with static content
  
  
   Seth,
  
   Have you tried JDK 1.4.2?  1.4.0 has been known to have a memory leak
  in
  the
   StringBuffer implementation w.r.t. re-using StringBuffers but you
  mention
   that your only serving static content so this may not be it.
  
   However, I believe that I read that something like 2000 bugs have
  been
  fixed
   in 1.4.2 (if my memory serves me well).  We have have no visible
  problems
   running tomcat 4.1.12/18 stand alone w/ 1.4.2 on Solaris 8 on 4 boxes
  (no
   JSPs - just servlets and static content).
  
   Please reply back if this works or does not work for you - we are
  looking
  at
   upgrading our Tomcat instances in the near future.
  
   HTH.
  
   --Nikolaos
  
  
-Original Message-
From: Seth Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 4:58 PM
To: [EMAIL PROTECTED]
Subject: Memory Leak with static content
   
   
All,
   
OS: Sparc-Solaris 9
JDK: 1.4.0_02
Tomcat: 4.1.27
   
Problem:
I start tomcat and it takes up about 45MB of RAM.  I wrote a
script to email me every ten minutes the amount of memory it's
taking up.  The results are showing me that it gains about 1MB

Re: setup of global resources, dbcp, mail, etc.

2003-09-15 Thread Paul
thanks for the response.  I think you are suggesting an approach i have
already tried, with confusing results (confusing in that it worked for one
web app, but not another!), namely, setting up a global resource under the
following server.xml tag:   GlobalNamingResources

the actual resource tag i use is as follows:  Resource name=jdbc/eplResrc
auth=Container type=javax.sql.DataSource/

and then the resource link is specified as follows:
Context path=/test docBase=test debug=5 reloadable=true
crossContext=true

ResourceLink name=jdbc/eplResrc global=jdbc/eplResrc
type=javax.sql.DataSource/

/Context

Notice that the values for the name and global parameter in the
ResourceLink tag are the same.  I notice that in your example they are
different.  Where does the global value get defined?


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:36 PM
Subject: Re: setup of global resources, dbcp, mail, etc.


 The tricky bit is to remember to put a reference to the global-resource
 in the contexts which want to use it:

ResourceLink name=jdbc/RealmDB
  global=jdbc/GlobalRealmDB
  type=javax.sql.DataSource/

 Adam

 On 09/15/2003 07:03 PM Paul wrote:
  has anyone been successful setting up a global resource under Tomcat
4.1, jdk 1.4 that is accessible to all webapps?  If so, please describe how
you configured tomcat.
 
  thanks, paul lomack
 

 -- 
 struts 1.1 + tomcat 4.1.27 + java 1.4.2
 Linux 2.4.20 RH9


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





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



Re: Servlet testing tools

2003-09-15 Thread Darryl L. Pierce
Shapira, Yoav wrote:
Actually, I think he wants stress testing and not unit/integration
testing.  Use JMeter, it's great: http://jakarta.apache.org/jmeter/.
That's what I'm looking for. I need to create on the order of 1k-5k 
connections to my servlet and see how performance degrades.

--
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://bellsouthpwp.net/m/c/mcpierce
What do you care what other people think, Mr. Feynman?


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


RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav

Howdy,

Here's what's happened on the server since 12:40 today

Virtual Size: 112592
Real Size: 61880
Time Up(days-hours:minutes:seconds): 01:05:20
snip

You realize these numbers are meaningless to anyone except you, as we
don't know what you're measuring, how you're measuring it, what the
proper results / proper behavior is, etc.

This is an example of what's happening.  The memory it is using
increases,
yet never decreases.  I'm able to run more processes on another server
of
ours under Linux, and the memory never increases over 60MB.

On tomcat on Linux, you mean?  If so, wouldn't that conclude that the
problem is in the OS, not in Tomcat or your code?  You're using the same
JVM version on Solaris and Linux, right?

One thing worth investigating is the GC settings.  What are they right
now?

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
 You realize these numbers are meaningless to anyone except you, as we
 don't know what you're measuring, how you're measuring it, what the
 proper results / proper behavior is, etc.
No, I didn't realize my numbers meant nothing.  I figured them to be
self-explanatory.  The numbers supplied were there simply as evidence of the
incremental increase of memory over time.  That's all.  I apologize for any
confusion.

 One thing worth investigating is the GC settings.  What are they right
 now?
Actually, I didn't reset them after the upgrade to Tomcat 4.1.27.  I just
changed them to -Xms60m -Xmx80m.
I'll change these numbers after I'm done babysitting the server, but I'd
like to see what happens once the limit is reached.

-Seth.
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 2:17 PM
Subject: RE: Memory Leak with static content



 Howdy,

 Here's what's happened on the server since 12:40 today
 
 Virtual Size: 112592
 Real Size: 61880
 Time Up(days-hours:minutes:seconds): 01:05:20
 snip

 You realize these numbers are meaningless to anyone except you, as we
 don't know what you're measuring, how you're measuring it, what the
 proper results / proper behavior is, etc.

 This is an example of what's happening.  The memory it is using
 increases,
 yet never decreases.  I'm able to run more processes on another server
 of
 ours under Linux, and the memory never increases over 60MB.

 On tomcat on Linux, you mean?  If so, wouldn't that conclude that the
 problem is in the OS, not in Tomcat or your code?  You're using the same
 JVM version on Solaris and Linux, right?

 One thing worth investigating is the GC settings.  What are they right
 now?

 Yoav Shapira




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



Looking for isapi_redirect.dll

2003-09-15 Thread Barry Rader
If anyone has a valid link or could email me this dll I would greatly
appreciate it. Unless there is another way to run Tomcat along side IIS.


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



RE: How deploy EJB on Tomcat?

2003-09-15 Thread Goehring, Chuck Mr., RCI - San Diego

Igor,

Tomcat has no EJB Container as they call it.  I'd use JBoss (www.jboss.org) if I had 
EJB work to do.  Otherwise, one of the commercial products would be needed.

Chuck


-Original Message-
From: Igor Grygorov [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 10:41 PM
To: [EMAIL PROTECTED]
Subject: How deploy EJB on Tomcat?


Does the Tomcat-IIS support deploing Enterprise Java
Beans?
Can you send me information or links about it, please?

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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



Re: Tomcat SSL issues and looking for an expert

2003-09-15 Thread Randy Carpenter

Any ideas as to when 4.1.28 will be out?

Also, on my second question... still looking for an 'expert.' My customer 
wants someone with experience in using Tomcat in a largescale environment 
(1-2 million hits per day). There is a possibility of this being short 
term contract deal.

thanks,

-Randy

-- 

| Randy Carpenter http://www.rune.net
| The Rune Network Wapakoneta, OH
-

On Thu, 11 Sep 2003, Bill Barker wrote:

 Date: Thu, 11 Sep 2003 21:20:11 -0700
 From: Bill Barker [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat SSL issues and looking for an expert
 
 Without more details, I'm guess the problem with the SSL standalone
 configuration is the same as
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21763.
 
 Fronting Tomcat with Apache avoids the bug above, but as anyone who has been
 on this list at least a day knows, it comes with its own worm-can ;-).
 
 Randy Carpenter [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
  I have a customer who is running Tomcat 4.1.27. We have been having a
  problem when using SSL (running the site on port 443). Periodically the
  server will stop responding on 443, but not on port 80. Restarting the
  Tomcat server is required to restore functionality.
 
  We are also looking at the possibility of using the standard Apache HTTP
  server as a front-end, and using tomcat as a JSP backend server.
 
  I have been asked to try to find someone, an expert at Tomcat, that
  could help out my customer in planning their implementation, and possibly
  figuring out the SSL hanging issue in the meantime. Is there anyone that
  may be able to help?
 
  Specs:
 
  Tomcat 4.1.27, Sun JDK 1.4.2, Red Hat Linux 9
 
  thanks,
  Randy
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Memory Leak with static content

2003-09-15 Thread Shapira, Yoav

Howdy,

 You realize these numbers are meaningless to anyone except you, as we
 don't know what you're measuring, how you're measuring it, what the
 proper results / proper behavior is, etc.
No, I didn't realize my numbers meant nothing.  I figured them to be
self-explanatory.  The numbers supplied were there simply as evidence
of
the
incremental increase of memory over time.  That's all.  I apologize for
any
confusion.

I was unclear -- they're not evidence of anything until you explain how
they're measured and what you would expect to see under normal
conditions (or alternatively show the numbers from Solaris and Linux
side by side, allowing space for JVM implementation variability).

Actually, I didn't reset them after the upgrade to Tomcat 4.1.27.  I
just
changed them to -Xms60m -Xmx80m.

These settings suggest a minimum heap of 60MB, and a maximum heap of
80m.  Is that the behavior you want?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Tomcat in JBoss setup with IIS

2003-09-15 Thread Haytham Samad
Okay.  I am trying to setup Tomcat with IIS.  I have done this before
successfully with Tomcat standalone.  Now I have to use JBoss with Tomcat
embedded (jboss-3.2.1_tomcat-4.1.24).  The configuration is not working so
well nor does it map as nicely.  Anywhere I can look to get a description of
what needs to be done?  Has anyone done this and wants to share what needs
to be done?

Thanks




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



Re: Memory Leak with static content

2003-09-15 Thread Seth Newton
These settings suggest a minimum heap of 60MB, and a maximum heap of
80m.  Is that the behavior you want?
RESPONSE: Yeah, that's what I want for now.  I want to see what happens when
the garbage collector is called normally.

On a side note, I just called System.gc() manually and it only cleared a
couple hundred bytes.  I will try later though, as it hasn't been long since
last restart.

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 3:04 PM
Subject: RE: Memory Leak with static content



 Howdy,

  You realize these numbers are meaningless to anyone except you, as we
  don't know what you're measuring, how you're measuring it, what the
  proper results / proper behavior is, etc.
 No, I didn't realize my numbers meant nothing.  I figured them to be
 self-explanatory.  The numbers supplied were there simply as evidence
 of
 the
 incremental increase of memory over time.  That's all.  I apologize for
 any
 confusion.

 I was unclear -- they're not evidence of anything until you explain how
 they're measured and what you would expect to see under normal
 conditions (or alternatively show the numbers from Solaris and Linux
 side by side, allowing space for JVM implementation variability).

 Actually, I didn't reset them after the upgrade to Tomcat 4.1.27.  I
 just
 changed them to -Xms60m -Xmx80m.

 These settings suggest a minimum heap of 60MB, and a maximum heap of
 80m.  Is that the behavior you want?

 Yoav Shapira



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



  1   2   >