Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!

2007-01-11 Thread starki78
Thank you all for your answers!
Starki

-- Initial Header ---

From  : Suresh babu [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  :
Date  : Wed, 10 Jan 2007 19:17:21 +0530
Subject : Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!







 Hi,

 Just for your information ..

 Memmory is divided in young and old generation as object life increasing it
 will occupy space i old generation,

 Please refer SUN JVM documentation.

 GC will keep happening once the memmory (Young generation )reached
 threshold.

 Young generation again divided in to survivor 0 and survivor 1 spaces.
 When a object is created it keeps allocating in survivor spaces
 alternatively.
 Two types of GC:

 Mini GC : Cleaning only with in young generation
 Full GC: If all objects present in young generation are alive so cleaning
 happens in old generation hence will become FUll GC

 Following is the info I have sent a mail to some person (It may be usefull)

 ---
 Setting heap size to -Xms256   -Xmx1024 will allocate memmory intially to
 256 MB and keeps expanding as  allocating more objects up to 1024.
 My recomendation to you is as mentioned in previos mail set heap size to
 -Xms1536 -Xmx1536 and verify it.

 But Do not increase heap size blindly to greater values which may lead to
 performance issue(Pause times may become more to clean GC).

 try the heap settings and let me know, If still problem is there just send
 the verbose output and log file.

 ---

 On 1/10/07, starki78 [EMAIL PROTECTED] wrote:
 
  Hi I'm profiling my application with -verboseGC.
  My maximum heap-size is
  XMS is 1.5GB but the garbage collection always is executed
  when about 1GB is reached.
  Why is it so early?
  Is there anything to control this?
  I'm using Sun 1.4.2
 
  Thanks and nice greetings
  Starki
 
 
 
 
 
 
  --
  Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
  http://click.libero.it/infostrada10gen07
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Suresh Babu,
 Software Engineer,
 Computer Associates-India
 


--
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada11gen07



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



Re: the best method to secure Apache/tomcat communication

2007-01-11 Thread lmk

I will propose this solution to the person in charge of  servers  security
management. But,  I don't really think so  that it will be accepted.
thanks.



Filip Hanik - Dev Lists wrote:
 
 take a look at autoSSH
 http://www.harding.motd.ca/autossh/
 
 Filip
 
 Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Lmk,

 lmk wrote:
   
 I have a question concerning the use of Apache server in front of
 tomcat, at
 the present time, we use tomcat 4, AJP, apache 2.2 and mod_jk to manage
 load
 balancing. it work roughly fine; but new security rules require
 [encrypting] the
 traffic between 2 web servers.
 we cant use solution like IPSEC  or VPN tunnel. so, i think to replace
 mod_jk with mod_proxy ,but, how to  replace mod_jk load balancer?
 

 What about using an ssh tunnel? The only problem with that is you will
 need to monitor the ssh connection for disconnects and reconnect if
 necessary.

 Are all your servers in the same data center? Often, server farms will
 have a primary network interface used for communicating with the
 Internet, and then a secondary network interface to a private network
 that includes nothing but your own servers. Often, you can use a faster
 network than is available to the outside (perhaps gigabit ethernet if
 the rest of the center runs on 100baseT, or even better if your data
 center will provide it). Then, your servers can communicate on their own
 private network. As long as you trust that network, you can avoid
 encryption and enjoy better performance.

 - -chris

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

 iD8DBQFFpPYU9CaO5/Lv0PARAuHTAKCOG98BuTnZNm8EUaxrX9lme51yowCfSxrj
 I7If0C50/V2oGz93LL79fa8=
 =gLAI
 -END PGP SIGNATURE-

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



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

-- 
View this message in context: 
http://www.nabble.com/the-best-method-to-secure-Apache-tomcat-communication-tf2951906.html#a8273905
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread olivier nouguier

Hi,
Nothing more than for another database.
But:
- be carrefull to put a valid validationQuery ( eg: select 1; is not
supported by DB2/OS400 )!
the URL and drivers should look like:
 parameter
   nameurl/name
valuejdbc:as400://yourServerName;libraries=YOURSLIB1,YOURSLIB2;prompt=false;errors=full;trace=false/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.ibm.as400.access.AS400JDBCDriver/value
 /parameter
 parameter

On 1/9/07, Greg Foulks [EMAIL PROTECTED] wrote:


I've read the JNDI docs and can't find an example as to how to configure a
connection for a DB2.

I need to be able to setup a autoreconnect and a validation query in my
server.xml but can't seem to find an example. Anyone able to help direct
me
in the to right location?

Greg





--
Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie
et toi dans les pleurs.
Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs
et toi dans la joie.


Re: Is it possible to deploy a war file which gives a different context name?

2007-01-11 Thread Markus Schönhaber
Aaron Chai wrote:
 Is it possible for Tomcat to deploy war files where the context name is not
 the same as the original war file name, e.g. deploying webapp.war and the
 context name is /mainApp instead of /webapp. How would this be achieved if
 it is possible?

I don't think this is possible - at least not with Tomcat = 5. As
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
states, the only case where the Context's path may be set via a configuration 
option is when statically defining a Context in server.xml - which is 
discouraged and doesn't go along well with deploying a war file.

Regards
  mks

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



Re: Is it possible to deploy a war file which gives a different context name?

2007-01-11 Thread Tim Funk

Yes (I think)
1) Keep the war file out of the tomcat installation
2) Use a context declaration which points to the war file (mainApp.xml)
3) Don't unpack wars (Host ... unpackWARs=false ...)

mainApp.xml
===
Context docBase='/usr/local/wars/foo.war'/
===

-Tim

Aaron Chai wrote:
Is it possible for Tomcat to deploy war files where the context name is 
not the same as the original war file name, e.g. deploying webapp.war 
and the context name is /mainApp instead of /webapp. How would this be 
achieved if it is possible?



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



Re: Error: Name jdbc is not bound in this context

2007-01-11 Thread Mark Thomas
robi wrote:
 Dear all,
 
 I am trying to use JDBC and transactions in Tomcat 5.5.20 with JOTM (as
 explained  this tutorial
 http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html).
 
 But I am getting the following error when I do
 http://localhost:8080/dbtest/test.jsp,
 
   javax.naming.NameNotFoundException:Name jdbc is not bound in this context
 

Look in the logs to see what errors you have

Have a look at the Tomcat docs:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Rather than using ResourceParams ... /, put everything in the
Resource ... / as per the docs.

Mark

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



Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread Greg Foulks

then what would be a vaild validation query?

On 1/11/07, olivier nouguier [EMAIL PROTECTED] wrote:

Hi,
 Nothing more than for another database.
 But:
- be carrefull to put a valid validationQuery ( eg: select 1; is not
supported by DB2/OS400 )!
the URL and drivers should look like:
  parameter
nameurl/name
valuejdbc:as400://yourServerName;libraries=YOURSLIB1,YOURSLIB2;prompt=false;errors=full;trace=false/value
  /parameter
  parameter
namedriverClassName/name
valuecom.ibm.as400.access.AS400JDBCDriver/value
  /parameter
  parameter

On 1/9/07, Greg Foulks [EMAIL PROTECTED] wrote:

 I've read the JNDI docs and can't find an example as to how to configure a
 connection for a DB2.

 I need to be able to setup a autoreconnect and a validation query in my
 server.xml but can't seem to find an example. Anyone able to help direct
 me
 in the to right location?

 Greg




--
Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie
et toi dans les pleurs.
Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs
et toi dans la joie.




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



Re: Tomcat Admin

2007-01-11 Thread Markus Schönhaber
Chetan Pandey wrote:

 I installed Tomcat Admin to C:/tomcatadmin Folder.



 How do I tell my Tomcat located in C:tomcat5.5 to recognize this version
 and allow me to access it using

This question has been asked a few times recently. Charles Calderale has given 
an extensive explanation on this topic.
Search the list archives or start reading this thread:
http://marc.theaimsgroup.com/?l=tomcat-userm=116224937931980w=2

Regards
  mks

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



Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread olivier nouguier

A query that *always* return a row ...

On 1/11/07, Greg Foulks [EMAIL PROTECTED] wrote:


then what would be a vaild validation query?

On 1/11/07, olivier nouguier [EMAIL PROTECTED] wrote:
 Hi,
  Nothing more than for another database.
  But:
 - be carrefull to put a valid validationQuery ( eg: select 1; is not
 supported by DB2/OS400 )!
 the URL and drivers should look like:
   parameter
 nameurl/name

valuejdbc:as400://yourServerName;libraries=YOURSLIB1,YOURSLIB2;prompt=false;errors=full;trace=false/value
   /parameter
   parameter
 namedriverClassName/name
 valuecom.ibm.as400.access.AS400JDBCDriver/value
   /parameter
   parameter

 On 1/9/07, Greg Foulks [EMAIL PROTECTED] wrote:
 
  I've read the JNDI docs and can't find an example as to how to
configure a
  connection for a DB2.
 
  I need to be able to setup a autoreconnect and a validation query in
my
  server.xml but can't seem to find an example. Anyone able to help
direct
  me
  in the to right location?
 
  Greg
 
 


 --
 Souviens-toi qu'au moment de ta naissance tout le monde était dans la
joie
 et toi dans les pleurs.
 Vis de manière qu'au moment de ta mort, tout le monde soit dans les
pleurs
 et toi dans la joie.



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





--
Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie
et toi dans les pleurs.
Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs
et toi dans la joie.


Re: Error: Name jdbc is not bound in this context

2007-01-11 Thread robi

Hi Mark,


Thanks for your  reply.

I changed my Context.xml like this,

Context path=/dbtest docBase=dbtest.war debug=0
  reloadable=true crossContext=true
   
  Resource name=jdbc/myDB auth=Container
type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/javatest username=mojo password=jojo
maxActive=20 maxIdle=10 maxWait=-1/

but still I get the same error.

My log file shows this,

Jan 11, 2007 2:35:59 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jan 11, 2007 2:36:00 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 11, 2007 2:36:00 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 11, 2007 2:36:00 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Jan 11, 2007 2:36:03 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\JDK
1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\apache2triad\bin;C:\apache2triad\perl\bin;C:\apache2triad\php\bin;C:\apache2triad\mysql\bin;C:\apache2triad\opssl\bin;C:\apache2triad\python\bin;C:\apache2triad\pgsql\bin;C:\JDK
1.5.0_06\bin;;C:\apache2triad\bin;C:\apache2triad\perl\bin;C:\apache2triad\php\bin;C:\apache2triad\mysql\bin;C:\apache2triad\opssl\bin;C:\apache2triad\python\bin;C:\apache2triad\pgsql\bin;C:\Sun\SDK\bin;C:\JDK
1.5.0_06\bin;C:\ANT\apache-ant-1.6.5\bin;
Jan 11, 2007 2:36:03 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 11, 2007 2:36:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 875 ms
Jan 11, 2007 2:36:03 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 11, 2007 2:36:03 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jan 11, 2007 2:36:03 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 11, 2007 2:36:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive bank.war
Jan 11, 2007 2:36:04 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Tomcat
5.5\apache-tomcat-5.5.20\webapps\bank\WEB-INF\lib\servlet.jar) - jar not
loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
Jan 11, 2007 2:36:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive dbtest.war
Jan 11, 2007 2:36:04 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive struts-blank-1.3.5.war
Jan 11, 2007 2:36:04 PM org.apache.struts.action.ActionServlet initChain
INFO: Loading chain catalog from
jar:file:/C:/Tomcat%205.5/apache-tomcat-5.5.20/webapps/struts-blank-1.3.5/WEB-INF/lib/struts-core-1.3.5.jar!/org/apache/struts/chain/chain-config.xml
Jan 11, 2007 2:36:05 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from
'/org/apache/struts/validator/validator-rules.xml'
Jan 11, 2007 2:36:05 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'


Any ideas?? Am I doing something wrong still?

rgds,
robi
   
 
/Context

Mark Thomas-11 wrote:
 
 robi wrote:
 Dear all,
 
 I am trying to use JDBC and transactions in Tomcat 5.5.20 with JOTM (as
 explained  this tutorial
 http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html).
 
 But I am getting the following error when I do
 http://localhost:8080/dbtest/test.jsp,
 
   javax.naming.NameNotFoundException:Name jdbc is not bound in this
 context
 
 
 Look in the logs to see what errors you have
 
 Have a look at the Tomcat docs:
 http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
 Rather than using ResourceParams ... /, put everything in the
 Resource ... / as per the docs.
 
 Mark
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-Name-jdbc-is-not-bound-in-this-context-tf2958032.html#a8277572
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



SSL Certificate

2007-01-11 Thread Jim Reynolds

I have configured SSL a while back and created a temporary certificate
following the documentation that is under SSL.

Not a major problem, but while developing with this, everytime I click
on a page using Mozilla, I get a popup stating the following: Unable
to verify the identify of devsite as a trusted site. I would assume
this is because I created it, and that it is not a verisign or
certified certificate. This is a pain because while doing QA, etc. I
am constantly getting this error.

Is there a way to create a certificate that would work in this
instance that possibly I could certify, and just use for development
QA?

Thanks,

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



Re: [OT] a Collection of beans to store sql data

2007-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bob,

Bob Hall wrote:
 You missed the essence of Chris's suggestion:
 
 3. Throw an exception in your catch(SQLException) block.
 
 In other words, your catch block would swallow the SQLException
 should one occur.

Just to be clear, I usually don't advocate the swallowing of an
exception. I typically encourage the use of a wrapped exception, like this:

catch (SQLException sqle)
{
   throw new ApplicationSpecficException(Cannot query db, sqle);
}

Where the original exception is kept around, and even shows up in the
stack trace as the root cause.

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

iD8DBQFFpk7w9CaO5/Lv0PARAkBoAKCMNUGNE9bUc6kQ5q3mJvUfTt58KQCfXF1N
LoAz/ziIrMX3iWIILCB1v5w=
=0itK
-END PGP SIGNATURE-

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



RE: Is it possible to deploy a war file which gives a different contextname?

2007-01-11 Thread Caldarale, Charles R
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Subject: Re: Is it possible to deploy a war file which gives 
 a different contextname?
 
 1) Keep the war file out of the tomcat installation
 2) Use a context declaration which points to the war file 
 (mainApp.xml)
 3) Don't unpack wars (Host ... unpackWARs=false ...)
 
 mainApp.xml
 ===
 Context docBase='/usr/local/wars/foo.war'/
 ===

The only thing missing from the above is that the [appName].xml file
containing the Context element with the docBase attribute should be
placed in conf/[engine]/[host] (usually conf/Catalina/localhost).  You
definitely don't want to put it in server.xml; doing so requires
restarting Tomcat when any changes are made to the app.

 - Chuck


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

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



conecting tomcate 5.5.17 to IIS 6

2007-01-11 Thread Garner, Shawn
I'm having troubles getting this to work with - JK-1.2.20.

I've followed all the steps on the connector website for IIS and still
no luck.

I can see the /jsp-examples/ if I do port 8080 with tomcat.

I can't see it without the port and I have a workers and uriworkermap
file with /jsp-examples/ in it.

I don't have a connector log file generated.

I don't have anything in the IIS log.

When I go to the filter panel it doesn't look like the ISAPI filter was
loaded.

 

Can anyone help me?

 

Shawn

 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



Re: JNDI example for connecting to a DB2 on OS400

2007-01-11 Thread Greg Foulks

an actual sql query, like this...


SELECT * FROM MPLIB.VRC WHERE ( RMEMBNO = '999' )



On 1/11/07, olivier nouguier [EMAIL PROTECTED] wrote:


A query that *always* return a row ...

On 1/11/07, Greg Foulks [EMAIL PROTECTED] wrote:

 then what would be a vaild validation query?

 On 1/11/07, olivier nouguier [EMAIL PROTECTED] wrote:
  Hi,
   Nothing more than for another database.
   But:
  - be carrefull to put a valid validationQuery ( eg: select 1; is not
  supported by DB2/OS400 )!
  the URL and drivers should look like:
parameter
  nameurl/name
 

valuejdbc:as400://yourServerName;libraries=YOURSLIB1,YOURSLIB2;prompt=false;errors=full;trace=false/value
/parameter
parameter
  namedriverClassName/name
  valuecom.ibm.as400.access.AS400JDBCDriver/value
/parameter
parameter
 
  On 1/9/07, Greg Foulks [EMAIL PROTECTED] wrote:
  
   I've read the JNDI docs and can't find an example as to how to
 configure a
   connection for a DB2.
  
   I need to be able to setup a autoreconnect and a validation query in
 my
   server.xml but can't seem to find an example. Anyone able to help
 direct
   me
   in the to right location?
  
   Greg
  
  
 
 
  --
  Souviens-toi qu'au moment de ta naissance tout le monde était dans la
 joie
  et toi dans les pleurs.
  Vis de manière qu'au moment de ta mort, tout le monde soit dans les
 pleurs
  et toi dans la joie.
 
 

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




--
Souviens-toi qu'au moment de ta naissance tout le monde était dans la
joie
et toi dans les pleurs.
Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs
et toi dans la joie.




Re: How to display chinese chars in JSP / encoding UTF-8 without @page encoding tag

2007-01-11 Thread Markus Schönhaber
PATTUS, Jean-Philippe wrote:

 i'm trying to display chinese chars in my web application.
 I have managed to display these characters by adding this following
 directive in each jsp : %@ page contentType=text/html; charset=UTF-8%.
 It works fine.
 But, now i'm looking for a way to change the default charset (Iso 8859-1)
 used by Tomcat for the jsp compilation. I want to set this information in
 only one place(why not in the web.xml), to avoid to add the directive tag
 on my each jsp file.

 Let me know if you have any ideas on the subject.

Two ideas com to my mind:
1. Change the JSPs to use XML syntax. For those, the default encoding is 
UTF-8.
2. Add something like
jsp-config
jsp-property-group
url-pattern*.jsp/url-pattern
page-encodingUTF-8/page-encoding
/jsp-property-group
/jsp-config
to the web.xml of your application. The snippet above is written from memory. 
So it may not be correct but should give you the idea what to look for.

Regards
  mks

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



Re: running tomcat invisibly

2007-01-11 Thread Roger Simmons

The reason I have it checked is because the servlet I'm running
launches applications, and when it's not checked these applications
are also invisble (that is they show up as processes, but the user
can't interact with them).  But the user needs to be able to interact
with them.  That is the problem.

The applications are launched using the Runtime.exec. Is there is a
different way of starting processes from tomcat that would make them
visible while keeping the Allow Service to Interact with the Desktop
option unchecked?

Thanks,

Roger

On 1/10/07, David Kerber [EMAIL PROTECTED] wrote:

Roger Simmons wrote:

 Is it possible to run tomcat invisibly (that is without any console
 being displayed) if you check Allow Service to Interact with the
 Desktop in Windows services?  (I'm using tomcat 5.5)

Probably not, but if you *uncheck* that option, the only place you'll
see it is in task manager.

Dave



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




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



Re: How to forcibly close abandoned database connections?

2007-01-11 Thread David Uctaa

Created a little admin app to do just that, and it worked perfectly.
All the connections being shown as busy cleared right out, and only
the minimum number of idle / available connections remained.

Thanks much.

On 1/10/07, Varley, Roger [EMAIL PROTECTED] wrote:



 I agree that is probably what is happening, since the application has
 gone idle.  However, with garbage collection, while it will only
 reclaim memory when necessary, there is a way to force garbage
 collection.  I am looking for a similar process with abandoned
 database connections.


If the connections will only re-cycle with increased demand, could you not create that demand 
with an admin type program that requests, opens  then closes X connections?

Regards
Roger

___

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.
___

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




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



Re: SSL Certificate

2007-01-11 Thread Luis Rivera

  I am not sure of this. But I believe you can install your self signed
certificate on your browser, that way it will trust it next time.

   --Luis R.


On 1/11/07, Jim Reynolds [EMAIL PROTECTED] wrote:


I have configured SSL a while back and created a temporary certificate
following the documentation that is under SSL.

Not a major problem, but while developing with this, everytime I click
on a page using Mozilla, I get a popup stating the following: Unable
to verify the identify of devsite as a trusted site. I would assume
this is because I created it, and that it is not a verisign or
certified certificate. This is a pain because while doing QA, etc. I
am constantly getting this error.

Is there a way to create a certificate that would work in this
instance that possibly I could certify, and just use for development
QA?

Thanks,

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




Matthew Lee from QAD Australia is out of the office

2007-01-11 Thread Matthew Lee

I will be out of the office starting  01/12/2007 and will not return until
01/15/2007.

If you wish to report a new QAD Product support issue, you can log a call
via our QAD ServicelinQ online service center at http://support.qad.com, so
that our global support team can track this issue and provide you with the
timely assistance that you need.

QAD ServicelinQ also enable you to check the latest status of an existing
support call, and attach additional information to it.

Thank you for your attention to this. I will respond to your email as soon
as I can when I return to the office.

Best Regards,

Matthew Lee

QAD Australia Pty Ltd - Sydney



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



SSL on Tomcat 6.0.2

2007-01-11 Thread JohnT.

Hi All.

I'm running Sun Solaris 5.8.

I was happily running SSL on Tomcat version 5.5.17.
I need to migrate to Tomcat 6.0.2.

On Tomcat 6.0.2, my port http connections run fine (configured on port ,
instead of 8080).
My https connections just hang on when using IE to connect to port 8443.

I have create the .keystore file.
I have uncommented the SSL section of server.xml.  
In fact, I have tried several combinations of entries in server.xml.

It presently looks like this...

Connector port=8443 protocol=HTTP/1.1 maxHttpHeaderSize=8192^M
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true^M
   clientAuth=false sslProtocol=TLS
   keystoreFile=/apps/ApacheGroup/tomcat-6.0.2/.keystore
   keystorePass=changeit /^M

I've verified that my .keystore file exists in the correct directory.
I've tried with and without keystorePass.

Has anyone encountered any issues with SSL for Tomcat 6.0.2?
The documentation has not helped me.

Thanks
JohnT
-- 
View this message in context: 
http://www.nabble.com/SSL-on-Tomcat-6.0.2-tf2961899.html#a8286915
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: SSL on Tomcat 6.0.2

2007-01-11 Thread Caldarale, Charles R
 From: JohnT. [mailto:[EMAIL PROTECTED] 
 Subject: SSL on Tomcat 6.0.2
 
 Connector port=8443 protocol=HTTP/1.1 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=/apps/ApacheGroup/tomcat-6.0.2/.keystore
keystorePass=changeit /

You need to add the attribute SSLEnabled=true.  I'd also strongly
recommend moving up to 6.0.7, which has quite a few bugs fixed over
6.0.2.

 - Chuck


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

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



Tomcat unexpectedly shuts down

2007-01-11 Thread Brown, Carlton
Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA623




RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
I'd find out what other major processes are running on those two UNIX boxes, as 
it sounds like something there's clashing terribly, and killing off the Tomcat 
process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA623



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



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Steve Ingraham
I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



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


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



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
sounds like you've got some thread hanging in there somewhere, but the logs 
don't indicate which one might be hanging?

Also sounds like a memory issue; is it possible someone created some kind of 
servlet or app that manually controls Java's garbage collection?

-Original Message-
From: Steve Ingraham [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:24 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



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


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


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



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread andy.mcneill
Have you tried profiling the jvm memory usage? I have had problems
(created my myself) with Tomcat locking up due to outofMemory errors -
if it reaches this stage it won't be able to shutdown gracefully

-Original Message-
From: Steve Ingraham [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2007 22:24
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



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


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


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



Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Leon Rosenberg

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:

This box has no other purpose than to run Anthill in Tomcat to build
java apps.   There would be no other major processes.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down

I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



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


*

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential, proprietary, and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from all computers. GA624



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




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



RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Brown, Carlton
In catalina.out I see the Anthill application going through a shutdown
sequence right before the time Tomcat dies.   So my assumption, maybe
invalid, is that it's shutting down because Tomcat instructed it to do
so.

 Here's a log fragment with the final interesting lines of shutdown, and
then the first line of the later startup.

00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
- Starting Anthill daemons
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
BuildDaemon shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
Anthill.doShutdown() called
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9090

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 5:42 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 This box has no other purpose than to run Anthill in Tomcat to build
 java apps.   There would be no other major processes.

 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:06 PM
 To: Tomcat Users List
 Subject: RE: Tomcat unexpectedly shuts down

 I'd find out what other major processes are running on those two UNIX 
 boxes, as it sounds like something there's clashing terribly, and 
 killing off the Tomcat process.

 -Original Message-
 From: Brown, Carlton [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 4:01 PM
 To: users@tomcat.apache.org
 Subject: Tomcat unexpectedly shuts down


 Hello,

 My Tomcat instance is unexpectedly shutting itself down every 8 to 72
 hours.   Can someone give me some advice on this?   By all appearances
 this is a graceful shutdown.  I do not see any interesting exceptions 
 in the logs (I have looked in catalina.out and the various localhost*
 files).   Perhaps I am looking for the wrong thing.

 This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
10.
 JSP apps running on the server are about 3 different instances of 
 Anthill 1.8.0.264.

 Thanks in advance,
 Carlton

 *

 The information transmitted is intended only for the person or entity 
 to which it is addressed and may contain confidential, proprietary, 
 and/or privileged material. Any review, retransmission, dissemination 
 or other use of, or taking of any action in reliance upon this 
 information by persons or entities other than the intended recipient 
 is prohibited. If you received this in error, please contact the 
 sender and delete the material from all computers. GA623



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


 *

 The information transmitted is intended only for the person or entity 
 to which it is addressed and may contain confidential, proprietary, 
 and/or privileged material. Any review, retransmission, dissemination 
 or other use of, or taking of any action in reliance upon this 
 information by persons or entities other than the intended recipient 
 is prohibited. If you received this in error, please contact the 
 sender and delete the material from all computers. GA624



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



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


*

The information transmitted is intended only for 

Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Leon Rosenberg

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:

In catalina.out I see the Anthill application going through a shutdown
sequence right before the time Tomcat dies.   So my assumption, maybe
invalid, is that it's shutting down because Tomcat instructed it to do
so.


Interesting. Most interesting part of it is what Thread-32 is. Are
your thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after
anthill shuts down.



 Here's a log fragment with the final interesting lines of shutdown, and
then the first line of the later startup.

00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
- Starting Anthill daemons
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
BuildDaemon shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
shutting down
00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
Anthill.doShutdown() called
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Anthill version: 1.8.0.264 loaded.
log4j:WARN No appenders could be found for logger
(com.urbancode.anthill.web.admin.AnthillAdminServlet).
log4j:WARN Please initialize the log4j system properly.
Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9090

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:42 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down

You've mentioned a graceful shutdown. However a crash doesn't
necessary leave tracks in the logs.
Do I understand you right, that the tomcat is down, out of nowhere, if
it were just shut down by the shutdown.sh?

regards
Leon

On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 This box has no other purpose than to run Anthill in Tomcat to build
 java apps.   There would be no other major processes.

 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:06 PM
 To: Tomcat Users List
 Subject: RE: Tomcat unexpectedly shuts down

 I'd find out what other major processes are running on those two UNIX
 boxes, as it sounds like something there's clashing terribly, and
 killing off the Tomcat process.

 -Original Message-
 From: Brown, Carlton [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 4:01 PM
 To: users@tomcat.apache.org
 Subject: Tomcat unexpectedly shuts down


 Hello,

 My Tomcat instance is unexpectedly shutting itself down every 8 to 72
 hours.   Can someone give me some advice on this?   By all appearances
 this is a graceful shutdown.  I do not see any interesting exceptions
 in the logs (I have looked in catalina.out and the various localhost*
 files).   Perhaps I am looking for the wrong thing.

 This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
10.
 JSP apps running on the server are about 3 different instances of
 Anthill 1.8.0.264.

 Thanks in advance,
 Carlton

 *

 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential, proprietary,
 and/or privileged material. Any review, retransmission, dissemination
 or other use of, or taking of any action in reliance upon this
 information by persons or entities other than the intended recipient
 is prohibited. If you received this in error, please contact the
 sender and delete the material from all computers. GA623



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


 *

 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential, proprietary,
 and/or privileged material. Any review, retransmission, dissemination
 or other use of, or 

RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Propes, Barry L [GCG-NAOT]
isn't Anthill just a third party app to do war and ant builds? Deploy .ear and 
.war files?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down


On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 In catalina.out I see the Anthill application going through a shutdown
 sequence right before the time Tomcat dies.   So my assumption, maybe
 invalid, is that it's shutting down because Tomcat instructed it to do
 so.

Interesting. Most interesting part of it is what Thread-32 is. Are
your thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after
anthill shuts down.


  Here's a log fragment with the final interesting lines of shutdown, and
 then the first line of the later startup.

 00:26:30:456 [http-9090-Processor25] INFO  com.urbancode.anthill.Anthill
 - Starting Anthill daemons
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  -
 BuildDaemon shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - Queue
 shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
 Anthill.doShutdown() called
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-9090

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:42 PM
 To: Tomcat Users List
 Subject: Re: Tomcat unexpectedly shuts down

 You've mentioned a graceful shutdown. However a crash doesn't
 necessary leave tracks in the logs.
 Do I understand you right, that the tomcat is down, out of nowhere, if
 it were just shut down by the shutdown.sh?

 regards
 Leon

 On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
  This box has no other purpose than to run Anthill in Tomcat to build
  java apps.   There would be no other major processes.
 
  -Original Message-
  From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 5:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat unexpectedly shuts down
 
  I'd find out what other major processes are running on those two UNIX
  boxes, as it sounds like something there's clashing terribly, and
  killing off the Tomcat process.
 
  -Original Message-
  From: Brown, Carlton [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 4:01 PM
  To: users@tomcat.apache.org
  Subject: Tomcat unexpectedly shuts down
 
 
  Hello,
 
  My Tomcat instance is unexpectedly shutting itself down every 8 to 72
  hours.   Can someone give me some advice on this?   By all appearances
  this is a graceful shutdown.  I do not see any interesting exceptions
  in the logs (I have looked in catalina.out and the various localhost*
  files).   Perhaps I am looking for the wrong thing.
 
  This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
 10.
  JSP apps running on the server are about 3 different instances of
  Anthill 1.8.0.264.
 
  Thanks in advance,
  Carlton
 
  *
 
  The information transmitted is intended only for the person or entity
  to which it is addressed and may contain confidential, proprietary,
  and/or privileged material. Any review, retransmission, dissemination
  or other use of, or taking of any action in reliance upon this
  information by persons or entities other than the intended recipient
  is prohibited. If you received this in error, please contact the
  sender and delete the material from all computers. GA623
 
 
 
  -
  To start a new topic, 

Re: yet another SSL question

2007-01-11 Thread Jan Strauch
first, thanks for your help.

But now I got the next problem:

Is it possible to have multiple different Login pages in one webapp?

Scenario:

- Two areas (DB,shop) in one webapp
- two groups of users having access to one of the areas.
- one member of both groups.

When I am logged in to the DB-section and call a page in the shop-section I
get a
permission denied error.

How do I manage to have a new login-window to get access to the other
section?
auth-method in web.xml is BASIC. I tried FORM-based login  with a
re-login as errorpage ,
but did not get it to work.
Is there a better way than a third usergroup with access to both sections?
Can I invoke an automatic logoff when a page outside the current section is
called, so I can force a new login
to the entered section?
Is there any way to log out?
Is it possible with Basic-method to have different logins depending on which
page is called?



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



Logging only 500 errors

2007-01-11 Thread Shekar Tippur

Hello,

I would like to log ONLY the 500 - internal server errors.

I would like to know the configuration settings in httpd.conf to achieve
this.

I would also appreciate if someone could point me to some documentations on
this.

- Shekar


RE: Tomcat unexpectedly shuts down

2007-01-11 Thread Brown, Carlton
Anthill is a third party app intended to store and execute Ant scripts.
I mention it only because it's fairly well-known and maybe someone has
seen similar problems before.   

Either way, the only thing running in this tomcat instance is 3 copies
of Anthill. 

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 6:26 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down

isn't Anthill just a third party app to do war and ant builds? Deploy
.ear and .war files?

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 5:00 PM
To: Tomcat Users List
Subject: Re: Tomcat unexpectedly shuts down


On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
 In catalina.out I see the Anthill application going through a shutdown
 sequence right before the time Tomcat dies.   So my assumption, maybe
 invalid, is that it's shutting down because Tomcat instructed it to do

 so.

Interesting. Most interesting part of it is what Thread-32 is. Are your
thread named?
Could it be that you are initiating the shutdown indirectly by somehow
trying to initialize already initialized framework or something?

You said you had three webapps. Have you actually tried to split they
onto three different tomcat installations, to see if they all have the
same problem or only one of them?

I'm ashamed, but I don't know what Anthill is, so I maybe missing some
internals or ask dumb questions, in this case i apologize.

regards
Leon

P.S. Do you have a contextlistener? If not you could configure one and
check whether the context is being deinitialized before or after anthill
shuts down.


  Here's a log fragment with the final interesting lines of shutdown, 
 and then the first line of the later startup.

 00:26:30:456 [http-9090-Processor25] INFO  
 com.urbancode.anthill.Anthill
 - Starting Anthill daemons
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.BuildDaemon  - 
 BuildDaemon shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.util.Queue  - 
 Queue shutting down
 00:27:31:015 [Thread-32] INFO  com.urbancode.anthill.Anthill  -
 Anthill.doShutdown() called
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Anthill version: 1.8.0.264 loaded.
 log4j:WARN No appenders could be found for logger 
 (com.urbancode.anthill.web.admin.AnthillAdminServlet).
 log4j:WARN Please initialize the log4j system properly.
 Jan 11, 2007 11:06:13 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-9090

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 5:42 PM
 To: Tomcat Users List
 Subject: Re: Tomcat unexpectedly shuts down

 You've mentioned a graceful shutdown. However a crash doesn't 
 necessary leave tracks in the logs.
 Do I understand you right, that the tomcat is down, out of nowhere, if

 it were just shut down by the shutdown.sh?

 regards
 Leon

 On 1/11/07, Brown, Carlton [EMAIL PROTECTED] wrote:
  This box has no other purpose than to run Anthill in Tomcat to build
  java apps.   There would be no other major processes.
 
  -Original Message-
  From: Propes, Barry L [GCG-NAOT] 
  [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 5:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat unexpectedly shuts down
 
  I'd find out what other major processes are running on those two 
  UNIX boxes, as it sounds like something there's clashing terribly, 
  and killing off the Tomcat process.
 
  -Original Message-
  From: Brown, Carlton [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 4:01 PM
  To: users@tomcat.apache.org
  Subject: Tomcat unexpectedly shuts down
 
 
  Hello,
 
  My Tomcat instance is unexpectedly shutting itself down every 8 to
72
  hours.   Can someone give me some advice on this?   By all
appearances
  this is a graceful shutdown.  I do not see any interesting 
  exceptions in the logs (I have looked in catalina.out and the
various localhost*
  files).   Perhaps I am looking for the wrong thing.
 
  This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris
 10.
  JSP apps running on the server are about 3 different instances of 
  Anthill 1.8.0.264.
 
  Thanks in advance,
  Carlton
 
  *
 
  The information transmitted is intended only for the person or 
  entity to which it is addressed and may 

Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Andre Prasetya

Hi Steve,

Is there anything that flood your server with requests or trigger an
infinite loop within the application ? I have similar experiences in 2
scenarios
1. A tomcat died every morning, Then we foundout that its flooded by
requests at a certain time and there is a flaw at our design that permits
only 1 connection for the flooded application.
2. An application causing the tomcat server to hang, exhausting our cpu
resources to 100%, trigerred by Stop command from manager. Even after
shutting down the tomcat, the process is still running and we have to
manually kill the java thread. Thenwe found out that our application got an
infinite loop bug when we force it to close.


On 1/12/07, Steve Ingraham [EMAIL PROTECTED] wrote:


I have a similar problem.  I would be interested to know what is said
about this.

In our case we have a web based application that calls up a MySQL
database. It is running in Tomcat 5.5.15 on a Red Hat AS 3 machine.
Every morning I have to manually stop and restart Tomcat.  If I do not
do so and let it run, over the course of a day or two, definitely no
more than the third day, Tomcat will lock up and the web application
will display access errors to the users.

I then have to run the shutdown.sh script on Tomcat.  Then because the
instance will not clear out I have to run ps aux, find the instance of
java that is running.  I then have to run the kill -9 pid # command
and then startup.sh to restart Tomcat.  If I do this first thing in the
morning Tomcat will function without locking up.  If I do not do it
first thing in the morning, sometime during that day, or if I am lucky
the next day, Tomcat will lockup.

If anyone has ideas on what can be done to correct this problem I will
be anxious to read any replies.

Thanks,
Steve

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Tomcat unexpectedly shuts down


I'd find out what other major processes are running on those two UNIX
boxes, as it sounds like something there's clashing terribly, and
killing off the Tomcat process.

-Original Message-
From: Brown, Carlton [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 4:01 PM
To: users@tomcat.apache.org
Subject: Tomcat unexpectedly shuts down


Hello,

My Tomcat instance is unexpectedly shutting itself down every 8 to 72
hours.   Can someone give me some advice on this?   By all appearances
this is a graceful shutdown.  I do not see any interesting exceptions in
the logs (I have looked in catalina.out and the various localhost*
files).   Perhaps I am looking for the wrong thing.

This happens on Tomcat 4.1.31 and 5.028 on Redhat Linux and Solaris 10.
JSP apps running on the server are about 3 different instances of
Anthill 1.8.0.264.

Thanks in advance,
Carlton

*

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from all computers. GA623



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


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





--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?